/* ========================================
   GOODSTART AI SOLUTIONS — Award-Winning Edition v2
   Scroll Progress · Logo Float · Spotlight Cards
   Section Dividers · Kinetic Marquee · Spring Physics
   ======================================== */

/* ---------- DESIGN TOKENS ---------- */
:root {
    /* Colors — Semantic tokens (UI/UX Pro Max) */
    --bg: #F8FAFC;
    --bg-card: #FFFFFF;
    --text: #475569;
    --text-heading: #0F172A;
    --text-dim: #8b959e;
    --text-muted: #94A3B8;
    --green: #057d48;
    --green-hover: #046a3d;
    --green-subtle: rgba(5, 125, 72, 0.06);
    --green-glow: rgba(5, 125, 72, 0.12);
    --border: #E2E8F0;
    --border-hover: #CBD5E1;
    --color-primary: #0F172A;
    --color-accent: #057d48;
    --color-muted: #E8ECF1;
    --color-destructive: #DC2626;
    --color-ring: #057d48;

    /* Typography — Outfit (headings) + Plus Jakarta Sans (body) */
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --container: 1200px;

    /* Motion */
    --spring: cubic-bezier(0.16, 1, 0.3, 1);
    --smooth: cubic-bezier(0.32, 0.72, 0, 1);
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Radii */
    --radius: 16px;
    --radius-lg: 24px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; overflow-x: hidden; font-size: 16px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; position: relative; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }

/* ---------- GRAIN/NOISE OVERLAY (TasteSkill: breaks digital flatness) ---------- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.028;
    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)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px;
}

/* ---------- SKIP LINK (Accessibility) ---------- */
.skip-link {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: #fff;
    padding: 10px 24px;
    border-radius: 0 0 12px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    z-index: 10001;
    transition: top 0.3s var(--spring);
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--color-ring);
    outline-offset: 2px;
}

/* ---------- SCROLL PROGRESS BAR ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--green);
    z-index: 9999;
    transition: none;
    will-change: width;
}

/* ---------- FLOATING PILL NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    max-width: calc(var(--container) - 48px);
    transition: top 0.5s var(--spring), opacity 0.4s ease;
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 20px;
    background: rgba(253, 253, 253, 0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: background 0.5s var(--spring), border-color 0.5s var(--spring), box-shadow 0.5s var(--spring);
}

.navbar.scrolled .nav-pill {
    background: rgba(253, 253, 253, 0.92);
    box-shadow: 0 4px 24px rgba(5, 60, 35, 0.06);
}

.nav-logo-img { height: 30px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    padding: 8px 16px;
    border-radius: 100px;
    transition: color 0.3s var(--spring), background 0.3s var(--spring);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-heading);
    background: rgba(0, 0, 0, 0.03);
}

.nav-cta-link {
    background: var(--green) !important;
    color: #fff !important;
    font-weight: 600;
    transition: background 0.3s var(--spring), transform 0.2s var(--spring) !important;
}

.nav-cta-link:hover { background: var(--green-hover) !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    position: relative;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger-line {
    width: 18px;
    height: 1.5px;
    background: var(--text-heading);
    border-radius: 2px;
    transition: all 0.4s var(--spring);
    position: absolute;
}

.hamburger-line:nth-child(1) { transform: translateY(-4px); }
.hamburger-line:nth-child(2) { transform: translateY(4px); }

.nav-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translateY(0); }
.nav-toggle.active .hamburger-line:nth-child(2) { transform: rotate(-45deg) translateY(0); }

/* ---------- MOBILE OVERLAY ---------- */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(253, 253, 253, 0.96);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--spring);
}

.mobile-overlay.open { opacity: 1; pointer-events: all; }

.mobile-menu { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.mobile-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.03em;
    padding: 12px 24px;
    border-radius: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--spring), transform 0.5s var(--spring), color 0.3s, background 0.3s;
}

.mobile-overlay.open .mobile-link { opacity: 1; transform: translateY(0); }

.mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-link:nth-child(5) { transition-delay: 0.25s; }

.mobile-link:hover { color: var(--green); }

.mobile-cta {
    background: var(--green);
    color: #fff !important;
    margin-top: 16px;
    border-radius: 100px;
    font-size: 1.125rem;
    padding: 14px 36px;
}

/* ---------- HERO — 50/50 Asymmetrical ---------- */
.hero {
    padding: 120px 32px 40px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
}

/* Eyebrow Badge */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 10px;
    background: var(--green-subtle);
    border: 1px solid rgba(5, 125, 72, 0.1);
    border-radius: 100px;
    opacity: 0;
    transform: translateY(12px);
    animation: entranceFade 0.8s var(--spring) 0.1s forwards;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2.5s ease-in-out infinite;
}

.eyebrow-text {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
}

/* Hero Title */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text-heading);
    display: flex;
    flex-direction: column;
}

.title-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.28em;
    overflow: hidden;
}

.title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: titleReveal 0.9s var(--spring) forwards;
    animation-delay: calc(0.15s + var(--i) * 0.08s);
}

.title-word.dim { color: var(--text-dim); font-weight: 400; }
.title-word.accent { color: var(--green); }

@keyframes titleReveal {
    0% { opacity: 0; transform: translateY(100%); filter: blur(4px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-entrance {
    opacity: 0;
    transform: translateY(16px);
    animation: entranceFade 0.8s var(--spring) forwards;
    animation-delay: var(--delay, 0.5s);
}

@keyframes entranceFade {
    0% { opacity: 0; transform: translateY(16px); filter: blur(2px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.8); }
}

.hero-subtitle {
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.8;
    max-width: 480px;
    letter-spacing: -0.01em;
    max-width: min(480px, 65ch);
}

.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- HERO RIGHT — 3D Logo (Transparent, Floating, Tilt) ---------- */
.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.hero-logo-outer {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    position: relative;
}

.hero-logo-container {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    will-change: transform;
    position: relative;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    cursor: grab;
    /* Entrance — fast, no delay */
    opacity: 0;
    animation: logoEntrance 0.8s var(--spring) 0.1s forwards;
}

.hero-logo-container:active { cursor: grabbing; }

/* Perpetual floating animation — premium bounce */
.hero-logo-container.floating {
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
    20% { transform: translateY(-14px) rotateX(1.5deg) rotateY(-2deg); }
    40% { transform: translateY(-6px) rotateX(-0.5deg) rotateY(1deg); }
    60% { transform: translateY(-16px) rotateX(1deg) rotateY(-1.5deg); }
    80% { transform: translateY(-4px) rotateX(-0.5deg) rotateY(0.5deg); }
}

/* Ground shadow that reacts to hover */
.logo-shadow-ring {
    position: absolute;
    bottom: 4%;
    left: 18%;
    right: 18%;
    height: 24px;
    background: radial-gradient(ellipse, rgba(5, 60, 35, 0.1), transparent 70%);
    filter: blur(10px);
    border-radius: 50%;
    z-index: 0;
    transition: all 0.6s var(--spring);
}

.hero-logo-container:hover .logo-shadow-ring {
    transform: scale(1.3) translateY(10px);
    opacity: 0.6;
    filter: blur(14px);
}

/* Cursor-following green glow */
.logo-highlight {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(5, 125, 72, 0.14), transparent 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Green reflection below logo */
.logo-reflection {
    width: 60%;
    height: 50px;
    margin: -12px auto 0;
    background: radial-gradient(ellipse, rgba(5, 125, 72, 0.08), transparent 65%);
    filter: blur(10px);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.8s var(--spring), transform 0.8s var(--spring);
}

.hero-logo-outer:hover .logo-reflection {
    opacity: 1;
    transform: scaleX(1.1);
}

@keyframes logoEntrance {
    0% { opacity: 0; transform: scale(0.85) rotateY(-10deg) translateY(20px); filter: blur(6px); }
    100% { opacity: 1; transform: scale(1) rotateY(0deg) translateY(0); filter: blur(0); }
}

.hero-logo-3d {
    width: 88%;
    height: auto;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 50px rgba(5, 60, 35, 0.1));
    transition: filter 0.5s var(--spring), transform 0.5s var(--spring);
}

/* Hover: lift + glow + scale */
.hero-logo-container:hover .hero-logo-3d {
    transform: translateY(-6px) scale(1.04);
    filter:
        drop-shadow(0 32px 64px rgba(5, 60, 35, 0.16))
        drop-shadow(0 0 60px rgba(5, 125, 72, 0.12))
        drop-shadow(0 0 20px rgba(5, 125, 72, 0.08));
}

/* Tilt active state (applied by JS) */
.hero-logo-container.tilting .hero-logo-3d {
    transition: filter 0.3s ease, transform 0.08s ease-out;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 100px;
    padding: 12px 12px 12px 24px;
    transition: all 0.4s var(--spring);
    letter-spacing: -0.01em;
    cursor: pointer;
    position: relative;
    will-change: transform;
}

.btn:active { transform: scale(0.97) !important; }

/* Focus-visible states for keyboard navigation (UI/UX Pro Max §1) */
.btn:focus-visible,
.nav-link:focus-visible,
.faq-question:focus-visible,
.form-input:focus-visible {
    outline: 2px solid var(--color-ring);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--green-subtle);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--color-ring);
    outline-offset: 2px;
}

.btn-primary { background: var(--green); color: #fff; border: none; }
.btn-primary:hover { background: var(--green-hover); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 12px 24px;
}

.btn-ghost:hover { border-color: var(--border-hover); color: var(--text-heading); }

.btn-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s var(--spring), background 0.3s ease;
    flex-shrink: 0;
}

.btn:hover .btn-icon-wrap {
    transform: translateX(2px) scale(1.05);
    background: rgba(255, 255, 255, 0.22);
}

.btn-arrow { width: 16px; height: 16px; }
.btn-text { padding-right: 4px; }

/* ---------- SCROLL SPACER ---------- */
.scroll-spacer { height: 0; }

/* ---------- SECTION DIVIDER (scroll-drawn line) ---------- */
.section-divider {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.divider-line {
    display: block;
    width: 0;
    height: 1px;
    background: var(--border);
    transition: width 1s var(--spring);
}

.divider-line.drawn {
    width: min(400px, 60vw);
}

/* ---------- SECTIONS COMMON ---------- */
.section-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
}

.section-header { text-align: center; margin-bottom: 48px; }

.section-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 12px;
    padding: 5px 14px;
    background: var(--green-subtle);
    border-radius: 100px;
    border: 1px solid rgba(5, 125, 72, 0.08);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

/* ---------- CREDIBILITY STATS ---------- */
.stats { padding: 48px 0; position: relative; z-index: 2; }

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 12px 20px;
    cursor: default;
    transition: transform 0.5s var(--spring);
}

