/* ==========================================================================
   LegisHawk — Editorial Civic Design
   White-primary, Fraunces display + DM Sans body, amber + navy palette
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts & Custom Properties
   -------------------------------------------------------------------------- */
:root {
    /* Palette */
    --white:          #FFFFFF;
    --warm-white:     #FAF8F5;
    --warm-light:     #F3EFE8;
    --amber:          #E8A020;
    --amber-hover:    #CF8E18;
    --amber-light:    #FFF4D6;
    --amber-tint:     rgba(232, 160, 32, 0.08);
    --navy:           #1A1A2E;
    --navy-soft:      #24243C;
    --navy-muted:     rgba(26, 26, 46, 0.55);
    --text-primary:   #1A1A2E;
    --text-secondary: #6A6272;
    --text-muted:     #9D97A8;
    --border:         #E5DFDA;
    --border-warm:    #DDD8D2;
    --green:          #2A9D6F;

    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Type scale */
    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  2rem;
    --text-4xl:  2.75rem;
    --text-5xl:  3.75rem;
    --text-6xl:  5rem;
    --text-7xl:  6.5rem;

    /* Spacing */
    --sp-1:  0.25rem;
    --sp-2:  0.5rem;
    --sp-3:  0.75rem;
    --sp-4:  1rem;
    --sp-5:  1.25rem;
    --sp-6:  1.5rem;
    --sp-8:  2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 6rem;
    --sp-32: 8rem;

    /* Layout */
    --container-max: 1200px;
    --container-pad: var(--sp-6);

    /* Radii */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   14px;
    --radius-xl:   24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(26,26,46,0.08), 0 1px 2px rgba(26,26,46,0.04);
    --shadow-md: 0 4px 16px rgba(26,26,46,0.10), 0 2px 6px rgba(26,26,46,0.06);
    --shadow-lg: 0 16px 40px rgba(26,26,46,0.14), 0 4px 12px rgba(26,26,46,0.08);
    --shadow-phone: 0 32px 80px rgba(26,26,46,0.22), 0 8px 24px rgba(26,26,46,0.14);

    /* Transitions */
    --ease:        250ms cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--text-primary);
    background: var(--white);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--ease); }

::selection { background: rgba(232,160,32,0.2); color: var(--navy); }

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-6);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    transition: all var(--ease);
    white-space: nowrap;
}

/* Shine sweep */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}
.btn:hover::after { transform: translateX(100%); }

/* Primary: amber bg, navy text */
.btn-primary {
    background: var(--amber);
    color: var(--navy);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(232,160,32,0.30);
}
.btn-primary:hover {
    background: var(--amber-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,160,32,0.35);
    color: var(--navy);
}
.btn-primary:active { transform: translateY(0); }

/* Outline: navy border on white */
.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
}
.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

/* Ghost: on dark bg */
.btn-ghost {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.btn-sm  { padding: var(--sp-2) var(--sp-5); font-size: var(--text-sm); min-height: 40px; }
.btn-lg  { padding: var(--sp-4) var(--sp-8); font-size: var(--text-base); min-height: 52px; }
.btn-xl  { padding: var(--sp-4) var(--sp-10); font-size: var(--text-lg); min-height: 58px; font-weight: 700; }
.btn-block { width: 100%; }

.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-4) 0;
    transition: background var(--ease), box-shadow var(--ease);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}
.logo-img { width: 30px; height: 30px; object-fit: contain; }
.logo-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.nav-links {
    display: none;
    align-items: center;
    gap: var(--sp-8);
}
.nav-links a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--ease);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 2px;
    background: var(--amber);
    transition: width var(--ease);
    border-radius: 2px;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { margin-left: var(--sp-4); }

/* Hamburger */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--sp-2);
    border-radius: var(--radius-md);
    transition: background var(--ease);
}
.mobile-menu-btn:hover { background: var(--amber-tint); }
.mobile-menu-btn-inner {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 20px;
}
.mobile-menu-btn-inner span {
    display: block;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--ease);
}
.mobile-menu-btn.active .mobile-menu-btn-inner span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active .mobile-menu-btn-inner span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active .mobile-menu-btn-inner span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu panel */
.mobile-menu {
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--ease);
    z-index: 99;
    box-shadow: var(--shadow-md);
}
.mobile-menu.active { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu a {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--sp-3) 0;
    display: flex;
    align-items: center;
    min-height: 44px;
    border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--navy); }
