/* ============================================
   SWIRL. - Luxury Editorial Design System
   Aesthetic: Luxury Editorial × Apple Refinement
   Fonts: Syne (display) + Space Grotesk (body)
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #060606;
    --bg-2: #0C0C0C;
    --bg-3: #131313;
    --bg-card: #0F0F0F;
    --cream: #F5F0E1;
    --cream-dim: rgba(245, 240, 225, 0.55);
    --peach: #E8B498;
    --sage: #B8C896;
    --white: #FAFAFA;
    --gray-300: #AAAAAA;
    --gray-500: #666666;
    --gray-700: #333333;
    --border: rgba(245, 240, 225, 0.07);
    --border-hover: rgba(245, 240, 225, 0.14);
    --font-display: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
    --section-pad: clamp(120px, 14vw, 200px);
    --container: 1280px;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.65;
    cursor: none;
}

/* Grain overlay */
body::after {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 128px;
    opacity: 0.02;
    pointer-events: none;
    z-index: 10000;
}

::selection { background: var(--cream); color: var(--bg); }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; cursor: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 48px; }
.dot { color: var(--peach); }

.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--cream-dim);
    margin-bottom: 28px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4.5vw, 4.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: 40px;
}

/* --- Scroll Progress --- */
.scroll-progress {
    position: fixed; top: 0; left: 0;
    height: 2px; width: 0;
    background: linear-gradient(90deg, var(--cream), var(--peach));
    z-index: 99998;
    transition: none;
}

/* --- Custom Cursor --- */
.cursor {
    position: fixed; width: 8px; height: 8px;
    background: var(--cream);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s;
    mix-blend-mode: difference;
}
.cursor.hovering { width: 48px; height: 48px; background: var(--peach); }
.cursor-follower {
    position: fixed; width: 32px; height: 32px;
    border: 1px solid rgba(245, 240, 225, 0.25);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease), height 0.4s var(--ease), opacity 0.3s;
}
.cursor-follower.hovering { width: 64px; height: 64px; opacity: 0; }

/* --- Preloader --- */
.preloader {
    position: fixed; inset: 0;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    z-index: 99999;
    transition: clip-path 1s var(--ease);
    clip-path: inset(0 0 0 0);
}
.preloader.done { clip-path: inset(0 0 100% 0); }
.preloader-text {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.7s var(--ease);
}
.preloader.active .preloader-text { opacity: 1; transform: translateY(0); }
.preloader-dot { color: var(--peach); }
.preloader-bar {
    position: absolute; bottom: 40%; left: 50%; transform: translateX(-50%);
    width: 120px; height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 32px;
}
.preloader-fill {
    height: 100%; width: 0;
    background: var(--cream);
    border-radius: 2px;
    transition: width 1s var(--ease-smooth);
}
.preloader.active .preloader-fill { width: 100%; }

/* --- Swirl Ring (Signature Visual) --- */
.swirl-ring {
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(245, 240, 225, 0.06) 0deg,
        transparent 80deg,
        rgba(232, 180, 152, 0.05) 160deg,
        transparent 240deg,
        rgba(184, 200, 150, 0.04) 300deg,
        transparent 360deg
    );
    filter: blur(50px);
    animation: swirl-rotate 40s linear infinite;
    pointer-events: none;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}
