/* ==========================================================================
   CORELIA LANDING - Shared public-landing stylesheet.
   Used by: corelia.app (Corelia suite overview) + each app's own public
   landing (build, airfact, plan, connect). Self-contained - defines its own
   tokens so it works without any other CSS loaded.

   Design language intentionally mirrors the app-dashboard tokens
   (components/tokens.css) + buttons/cards patterns so the marketing site
   feels continuous with the signed-in product.

   Change the tokens / primitives here and ALL landings update.
   ========================================================================== */

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

:root {
    /* Core palette - aligned with components/tokens.css */
    --primary:         #193153;
    --primary-hover:   #0f1f38;
    --primary-2:       #1e3d66;
    --primary-light:   #e8edf4;

    /* Brand gold - Corelia marketing identity (matches logo SVGs) */
    --gold:            #FFBD59;
    --gold-dark:       #e6a52e;
    --gold-dim:        rgba(255,189,89,0.15);

    /* Gray scale - identical to tokens.css */
    --gray-50:   #f9fafb;
    --gray-100:  #f3f4f6;
    --gray-200:  #e5e7eb;
    --gray-300:  #d1d5db;
    --gray-400:  #9ca3af;
    --gray-500:  #6b7280;
    --gray-600:  #4b5563;
    --gray-700:  #374151;
    --gray-800:  #1f2937;

    --bg:              var(--gray-50);
    --surface:         #ffffff;
    --border:          var(--gray-200);
    --text:            var(--gray-800);
    --text-secondary:  var(--gray-600);
    --text-muted:      var(--gray-500);

    /* Radii & shadows - identical to tokens.css */
    --radius:      0.5rem;
    --radius-sm:   0.25rem;
    --radius-lg:   0.75rem;
    --shadow:      0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.06);
    --shadow-md:   0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg:   0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --transition:  200ms ease;

    /* Legacy aliases kept for templates using older names */
    --text-2:  var(--text-secondary);
    --text-3:  var(--text-muted);
    --white:   var(--surface);
    --t:       var(--transition);

    --lp-max:  1140px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

/* ── NAV ────────────────────────────────────────────────────────────── */
nav.lp-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(249,250,251,0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: var(--lp-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
}
.nav-logo, .nav-links, .nav-actions { flex-shrink: 0; }
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}
.nav-logo-img { height: 34px; width: auto; display: block; }
.nav-logo-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.3px;
}
.nav-tagline {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--gold-dim);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: 1px solid rgba(255,189,89,0.35);
}
.nav-links { display: flex; gap: 0.25rem; align-items: center; }
.nav-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}
.nav-link:hover { color: var(--primary); background: rgba(0,0,0,0.04); }
.nav-link.active { color: var(--primary); background: var(--primary-light); }

.nav-actions { display: flex; gap: 0.6rem; align-items: center; }

.lang-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 100px;
    padding: 2px 10px 2px 12px;
    transition: all var(--transition);
}
.lang-wrap:hover { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.15); }
.lang-icon { color: rgba(0,0,0,0.45); flex-shrink: 0; }
.lang-select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background: transparent; border: none; outline: none;
    padding: 5px 22px 5px 0; margin: 0;
    color: rgba(0,0,0,0.65); font-family: inherit;
    font-size: 0.8125rem; font-weight: 500; cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='black' stroke-opacity='0.45' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0 center;
}
.lang-select:hover { color: rgba(0,0,0,0.85); }

/* ── BUTTONS - landing-page scale (chunkier than dashboard buttons) ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1;
    padding: 0.5rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
    font-family: inherit;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-secondary:hover { background: var(--gray-50); border-color: var(--text-muted); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--gray-100); color: var(--text); }
.btn-gold { background: var(--gold); color: var(--primary); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; border-radius: 10px; }

/* ── HERO ─────────────────────────────────────────────────────────── */
.hero {
    max-width: var(--lp-max);
    margin: 0 auto;
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    position: relative;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 99px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(25,49,83,0.15);
}
.hero-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(25,49,83,0.15);
}
.hero-badge--gold {
    background: var(--gold-dim);
    border-color: rgba(255,189,89,0.35);
}
.hero-badge--gold .hero-badge-dot {
    background: var(--gold-dark);
    box-shadow: 0 0 0 4px rgba(255,189,89,0.3);
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--primary);
    margin-bottom: 1.25rem;
}
.hero h1 em { font-style: normal; color: var(--gold-dark); }
.hero p.lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}
.hero-cta {
    display: flex; flex-wrap: wrap;
    gap: 0.875rem; justify-content: center;
    margin-bottom: 2rem;
}
.hero-note { font-size: 0.8rem; color: var(--text-muted); }
.hero-note strong { color: var(--text-secondary); }