/* Scale-bounce on reveal */
.stat-item.counted {
    animation: statPop 0.6s var(--spring);
}

@keyframes statPop {
    0% { transform: scale(0.8); opacity: 0.5; }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--green);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ---------- BENTO GRID — Spotlight Border ---------- */
.services { padding: 96px 0 104px; position: relative; z-index: 2; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Featured card spans full width — asymmetric bento (TasteSkill redesign-skill) */
.bento-card--featured {
    grid-column: 1 / -1;
}

/* Double-Bezel Card Architecture (TasteSkill soft-skill) */
.spotlight-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, rgba(5, 125, 72, 0.08), var(--border), rgba(5, 125, 72, 0.04));
    transition: background 0.5s var(--spring), transform 0.5s var(--spring), box-shadow 0.5s var(--spring);
    overflow: hidden;
    cursor: pointer;
}

.spotlight-card:active {
    transform: scale(0.98);
}

.spotlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(5, 80, 45, 0.08), 0 8px 16px rgba(5, 80, 45, 0.04);
    background: linear-gradient(135deg, rgba(5, 125, 72, 0.18), var(--border-hover), rgba(5, 125, 72, 0.10));
}

.spotlight-border {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s var(--spring);
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(5, 125, 72, 0.25),
        transparent 60%
    );
}

