/* ===================================================================
   CascadeAI — Premium Healthcare Design System
   Inspired by: Tandem Health (light bg, serif, lime CTAs, pill buttons)
                Kabilah (bold blue sections, nurse imagery, high contrast)
   =================================================================== */

/* ===== DESIGN TOKENS ===== */
:root {
    /* Backgrounds */
    --bg-primary: #F5F5F0;
    /* Tandem warm off-white */
    --bg-card: #EDEDE8;
    /* Tandem soft gray cards */
    --bg-accent: #3D4F2F;
    /* Deep Olive */
    --bg-accent-deep: #2E3D22;
    /* Darker olive for hover */
    --bg-white: #FFFFFF;

    /* Text */
    --text-primary: #1A1A1A;
    /* near-black */
    --text-secondary: #6B7280;
    /* muted gray */
    --text-on-dark: #FFFFFF;
    --text-on-dark-s: rgba(255, 255, 255, 0.75);

    /* Accents */
    --cta-lime: #C8E64A;
    /* Tandem lime-green */
    --cta-lime-hover: #B8D63A;
    --cta-mint: #A8D5A2;
    /* Soft sage-green on olive */
    --accent-blue: #3D4F2F;
    /* Olive (used for tags/accents) */

    /* Agent icon colors */
    --agent-blue: #3B82F6;
    --agent-green: #22C55E;
    --agent-amber: #F59E0B;
    --agent-red: #EF4444;
    --agent-purple: #8B5CF6;
    --agent-teal: #14B8A6;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-pad: 160px;
    --container-max: 1200px;

    /* Radius */
    --radius-card: 24px;
    --radius-btn: 50px;
    /* full pill */
    --radius-sm: 12px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    font-size: 17px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.15;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== NAVIGATION ===== */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

#nav.scrolled {
    background: rgba(245, 245, 240, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    padding: 12px 0;
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-img {
    height: 48px;
    width: 48px;
    object-fit: cover;
    border-radius: 10px;
    background-color: #1C2E1C;
    padding: 4px;
}

.nav-logo span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--text-primary);
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 32px;
    margin-left: auto;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-cta {
    font-size: 15px;
    font-weight: 600;
    background: var(--cta-lime);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: var(--radius-btn);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    background: var(--cta-lime-hover);
    box-shadow: 0 4px 20px rgba(200, 230, 74, 0.5);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s, opacity 0.3s;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: var(--radius-btn);
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--cta-lime);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--cta-lime-hover);
    box-shadow: 0 8px 32px rgba(200, 230, 74, 0.5), 0 2px 10px rgba(200, 230, 74, 0.35);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(0, 0, 0, 0.15);
}

.btn-outline:hover {
    border-color: rgba(0, 0, 0, 0.4);
}

.btn-mint {
    background: var(--cta-mint);
    color: var(--text-primary);
}

.btn-mint:hover {
    background: #5DC490;
    box-shadow: 0 8px 32px rgba(168, 213, 162, 0.55), 0 2px 10px rgba(168, 213, 162, 0.4);
    transform: translateY(-2px);
}

.arrow {
    font-size: 18px;
    transition: transform 0.2s;
}

.btn:hover .arrow,
.nav-cta:hover .arrow {
    transform: translateX(3px);
}

/* Magnetic hover */
.magnetic {
    transition: transform 0.15s ease-out;
}

/* ===== HERO ===== */
.hero {
    padding: calc(var(--section-pad) + 60px) 0 var(--section-pad);
    background: var(--bg-primary);
    overflow: hidden;
}


.hero-copy {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 24px;
}

.hackathon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--bg-accent);
    background: rgba(61, 79, 47, 0.08);
    border: 1.5px solid var(--bg-accent);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.hackathon-badge svg {
    stroke: var(--bg-accent);
    flex-shrink: 0;
}

/* Badge on dark (security section) background */
.security .hackathon-badge {
    margin: 24px auto 0;
    display: flex;
    width: fit-content;
    color: var(--cta-lime);
    background: rgba(200, 230, 74, 0.1);
    border-color: rgba(200, 230, 74, 0.35);
}

.security .hackathon-badge svg {
    stroke: var(--cta-lime);
}

