:root {
    --navy-950: #040d1c;
    --navy-900: #071a33;
    --navy-800: #0d2a4d;
    --navy-700: #173d69;
    --gold-500: #d4af37;
    --gold-400: #e8c760;
    --silver-200: #d8dee7;
    --silver-100: #eef2f7;
    --white: #ffffff;
    --ink-900: #0f1727;
    --ink-700: #334155;
    --ink-500: #5b6b80;
    --border-soft: rgba(157, 174, 197, 0.35);
    --shadow-soft: 0 14px 30px rgba(4, 13, 28, 0.16);
    --shadow-card: 0 8px 20px rgba(4, 13, 28, 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --section-title-size: clamp(30px, 3.1vw, 36px);
    --section-title-weight: 700;
    --section-title-line: 1.14;
    --section-title-max-width: 22ch;
    --report-card-title-size: clamp(22px, 2.2vw, 26px);
    --report-card-title-line: 1.2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    line-height: 1.62;
    color: var(--ink-700);
    background:
        radial-gradient(circle at 18% 0%, rgba(212, 175, 55, 0.12), transparent 34%),
        radial-gradient(circle at 82% 8%, rgba(25, 61, 105, 0.38), transparent 36%),
        linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 30%, #e2e9f2 100%);
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--navy-900);
    line-height: 1.14;
}

h1 { font-size: clamp(42px, 4.3vw, 54px); letter-spacing: 0.01em; }
h2 { font-size: clamp(30px, 3.1vw, 36px); }
h3 { font-size: clamp(22px, 2.2vw, 26px); }
h4 { font-size: 20px; }
small, .micro { font-size: 13px; }
p { font-size: 17px; }

.container, .nav-container { width: min(1200px, calc(100% - 2.8rem)); margin: 0 auto; }
section { padding: calc(var(--space-5) + var(--space-2)) 0; }

.header {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(4, 13, 28, 0.92);
    border-bottom: 1px solid rgba(66, 96, 138, 0.5);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0;
}
.logo-spacer { width: clamp(220px, 25vw, 370px); height: 1px; }

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-menu a {
    color: #dce6f5;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 700;
}
.nav-menu a:hover { color: var(--gold-400); }

.hamburger { display: none; }

.cta-button,
.video-button,
.sample-open-button,
.flipbook-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-950);
    border: 1px solid #be9a2c;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    padding: 0.8rem 1.3rem;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.28);
    transition: transform 0.18s ease, filter 0.18s ease;
    cursor: pointer;
}
.cta-button:hover,
.video-button:hover,
.sample-open-button:hover,
.flipbook-control:hover { transform: translateY(-2px); filter: brightness(1.04); }
.cta-button.large { padding: 0.95rem 1.6rem; }
.tertiary-link {
    color: var(--silver-200);
    text-decoration: underline;
    text-decoration-color: rgba(232, 199, 96, 0.75);
    text-underline-offset: 0.25rem;
    font-weight: 700;
}

.logo-overlap-container {
    position: relative;
    width: min(1200px, calc(100% - 2.8rem));
    margin: 0 auto;
    height: 0;
    z-index: 1300;
}
.logo-overlap {
    position: absolute;
    top: -72px;
    left: -52px;
    height: clamp(146px, 18vw, 220px);
    width: auto;
    filter: drop-shadow(0 10px 20px rgba(8, 18, 31, 0.42));
    pointer-events: none;
}

