/* ================================================
   Spartan R3-01 — Artova-inspired, self-contained
   Inter font, navy/dark, white section contrast
   ================================================ */

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

:root {
    --bg:         #080C14;
    --bg-2:       #0D1220;
    --surface:    #111827;
    --surface-2:  #1A2235;
    --border:     #1E2D45;
    --border-2:   rgba(255,255,255,0.06);

    --text:       #A8B8D0;
    --text-dim:   #5A6A85;
    --bright:     #C8D4E8;
    --white:      #FFFFFF;

    --accent:     #3B6FD4;
    --accent-h:   #2D5CBD;
    --accent-glow: rgba(59,111,212,0.25);

    --green:      #22C55E;
    --red:        #EF4444;
    --yellow:     #F59E0B;

    --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono:       'JetBrains Mono', 'Fira Code', monospace;

    --radius:     12px;
    --radius-sm:  8px;
    --radius-lg:  20px;
    --shadow:     0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg:  0 16px 48px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Preloader ── */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s, visibility 0.4s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { display: flex; gap: 10px; }
.pre-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent);
    animation: bounce 0.9s ease-in-out infinite;
}
.pre-dot:nth-child(2) { animation-delay: 0.15s; background: var(--bright); }
.pre-dot:nth-child(3) { animation-delay: 0.3s; background: var(--accent); }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ── Header ── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s ease;
}
.site-header.scrolled {
    padding: 12px 0;
    background: rgba(8,12,20,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}
.nav-logo {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-logo-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}
.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

.btn-outline {
    padding: 9px 22px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font);
    color: var(--bright);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, color 0.2s;
    background: none;
    cursor: pointer;
    white-space: nowrap;
}
.btn-outline:hover { border-color: var(--accent); color: var(--white); }

.btn-primary-nav {
    padding: 9px 22px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font);
    color: var(--white);
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
    display: inline-block;
}
.btn-primary-nav:hover { background: var(--accent-h); transform: translateY(-1px); }

.btn-lg-hero {
    padding: 13px 28px;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
}
.btn-outline.btn-lg-hero {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
    color: var(--bright);
}
.btn-outline.btn-lg-hero:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.35);
    color: var(--white);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.mobile-menu {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--border);
    padding: 80px 28px 40px;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { list-style: none; }
.mobile-menu li { padding: 14px 0; border-bottom: 1px solid var(--border-2); }
.mobile-menu li:last-child { border: none; }

/* Overlay behind drawer */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}
.mobile-menu-overlay.open { display: block; }

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .nav-toggle { display: flex; }
}