.hero-headline {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-headline em {
    font-style: italic;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 36px;
}

/* Trust micro-strip */
.hero-trust-strip {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 24px;
    border-top: 1px solid rgba(61, 79, 47, 0.15);
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-trust-item svg {
    stroke: var(--bg-accent);
    flex-shrink: 0;
}

/* Below: App mockup visual — full width centered */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

/* Floating lime badge */
.hero-float-badge {
    position: absolute;
    top: -18px;
    right: 20px;
    background: var(--cta-lime);
    color: var(--bg-accent);
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 100px;
    box-shadow: 0 4px 24px rgba(200, 230, 74, 0.45);
    z-index: 10;
    white-space: nowrap;
    letter-spacing: -0.01em;
}




/* macOS window chrome */
.app-chrome {
    background: #EDEDE8;
    padding: 10px 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.app-chrome-left {
    display: flex;
    gap: 7px;
    align-items: center;
}

.chrome-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.chrome-dot--red    { background: #FF5F57; }
.chrome-dot--yellow { background: #FFBD2E; }
.chrome-dot--green  { background: #28CA41; }

.app-chrome-title {
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: rgba(0,0,0,0.45);
    font-family: var(--font-body);
}

.app-chrome-right {
    display: flex;
    justify-content: flex-end;
}

.mic-ready-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 600;
    color: #16a34a;
    background: rgba(22,163,74,0.1);
    border: 1px solid rgba(22,163,74,0.22);
    padding: 3px 9px;
    border-radius: 100px;
    white-space: nowrap;
}

.mic-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
    animation: micPulse 2s ease-in-out infinite;
}

/* ── Square card format ── */
.hero-app-card {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.06),
        0 16px 48px rgba(0,0,0,0.12),
        0 0 0 1px rgba(61,79,47,0.08);
    overflow: hidden;
    width: 100%;
    max-width: 620px;
}

/* ── Demo tab switcher ── */
.demo-tabs {
    display: flex;
    gap: 0;
    background: #F5F5F0;
    border-bottom: 1px solid rgba(61,79,47,0.12);
}

.demo-tab {
    flex: 1;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.demo-tab:hover {
    background: rgba(61,79,47,0.06);
    color: var(--text-primary);
}

.demo-tab--active {
    background: #FFFFFF;
    color: var(--bg-accent);
    border-bottom-color: var(--cta-lime);
}

.demo-tab-dot--red {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    animation: micPulse 1.2s ease-in-out infinite;
    display: inline-block;
}

/* ── Demo panels ── */
.demo-panel {
    padding: 20px 24px;
    animation: panelFadeIn 0.25s ease;
}

.demo-panel--hidden {
    display: none;
}

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Update panel styles ── */
.updates-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.updates-title {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.updates-title em {
    font-style: italic;
}

.updates-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #3b5bff;
    color: white;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    flex-shrink: 0;
}

.updates-show-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border: 1px solid rgba(61,79,47,0.2);
    border-radius: 100px;
    background: white;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: var(--font-body);
}

.update-card {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(61,79,47,0.1);
    background: #FAFAFA;
}

.update-card:last-child { margin-bottom: 0; }

.update-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.update-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

.update-time {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.update-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    letter-spacing: 0.04em;
}

.update-pill--med   { background: rgba(37,99,235,0.1);  color: #2563eb; }
.update-pill--vital { background: rgba(124,58,237,0.1); color: #7c3aed; }
.update-pill--proc  { background: rgba(234,88,12,0.1);  color: #ea580c; }
.update-pill--verified {
    background: rgba(22,163,74,0.1);
    color: #16a34a;
}

.update-text {
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-primary);
    margin: 0;
}

/* ── Report panel styles ── */
.report-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 8px;
}

.report-title {
    font-size: 17px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
}

.report-title em { font-style: italic; }

.report-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.report-end-btn {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border: 1px solid #ef4444;
    border-radius: 100px;
    background: white;
    color: #ef4444;
    cursor: pointer;
    font-family: var(--font-body);
    white-space: nowrap;
    flex-shrink: 0;
}

.report-section {
    margin-bottom: 14px;
}

.report-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.report-alert {
    font-size: 11px;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    border-left: 3px solid;
}

.report-alert--red    { background: rgba(239,68,68,0.08);  border-color: #ef4444; color: #7f1d1d; }
.report-alert--orange { background: rgba(249,115,22,0.08); border-color: #f97316; color: #7c2d12; }

.report-vitals {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.vital-box {
    background: #F5F5F0;
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
    border: 1px solid rgba(61,79,47,0.1);
}

.vital-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.vital-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 3px;
    letter-spacing: 0.04em;
}

.report-narrative {
    font-size: 11px;
    line-height: 1.6;
    color: var(--text-primary);
    background: #FAFAF7;
    border: 1px solid rgba(61,79,47,0.12);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0;
}

/* ── Scrollable report panel ── */
.demo-panel--scroll {
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(61,79,47,0.2) transparent;
    padding-bottom: 24px;
}
.demo-panel--scroll::-webkit-scrollbar { width: 4px; }
.demo-panel--scroll::-webkit-scrollbar-track { background: transparent; }
.demo-panel--scroll::-webkit-scrollbar-thumb { background: rgba(61,79,47,0.2); border-radius: 4px; }

/* ── Flagged update card ── */
.update-card--flagged {
    border-color: rgba(217,119,6,0.35) !important;
    background: rgba(254,243,199,0.5) !important;
}

.update-pill--flagged {
    background: rgba(217,119,6,0.12);
    color: #b45309;
}

.update-flag-msg {
    font-size: 11px;
    line-height: 1.4;
    color: #92400e;
    background: rgba(254,243,199,0.8);
    border: 1px solid rgba(217,119,6,0.25);
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 8px;
}

/* ── Yellow alert variant ── */
.report-alert--yellow {
    background: rgba(251,191,36,0.1);
    border-color: #f59e0b;
    color: #78350f;
}

/* ── Timeline ── */
.report-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-row {
    display: grid;
    grid-template-columns: 62px 12px 1fr;
    gap: 8px;
    align-items: flex-start;
    padding: 6px 0;
    border-bottom: 1px solid rgba(61,79,47,0.07);
    position: relative;
}

.timeline-row:last-child { border-bottom: none; }

.tl-time {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    padding-top: 2px;
}

.tl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
}

.tl-dot--blue   { background: #3b82f6; }
.tl-dot--grey   { background: #9ca3af; }
.tl-dot--orange { background: #f97316; }
.tl-dot--green  { background: #22c55e; }

.tl-text {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-primary);
}

/* ── Meds list ── */
.report-meds {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.med-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #FAFAF7;
    border: 1px solid rgba(61,79,47,0.1);
    border-radius: 7px;
}

.med-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.med-dot--green { background: #22c55e; }

.med-name {
    flex: 1;
    font-size: 11px;
    color: var(--text-primary);
}

.med-status {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 100px;
    white-space: nowrap;
}

.med-status--verified {
    background: rgba(22,163,74,0.1);
    color: #16a34a;
}

/* ── 5-column vitals grid ── */
.report-vitals--5 {
    grid-template-columns: repeat(5, 1fr) !important;
}

/* ── Missing vital box ── */
.vital-box--missing {
    background: rgba(239,68,68,0.05) !important;
    border-color: rgba(239,68,68,0.2) !important;
}

.vital-val--missing {
    font-size: 9px !important;
    font-weight: 600 !important;
    color: #ef4444 !important;
    line-height: 1.3 !important;
}

/* ── Pending actions ── */
.pending-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(61,79,47,0.07);
}

.pending-row:last-child { border-bottom: none; }

.pending-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 1px;
    letter-spacing: 0.04em;
}

.pending-badge--critical { background: rgba(239,68,68,0.12); color: #dc2626; }
.pending-badge--high     { background: rgba(249,115,22,0.12); color: #ea580c; }
.pending-badge--routine  { background: rgba(148,163,184,0.18); color: #475569; }

.pending-count {
    font-size: 10px;
    font-weight: 600;
    background: rgba(61,79,47,0.08);
    color: var(--text-secondary);
    padding: 1px 7px;
    border-radius: 100px;
    margin-left: 6px;
}

.pending-text {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-primary);
}

/* ── Narrative hint chip ── */
.narrative-hint {
    font-size: 9px;
    font-weight: 600;
    background: rgba(200,230,74,0.2);
    color: var(--bg-accent);
    padding: 1px 7px;
    border-radius: 100px;
    margin-left: 6px;
    text-transform: none;
    letter-spacing: normal;
}


.app-patient-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.app-patient-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.app-patient-name em {
    font-style: italic;
    color: var(--bg-accent);
}

.app-update-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.app-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.app-tab {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1.5px solid rgba(61,79,47,0.2);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.app-tab--active {
    background: var(--bg-accent);
    color: #fff;
    border-color: var(--bg-accent);
}

/* Recording area */
.app-recording-box {
    background: #F7F7F2;
    border: 1.5px solid rgba(61,79,47,0.12);
    border-radius: 12px;
    padding: 20px 16px 14px;
    margin-bottom: 16px;
    text-align: center;
}

.app-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
    margin-bottom: 10px;
}

.wf-bar {
    display: inline-block;
    width: 5px;
    border-radius: 3px;
    background: var(--cta-lime);
    height: 100%;
    transform-origin: bottom center;
    transform: scaleY(var(--h));
    animation: wfAnim 0.7s ease-in-out infinite alternate;
}

.app-rec-status {
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.rec-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dc2626;
    display: inline-block;
    animation: recBlink 1.2s ease-in-out infinite;
}

/* Agent pipeline chips */
.app-pipeline-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.app-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.app-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 100px;
    border: 1.5px solid transparent;
}

.app-chip--done {
    background: rgba(168, 213, 162, 0.2);
    border-color: rgba(168, 213, 162, 0.4);
    color: #2d6a4f;
}

.app-chip--active {
    background: rgba(200, 230, 74, 0.15);
    border-color: rgba(200, 230, 74, 0.5);
    color: #4a5e00;
    animation: chipPulse 1.4s ease-in-out infinite;
}

.app-chip--pending {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.1);
    color: var(--text-secondary);
}

/* ===== ANIMATIONS ===== */
@keyframes micPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

@keyframes wfAnim {
    0%   { transform: scaleY(var(--h)); }
    100% { transform: scaleY(calc(1 - var(--h) * 0.8)); }
}

@keyframes recBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

@keyframes chipPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

/* Trust bar */
.trust-bar {
    margin-top: 80px;
    text-align: center;
}

.trust-label {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.trust-logos {
    display: flex;
    gap: 48px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0.4;
}

.trust-logo {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

/* ===== MISSION — Bold Blue (Kabilah-style) ===== */
.mission {
    background: var(--bg-accent);
    padding: var(--section-pad) 0;
    color: var(--text-on-dark);
    position: relative;
    overflow: hidden;
}

/* Leaf / botanical background texture */
.mission::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(168, 213, 162, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 80%, rgba(168, 213, 162, 0.08) 0%, transparent 50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.mission::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 40%;
    height: 80%;
    background: radial-gradient(ellipse at 40% 60%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

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

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.section-eyebrow--light {
    color: var(--cta-mint);
}

.mission-tagline {
    font-family: var(--font-heading);
    font-size: clamp(18px, 2vw, 24px);
    font-style: italic;
    font-weight: 400;
    color: var(--cta-mint);
    line-height: 1.4;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.mission-headline {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.15;
}

.mission-body {
    font-size: 17px;
    color: var(--text-on-dark-s);
    margin-bottom: 20px;
    line-height: 1.7;
}

.mission-body strong {
    color: var(--text-on-dark);
}

.mission-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mission-photo {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-card);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.mission-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-card);
    padding: 40px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 500;
    color: var(--text-on-dark);
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-on-dark-s);
    line-height: 1.5;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-title em {
    font-style: italic;
}

.section-title--white {
    color: var(--text-on-dark);
}

.section-sub {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== OUTCOMES ===== */
.outcomes {
    padding: var(--section-pad) 0;
    background: var(--bg-primary);
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.outcome-card {
    background: var(--bg-accent);
    border-radius: var(--radius-card);
    padding: 48px 36px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-on-dark);
}

.outcome-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.outcome-icon {
    margin-bottom: 24px;
}

.outcome-card .outcome-icon svg {
    stroke: var(--cta-mint);
}

.outcome-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-on-dark-s);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.outcome-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    color: var(--text-on-dark);
}

.outcome-desc {
    font-size: 15px;
    color: var(--text-on-dark-s);
    line-height: 1.7;
    margin-bottom: 24px;
}

.outcome-metric {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-on-dark);
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 20px;
}

/* ===== STATISTICS BANNER ===== */
.stats-banner {
    padding: 110px 0;
    background: linear-gradient(160deg, #252f17 0%, var(--bg-accent) 45%, #2a3d1a 100%);
    position: relative;
    overflow: hidden;
}

/* Central lime glow bloom */
.stats-banner::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 220%;
    background: radial-gradient(ellipse, rgba(200, 230, 74, 0.07) 0%, transparent 60%);
    pointer-events: none;
}

/* Bottom rule line fade */
.stats-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(200, 230, 74, 0.25) 50%, transparent 100%);
}

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

/* Intro headline block */
.stats-intro {
    text-align: center;
    margin-bottom: 72px;
}

.stats-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cta-lime);
    margin-bottom: 16px;
}

.stats-headline {
    font-family: var(--font-heading);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 500;
    color: var(--text-on-dark);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.stats-headline em {
    font-style: italic;
    color: var(--cta-mint);
}

/* Stats row */
.stats-grid {
    display: flex;
    align-items: stretch;
    gap: 0;
    text-align: center;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 32px;
}

/* Number + unit pairing */
.stat-number-wrap {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-big {
    font-family: var(--font-heading);
    font-size: clamp(56px, 7vw, 88px);
    font-weight: 600;
    color: var(--text-on-dark);
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-unit {
    font-family: var(--font-heading);
    font-size: clamp(22px, 2.5vw, 34px);
    font-weight: 500;
    color: var(--cta-lime);
    padding-top: 10px;
    line-height: 1;
}

.stat-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-on-dark);
    letter-spacing: 0.02em;
}

.stat-detail {
    font-size: 13px;
    color: var(--text-on-dark-s);
    max-width: 220px;
    line-height: 1.55;
}

/* Vertical separator between stats */
.stat-sep {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    align-self: stretch;
}



/* ===== WORKFLOW ARCHITECTURE DIAGRAM ===== */
.workflow {
    padding: 80px 0;
    background: var(--bg-accent);
    color: var(--text-on-dark);
    position: relative;
    overflow: hidden;
}

.workflow::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(168, 213, 162, 0.13) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(178, 216, 168, 0.08) 0%, transparent 40%);
    border-radius: 50%;
    pointer-events: none;
}

.workflow::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(178, 216, 168, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatOrb 8s ease-in-out infinite alternate;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -20px) scale(1.1);
    }
}

.workflow-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.workflow-text {
    padding-left: 20px;
}

.workflow-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.15;
    color: var(--text-on-dark);
}