.tagline-banner {
    text-align: center;
    color: #f7f9fc;
    background: linear-gradient(95deg, #071428, #0b2039);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 2.3vw, 1.8rem);
    font-weight: 700;
    padding: 2.4rem 1rem 1rem;
}

.early-adopter-card-wrapper {
    width: min(520px, calc(100% - 2.4rem));
    margin: var(--space-4) auto var(--space-4);
}
.early-adopter-card {
    background: linear-gradient(145deg, #ffffff, #f0f3f7);
    border: 1px solid var(--border-soft);
    border-top: 3px solid var(--gold-500);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: var(--space-2) var(--space-3);
}
.early-adopter-heading-row { display: flex; align-items: center; gap: 0.8rem; }
.early-adopter-heading { margin: 0; font-size: clamp(1rem, 1.8vw, 1.35rem); }
.early-adopter-subtext {
    margin-top: var(--space-1);
    font-size: 0.87rem;
    color: var(--ink-700);
    line-height: 1.55;
}

.early-adopter-tooltip-wrap { position: relative; display: inline-flex; }
.early-adopter-info-trigger {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #b88f20;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-950);
    font-size: 0.73rem;
    font-weight: 800;
    cursor: pointer;
}
.early-adopter-tooltip {
    position: absolute;
    top: 120%;
    left: 50%;
    width: min(640px, calc(100vw - 2rem));
    max-height: min(60vh, 420px);
    background: #ffffff;
    color: var(--ink-700);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    padding: 0.7rem 0.8rem;
    font-size: 0.88rem;
    line-height: 1.45;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 20;
}
.early-adopter-tooltip-wrap.is-open .early-adopter-tooltip,
.early-adopter-tooltip.tooltip--visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.page-section { display: block; }
.page-section.active { display: block; }

.hero-section { padding: 6rem 0 5rem; }
.hero-content {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2.4rem;
    align-items: center;
}
.hero-text h1 {
    color: var(--gold-500);
    text-shadow: 0 2px 10px rgba(5, 12, 24, 0.45);
}
.hero-text p {
    color: #c8d2df;
    max-width: 58ch;
    margin-top: 1rem;
    font-size: 18px;
}
.hero-buttons {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.hero-image {
    position: relative;
    background: linear-gradient(155deg, #ffffff, #eef2f7);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 0.65rem;
    overflow: visible;
}
.dashboard-image {
    width: 92%;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(9, 20, 37, 0.35);
}
.dashboard-image-secondary {
    position: absolute;
    width: 52%;
    right: -1.2rem;
    bottom: -1.4rem;
    border-radius: 12px;
    border: 1px solid rgba(208, 214, 223, 0.9);
    box-shadow: 0 12px 28px rgba(4, 11, 24, 0.42);
    background: #0a1528;
}

.use-cases-section {
    background: linear-gradient(180deg, rgba(245, 248, 252, 0.97), rgba(238, 243, 249, 0.97));
    border-top: 1px solid rgba(126, 145, 171, 0.26);
    border-bottom: 1px solid rgba(126, 145, 171, 0.26);
}
.section-title,
.ds-section-title {
    text-align: center;
    color: var(--navy-900);
    font-size: var(--section-title-size);
    font-weight: var(--section-title-weight);
    line-height: var(--section-title-line);
    max-width: var(--section-title-max-width);
    margin: 0 auto var(--space-2);
}
.section-subtitle {
    text-align: center;
    color: var(--ink-500);
    max-width: 78ch;
    margin: 0 auto var(--space-5);
}

.use-cases-grid,
.deliverables-grid,
.features-grid,
.sample-preview-grid,
.footer-content,
.proof-bar {
    display: grid;
    gap: var(--space-3);
}
.use-cases-grid,
.deliverables-grid,
.features-grid,
.sample-preview-grid,
.proof-bar {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: stretch;
}
.use-cases-grid { margin-top: var(--space-3); }
.use-cases-grid > * { grid-column: span 3; }
.deliverables-grid { margin-top: var(--space-3); }
.deliverables-grid > * { grid-column: span 6; }
.features-grid > * { grid-column: span 6; }
.sample-preview-grid > * { grid-column: span 4; }
.proof-bar { margin-top: var(--space-5); }
.proof-bar > * { grid-column: span 4; }
.footer-content { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }

.use-case-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.use-case-card h3 {
    font-size: clamp(24px, 2.2vw, 28px);
    line-height: 1.2;
    max-width: 17ch;
    min-height: calc(2 * 1.2em);
}

.use-case-card p {
    line-height: 1.62;
    margin-top: auto;
}

.use-case-card,
.deliverable-card,
.feature-card,
.sample-preview-card,
.founder-card,
.flipbook-dialog,
.final-cta-section,
.proof-pill {
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.use-case-card,
.deliverable-card,
.feature-card,
.sample-preview-card,
.founder-card,
.proof-pill,
.final-cta-section {
    padding: var(--space-4);
}

.report-card {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.report-card-title {
    font-size: var(--report-card-title-size);
    line-height: var(--report-card-title-line);
    max-width: 22ch;
}

.report-card-description {
    color: var(--ink-700);
    line-height: 1.62;
}

.report-card-cta {
    margin-top: auto;
}

.deliverables-showcase {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-3);
    align-items: start;
}

.showcase-header {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.showcase-header h3 {
    margin-bottom: var(--space-2);
}

.showcase-header p {
    max-width: 82ch;
    margin: 0 auto;
    line-height: 1.66;
}

.platform-workflow {
    grid-column: 1 / 8;
    margin-top: 0;
}

.platform-outcomes {
    grid-column: 8 / -1;
    margin-top: 0;
    min-height: 100%;
}

.deliverables-grid {
    grid-column: 1 / -1;
    margin-top: var(--space-2);
}

.deliverable-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.deliverable-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    margin-bottom: 0;
}

.deliverable-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.deliverable-title h4 {
    font-size: clamp(25px, 2.2vw, 31px);
    line-height: 1.14;
    font-weight: 700;
    color: var(--navy-900);
}

.deliverable-card > p {
    margin-top: 2px;
    line-height: 1.64;
    color: var(--silver-200);
}

.deliverable-features {
    margin-top: 0;
    margin-bottom: var(--space-1);
}

.use-case-icon,
.feature-icon,
.deliverable-icon,
.workflow-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-2);
    color: #8d6b16;
    background: linear-gradient(130deg, #faf4e0, #fff8e7);
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.platform-supporting { font-size: 14px; color: var(--ink-500); margin-top: 0.3rem; }
.platform-workflow {
    margin-top: var(--space-3);
    display: grid;
    grid-template-columns: 1fr 0.2fr 1fr 0.2fr 1fr;
    align-items: center;
    gap: var(--space-2);
    background: #f8fbff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: var(--space-2);
}
.platform-outcomes {
    margin-top: var(--space-2);
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: var(--space-2);
}
.platform-outcomes h4 { color: var(--navy-800); margin-bottom: 0.35rem; }
.workflow-step {
    text-align: center;
    padding: 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(146, 163, 188, 0.33);
    background: #fff;
}
.workflow-step h4 { font-size: 18px; color: var(--navy-800); }
.workflow-arrow {
    height: 2px;
    background: linear-gradient(90deg, rgba(212,175,55,0), rgba(212,175,55,0.95), rgba(212,175,55,0));
}

.deliverable-badge,
.sample-preview-tag,
.flipbook-badge {
    display: inline-block;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.13);
    color: #7d5d14;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.28rem 0.58rem;
}
.deliverable-features { padding-left: 1rem; margin-top: 0.55rem; }
.deliverable-features li { margin-bottom: var(--space-1); font-size: 0.96rem; }
.founder-card h3 { margin-top: 0.8rem; }
.mini-link {
    display: inline-block;
    margin-top: 0.4rem;
    color: var(--navy-700);
    font-weight: 700;
    text-decoration: underline;
}

.proof-pill { text-align: center; }
.value-metrics,
.proof-bar {
    align-items: stretch;
}

.value-metric,
.proof-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-1);
    min-height: 100%;
}

.value-metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8d6b16;
    background: linear-gradient(130deg, #faf4e0, #fff8e7);
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.proof-value {
    display: block;
    font-size: clamp(28px, 2.8vw, 36px);
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.15;
    min-height: 2.35em;
    max-width: 14ch;
}
.proof-label {
    display: block;
    color: var(--gold-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 13px;
    font-weight: 800;
}
.proof-pill p { margin-top: 0.35rem; font-size: 14px; }

.cta-section,
.final-cta-section {
    margin-top: var(--space-5);
    text-align: center;
    background: linear-gradient(145deg, #ffffff, #f1f6fc);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
}
.cta-section h3,
.final-cta-section h3 {
    color: var(--navy-900);
    font-size: clamp(31px, 2.9vw, 38px);
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: var(--space-2);
}

.cta-section p,
.final-cta-section p {
    max-width: 66ch;
    margin: 0 auto var(--space-3);
}

.cta-support-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-3);
    padding: 0;
}

.cta-support-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: #fff;
    color: var(--ink-700);
    font-size: 0.85rem;
    font-weight: 700;
}

.about-section,
.features-section,
.sample-preview-section { background: transparent; }

.flipbook-modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(16, 20, 30, 0.65);
    z-index: 3000;
    padding: 1rem;
}
.flipbook-modal.open, .flipbook-modal.is-open { display: grid; }
.flipbook-dialog { width: min(1120px, 96vw); height: min(93vh, 940px); display: flex; flex-direction: column; overflow: hidden; }
.flipbook-dialog.layout-portrait { width: min(980px, 95vw); }
.flipbook-dialog.layout-landscape { width: min(1320px, 98vw); }
.flipbook-header,
.flipbook-toolbar {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border-soft);
    background: linear-gradient(130deg, #f7f9fc, #eff3f8);
}
.flipbook-header { display: flex; justify-content: space-between; align-items: center; }
.flipbook-close {
    border: none;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    color: var(--ink-700);
    cursor: pointer;
}
.flipbook-toolbar { display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; }
.flipbook-meta, .flipbook-controls { display: flex; align-items: center; gap: 0.6rem; }
.flipbook-stage { position: relative; flex: 1; min-height: 420px; background: #f0f3f8; padding: 0.8rem 2.2rem; }
.flipbook-viewport { height: 100%; overflow: auto; display: flex; align-items: flex-start; justify-content: center; }
.flipbook-book { transform-origin: top center; width: 100%; }
.flipbook-sheet {
    position: relative;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(8, 20, 40, 0.18);
}
.flipbook-dialog.layout-landscape .flipbook-sheet { margin-top: 0.1rem; }
.flipbook-dialog.layout-portrait .flipbook-sheet { margin-top: 0.25rem; }
.flipbook-sheet img,
.flipbook-frame {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}
.flipbook-frame { background: #ffffff; }
.flipbook-loading,
.flipbook-empty {
    margin: 1rem auto;
    width: min(760px, 100%);
    padding: 1rem;
    border-radius: 10px;
    border: 1px dashed var(--border-soft);
    background: #fff;
    color: var(--ink-700);
}
.flipbook-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid #b88f20;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-950);
    border-radius: 999px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(212, 175, 55, 0.34);
}
.flipbook-nav:hover { filter: brightness(0.9); }
.flipbook-nav.prev { left: 0.5rem; }
.flipbook-nav.next { right: 0.5rem; }

.footer {
    margin-top: 4.4rem;
    padding: 2.3rem 0 1rem;
    background: linear-gradient(95deg, #0a1b31, #142f53);
    color: #e3ebf6;
}
.footer h4 { color: #f6f8fb; margin-bottom: 0.5rem; }
.footer p,
.footer a { color: #d6deea; text-decoration: none; font-size: 0.95rem; }
.footer a:hover { color: var(--gold-400); }
.copyright { border-top: 1px solid rgba(214, 221, 232, 0.2); margin-top: 1rem; padding-top: 0.8rem; }
.disclaimer-footer {
    background: #091221;
    color: #d7deea;
    font-size: 0.9rem;
    padding: 1rem 0 1.4rem;
}
.disclaimer-footer p { color: #d7deea; margin-bottom: 0.5rem; }

.local-workflow-link { display: none; }
body.local-env .local-workflow-link { display: inline-flex; }

@media (max-width: 1100px) {
    .hero-content { grid-template-columns: 1fr; }
    .dashboard-image { width: 100%; }
    .dashboard-image-secondary {
        position: relative;
        right: auto;
        bottom: auto;
        width: 88%;
        margin: 0.6rem auto 0;
    }
    .use-cases-grid > * { grid-column: span 6; }
    .sample-preview-grid > * { grid-column: span 6; }
    .proof-bar > * { grid-column: span 6; }
    .platform-workflow,
    .platform-outcomes,
    .deliverables-grid { grid-column: 1 / -1; }
    .platform-outcomes { min-height: 0; }
}

@media (max-width: 800px) {
    section { padding: var(--space-5) 0; }
    .nav-container { align-items: flex-start; }
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
        margin-top: 0.6rem;
    }
    .hamburger span {
        width: 24px;
        height: 3px;
        background: #dce6f5;
        border-radius: 2px;
    }
    .nav-menu {
        position: absolute;
        top: calc(100% + 1px);
        right: 1rem;
        background: #0d1f37;
        border: 1px solid rgba(97, 127, 170, 0.44);
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-soft);
        width: min(92vw, 320px);
        padding: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
        display: none;
    }
    .nav-menu.open { display: flex; }
    .logo-overlap { left: 50%; transform: translateX(-57%); top: -66px; height: clamp(112px, 23vw, 164px); }
    .tagline-banner { padding-top: 2.8rem; }
    .early-adopter-card-wrapper {
        width: min(520px, calc(100% - 2.4rem));
        margin: var(--space-3) auto;
    }
    .platform-workflow {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }
    .workflow-arrow { height: 18px; width: 2px; margin: 0 auto; }
    .use-cases-grid > *,
    .deliverables-grid > *,
    .features-grid > *,
    .sample-preview-grid > *,
    .proof-bar > * { grid-column: span 12; }
    .use-case-card h3 {
        min-height: 0;
        max-width: none;
    }
    .deliverable-title h4 {
        font-size: clamp(22px, 7.8vw, 29px);
    }
    .proof-value {
        min-height: 0;
        max-width: none;
    }
    .footer-content { grid-template-columns: 1fr; }
    .flipbook-dialog,
    .flipbook-dialog.layout-landscape,
    .flipbook-dialog.layout-portrait { width: 96vw; }
    .flipbook-stage { padding: 0.75rem 1.8rem; }
}