/* ── Hero ── */
.hero-section {
    position: relative;
    padding: 160px 0 80px;
    overflow: hidden;
}
.hero-blur {
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}
.hero-blur--left {
    background: rgba(59,111,212,0.12);
    top: -200px; left: -200px;
}
.hero-blur--right {
    background: rgba(59,111,212,0.08);
    top: 100px; right: -300px;
}
.hero-section .container { position: relative; z-index: 1; }

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 20px;
}
.hero-title {
    font-size: clamp(2rem, 3.8vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.hero-sub {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    max-width: 580px;
    margin: 0 auto 36px;
}
.hero-inner {
    max-width: 860px;
    margin: 0 auto;
}
.hero-cta-group {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

/* Hero Screenshot */
.hero-screenshot {
    max-width: 1000px;
    margin: 0 auto;
}
.hero-screenshot-img {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}
.mockup-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
}
.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.dot--red { background: #FF5F57; }
.dot--yellow { background: #FFBD2E; }
.dot--green { background: #28C840; }
.mockup-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-dim);
    margin-left: 8px;
    font-family: var(--mono);
}
.mockup-body {
    display: flex;
    height: 380px;
}
.mockup-sidebar {
    width: 180px;
    background: var(--bg-2);
    border-right: 1px solid var(--border);
    padding: 20px 16px;
    flex-shrink: 0;
}
.sidebar-logo {
    width: 32px; height: 32px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 24px;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sn-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}
.sn-item:hover { background: var(--surface-2); color: var(--bright); }
.sn-item--active { background: rgba(59,111,212,0.15); color: var(--white); }
.sn-item svg { flex-shrink: 0; }

.mockup-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mockup-topbar {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.agent-pill {
    padding: 4px 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 100px;
    font-family: var(--mono);
}
.agent-pill--done { background: rgba(34,197,94,0.12); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.agent-pill--active { background: rgba(59,111,212,0.15); color: #93BBFF; border: 1px solid rgba(59,111,212,0.3); }
.agent-pill--pending { background: rgba(255,255,255,0.04); color: var(--text-dim); border: 1px solid var(--border); }

.mockup-output {
    flex: 1;
    padding: 20px;
    overflow: hidden;
}
.output-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.output-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.output-stats { display: flex; gap: 20px; }
.ostat { text-align: center; }
.ostat-val { display: block; font-size: 1.25rem; font-weight: 800; color: var(--white); line-height: 1; }
.ostat-lbl { font-size: 0.6875rem; color: var(--text-dim); }
.code-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    overflow: hidden;
}
.code-block pre {
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--bright);
    white-space: pre-wrap;
    margin: 0;
}
.mockup-output--full {
    padding: 0 !important;
    flex: 1;
    overflow: hidden;
    display: flex;
}
.mockup-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
}
.c-keyword { color: #93BBFF; }
.c-class { color: #F0C674; }
.c-fn { color: #82D4F7; }
.c-type { color: #A5D8A0; }

@media (max-width: 640px) {
    .mockup-sidebar { display: none; }
    .mockup-body { height: 280px; }
}

/* ── Stat Bar ── */
.stat-bar {
    padding: 64px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
}
.stat-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.stat-item {
    flex: 1;
    text-align: center;
    padding: 0 32px;
}
.stat-val {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.stat-lbl {
    font-size: 0.875rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}
.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
    flex-shrink: 0;
}
@media (max-width: 576px) {
    .stat-bar-inner { flex-direction: column; gap: 32px; }
    .stat-divider { width: 48px; height: 1px; }
}

/* ── Trust Bar ── */
.trust-bar {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.trust-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.trust-marquee-wrap { overflow: hidden; }
.trust-marquee {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    width: max-content;
}
.trust-marquee span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dim);
    font-family: var(--mono);
    letter-spacing: 0.02em;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Statement ── */
.statement-section {
    padding: 120px 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.statement-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 20px;
}
.statement-dim { color: var(--text); }
.statement-sub {
    font-size: 1rem;
    color: var(--text);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Shared section styles */
.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 56px;
}

/* ── Features ── */
.features-section {
    padding: 120px 0;
    overflow: hidden;
}
.features-heading {
    margin-bottom: 56px;
}

.fcard {
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    height: 100%;
    transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.fcard:hover {
    border-color: rgba(59,111,212,0.3);
    background: var(--surface-2);
    transform: translateY(-3px);
}
.fcard-icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59,111,212,0.12);
    border-radius: var(--radius-sm);
    color: #93BBFF;
    margin-bottom: 18px;
}
.fcard h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}
.fcard p {
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.65;
}

/* Feature image */
.feature-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.feature-blur {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59,111,212,0.15) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}
.feature-img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: block;
    object-fit: cover;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.float-stat {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 20px;
    z-index: 2;
    box-shadow: var(--shadow);
}
.float-stat--tl { top: 20px; left: -20px; }
.float-stat--br { bottom: 20px; right: -20px; }
.fs-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
}
.fs-lbl { font-size: 0.75rem; color: var(--text-dim); }

/* Feature code mockup */
.feature-code-mock {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.fcm-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.fcm-file {
    font-size: 0.75rem;
    font-family: var(--mono);
    color: var(--text-dim);
    margin-left: 8px;
}
.fcm-code {
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--bright);
    padding: 20px;
    margin: 0;
    white-space: pre-wrap;
    overflow: hidden;
}
.fcm-footer {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.fcm-badge {
    padding: 3px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    font-family: var(--mono);
    border-radius: 100px;
    background: var(--surface-2);
    color: var(--text-dim);
    border: 1px solid var(--border);
}
.fcm-badge--green { background: rgba(34,197,94,0.1); color: var(--green); border-color: rgba(34,197,94,0.2); }
.fcm-badge--blue { background: rgba(59,111,212,0.1); color: #93BBFF; border-color: rgba(59,111,212,0.2); }

/* ── How It Works ── */
.hiw-section {
    padding: 120px 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.hiw-row { margin-top: 0; }

.steps-list { display: flex; flex-direction: column; gap: 0; }
.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.step-num {
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--mono);
    color: var(--accent);
    background: rgba(59,111,212,0.1);
    border: 1px solid rgba(59,111,212,0.2);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step-body h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.step-body p { font-size: 0.9rem; color: var(--text); line-height: 1.65; }
.step-connector {
    width: 1px;
    height: 32px;
    background: var(--border);
    margin-left: 20px;
}

/* Chat demo */
.hiw-demo {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.chat-demo {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-msg {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    line-height: 1.65;
    max-width: 88%;
}
.chat-msg--user {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--bright);
    align-self: flex-end;
}
.chat-msg--ai {
    background: rgba(59,111,212,0.08);
    border: 1px solid rgba(59,111,212,0.15);
    color: var(--bright);
    align-self: flex-start;
}
.ai-name {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #93BBFF;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Agent pipeline */
.agent-pipeline {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.ap-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--border);
}
.ap-item:last-child { border-bottom: none; }
.ap-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
}
.ap-dot--done { background: var(--green); }
.ap-dot--active { background: var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.3; } }
.ap-name { font-weight: 600; color: var(--bright); flex: 1; }
.ap-info { font-size: 0.8125rem; color: var(--text-dim); font-family: var(--mono); }
.ap-item--done .ap-name { color: var(--white); }
.ap-item--active .ap-name { color: #93BBFF; }

/* ── Phases Bar ── */
.phases-bar {
    padding: 48px 0 56px;
    border-bottom: 1px solid var(--border);
}
.phases-pipeline {
    position: relative;
    margin-top: 40px;
}
.phases-pipeline-track {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent) 10%, var(--accent) 90%, transparent);
    opacity: 0.3;
}
.phases-pipeline-items {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}
.ppl-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex: 1;
}
.ppl-node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    position: relative;
    z-index: 1;
    box-shadow: 0 0 12px rgba(59,111,212,0.2);
}
.ppl-node--last {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 0 20px rgba(59,111,212,0.4);
}
.ppl-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    line-height: 1.3;
    max-width: 100px;
}
@media (max-width: 992px) {
    .phases-pipeline-track { display: none; }
    .phases-pipeline-items { flex-wrap: wrap; justify-content: center; gap: 24px; }
    .ppl-item { flex: 0 0 calc(33% - 24px); }
}

/* ── Phases ── */
.phases-section {
    padding: 80px 0 100px;
    border-top: 1px solid var(--border);
}
.phases-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 56px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
}
.phase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 24px;
    text-align: center;
}
.phase-num {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
}
.phase-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
}
.phase-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .phases-grid { flex-direction: column; padding: 32px 24px; gap: 0; }
    .phase-divider { width: 40px; height: 1px; }
    .phase-item { padding: 16px 0; }
    .phase-name { white-space: normal; }
}