.swirl-ring-cta {
    width: 500px; height: 500px;
    top: 40%;
}
@keyframes swirl-rotate { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* --- Navigation --- */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 9999;
    padding: 24px 0;
    transition: all 0.5s var(--ease);
}
.nav.scrolled {
    padding: 16px 0;
    background: rgba(6, 6, 6, 0.8);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-bottom: 1px solid var(--border);
}
.nav-container {
    max-width: var(--container);
    margin: 0 auto; padding: 0 48px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.4rem; font-weight: 800;
    letter-spacing: -0.04em;
}
.nav-links { display: flex; gap: 40px; }
.nav-link {
    font-size: 0.8125rem; font-weight: 500;
    color: var(--gray-300);
    transition: color 0.3s ease;
    position: relative; cursor: none;
}
.nav-link:hover { color: var(--white); }
.nav-link::after {
    content: '';
    position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--cream);
    transition: width 0.4s var(--ease);
}
.nav-link:hover::after { width: 100%; }
.nav-cta {
    font-size: 0.8125rem; font-weight: 600;
    padding: 10px 28px;
    border-radius: 100px;
    background: var(--cream); color: var(--bg);
    transition: all 0.35s var(--ease);
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(245, 240, 225, 0.18);
}

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-body);
    font-weight: 600; border-radius: 100px;
    transition: all 0.35s var(--ease);
    cursor: none;
}
.btn-primary {
    padding: 18px 40px; font-size: 0.9375rem;
    background: var(--cream); color: var(--bg);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(245, 240, 225, 0.2);
}
.btn-primary svg { transition: transform 0.3s var(--ease); }
.btn-primary:hover svg { transform: translateX(5px); }
.btn-secondary {
    padding: 18px 40px; font-size: 0.9375rem;
    background: transparent; color: var(--cream-dim);
    border: 1px solid var(--border);
}
.btn-secondary:hover { color: var(--white); border-color: var(--border-hover); }
.btn-large { padding: 22px 52px; font-size: 1.0625rem; }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 160px 48px 0;
    overflow: hidden;
}
.hero-orb {
    position: absolute; border-radius: 50%;
    filter: blur(120px); pointer-events: none;
}
.hero-orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(232, 180, 152, 0.1) 0%, transparent 70%);
    top: -150px; right: -150px;
}
.hero-orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(184, 200, 150, 0.06) 0%, transparent 70%);
    bottom: 100px; left: -150px;
}
.hero-content {
    position: relative; z-index: 2;
    max-width: 900px;
}
.hero-label {
    display: inline-block;
    font-size: 0.6875rem; font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--sage);
    margin-bottom: 36px;
    padding: 10px 24px;
    border: 1px solid rgba(184, 200, 150, 0.2);
    border-radius: 100px;
    opacity: 0; transform: translateY(20px);
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
}
.title-line {
    display: block;
    overflow: hidden;
}
.title-line-inner {
    display: block;
    transform: translateY(110%);
}
.hero-description {
    font-size: 1.125rem; line-height: 1.75;
    color: var(--gray-300);
    max-width: 520px;
    margin: 0 auto 44px;
    opacity: 0; transform: translateY(20px);
}
.hero-actions {
    display: flex; gap: 16px; justify-content: center;
    margin-bottom: 36px;
    opacity: 0; transform: translateY(20px);
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.8125rem; color: var(--gray-500); font-weight: 500;
    opacity: 0; transform: translateY(20px);
}
.hero-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--sage);
    animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero-image {
    position: relative; z-index: 2;
    margin-top: 72px;
    max-width: 960px; width: 100%;
    opacity: 0; transform: translateY(60px) scale(0.95);
}
.hero-image-inner { border-radius: 20px; overflow: hidden; }
.hero-image img { width: 100%; border-radius: 20px; }