/* ── SECTION PRIMITIVES ────────────────────────────────────────────── */
.section {
    max-width: var(--lp-max);
    margin: 0 auto;
    padding: 4.5rem 1.5rem;
}
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}
.section-head--left { text-align: left; max-width: none; margin-inline: 0; }
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.section-label--gold { color: var(--gold-dark); }
/* Pill variant (opt-in): <p class="section-label section-label--pill">…</p> */
.section-label--pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary-light);
    padding: 0.25rem 0.625rem;
    border-radius: 99px;
    font-weight: 600;
}
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}
.section-title em { font-style: normal; color: var(--gold-dark); }
.section-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 540px;
}
.section-head .section-sub { margin-left: auto; margin-right: auto; }

/* ── LP-CARD base (any simple card on a landing) ───────────────────── */
.lp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.lp-card.is-interactive:hover,
a.lp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ── APPS GRID (2-col app showcase, used on corelia.app) ───────────── */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.app-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.app-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.app-head { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 0.875rem; }
.app-logo {
    width: 44px; height: 44px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: var(--primary-light);
}
.app-logo img { width: 28px; height: 28px; display: block; }
.app-title-wrap { display: flex; flex-direction: column; gap: 0.15rem; }
.app-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.2px;
}
.app-tag { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); }
.app-pitch {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1rem;
}
.app-bullets {
    list-style: none; padding: 0; margin: 0 0 1.25rem;
    display: flex; flex-direction: column; gap: 0.5rem;
    flex-grow: 1;
}
.app-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.app-bullets svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    width: 14px; height: 14px;
    fill: none; stroke-width: 2.5;
    stroke-linecap: round; stroke-linejoin: round;
    stroke: var(--primary);
}
.app-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    align-self: flex-start;
    color: var(--primary);
    padding: 0.5rem 0;
    transition: gap var(--transition);
}
.app-link svg {
    width: 14px; height: 14px; fill: none;
    stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
    transition: transform var(--transition);
}
.app-card:hover .app-link svg { transform: translateX(3px); }

/* ── FEATURE GRID (generic icon+title+desc - used on per-app landings) ─ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.125rem;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.feature-icon {
    width: 44px; height: 44px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
}
.feature-icon--gold { background: var(--gold-dim); color: var(--gold-dark); }
.feature-icon img { width: 26px; height: 26px; display: block; }
.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.4rem;
    letter-spacing: -0.2px;
}
.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
}
/* Gold-tinted feature card variant - use for headline / highlighted features */
.feature-card--highlight {
    border-color: rgba(255,189,89,0.45);
    background: linear-gradient(135deg, #fffbf0 0%, var(--surface) 100%);
}

/* ── HERO PILLS (trust signals under hero CTAs) ──────────────────── */
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.3rem 0.8rem;
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.hero-pill svg { color: #10b981; flex-shrink: 0; } /* emerald check - matches app tokens.css --accent */

/* ── PREVIEW CARD (browser-chrome dashboard mock) ────────────────── */
.preview-wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 1.5rem 3.5rem;
}
.preview-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    overflow: hidden;
}
.preview-bar {
    background: var(--gray-100);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.preview-bar .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gray-200); }