/* ── Comparison ── */
.compare-section {
    padding: 120px 0;
}
.compare-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 56px;
}
.cp-panel {
    background: var(--surface);
}
.cp-panel--old {
    border-right: 1px solid var(--border);
    opacity: 0.85;
}
.cp-panel--new {
    background: rgba(59,111,212,0.06);
}
.cp-header {
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
}
.cp-label {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.cp-label--old { color: #E8715A; }
.cp-label--new { color: var(--accent); }
.cp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid var(--border-2);
}
.cp-task {
    font-size: 0.9375rem;
    color: var(--text);
    font-weight: 400;
}
.cp-panel--new .cp-task {
    color: var(--bright);
    font-weight: 500;
}
.cp-val--old {
    font-size: 0.875rem;
    font-weight: 600;
    color: #E8715A;
}
.cp-check {
    color: var(--green);
    display: flex;
    align-items: center;
}
.cp-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-top: 1px solid var(--border);
}
.cp-total-label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--white);
}
.cp-total-val {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--white);
}
.cp-total--new {
    border-top: 1px solid rgba(59,111,212,0.4);
    background: rgba(59,111,212,0.08);
}
.cp-total-label--new { color: var(--white); }
.cp-total-val--new {
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

/* ── Stats ── */
.stats-section {
    padding: 80px 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.stat-item {
    background: var(--bg-2);
    padding: 40px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.stat-val {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.04em;
    line-height: 1;
}
.stat-unit { font-size: 1.5rem; font-weight: 600; color: var(--accent); }
.stat-lbl { font-size: 0.8125rem; color: var(--text-dim); font-weight: 500; }

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Who it's for ── */
.for-section {
    padding: 120px 0;
}
.for-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 56px;
}
.for-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.25s;
}
.for-card:hover { border-color: rgba(59,111,212,0.25); }
.for-icon {
    width: 48px;
    height: 48px;
    background: rgba(59,111,212,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}
.for-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
}
.for-body {
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .for-grid { grid-template-columns: 1fr; }
}

/* ── CREDIBILITY ── */
.credibility-section {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}
.credibility-body {
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.8;
    margin-top: 24px;
}
.credibility-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.credibility-list li {
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.7;
    padding-left: 24px;
    position: relative;
}
.credibility-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ── FAQ ── */
.faq-section {
    padding: 120px 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--bright);
    text-align: left;
    cursor: pointer;
    transition: color 0.2s;
}
.faq-q:hover { color: var(--white); }
.faq-arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text-dim);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-item.open .faq-q { color: var(--white); }
.faq-a {
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 0;
}
.faq-item.open .faq-a {
    max-height: 200px;
    padding-bottom: 20px;
}
.faq-link { color: var(--accent); }
.faq-link:hover { text-decoration: underline; }
.text-muted-sm { font-size: 0.9rem; color: var(--text); }