.mobile-menu .btn { margin-top: var(--sp-4); justify-content: center; }

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .mobile-menu-btn, .mobile-menu { display: none; }
}

/* --------------------------------------------------------------------------
   Skip Link
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    background: var(--amber);
    color: var(--navy);
    padding: var(--sp-3) var(--sp-6);
    border-radius: var(--radius-md);
    z-index: 1000;
    font-weight: 700;
    transition: top var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

/* --------------------------------------------------------------------------
   HERO — White, editorial, typographic-first
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--sp-24) + var(--sp-8)) 0 var(--sp-16);
    background: var(--white);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-12);
    align-items: center;
}

/* Amber rule that spans the hero */
.hero-rule {
    display: none;
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: var(--amber);
    top: 50%;
    opacity: 0.12;
}

/* Eyebrow */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: var(--sp-5);
}
.hero-eyebrow-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--amber);
    border-radius: 2px;
}

/* Big display headline */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, var(--text-6xl));
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--navy);
    margin-bottom: var(--sp-6);
}

/* Underline decoration on the key phrase */
.hero-underline {
    position: relative;
    display: inline;
}
.hero-underline::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--amber);
    border-radius: 2px;
    transform: scaleX(1);
    transform-origin: left;
    animation: underline-draw 0.8s 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes underline-draw {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: var(--sp-10);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-4);
}

.hero-note {
    font-size: var(--text-sm);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}
.hero-note::before {
    content: '';
    display: block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
}

/* Phone mockup — navy frame, white bg */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-duo {
    position: relative;
    height: 560px;
    width: 280px;
}

/* Second phone (behind) */
.phone-back {
    position: absolute;
    top: 30px;
    right: -60px;
    z-index: 1;
    opacity: 0.7;
    transform: rotate(5deg) scale(0.88);
    transform-origin: top center;
}

/* Primary phone */
.phone-front {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transform: rotate(-2deg);
    animation: gentle-float 7s ease-in-out infinite;
}

@keyframes gentle-float {
    0%, 100% { transform: rotate(-2deg) translateY(0); }
    50%       { transform: rotate(-2deg) translateY(-12px); }
}

.phone-frame {
    width: 240px;
    height: 500px;
    background: var(--navy);
    border-radius: 40px;
    padding: 10px;
    box-shadow: var(--shadow-phone);
    position: relative;
}

/* Notch detail */
.phone-frame::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    z-index: 3;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--warm-white);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Placeholder when no screenshot exists */
.placeholder-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    padding: var(--sp-6);
    text-align: center;
    color: var(--text-muted);
}
.placeholder-icon { opacity: 0.4; }
.placeholder-text { font-size: var(--text-xs); font-weight: 500; opacity: 0.5; }

/* Hero bg decoration */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.hero-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,160,32,0.06) 0%, transparent 70%);
}
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Hero ambient label — subtle watermark */
.hero-ambient {
    position: absolute;
    bottom: var(--sp-8);
    left: 0;
    right: 0;
    text-align: center;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.6;
}

@media (min-width: 768px) {
    .phone-duo { width: 320px; height: 600px; }
    .phone-frame { width: 260px; height: 540px; }
    .phone-back { right: -70px; }
}

@media (min-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-16);
        min-height: 80vh;
    }
    .hero-rule { display: block; }
    .phone-duo { width: 340px; height: 620px; }
    .phone-frame { width: 275px; height: 570px; }
}

@media (max-width: 767px) {
    .phone-front { animation: none; }
    .phone-back { display: none; }
    .phone-duo { width: 240px; height: 500px; }
    .phone-frame { width: 240px; height: 500px; }
}

/* --------------------------------------------------------------------------
   Pillars strip — thin navy bar with 4 value props
   -------------------------------------------------------------------------- */
.pillars {
    background: var(--navy);
    padding: var(--sp-8) 0;
    overflow: hidden;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);
}

.pillar {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
}

.pillar-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232,160,32,0.15);
    border-radius: var(--radius-md);
    color: var(--amber);
    flex-shrink: 0;
}