.workflow-title em {
    font-style: italic;
    background: linear-gradient(135deg, #ffffff 0%, #B2D8A8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.workflow-body {
    font-size: 17px;
    color: var(--text-on-dark-s);
    margin-bottom: 20px;
    line-height: 1.7;
}

.workflow-text .btn {
    margin-top: 16px;
}

/* Diagram container */
.workflow-diagram {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Base connectors */
.wf-connector {
    width: 2px;
    height: 36px;
    background-color: transparent;
    margin: 0;
    position: relative;
    background-image: linear-gradient(to bottom, rgba(168, 213, 162, 0.8) 50%, transparent 50%);
    background-size: 2px 8px;
    background-repeat: repeat-y;
    animation: flowLines 1.5s linear infinite;
}

@keyframes flowLines {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 16px;
    }
}

/* Parallel group wrapper */
.wf-parallel-group {
    position: relative;
    padding: 32px 24px 24px;
    background: rgba(168, 213, 162, 0.04);
    border: 1px dashed rgba(168, 213, 162, 0.3);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 4px 0;
}

.wf-parallel-label {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
}

.wf-parallel-label span {
    display: inline-block;
    font-size: 11px;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(168, 213, 162, 0.8);
    background: #172416;
    border: 1px solid rgba(168, 213, 162, 0.25);
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Parallel nodes inside wrapper */
.wf-parallel-nodes {
    display: flex;
    gap: 24px;
    justify-content: center;
}

@media (max-width: 800px) {
    .wf-parallel-nodes {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* ── Node base ── */
.wf-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 200px;
    padding: 16px 16px 20px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-align: center;
    transition:
        transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease,
        background 0.4s ease,
        border-color 0.4s ease;
}

.wf-node:hover {
    transform: translateY(-5px) !important;
    background: rgba(255, 255, 255, 0.1);
}

/* Role badge chip */
.wf-role-badge {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.wf-role-badge--orchestrator {
    color: rgba(168, 213, 162, 0.7);
}

.wf-role-badge--output {
    color: rgba(34, 197, 94, 0.7);
}

/* ── Per-agent color accents ── */
/* Custom property for dot glow per agent */
.wf-node--blue {
    --glow: rgba(59, 130, 246, 0.65);
}

.wf-node--red {
    --glow: rgba(239, 68, 68, 0.65);
}

.wf-node--green {
    --glow: rgba(34, 197, 94, 0.65);
}

.wf-node--amber {
    --glow: rgba(245, 158, 11, 0.65);
}

.wf-node--purple {
    --glow: rgba(139, 92, 246, 0.65);
}

.wf-node--coordinator {
    --glow: rgba(168, 213, 162, 0.7);
}

.wf-node--blue {
    border-top: 2.5px solid rgba(59, 130, 246, 0.7);
    box-shadow: 0 0 0 0.5px rgba(59, 130, 246, 0.08), 0 4px 20px rgba(0, 0, 0, 0.28);
}

.wf-node--blue:hover {
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2), 0 16px 48px rgba(0, 0, 0, 0.32), 0 0 22px rgba(59, 130, 246, 0.14);
    border-top-color: rgba(59, 130, 246, 1);
}

.wf-node--red {
    border-top: 2.5px solid rgba(239, 68, 68, 0.7);
    box-shadow: 0 0 0 0.5px rgba(239, 68, 68, 0.08), 0 4px 20px rgba(0, 0, 0, 0.28);
}

.wf-node--red:hover {
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2), 0 16px 48px rgba(0, 0, 0, 0.32), 0 0 22px rgba(239, 68, 68, 0.14);
    border-top-color: rgba(239, 68, 68, 1);
}

.wf-node--green {
    border-top: 2.5px solid rgba(34, 197, 94, 0.7);
    box-shadow: 0 0 0 0.5px rgba(34, 197, 94, 0.08), 0 4px 20px rgba(0, 0, 0, 0.28);
}

.wf-node--green:hover {
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2), 0 16px 48px rgba(0, 0, 0, 0.32), 0 0 22px rgba(34, 197, 94, 0.14);
    border-top-color: rgba(34, 197, 94, 1);
}

.wf-node--amber {
    border-top: 2.5px solid rgba(245, 158, 11, 0.7);
    box-shadow: 0 0 0 0.5px rgba(245, 158, 11, 0.08), 0 4px 20px rgba(0, 0, 0, 0.28);
}

.wf-node--amber:hover {
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2), 0 16px 48px rgba(0, 0, 0, 0.32), 0 0 22px rgba(245, 158, 11, 0.14);
    border-top-color: rgba(245, 158, 11, 1);
}