/* --- Marquee --- */
.marquee-section {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.marquee-track { display: flex; width: max-content; }
.marquee-brands {
    display: flex; align-items: center; gap: 56px;
    animation: marquee-scroll 45s linear infinite;
    padding-right: 56px;
    white-space: nowrap;
}
.brand-name {
    font-size: 0.8125rem;
    letter-spacing: 0.22em;
    color: var(--cream);
    opacity: 0.32;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}
.brand-serif { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.brand-sans  { font-family: var(--font-display); font-weight: 600; }
.marquee-dot { font-size: 0.5rem; color: var(--peach); opacity: 0.4; }
@keyframes marquee-scroll { to { transform: translateX(-100%); } }

/* --- Problem (Scroll-pinned) --- */
.problem {
    height: 300vh;
    position: relative;
}
.problem-sticky {
    position: sticky; top: 0;
    height: 100vh;
    display: flex; align-items: center;
    padding: 0 48px;
}
.problem-content {
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    max-width: 760px;
}
.problem-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 64px;
    opacity: 0.15;
    transition: opacity 0.5s ease;
}
.problem-title.active { opacity: 1; }
.problem-lines { margin-bottom: 56px; }
.p-line {
    font-size: clamp(1.125rem, 1.8vw, 1.375rem);
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 24px;
    padding-left: 28px;
    border-left: 2px solid transparent;
    transition: all 0.6s var(--ease);
}
.p-line.active {
    color: var(--cream);
    border-left-color: var(--peach);
}
.problem-solution {
    display: flex; align-items: center; gap: 24px;
    opacity: 0; transform: translateX(-20px);
    transition: all 0.7s var(--ease);
}
.problem-solution.active { opacity: 1; transform: translateX(0); }
.solution-line { width: 56px; height: 2px; background: var(--cream); }
.solution-text {
    font-family: var(--font-display);
    font-size: 1.75rem; font-weight: 700;
    color: var(--cream);
}

/* --- Features --- */
.features {
    padding: var(--section-pad) 0;
    background: var(--bg-2);
}
.features-header { margin-bottom: 72px; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.feature-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 44px;
    overflow: hidden;
    transition: all 0.5s var(--ease);
    cursor: none;
}
.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}
.feature-card-hero {
    grid-column: span 3;
    display: flex; align-items: stretch;
    padding: 0;
}
.feature-card-hero .feature-card-content {
    padding: 52px;
    flex: 1;
    display: flex; flex-direction: column; justify-content: center;
}
.feature-card-visual {
    width: 380px; flex-shrink: 0;
    overflow: hidden;
    border-radius: 0 24px 24px 0;
    position: relative;
}
.feature-card-visual img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.feature-card-hero:hover .feature-card-visual img { transform: scale(1.05); }
.feature-glow {
    position: absolute; width: 300px; height: 300px;
    bottom: -100px; right: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 180, 152, 0.08) 0%, transparent 70%);
    filter: blur(60px); pointer-events: none;
}
.feature-card-wide { grid-column: span 3; }
.feature-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    background: rgba(245, 240, 225, 0.05);
    color: var(--cream);
    margin-bottom: 28px;
    transition: background 0.3s;
}
.feature-card:hover .feature-icon { background: rgba(245, 240, 225, 0.08); }
.feature-title {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.015em;
}
.feature-desc {
    font-size: 0.9375rem; line-height: 1.75;
    color: var(--gray-300);
    max-width: 420px;
}