.pillar-content {}
.pillar-title {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}
.pillar-text {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

@media (min-width: 640px)  { .pillars-grid { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   Section commons
   -------------------------------------------------------------------------- */
.section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: var(--sp-3);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, var(--text-4xl));
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: var(--sp-4);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 580px;
}

/* --------------------------------------------------------------------------
   FEATURES — Editorial numbered list, completely different from SetVita
   -------------------------------------------------------------------------- */
.features {
    background: var(--white);
    padding: var(--sp-20) 0;
}

.features-header {
    margin-bottom: var(--sp-16);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

/* The feature list: two-column editorial layout */
.features-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.feature-row {
    display: grid;
    grid-template-columns: auto auto 1fr;
    border-top: 1px solid var(--border);
    padding: var(--sp-6) var(--sp-5);
    gap: var(--sp-3);
    transition: background var(--ease);
    position: relative;
    align-items: flex-start;
}

.feature-row:last-child { border-bottom: 1px solid var(--border); }

.feature-row:hover { background: var(--warm-white); }

/* Amber left-border indicator on hover — desktop only */
.feature-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0; bottom: 0;
    width: 3px;
    background: var(--amber);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--ease);
    display: none;
}
.feature-row:hover::before { transform: scaleY(1); }

.feature-number {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--amber);
    line-height: 1;
    letter-spacing: -0.04em;
    min-width: 36px;
    opacity: 0.5;
    transition: opacity var(--ease);
}
.feature-row:hover .feature-number { opacity: 1; }

.feature-icon-wrap {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--amber-tint);
    border-radius: var(--radius-md);
    color: var(--amber);
    flex-shrink: 0;
    transition: background var(--ease), transform var(--ease-bounce);
}
.feature-row:hover .feature-icon-wrap { background: var(--amber-light); transform: scale(1.08); }

.feature-main {
    flex: 1;
    grid-column: 1 / -1;
}

.feature-head {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-2);
    flex-wrap: wrap;
}

.feature-name {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .feature-name {
        font-size: var(--text-xl);
    }
}

.feature-tag {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
    background: rgba(42,157,111,0.1);
    padding: 2px var(--sp-2);
    border-radius: var(--radius-sm);
}

.feature-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 768px) {
    .feature-desc {
        font-size: var(--text-base);
        line-height: 1.7;
    }
}

@media (min-width: 768px) {
    .features-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        column-gap: var(--sp-12);
    }
    .feature-row {
        grid-template-columns: 56px auto 1fr;
        gap: var(--sp-5);
        align-items: flex-start;
        padding: var(--sp-8) var(--sp-6);
    }
    .feature-number {
        font-size: var(--text-3xl);
        min-width: 56px;
    }
    .feature-icon-wrap {
        width: 44px;
        height: 44px;
    }
    .feature-main {
        grid-column: auto;
    }
    .feature-row::before {
        display: block;
    }
    /* Odd features get right border */
    .feature-row:nth-child(odd) {
        border-right: 1px solid var(--border);
        padding-right: var(--sp-12);
    }
    /* Even features: no left border (they're in the right column) */
    .feature-row:nth-child(even) {
        padding-left: var(--sp-6);
    }
}

/* --------------------------------------------------------------------------
   STATS — Full amber bleed, the dramatic centerpiece
   -------------------------------------------------------------------------- */
.stats {
    background: var(--amber);
    padding: var(--sp-16) 0;
    position: relative;
    overflow: hidden;
}

/* Subtle texture overlay */
.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(26,26,46,0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

.stats .container { position: relative; z-index: 1; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-1);
}

.stat-item {
    text-align: center;
    padding: var(--sp-8) var(--sp-4);
    position: relative;
}

/* Dividers between stats */
.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 1px;
    background: rgba(26,26,46,0.15);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, var(--text-6xl));
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: var(--sp-2);
}

.stat-label {
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(26,26,46,0.65);
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    /* Remove row dividers, keep column dividers */
    .stat-item:nth-child(3)::before { display: none; }
}

/* --------------------------------------------------------------------------
   SCREENSHOTS — Warm off-white, slightly staggered phones
   -------------------------------------------------------------------------- */
.screenshots {
    background: var(--warm-white);
    padding: var(--sp-20) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.screenshots-header {
    text-align: center;
    margin-bottom: var(--sp-16);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-8) var(--sp-6);
    justify-items: center;
}

@media (min-width: 900px) {
    .screenshots-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-10) var(--sp-8); }
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
}