.wf-node--purple {
    border-top: 2.5px solid rgba(139, 92, 246, 0.7);
    box-shadow: 0 0 0 0.5px rgba(139, 92, 246, 0.08), 0 4px 20px rgba(0, 0, 0, 0.28);
}

.wf-node--purple:hover {
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2), 0 16px 48px rgba(0, 0, 0, 0.32), 0 0 22px rgba(139, 92, 246, 0.14);
    border-top-color: rgba(139, 92, 246, 1);
}

/* Input node */
.wf-node--input {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.wf-node--input:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 255, 255, 0.04);
}

/* Output node */
.wf-node--output {
    width: 200px;
    background: rgba(34, 197, 94, 0.07);
    border: 1px solid rgba(34, 197, 94, 0.28);
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.08),
        0 4px 24px rgba(0, 0, 0, 0.3),
        0 0 32px rgba(34, 197, 94, 0.09);
}

.wf-node--output:hover {
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.18),
        0 16px 48px rgba(0, 0, 0, 0.36),
        0 0 40px rgba(34, 197, 94, 0.16);
}

/* Coordinator node — visually dominant hub */
.wf-node--coordinator {
    width: 230px;
    padding: 18px 18px 20px;
    background: rgba(168, 213, 162, 0.1);
    border: 1.5px solid rgba(168, 213, 162, 0.42);
    border-radius: 18px;
    box-shadow:
        0 0 0 1px rgba(168, 213, 162, 0.1),
        0 0 40px rgba(168, 213, 162, 0.13),
        0 8px 32px rgba(0, 0, 0, 0.42);
}