/* Swipe demo */
.feature-swipe-content {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px;
}
.swipe-demo {
    flex-shrink: 0;
    width: 300px; height: 220px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.swipe-cards { position: relative; width: 150px; height: 200px; }
.swipe-card {
    position: absolute; inset: 0;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: transform 0.6s var(--ease);
}
.swipe-card-1 { background: linear-gradient(135deg, #222, #161616); z-index: 3; }
.swipe-card-2 { background: linear-gradient(135deg, #1c1c1c, #131313); z-index: 2; transform: translateX(18px) scale(0.95); }
.swipe-card-3 { background: linear-gradient(135deg, #181818, #101010); z-index: 1; transform: translateX(36px) scale(0.9); }
.feature-card-wide:hover .swipe-card-1 { transform: translateX(-24px) rotate(-4deg); }
.feature-card-wide:hover .swipe-card-2 { transform: translateX(18px) scale(0.95) rotate(1deg); }
.feature-card-wide:hover .swipe-card-3 { transform: translateX(44px) scale(0.9) rotate(4deg); }

/* --- Showcase (Scroll-driven zoom) --- */
.showcase {
    padding: var(--section-pad) 0;
    overflow: hidden;
}
.showcase-text {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 80px;
    padding: 0 48px;
}
.showcase-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--cream-dim);
}
.showcase-image-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px;
}
.showcase-image {
    border-radius: 28px;
    overflow: hidden;
    transform: scale(0.85);
    transition: border-radius 0.3s;
}
.showcase-image img {
    width: 100%;
    display: block;
}

/* --- Stats --- */
.stats {
    padding: var(--section-pad) 0;
    background: var(--bg-2);
}
.stats-grid {
    display: flex; align-items: center; justify-content: center;
    gap: 0;
}
.stat {
    flex: 1; text-align: center;
    padding: 56px 32px;
}
.stat-divider {
    width: 1px; height: 80px;
    background: var(--border);
}
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    display: inline;
    background: linear-gradient(135deg, var(--cream) 0%, var(--peach) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-plus {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--cream) 0%, var(--peach) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    display: block; font-size: 0.875rem;
    color: var(--gray-500); margin-top: 14px; font-weight: 500;
}

/* --- Brands (Asymmetric) --- */
.brands {
    padding: var(--section-pad) 0;
}
.brands-layout {
    display: flex; align-items: center;
    gap: 80px;
}
.brands-content { flex: 1; }
.brands-visual {
    flex-shrink: 0; width: 440px;
    border-radius: 24px; overflow: hidden;
}
.brands-visual img { width: 100%; border-radius: 24px; }
.brands-desc {
    font-size: 1.125rem; line-height: 1.75;
    color: var(--gray-300); margin-bottom: 44px;
}

/* --- CTA --- */
.cta {
    position: relative;
    padding: var(--section-pad) 0;
    text-align: center;
    overflow: hidden;
}
.cta-content { position: relative; z-index: 2; }
.cta-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
}
.cta-desc {
    font-size: 1.125rem; color: var(--gray-300);
    margin-bottom: 52px;
    max-width: 460px; margin-left: auto; margin-right: auto;
    line-height: 1.75;
}

/* --- Footer --- */
.footer {
    padding: 100px 0 48px;
    border-top: 1px solid var(--border);
}
.footer-top {
    display: flex; justify-content: space-between;
    margin-bottom: 100px;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.75rem; font-weight: 800;
    letter-spacing: -0.03em;
}
.footer-tagline { font-size: 0.875rem; color: var(--gray-500); margin-top: 10px; }
.footer-links-grid { display: flex; gap: 96px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col-title {
    font-size: 0.6875rem; font-weight: 600;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--cream-dim); margin-bottom: 6px;
}
.footer-link {
    font-size: 0.875rem; color: var(--gray-500);
    transition: color 0.3s ease; cursor: none;
}
.footer-link:hover { color: var(--white); }
.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem; color: var(--gray-700);
    letter-spacing: 0.05em;
}

/* --- Contact Form Section --- */
.contact-form-section {
    padding: var(--section-pad) 0;
    background: var(--bg-2);
    position: relative;
    overflow: hidden;
}
.contact-form-section::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 180, 152, 0.06) 0%, transparent 70%);
    filter: blur(100px);
    top: -200px; right: -200px;
    pointer-events: none;
}
.contact-layout {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}
.contact-info {
    flex: 0 0 380px;
    padding-top: 20px;
}
.contact-info-desc {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-300);
    margin-bottom: 48px;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.contact-detail-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: rgba(245, 240, 225, 0.04);
    border: 1px solid var(--border);
    color: var(--cream-dim);
    flex-shrink: 0;
    transition: all 0.3s var(--ease);
}
.contact-detail-item:hover .contact-detail-icon {
    background: rgba(245, 240, 225, 0.07);
    border-color: var(--border-hover);
    color: var(--peach);
}
.contact-detail-text {
    font-size: 0.9375rem;
    color: var(--gray-300);
    transition: color 0.3s ease;
}
.contact-detail-item:hover .contact-detail-text {
    color: var(--cream);
}