/* ── Waitlist ── */
.waitlist-section { padding: 100px 0 120px; }
.waitlist-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    overflow: hidden;
    background: var(--surface);
}
.wl-blur {
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}
.wl-blur--left { background: rgba(59,111,212,0.1); top: -200px; left: -200px; }
.wl-blur--right { background: rgba(59,111,212,0.07); bottom: -200px; right: -200px; }
.waitlist-inner { position: relative; z-index: 1; }
.waitlist-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}
.waitlist-sub {
    font-size: 1rem;
    color: var(--text);
    max-width: 440px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.waitlist-form { max-width: 480px; margin: 0 auto; }
.wf-row {
    display: flex;
    gap: 10px;
}
.wf-input {
    flex: 1;
    padding: 14px 18px;
    font-family: var(--font);
    font-size: 0.9375rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--white);
    outline: none;
    transition: border-color 0.2s;
}
.wf-input::placeholder { color: var(--text-dim); }
.wf-input:focus { border-color: var(--accent); }
.wf-note { font-size: 0.8125rem; color: var(--text-dim); margin-top: 12px; }

/* HubSpot form overrides */
.hs-form-wrap {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}
.hs-form-wrap .hs-form fieldset { max-width: 100% !important; }
.hs-form-wrap .hs-input {
    width: 100% !important;
    padding: 13px 18px !important;
    font-family: var(--font) !important;
    font-size: 0.9375rem !important;
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--white) !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s !important;
}
.hs-form-wrap .hs-input:focus { border-color: var(--accent) !important; }
.hs-form-wrap .hs-input::placeholder { color: var(--text-dim) !important; }
.hs-form-wrap .hs-button {
    width: 100% !important;
    margin-top: 10px !important;
    padding: 13px 28px !important;
    font-family: var(--font) !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: var(--white) !important;
    background: var(--accent) !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}
.hs-form-wrap .hs-button:hover { background: var(--accent-h) !important; }
.hs-form-wrap .hs-error-msgs { list-style: none; margin: 6px 0 0; }
.hs-form-wrap .hs-error-msgs li label {
    font-size: 0.8rem !important;
    color: #F87171 !important;
    font-family: var(--font) !important;
}
.hs-form-wrap .submitted-message {
    color: var(--green) !important;
    font-weight: 600 !important;
    font-family: var(--font) !important;
    text-align: center;
    padding: 16px 0;
}
.hs-form-wrap label {
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: var(--text) !important;
    font-family: var(--font) !important;
    display: block;
    margin-bottom: 6px;
}
.hs-form-wrap .hs-form-field { margin-bottom: 12px; }