.wf-node--coordinator:hover {
    border-color: rgba(168, 213, 162, 0.65);
    box-shadow:
        0 0 0 1px rgba(168, 213, 162, 0.18),
        0 0 55px rgba(168, 213, 162, 0.2),
        0 16px 48px rgba(0, 0, 0, 0.48);
}

/* Small parallel nodes */
.wf-node--sm {
    width: 148px;
    padding: 13px 10px 16px;
}

/* ── Node dot ── */
.wf-node-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-bottom: 3px;
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--glow, rgba(255, 255, 255, 0.3)), 0 0 22px var(--glow, rgba(255, 255, 255, 0.15));
    animation: dotPulse 3s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        box-shadow: 0 0 10px var(--glow, rgba(255, 255, 255, 0.3)), 0 0 22px var(--glow, rgba(255, 255, 255, 0.15));
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 14px var(--glow, rgba(255, 255, 255, 0.5)), 0 0 32px var(--glow, rgba(255, 255, 255, 0.25));
        transform: scale(1.22);
    }
}

/* ── Node icon ── */
.wf-node-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    color: var(--cta-mint);
    transition: background 0.3s, box-shadow 0.3s;
}

.wf-node:hover .wf-node-icon {
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 0 14px rgba(178, 216, 168, 0.25);
}