.spotlight-card:hover .spotlight-border { opacity: 1; }

.bento-card-inner,
.process-step-inner {
    position: relative;
    z-index: 2;
    background: var(--bg-card);
    border-radius: calc(var(--radius-lg) - 2px);
    height: 100%;
    overflow: hidden;
    /* Double-Bezel inner core highlight (TasteSkill soft-skill) */
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -1px 1px rgba(0, 0, 0, 0.02);
}

.bento-card-inner { padding: 32px; }

/* Featured card: horizontal layout on desktop */
.bento-card-inner--featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    align-items: stretch;
}

.bento-card-inner--featured .bento-card-graphic {
    height: 100%;
    min-height: 260px;
    margin-bottom: 0;
    border-radius: calc(var(--radius-lg) - 2px) 0 0 calc(var(--radius-lg) - 2px);
}

.bento-card-inner--featured .bento-card-content {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-card-inner--featured .bento-card-title {
    font-size: 1.375rem;
}

.bento-card-inner--featured .bento-card-desc {
    font-size: 0.95rem;
}

.bento-card-graphic {
    width: 100%;
    height: 180px;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

.bento-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
    will-change: transform;
    transition: transform 0.6s var(--spring);
}

.spotlight-card:hover .bento-card-img {
    transform: scale(1.08);
}

.bento-card-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    transition: color 0.4s var(--spring);
}

.spotlight-card:hover .bento-card-title {
    color: var(--green);
}

.bento-card-desc { font-size: 0.9rem; color: var(--text); line-height: 1.7; max-width: 65ch; }

/* ---------- PROCESS ---------- */
.process { padding: 96px 0; position: relative; z-index: 2; }

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.process-step-inner { padding: 32px 24px; }

.process-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--border);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 20px;
    transition: color 0.5s var(--spring), transform 0.5s var(--spring);
}

.spotlight-card:hover .process-number {
    color: var(--green);
    transform: translateX(4px);
}

.process-step-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.process-step-desc { font-size: 0.85rem; color: var(--text); line-height: 1.7; max-width: 65ch; }

/* ---------- FAQ ---------- */
.faq { padding: 96px 0; position: relative; z-index: 2; }

.faq-list { max-width: 700px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 2px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-heading);
    text-align: left;
    letter-spacing: -0.01em;
    transition: color 0.3s var(--spring);
    cursor: pointer;
    gap: 16px;
}

.faq-question:hover { color: var(--green); }

.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.faq-icon-bar {
    position: absolute;
    background: var(--text-muted);
    border-radius: 1px;
    transition: all 0.5s var(--spring);
}

.bar-h { width: 14px; height: 1.5px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.bar-v { width: 1.5px; height: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.faq-item.active .bar-v { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-item.active .bar-h { background: var(--green); }

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s var(--spring);
}

.faq-item.active .faq-answer { grid-template-rows: 1fr; }

.faq-answer > p {
    overflow: hidden;
    padding: 0 2px;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.8;
}

.faq-item.active .faq-answer > p { padding-bottom: 20px; }

/* ---------- TECH MARQUEE ---------- */
.tech-stack { padding: 72px 0; position: relative; z-index: 2; overflow: hidden; }

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: marquee 30s linear infinite;
    will-change: transform;
}

.marquee-item {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: -0.03em;
    white-space: nowrap;
    transition: color 0.3s var(--spring);
    cursor: default;
}

.marquee-item:hover { color: var(--green); }

.marquee-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- CONTACT ---------- */
.contact { padding: 96px 0 108px; position: relative; z-index: 2; }

.contact-wrapper { max-width: 600px; margin: 0 auto; }
.contact-header { margin-bottom: 36px; }

.contact-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.contact-desc { font-size: 0.9375rem; color: var(--text); line-height: 1.7; max-width: 65ch; }

.contact-form { display: flex; flex-direction: column; gap: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.form-group { display: flex; flex-direction: column; gap: 6px; position: relative; }

.form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-heading);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.form-input {
    font-family: var(--font);
    font-size: 0.9375rem;
    color: var(--text-heading);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    outline: none;
    transition: border-color 0.3s var(--spring);
    border-radius: 0;
}

.form-input::placeholder { color: var(--text-muted); }

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--green);
    transition: width 0.5s var(--spring);
    z-index: 1;
}