@media (max-width: 500px) {
    .wf-row { flex-direction: column; }
    .waitlist-card { padding: 48px 24px; }
}

/* ── Footer ── */
.site-footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 72px 0 36px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 56px;
    align-items: flex-start;
}
.footer-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    display: block;
    margin-bottom: 12px;
}
.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-dim);
    max-width: 300px;
    line-height: 1.7;
    margin-bottom: 0;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.footer-col-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin: 0;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s;
    text-decoration: none;
}
.footer-links a:hover { color: var(--white); }
.footer-email {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}
.footer-email:hover { opacity: 0.75; }
.footer-brand-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-spartan-logo {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}
.footer-pharos-logo-col {
    height: auto;
    width: 120px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    display: block;
}
.footer-pharos-tagline {
    font-size: 0.8125rem;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.6;
}
.footer-pharos-link {
    font-size: 0.8125rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-pharos-link:hover { color: var(--white); }
@media (max-width: 1100px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
.footer-pharos-logo {
    height: 32px;
    width: auto;
    opacity: 0.7;
    filter: brightness(0) invert(1);
    display: block;
    flex-shrink: 0;
}
.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.footer-offices {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.footer-office {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-2);
}
.footer-office:first-child { padding-top: 0; }
.footer-office:last-child { border-bottom: none; padding-bottom: 0; }
.footer-office p {
    font-size: 0.8125rem;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.75;
}
.footer-office-city {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text) !important;
    margin-bottom: 6px !important;
}
.footer-bottom {
    border-top: 1px solid var(--border-2);
    padding-top: 28px;
    font-size: 0.8125rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.footer-built-credit {
    color: var(--text-dim);
}
.footer-built-credit a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.footer-built-credit a:hover { color: var(--white); }
@media (max-width: 992px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
.privacy-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8125rem;
    color: var(--text-dim);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.privacy-link:hover { color: var(--white); }

/* ── Atomic Facts ── */
.atomic-section {
    padding: 120px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-2);
}
.atomic-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 56px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.atomic-item {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 28px 36px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.atomic-item:last-child { border-bottom: none; }
.atomic-item:hover { background: rgba(59,111,212,0.04); }
.atomic-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    flex-shrink: 0;
    padding-top: 3px;
    min-width: 28px;
}
.atomic-text {
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.75;
    margin: 0;
}
@media (max-width: 576px) {
    .atomic-item { gap: 20px; padding: 20px 24px; }
}

/* ── Privacy Modal ── */
.privacy-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.privacy-modal.open { display: flex; }
.privacy-modal-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 680px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.privacy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.privacy-modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}
.privacy-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dim);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}
.privacy-modal-close:hover { color: var(--white); }
.privacy-modal-body {
    padding: 28px 32px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.75;
}
.privacy-modal-body h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--bright);
    margin: 24px 0 8px;
}
.privacy-modal-body h3:first-of-type { margin-top: 0; }
.privacy-modal-body a { color: var(--accent); text-decoration: none; }
.privacy-modal-body a:hover { text-decoration: underline; }
.privacy-effective {
    font-size: 0.8125rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .float-stat--tl, .float-stat--br { display: none; }
    .for-grid { grid-template-columns: 1fr 1fr; }
}

/* ── ERP Platform Tabs ──────────────────────────────── */
.erp-tabs { margin-top: 2rem; }
.erp-tab-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}
.erp-tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-dim);
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -1px;
}
.erp-tab-btn:hover { color: var(--bright); }
.erp-tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.erp-tab-panel { display: none !important; }
.erp-tab-panel.active { display: block !important; }

@media (max-width: 768px) {
    .hero-section { padding: 120px 0 60px; }
    .statement-section, .features-section, .hiw-section,
    .compare-section, .testimonials-section, .faq-section { padding: 80px 0; }
    .compare-panels { grid-template-columns: 1fr; }
    .cp-panel--old { border-right: none; border-bottom: 1px solid var(--border); }
    .for-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; }
    .erp-tab-nav { flex-wrap: wrap; }
}