/* Alternate slight tilt for visual interest */
.screenshot-item:nth-child(odd)  .screen-phone { transform: rotate(-1.5deg); }
.screenshot-item:nth-child(even) .screen-phone { transform: rotate(1.5deg); }
.screenshot-item:hover .screen-phone           { transform: rotate(0) scale(1.03); }

.screen-phone {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.screen-frame {
    background: var(--navy);
    border-radius: 28px;
    padding: 7px;
    box-shadow: var(--shadow-lg);
}

/* Responsive frame sizes */
.screen-frame {
    width: 140px;
    height: 292px;
}
@media (min-width: 480px) { .screen-frame { width: 160px; height: 334px; } }
@media (min-width: 768px) { .screen-frame { width: 185px; height: 386px; border-radius: 32px; } }
@media (min-width: 900px) { .screen-frame { width: 200px; height: 418px; border-radius: 34px; } }
@media (min-width: 1100px){ .screen-frame { width: 220px; height: 460px; border-radius: 38px; } }

.screen-inner {
    width: 100%;
    height: 100%;
    background: var(--warm-white);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 768px) { .screen-inner { border-radius: 26px; } }

.screenshot-label {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
}

/* Stagger delays */
.screenshots-grid [data-animate]:nth-child(1) { transition-delay: 0ms; }
.screenshots-grid [data-animate]:nth-child(2) { transition-delay: 50ms; }
.screenshots-grid [data-animate]:nth-child(3) { transition-delay: 100ms; }
.screenshots-grid [data-animate]:nth-child(4) { transition-delay: 150ms; }
.screenshots-grid [data-animate]:nth-child(5) { transition-delay: 200ms; }
.screenshots-grid [data-animate]:nth-child(6) { transition-delay: 250ms; }

/* --------------------------------------------------------------------------
   NAME SECTION — Why "LegisHawk"? Editorial pull-quote style
   -------------------------------------------------------------------------- */
.name-section {
    background: var(--white);
    padding: var(--sp-20) 0;
    position: relative;
}

.name-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.name-hawk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px; height: 72px;
    background: var(--amber-light);
    border-radius: var(--radius-xl);
    margin-bottom: var(--sp-8);
    font-size: 2rem;
}

.name-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, var(--text-4xl));
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--navy);
    margin-bottom: var(--sp-6);
    line-height: 1.15;
}

.name-etymology {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: var(--sp-4);
}
.name-etymology strong { color: var(--amber); font-weight: 700; }

.name-tagline {
    font-size: var(--text-base);
    color: var(--text-muted);
    line-height: 1.75;
    font-style: italic;
    max-width: 560px;
    margin: 0 auto;
}

/* Decorative rule */
.name-rule {
    width: 48px;
    height: 3px;
    background: var(--amber);
    border-radius: 2px;
    margin: var(--sp-8) auto;
}

/* --------------------------------------------------------------------------
   EARLY ACCESS — Navy background, white form card
   -------------------------------------------------------------------------- */
.early-access {
    background: var(--navy);
    padding: var(--sp-24) 0;
    position: relative;
    overflow: hidden;
}

/* Ambient glow */
.early-access::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,160,32,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.early-access::after {
    content: '';
    position: absolute;
    bottom: -200px; left: -100px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(28,122,158,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.early-access .container { position: relative; z-index: 1; }

.ea-header {
    text-align: center;
    margin-bottom: var(--sp-12);
}

.ea-badge {
    display: inline-block;
    padding: var(--sp-1) var(--sp-4);
    background: rgba(232,160,32,0.15);
    border: 1px solid rgba(232,160,32,0.3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: var(--sp-5);
}

.ea-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, var(--text-5xl));
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: var(--sp-4);
}

.ea-subtitle {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}

/* White form card on navy */
.form-card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--sp-8);
    box-shadow: 0 24px 64px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.15);
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
}

.form-row { display: grid; gap: var(--sp-4); }
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.form-group label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.form-group .req { color: #D0432E; }
.form-group .opt { color: var(--text-muted); font-weight: 400; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--text-base);
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--warm-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
    outline: none;
    -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--amber);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(232,160,32,0.15);
}
.form-group textarea { resize: vertical; min-height: 80px; }

/* Honeypot */
.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

/* Platform picker */
.platform-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
}