/* Form Card */
.contact-form-wrapper {
    flex: 1;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 52px;
    overflow: hidden;
}
.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 240, 225, 0.1), transparent);
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
}
.form-group {
    position: relative;
}
.form-group-full {
    margin-bottom: 36px;
}
.form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-dim);
    margin-bottom: 12px;
}
.form-required {
    color: var(--peach);
}
.form-optional {
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--gray-500);
    font-size: 0.6875rem;
}
.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--white);
    outline: none;
    cursor: none;
    transition: border-color 0.3s ease;
    position: relative;
    z-index: 1;
}
.form-input::placeholder {
    color: var(--gray-700);
    transition: color 0.3s ease;
}
.form-input:focus::placeholder {
    color: var(--gray-500);
}
.form-input-line {
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: linear-gradient(90deg, var(--cream), var(--peach));
    transition: width 0.5s var(--ease);
    z-index: 2;
}
.form-input:focus ~ .form-input-line {
    width: 100%;
}
.form-input.has-value ~ .form-input-line {
    width: 100%;
    background: var(--sage);
}
.form-input.error {
    border-bottom-color: #e85d5d;
}
.form-input.error ~ .form-input-line {
    width: 100%;
    background: #e85d5d;
}
.form-textarea {
    resize: none;
    min-height: 120px;
    line-height: 1.7;
}

/* Submit Button */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.btn-submit {
    position: relative;
    overflow: hidden;
    min-width: 200px;
    justify-content: center;
}
.btn-submit-text,
.btn-submit-loading,
.btn-submit-success {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s var(--ease);
}
.btn-submit-loading,
.btn-submit-success {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}
.btn-submit.loading .btn-submit-text,
.btn-submit.loading .btn-arrow {
    opacity: 0;
    transform: translateY(20px);
}
.btn-submit.loading .btn-submit-loading {
    opacity: 1;
}
.btn-submit.success .btn-submit-text,
.btn-submit.success .btn-arrow {
    opacity: 0;
    transform: translateY(20px);
}
.btn-submit.success .btn-submit-success {
    opacity: 1;
}
.spinner {
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.form-privacy {
    font-size: 0.75rem;
    color: var(--gray-700);
    letter-spacing: 0.02em;
}

/* Success Overlay */
.form-success-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s var(--ease);
    z-index: 10;
}
.form-success-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.form-success-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.6s var(--ease) 0.1s;
}
.form-success-overlay.visible .form-success-content {
    transform: translateY(0);
}
.form-success-icon {
    color: var(--sage);
    margin-bottom: 24px;
    animation: success-pulse 2s ease-in-out infinite;
}
@keyframes success-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.8; }
}
.form-success-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.form-success-desc {
    font-size: 0.9375rem;
    color: var(--gray-300);
    line-height: 1.7;
}

/* --- Animate helper --- */
[data-animate] {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-animate].in-view { opacity: 1; transform: translateY(0); }