.wf-node-icon--success {
    background: rgba(34, 197, 94, 0.13);
    border-color: rgba(34, 197, 94, 0.28);
    color: #22C55E;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.14);
}

/* ── Node text ── */
.wf-node-name {
    font-family: var(--font-body);
    font-size: 16.5px;
    font-weight: 700;
    color: var(--text-on-dark);
    letter-spacing: 0.02em;
}

.wf-node-sub {
    font-size: 13px;
    color: var(--text-on-dark-s);
    opacity: 0.95;
    letter-spacing: 0.02em;
}

/* ── Output badges ── */
.wf-node-badges {
    display: flex;
    gap: 5px;
    margin-top: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.wf-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 3px 9px;
    border-radius: 10px;
}

.wf-badge--critical {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.32);
    color: #FCA5A5;
}

.wf-badge--caution {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.32);
    color: #FDE68A;
}

.wf-badge--verified {
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.32);
    color: #86EFAC;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: var(--section-pad) 0;
    background: var(--bg-primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    text-align: left;
}

.step-visual {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 32px;
    margin-bottom: 28px;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-mockup {
    width: 100%;
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.mockup-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.mockup-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-bar span:nth-child(1) {
    background: #EF4444;
}

.mockup-bar span:nth-child(2) {
    background: #F59E0B;
}

.mockup-bar span:nth-child(3) {
    background: #22C55E;
}

/* Step 1: Recording waveform */
.mockup-waveform {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 60px;
    padding: 0 8px;
    margin-bottom: 12px;
}

.wave-line {
    flex: 1;
    background: var(--cta-lime);
    border-radius: 3px;
    animation: waveAnim 1.2s ease-in-out infinite alternate;
}

.wave-line:nth-child(1) {
    height: 40%;
    animation-delay: 0s;
}

.wave-line:nth-child(2) {
    height: 70%;
    animation-delay: 0.15s;
}

.wave-line:nth-child(3) {
    height: 55%;
    animation-delay: 0.3s;
}

.wave-line:nth-child(4) {
    height: 85%;
    animation-delay: 0.45s;
}

.wave-line:nth-child(5) {
    height: 45%;
    animation-delay: 0.6s;
}

@keyframes waveAnim {
    0% {
        transform: scaleY(1);
    }

    100% {
        transform: scaleY(0.4);
    }
}

.mockup-status {
    font-size: 13px;
    font-weight: 600;
    color: #22C55E;
}

/* Step 2: Verification checks */
.mockup-checks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    background: #F9FAFB;
}

.check-pass .check-icon {
    color: #22C55E;
    font-weight: 700;
}

.check-warn {
    background: #FFFBEB;
}

.check-warn .check-icon {
    color: #F59E0B;
    font-weight: 700;
}

/* Step 3: Report preview */
.mockup-report {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-header {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.report-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 4px;
    width: fit-content;
}

.report-badge--critical {
    background: #FEE2E2;
    color: #DC2626;
}

.report-badge--verified {
    background: #DCFCE7;
    color: #16A34A;
}

.report-line {
    height: 8px;
    background: #F3F4F6;
    border-radius: 4px;
}

.report-line--short {
    width: 60%;
}

.step-label {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: var(--font-body);
}

.step-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== SECURITY — Glassmorphic Vault ===== */
.security {
    background: var(--bg-accent);
    padding: var(--section-pad) 0;
    color: var(--text-on-dark);
    position: relative;
    overflow: hidden;
}

.security::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -15%;
    width: 50%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(168, 213, 162, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.security::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: -10%;
    width: 45%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

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

.security-intro {
    font-size: 17px;
    color: var(--text-on-dark-s);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-title--white em {
    color: var(--cta-mint);
    font-style: italic;
}

/* Central vault visual */
.security-vault {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin: 56px 0;
}

.vault-shield {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vault-shield > svg {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 24px rgba(168, 213, 162, 0.45));
}

.vault-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vault-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(168, 213, 162, 0.25);
    animation: vaultRingPulse 3.5s ease-in-out infinite;
}

.vault-ring--1 {
    width: 160px;
    height: 160px;
    animation-delay: 0s;
}

.vault-ring--2 {
    width: 200px;
    height: 200px;
    animation-delay: 0.7s;
    border-color: rgba(168, 213, 162, 0.15);
}

.vault-ring--3 {
    width: 244px;
    height: 244px;
    animation-delay: 1.4s;
    border-color: rgba(168, 213, 162, 0.07);
}

@keyframes vaultRingPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.04); }
}