.platform-option { cursor: pointer; }
.platform-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-4);
    background: var(--warm-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--ease);
}
.platform-card:hover { border-color: var(--amber); color: var(--navy); }
.platform-option input:checked + .platform-card {
    border-color: var(--amber);
    background: var(--amber-light);
    color: var(--navy);
}
.platform-card span { font-size: var(--text-sm); font-weight: 600; }

/* Submit */
.btn-loading { display: inline-flex; align-items: center; gap: var(--sp-2); }
.spinner { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* Messages */
.form-message { text-align: center; padding: var(--sp-10) var(--sp-4); }
.form-message h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--sp-3);
}
.form-message p { color: var(--text-secondary); line-height: 1.65; margin-bottom: var(--sp-4); }

.msg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px; height: 68px;
    border-radius: 50%;
    margin-bottom: var(--sp-5);
}
.msg-icon-success { background: rgba(42,157,111,0.1); color: var(--green); }
.msg-icon-error   { background: rgba(208,67,46,0.1); color: #D0432E; }

.privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    margin-top: var(--sp-4);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

@media (max-width: 479px) {
    .form-card { padding: var(--sp-6); border-radius: var(--radius-lg); }
}

/* --------------------------------------------------------------------------
   FOOTER — Navy, clean
   -------------------------------------------------------------------------- */
.footer {
    background: var(--navy-soft);
    border-top: 3px solid var(--amber);
    padding: var(--sp-12) 0 var(--sp-8);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: var(--sp-8);
    align-items: center;
    text-align: center;
    padding-bottom: var(--sp-8);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: var(--sp-8);
}

.footer-logo .logo-text { color: var(--white); }
.footer-tagline { font-size: var(--text-sm); color: rgba(255,255,255,0.45); margin-top: var(--sp-2); }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-6);
    justify-content: center;
}
.footer-links a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    transition: color var(--ease);
}
.footer-links a:hover { color: var(--amber); }

.footer-bottom {
    text-align: center;
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.3);
    line-height: 1.75;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* --------------------------------------------------------------------------
   Scroll animations
   -------------------------------------------------------------------------- */
[data-animate] {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 180ms cubic-bezier(0.4, 0, 0.2, 1), transform 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
[data-animate].animate-in { opacity: 1; transform: translateY(0); }

.features-list [data-animate]:nth-child(1) { transition-delay: 0ms; }
.features-list [data-animate]:nth-child(2) { transition-delay: 40ms; }
.features-list [data-animate]:nth-child(3) { transition-delay: 80ms; }
.features-list [data-animate]:nth-child(4) { transition-delay: 120ms; }
.features-list [data-animate]:nth-child(5) { transition-delay: 160ms; }
.features-list [data-animate]:nth-child(6) { transition-delay: 200ms; }
.features-list [data-animate]:nth-child(7) { transition-delay: 240ms; }
.features-list [data-animate]:nth-child(8) { transition-delay: 280ms; }

/* --------------------------------------------------------------------------
   Cookie banner
   -------------------------------------------------------------------------- */
#cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: var(--sp-4) var(--sp-6);
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--sp-4);
    z-index: 9999;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex-wrap: wrap;
}
#cookie-banner.visible { opacity: 1; transform: translateY(0); }
.cookie-text { font-size: var(--text-sm); color: rgba(255,255,255,0.6); flex: 1; min-width: 260px; }
.cookie-text a { color: var(--amber); }
.cookie-actions { display: flex; gap: var(--sp-3); flex-shrink: 0; }
.cookie-btn {
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    min-height: 40px;
    font-family: var(--font-body);
    transition: all var(--ease);
}
.cookie-btn-accept { background: var(--amber); color: var(--navy); }
.cookie-btn-accept:hover { background: var(--amber-hover); }
.cookie-btn-decline { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.15); }
.cookie-btn-decline:hover { background: rgba(255,255,255,0.14); color: var(--white); }

@media (max-width: 640px) {
    #cookie-banner { flex-direction: column; gap: var(--sp-3); }
    .cookie-actions { width: 100%; }
    .cookie-btn { flex: 1; }
}

/* --------------------------------------------------------------------------
   Accessibility & Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    [data-animate] { opacity: 1; transform: none; }
    .phone-front, .gentle-float { animation: none; }
    .hero-underline::after { animation: none; }
}

@media (prefers-contrast: high) {
    :root { --border: #666; }
    .btn-primary { border: 2px solid var(--navy); }
}

a:focus-visible,
button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