/* --- Form Error Messages --- */
.form-field-error {
    display: block;
    font-size: 0.6875rem;
    color: #e85d5d;
    margin-top: 6px;
    letter-spacing: 0.02em;
    animation: fadeIn 0.3s ease;
}
.form-error-message {
    font-size: 0.8125rem;
    color: #e85d5d;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: rgba(232, 93, 93, 0.08);
    border: 1px solid rgba(232, 93, 93, 0.2);
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
    width: 100%;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* --- Touch devices: restore native cursor --- */
@media (hover: none), (pointer: coarse) {
    body, a, .btn, .nav-link, .footer-link, .form-input, .feature-card {
        cursor: auto !important;
    }
    .cursor, .cursor-follower { display: none !important; }
}

/* --- Tablet (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .container { padding: 0 32px; }
    .nav-container { padding: 0 32px; }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    .feature-card-hero {
        grid-column: span 2;
    }
    .feature-card-wide {
        grid-column: span 2;
    }
    .feature-card-visual { width: 300px; }

    /* Brands */
    .brands-layout { gap: 48px; }
    .brands-visual { width: 360px; }

    /* Contact */
    .contact-layout { gap: 48px; }
    .contact-info { flex: 0 0 320px; }

    /* Footer */
    .footer-links-grid { gap: 48px; }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
    :root {
        --section-pad: clamp(80px, 10vw, 120px);
    }

    .container { padding: 0 24px; }
    .nav-container { padding: 0 24px; }

    /* Nav */
    .nav { padding: 16px 0; }
    .nav-links { display: none; }
    .nav-cta { font-size: 0.75rem; padding: 8px 20px; }

    /* Hero */
    .hero { padding: 120px 24px 0; min-height: auto; }
    .hero-title { font-size: clamp(2.5rem, 9vw, 4.5rem); }
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 32px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    .hero-image { margin-top: 48px; }

    /* Marquee */
    .marquee-section { padding: 32px 0; }
    .marquee-brands { gap: 36px; padding-right: 36px; }
    .brand-name { font-size: 0.6875rem; }

    /* Problem */
    .problem { height: 250vh; }
    .problem-sticky { padding: 0 24px; }
    .problem-title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 40px; }
    .p-line { font-size: 1rem; padding-left: 20px; margin-bottom: 20px; }

    /* Features */
    .features-header { margin-bottom: 48px; }
    .features-grid { grid-template-columns: 1fr; gap: 12px; }
    .feature-card-hero {
        grid-column: span 1;
        flex-direction: column;
    }
    .feature-card-hero .feature-card-content { padding: 36px; }
    .feature-card-visual {
        width: 100%; height: 260px;
        border-radius: 0 0 24px 24px;
    }
    .feature-card-wide { grid-column: span 1; }
    .feature-swipe-content { flex-direction: column; gap: 24px; }
    .swipe-demo { width: 100%; height: 180px; }
    .feature-card { padding: 32px; }
    .feature-title { font-size: 1.25rem; }

    /* Showcase */
    .showcase-text { padding: 0 24px; margin-bottom: 48px; }
    .showcase-image-wrapper { padding: 0 24px; }
    .showcase-title { font-size: clamp(1.375rem, 4vw, 2rem); }

    /* Stats */
    .stats-grid { flex-direction: column; gap: 0; }
    .stat { padding: 36px 24px; }
    .stat-divider { width: 60px; height: 1px; }

    /* Brands */
    .brands-layout { flex-direction: column; gap: 40px; }
    .brands-visual { width: 100%; }
    .brands-desc { font-size: 1rem; }

    /* CTA */
    .cta-title { font-size: clamp(2.5rem, 8vw, 4rem); }
    .cta-desc { font-size: 1rem; margin-bottom: 36px; }
    .btn-large { padding: 18px 40px; font-size: 1rem; }

    /* Contact */
    .contact-layout {
        flex-direction: column;
        gap: 40px;
    }
    .contact-info {
        flex: none;
        width: 100%;
    }
    .contact-form-wrapper { padding: 32px; }
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    .form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .form-privacy { text-align: center; }

    /* Footer */
    .footer { padding: 64px 0 32px; }
    .footer-top {
        flex-direction: column;
        gap: 48px;
        margin-bottom: 48px;
    }
    .footer-links-grid { gap: 40px; }
    .footer-bottom { font-size: 0.6875rem; }

    /* Section titles */
    .section-title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 28px; }
}

/* --- Small mobile (max-width: 480px) --- */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .nav-container { padding: 0 16px; }

    .hero { padding: 100px 16px 0; }
    .hero-label { font-size: 0.5625rem; padding: 8px 16px; }

    .problem-sticky { padding: 0 16px; }

    .footer-links-grid {
        flex-wrap: wrap;
        gap: 32px;
    }
    .footer-col { flex: 0 0 calc(50% - 16px); }

    .contact-form-wrapper { padding: 24px; border-radius: 20px; }
    .swirl-ring { width: 400px; height: 400px; }
}