.form-input:focus ~ .input-line { width: 100%; }

.form-textarea { resize: vertical; min-height: 80px; line-height: 1.7; }
.btn-submit { align-self: flex-start; margin-top: 4px; }

/* Form validation error state (UI/UX Pro Max §8) */
.form-input.error { border-bottom-color: var(--color-destructive); }
.form-error {
    font-size: 0.75rem;
    color: var(--color-destructive);
    margin-top: 4px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s var(--spring), transform 0.3s var(--spring);
}
.form-error.visible { opacity: 1; transform: translateY(0); }

/* Submit button loading state */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- FOOTER ---------- */
.footer { padding: 36px 0; border-top: 1px solid var(--border); position: relative; z-index: 2; }

.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }
.footer-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.footer-link {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s var(--spring);
}

.footer-link:hover { color: var(--text-heading); }

.footer-divider {
    color: var(--border);
    font-size: 0.78rem;
    user-select: none;
}

.footer-link--legal {
    color: var(--text-muted);
    opacity: 0.7;
    transition: color 0.3s var(--spring), opacity 0.3s var(--spring);
}

.footer-link--legal:hover {
    color: var(--text-heading);
    opacity: 1;
}

/* ---------- SCROLL REVEAL — Directional ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(4px);
    transition: opacity 0.7s var(--spring), transform 0.7s var(--spring), filter 0.7s var(--spring);
}

.reveal.visible {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

/* Directional variants set by JS */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    filter: blur(3px);
    transition: opacity 0.8s var(--spring), transform 0.8s var(--spring), filter 0.8s var(--spring);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    filter: blur(3px);
    transition: opacity 0.8s var(--spring), transform 0.8s var(--spring), filter 0.8s var(--spring);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    filter: blur(3px);
    transition: opacity 0.7s var(--spring), transform 0.7s var(--spring), filter 0.7s var(--spring);
}

.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

/* ---------- PREFERS REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .marquee-track { animation: none; }
    .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; filter: none; }
    .title-word, .hero-logo-container, .hero-entrance, .hero-eyebrow { opacity: 1; transform: none; filter: none; }
    .scroll-progress { display: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-left { align-items: center; }
    .hero-subtitle { max-width: 520px; }
    .hero-logo-container { max-width: 340px; }
    .title-line { justify-content: center; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card--featured { grid-column: 1; }
    .bento-card-inner--featured { grid-template-columns: 1fr; }
    .bento-card-inner--featured .bento-card-graphic {
        min-height: 180px;
        border-radius: calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px) 0 0;
    }
    .bento-card-inner--featured .bento-card-content { padding: 28px 24px; }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .services, .process, .faq, .contact { padding: 64px 0; }
}

@media (max-width: 768px) {
    .navbar { top: 12px; max-width: calc(100% - 24px); }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .hero { padding: 120px 20px 0; min-height: auto; }
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-logo-container { max-width: 260px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { gap: 28px; }
    .stat-divider { display: none; }
    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
    .footer-links { justify-content: center; gap: 16px; }
    .section-container { padding: 0 20px; }
    .process-grid { grid-template-columns: 1fr; }
    .marquee-item { font-size: 1.125rem; }
    .services, .process, .faq, .contact { padding: 56px 0; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .stat-number { font-size: 2.2rem; }
}