.vault-stats {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px 0;
}

.vault-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 40px;
}

.vault-stat span {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 600;
    color: var(--cta-mint);
    line-height: 1;
}

.vault-stat label {
    font-size: 12px;
    color: var(--text-on-dark-s);
    text-align: center;
    line-height: 1.4;
    max-width: 90px;
}

.vault-divider {
    width: 1px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Glassmorphic security cards */
.security-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.security-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-card);
    padding: 40px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.security-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(168, 213, 162, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.security-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(168, 213, 162, 0.22);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 40px rgba(168, 213, 162, 0.07);
}

.security-card:hover::before {
    opacity: 1;
}

.security-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.security-card-icon--hipaa {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.security-card-icon--hipaa svg { stroke: #4ADE80; }

.security-card-icon--azure {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.22);
}

.security-card-icon--azure svg { stroke: #60A5FA; }

.security-card-icon--zero {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.22);
}

.security-card-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cta-mint);
    background: rgba(168, 213, 162, 0.1);
    border: 1px solid rgba(168, 213, 162, 0.22);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.security-card h3 {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 500;
    color: var(--text-on-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.security-card p {
    font-size: 15px;
    color: var(--text-on-dark-s);
    line-height: 1.7;
}

/* Compliance badge strip */
.security-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.sec-badge {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-on-dark);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    padding: 10px 20px;
    border-radius: 50px;
    letter-spacing: 0.02em;
    transition: background 0.2s, border-color 0.2s;
}

.sec-badge:hover {
    background: rgba(168, 213, 162, 0.13);
    border-color: rgba(168, 213, 162, 0.3);
}

/* ===== PRICING ===== */
.pricing {
    padding: var(--section-pad) 0;
    background: var(--bg-primary);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.toggle-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.toggle-label.active {
    color: var(--text-primary);
    font-weight: 600;
}

.toggle-switch {
    width: 52px;
    height: 28px;
    background: var(--bg-card);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

.toggle-switch.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-switch.active .toggle-knob {
    transform: translateX(24px);
}

.toggle-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-blue);
    background: rgba(79, 70, 229, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 48px 36px;
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.pricing-card--popular {
    border-color: var(--accent-blue);
    background: var(--bg-white);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 20px;
    border-radius: 20px;
}

.plan-name {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
}

.plan-tag {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.plan-price {
    margin-bottom: 28px;
}

.price {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 600;
    color: var(--text-primary);
}

.price-period {
    font-size: 16px;
    color: var(--text-secondary);
}

.btn-plan {
    width: 100%;
    justify-content: center;
    margin-bottom: 32px;
}

.plan-features li {
    font-size: 15px;
    color: var(--text-secondary);
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    padding-left: 24px;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: 700;
}

/* ===== FAQ ===== */
.faq {
    padding: var(--section-pad) 0;
    background: var(--bg-primary);
}

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

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 28px 0;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}

.faq-q:hover {
    color: var(--accent-blue);
}

.faq-toggle {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-secondary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 20px;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-a {
    max-height: 300px;
    padding-bottom: 28px;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-a p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-cta {
    text-align: center;
    margin-top: 60px;
}

.faq-cta p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ===== FINAL CTA ===== */
.final-cta {
    padding: var(--section-pad) 0;
    text-align: center;
    background: var(--bg-primary);
}

.final-headline {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.final-headline em {
    font-style: italic;
    color: var(--accent-blue);
}

.final-sub {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-note {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== FOOTER — LIGHT BG, OVERSIZED TEXT ===== */
.footer {
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.footer .container {
    display: flex;
    flex-direction: column;
}

/* -- Column Grid -- */
.footer-top {
    margin-bottom: 60px;
}

.footer-links-grid {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 40px;
}

.brand-col h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.brand-col p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 250px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 15px;
    color: var(--text-secondary);
    padding: 5px 0;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--text-primary);
}

/* -- Footer Nav (tagline + links) -- */
.footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-nav-tagline h3 {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.footer-scarcity {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 360px;
}

.footer-nav-links {
    display: flex;
    gap: 80px;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-col a {
    font-size: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 400;
}

.footer-nav-col a:hover {
    color: var(--text-primary);
}

/* -- Massive Typography -- */
.footer-massive {
    font-family: var(--font-display);
    font-size: 18vw;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 0.85;
    color: #2a2a2a;
    white-space: nowrap;
    margin: 0 0 0 -30px;
    padding: 0;
    user-select: none;
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    margin-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-bottom-left {
    justify-self: start;
}

.footer-bottom-center {
    justify-self: center;
    display: flex;
    align-items: center;
}

.footer-bottom-center svg {
    display: block;
}

.footer-bottom-right {
    justify-self: end;
}

/* ===== SECURITY DISCLAIMER ===== */
.security-disclaimer {
    margin-top: 32px;
    font-size: 13px;
    color: var(--text-on-dark-s);
    text-align: center;
    font-style: italic;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    :root {
        --section-pad: 100px;
    }

    .outcomes-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .stats-grid {
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 1 1 40%;
        padding: 32px 20px;
    }

    .stat-sep {
        display: none;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .security-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 80px;
    }

    body {
        font-size: 16px;
    }

    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        padding: 24px 32px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
        gap: 16px;
    }

    .nav-cta {
        margin-top: 8px;
        justify-content: center;
    }

    .hamburger {
        display: flex;
    }

    .outcomes-grid,
    .steps-grid,
    .security-cards {
        grid-template-columns: 1fr;
    }

    .vault-stats {
        flex-direction: column;
        padding: 24px;
        width: 100%;
        max-width: 320px;
    }

    .vault-stat {
        padding: 12px 0;
        width: 100%;
    }

    .vault-divider {
        width: 80%;
        height: 1px;
    }

    .workflow-diagram {
        margin-bottom: 60px;
    }

    .wf-node {
        width: 140px;
        padding: 12px 8px;
    }

    .wf-node--coordinator {
        width: 170px;
    }

    .wf-node--sm {
        width: 120px;
        padding: 10px 6px;
    }

    .wf-node-name {
        font-size: 12px;
    }

    .wf-node-sub {
        font-size: 10px;
    }

    .stats-banner {
        padding: 72px 0;
    }

    .stats-intro {
        margin-bottom: 48px;
    }

    .stat-item {
        flex: 1 1 40%;
        padding: 24px 12px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 14px 16px;
        font-size: 14px;
    }

    .footer-content {
        padding: 0 20px;
    }

    /* Footer Responsive Overrides */
    .footer-nav {
        flex-direction: column;
        gap: 48px;
    }

    .footer-nav-links {
        flex-direction: column;
        gap: 40px;
    }

    .footer-massive {
        font-size: 22vw;
        letter-spacing: -0.05em;
        margin-left: -5px;
    }

    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .footer-bottom-left,
    .footer-bottom-center,
    .footer-bottom-right {
        justify-self: auto;
    }

    .mission-visual {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-sub {
        margin: 0 auto 36px;
    }

    .hero-trust-strip {
        justify-content: center;
    }

    .hero-float-badge {
        right: 0;
        top: -12px;
    }

    .hero-ctas {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    :root {
        --section-pad: 60px;
    }

    .container {
        padding: 0 20px;
    }

    .outcome-card {
        padding: 32px 24px;
    }

    .stats-grid {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        flex: none;
        width: 100%;
        max-width: 340px;
        padding: 20px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-detail {
        max-width: none;
    }

    .stats-banner {
        padding: 52px 0;
    }

    .stats-intro {
        margin-bottom: 28px;
    }

    .stats-headline {
        font-size: clamp(24px, 7vw, 32px);
    }

    .stat-big {
        font-size: 48px;
    }
}

/* ===== Hero Scarcity Line ===== */
.hero-scarcity {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 14px;
    letter-spacing: 0.01em;
}

.hero-scarcity strong {
    color: #E8A04A;
    font-weight: 600;
}

/* ===== Testimonials ===== */
.testimonials {
    padding: var(--section-pad) 0;
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.testimonial-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: box-shadow 0.25s, transform 0.25s;
}

.testimonial-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.09);
    transform: translateY(-3px);
}

.testimonial-stars {
    color: #F59E0B;
    font-size: 15px;
    letter-spacing: 2px;
}

.testimonial-quote {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-primary);
    font-style: italic;
    flex: 1;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3D4F2F, #C8E64A);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-role {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== Modal ===== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-backdrop.modal-open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 44px 40px;
    max-width: 560px;
    width: 100%;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-backdrop.modal-open .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.15s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 8px;
}

.modal-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 32px);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 10px;
}

.modal-title em {
    font-style: italic;
}

.modal-sub {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.modal-header {
    margin-bottom: 28px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

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

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-group input,
.form-group select {
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input::placeholder {
    color: #aaa;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(61, 79, 47, 0.1);
    background: #fff;
}

.modal-submit {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
    text-align: center;
}

.modal-disclaimer {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 540px) {
    .modal-box {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}