.preview-bar .dot.red    { background: #fca5a5; }
.preview-bar .dot.yellow { background: #fcd34d; }
.preview-bar .dot.green  { background: #6ee7b7; }
.preview-url {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
}
.preview-body { padding: 1.5rem; }
/* 4-column stat grid variant - use `<div class="preview-body preview-grid">` */
.preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* Mini-stat tiles (inside a .preview-body) */
.mini-stat {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.875rem 1rem;
}
.mini-stat-value { font-size: 1.35rem; font-weight: 800; color: var(--primary); line-height: 1.15; }
.mini-stat-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; }
.mini-stat.accent  .mini-stat-value { color: #2563eb; }
.mini-stat.success .mini-stat-value { color: #059669; }
.mini-stat.btp     .mini-stat-value { color: var(--gold-dark); }

/* Mini-table (inside a .preview-body, spans full width with grid-column: 1 / -1) */
.mini-table {
    grid-column: 1 / -1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.mini-table-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.mini-table-row:last-child { border-bottom: none; }
.mini-table-row.header {
    font-weight: 700;
    color: var(--text-muted);
    background: var(--gray-50);
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* Status badges (used in mock tables) */
.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    font-size: 0.68rem;
    font-weight: 600;
}
.badge-paid     { background: #d1fae5; color: #065f46; }
.badge-sent     { background: #dbeafe; color: #1e40af; }
.badge-overdue  { background: #fee2e2; color: #991b1b; }
.badge-draft    { background: #f1f5f9; color: #64748b; }
.badge-progress { background: #fff8e6; color: #7a4e00; }

/* ── LP-BANNER (navy gradient CTA/info block) ────────────────────── */
.lp-banner {
    max-width: var(--lp-max);
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}
.lp-banner-inner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: #fff;
    display: flex;
    gap: 2rem;
    align-items: center;
}
.lp-banner-icon {
    flex-shrink: 0;
    width: 56px; height: 56px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
}
.lp-banner-inner h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.4rem; }
.lp-banner-inner p  { font-size: 0.875rem; opacity: 0.8; line-height: 1.5; }
.lp-banner-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.lp-banner-pill {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 99px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ── XORI / BRAIN (navy showcase block for the central AI hub) ────── */
.brain-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.brain-section::before {
    content: ''; position: absolute;
    top: -40%; right: -10%;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,189,89,0.18) 0%, rgba(255,189,89,0) 65%);
    pointer-events: none;
}
.brain-section::after {
    content: ''; position: absolute;
    bottom: -40%; left: -10%;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, rgba(37,99,235,0) 65%);
    pointer-events: none;
}
.brain-inner {
    max-width: var(--lp-max);
    margin: 0 auto;
    padding: 5rem 1.5rem;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.brain-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,189,89,0.18);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 99px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,189,89,0.3);
}
.brain-badge svg { width: 13px; height: 13px; }
.brain-content h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.375rem);
    font-weight: 800;
    letter-spacing: -0.75px;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.brain-content h2 em { font-style: normal; color: var(--gold); }
.brain-content > p {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.65;
    margin-bottom: 1.75rem;
    max-width: 520px;
}
.brain-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.brain-feat { display: flex; gap: 0.75rem; align-items: flex-start; }
.brain-feat-icon {
    flex-shrink: 0;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
}
.brain-feat-text strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
}
.brain-feat-text span {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
}

/* Orbit visual */
.brain-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 380px;
    margin: 0 auto;
}
.brain-orbit {
    position: absolute; inset: 0;
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 50%;
    animation: brain-spin 40s linear infinite;
}
.brain-orbit::before {
    content: ''; position: absolute; inset: 14%;
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 50%;
}
@keyframes brain-spin {
    from { transform: rotate(0); }
    to   { transform: rotate(360deg); }
}
.brain-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 38%; aspect-ratio: 1 / 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,189,89,0.35);
    box-shadow: 0 0 0 6px rgba(25,49,83,0.6), 0 10px 40px rgba(0,0,0,0.3), inset 0 0 30px rgba(255,189,89,0.08);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: blur(8px);
}
.brain-center-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 0.25rem;
}
.brain-center-name {
    font-size: 1.375rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.brain-center-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.2rem;
}
.brain-sat {
    position: absolute;
    width: 26%; aspect-ratio: 1 / 1;
    background: var(--surface);
    border-radius: 14px;
    border-top: 3px solid var(--gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    animation: brain-spin-reverse 40s linear infinite;
}
@keyframes brain-spin-reverse {
    from { transform: rotate(0); }
    to   { transform: rotate(-360deg); }
}
.brain-sat img { width: 26px; height: 26px; display: block; margin-bottom: 0.25rem; }
.brain-sat-name {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.2px;
}
.brain-sat--build   { top: -3%; left: 37%; }
.brain-sat--airfact { top: 37%; right: -3%; }
.brain-sat--plan    { bottom: -3%; left: 37%; }
.brain-sat--connect { top: 37%; left: -3%; }

/* ── FLOW (horizontal 4-step process) ─────────────────────────────── */
.flow-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.flow-inner {
    max-width: var(--lp-max);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}
.flow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.flow-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
}
.flow-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    font-variant-numeric: tabular-nums;
}
.flow-step h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.2px;
}
.flow-step p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.55;
}
.flow-step .flow-app {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-top: 0.75rem;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(25,49,83,0.15);
}

/* ── WHY / VALUE CARDS ─────────────────────────────────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.125rem;
}
.why-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.why-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.why-icon {
    width: 40px; height: 40px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
}
.why-icon--logo img { width: 26px; height: 26px; display: block; }
.why-card h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.375rem;
    letter-spacing: -0.2px;
}
.why-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ── CTA SECTION ──────────────────────────────────────────────────── */
.cta-section { background: var(--surface); border-top: 1px solid var(--border); }
.cta-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    text-align: center;
}
.cta-inner h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}
.cta-inner p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}
.cta-buttons { display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ───────────────────────────────────────────────────────── */
footer.lp-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    background: var(--bg);
}
.footer-inner {
    max-width: var(--lp-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary); }

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .nav-links { display: none; }
}
@media (max-width: 900px) {
    .apps-grid { grid-template-columns: 1fr; }
    .flow-grid { grid-template-columns: 1fr 1fr; }
    .brain-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .brain-visual { max-width: 320px; }
}
@media (max-width: 640px) {
    .hero { padding: 3.5rem 1.25rem 2.5rem; }
    .section { padding: 2.5rem 1.25rem; }
    .flow-inner { padding: 3rem 1.25rem; }
    .flow-grid { grid-template-columns: 1fr; }
    .brain-inner { padding: 3.5rem 1.25rem; }
    .brain-features { grid-template-columns: 1fr; }
    .lp-banner-inner { flex-direction: column; gap: 1.25rem; }
    .preview-body { padding: 1rem; }
    .preview-grid { grid-template-columns: 1fr 1fr; }
    .mini-stat:nth-child(n+3) { display: none; }
    .mini-table-row { grid-template-columns: 2fr 1fr 1fr; }
    .mini-table-row > *:nth-child(2), .mini-table-row > *:nth-child(5) { display: none; }
    .nav-tagline { display: none; }
    .nav-actions .btn-primary { display: none; }
    .footer-inner { flex-direction: column; text-align: center; }
}
