/* =============================================================================
   Ghostrun Landing — Stylesheet

   Single-page styles for the Ghostrun product landing experience. Uses the
   warm-neutral palette inherited from the Revenant design system so the new
   site reads consistently against the rest of the product surface.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand accent (used sparingly for highlights / hover transitions) */
    --color-primary-500: #e14799;
    --color-primary-600: #d04784;

    /* Warm neutral surface system */
    --color-secondary-50: #f4f3ee;
    --color-secondary-100: #ebe8e0;
    --color-secondary-200: #ddd8ce;
    --color-secondary-300: #c8c1b4;
    --color-secondary-600: #6b5f4e;
    --color-secondary-900: #1a1612;

    --surface-white: #faf9f6;

    --primary: var(--color-secondary-900);
    --primary-gradient: linear-gradient(90deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
    --secondary: var(--color-secondary-600);
    --gray-50: var(--color-secondary-50);
    --gray-100: var(--color-secondary-100);
    --gray-200: var(--color-secondary-200);
    --gray-300: var(--color-secondary-300);
    --gray-400: #9c8e7a;
    --gray-900: var(--color-secondary-900);
    --brand-pink: var(--color-primary-500);

    --shadow-subtle: 0 1px 3px rgba(26, 22, 18, 0.06);
    --shadow-medium: 0 4px 12px rgba(26, 22, 18, 0.1);
    --shadow-large: 0 10px 30px rgba(26, 22, 18, 0.14);

    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
}

/* -----------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* -----------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 22, 18, 0.08);
    z-index: 1000;
    height: 72px;
    transition: all 0.2s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: inherit;
    transition: opacity 0.2s ease;
}

.nav-brand:hover { opacity: 0.8; }

.nav-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-company-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
    padding: 8px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-link:hover {
    color: var(--primary);
    text-decoration: none;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown-caret {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-caret,
.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    width: 300px;
    padding: 10px;
    background: var(--surface-white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    box-shadow: var(--shadow-large);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    transition: all 0.18s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
    background: var(--gray-50);
    color: var(--primary);
    outline: none;
}

.nav-login-btn {
    color: var(--primary);
    font-weight: 600;
}

.nav-cta-btn {
    background: var(--primary);
    color: white !important;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-cta-btn:hover {
    background: var(--color-primary-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

/* Mobile hamburger */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}
.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* -----------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary,
.btn-secondary {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    letter-spacing: -0.01em;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--surface-white);
    color: var(--secondary);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-primary.large {
    padding: 20px 40px;
    font-size: 18px;
}

.btn-icon {
    font-size: 16px;
}

/* -----------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    padding: 180px 0 100px;
    background:
        linear-gradient(to right, var(--gray-200) 0.5px, transparent 0.5px),
        linear-gradient(to bottom, var(--gray-200) 0.5px, transparent 0.5px),
        linear-gradient(135deg, #f4f3ee 0%, #ebe8e0 25%, #f4f3ee 50%, var(--surface-white) 100%);
    background-size:
        24px 24px,
        24px 24px,
        100% 100%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(26, 22, 18, 0.04);
    border: 1px solid rgba(26, 22, 18, 0.1);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 28px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.05;
    color: var(--primary);
    margin-bottom: 24px;
    letter-spacing: -0.04em;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--secondary);
    margin: 0 auto 40px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.01em;
    max-width: 760px;
}

.credibility-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 48px;
    max-width: 820px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-white);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    box-shadow: var(--shadow-subtle);
    transition: all 0.2s ease;
}

.chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.chip-icon { font-size: 16px; }

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

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.cta-note {
    font-size: 14px;
    color: var(--secondary);
}

.hero-product-shot {
    max-width: 1100px;
    margin: 72px auto 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(26, 22, 18, 0.08),
        0 30px 60px rgba(26, 22, 18, 0.12);
    border: 1px solid var(--gray-200);
}

.hero-product-shot img {
    display: block;
    width: 100%;
    height: auto;
}

/* -----------------------------------------------------------------------------
   Generic section header
   -------------------------------------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--secondary);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* -----------------------------------------------------------------------------
   Workspace section — the four "pillars" with screenshot
   -------------------------------------------------------------------------- */
.workspace-section {
    padding: 120px 0;
    background: var(--surface-white);
}

.workspace-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 64px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.workspace-copy h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 20px;
}

.workspace-copy > p {
    font-size: 1.1rem;
    color: var(--secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.workspace-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.workspace-pillar {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px 18px;
    transition: all 0.2s ease;
}

.workspace-pillar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--gray-300);
}

.workspace-pillar strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 4px;
    font-weight: 600;
}

.workspace-pillar span {
    font-size: 0.88rem;
    color: var(--secondary);
    line-height: 1.55;
}

.workspace-shot {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-large);
    border: 1px solid var(--gray-200);
}

.workspace-shot img {
    display: block;
    width: 100%;
}

/* -----------------------------------------------------------------------------
   Feature cards (Apps / Data Intel / Ghost / Workflows / Databases / Pages)
   -------------------------------------------------------------------------- */
.features-section {
    padding: 120px 0;
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--surface-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 96px;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
    border-color: var(--gray-300);
}

.feature-card .feature-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--gray-400);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.feature-card > p {
    color: var(--secondary);
    font-size: 0.97rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.feature-link {
    display: inline-block;
    margin-top: 6px;
    color: #6b46c1;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(124, 92, 255, 0.3);
    transition: border-color 160ms ease;
}

.feature-link:hover {
    border-bottom-color: #6b46c1;
}

.feature-card ul {
    list-style: none;
    margin-top: auto;
    padding: 0;
    border-top: 1px solid var(--gray-100);
    padding-top: 16px;
}

.feature-card li {
    color: var(--secondary);
    font-size: 0.88rem;
    line-height: 1.55;
    padding: 4px 0;
    position: relative;
    padding-left: 18px;
}

.feature-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--brand-pink);
    font-weight: 600;
}

/* -----------------------------------------------------------------------------
   Scroll theater — pinned screenshot + scrolling narrative
   -------------------------------------------------------------------------- */
.theater {
    padding: 140px 0;
    background: var(--surface-white);
}

.theater-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    margin-top: 64px;
}

.theater-visual {
    position: sticky;
    top: 108px;
    aspect-ratio: 16 / 10;
    min-height: 0;
}

.theater-shot {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(0.96) translateY(14px);
    transition: opacity .4s ease, transform .4s ease;
    pointer-events: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-large);
    border: 1px solid var(--gray-200);
    background: var(--surface-white);
}

.theater-shot.is-on {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.theater-shot img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.theater-steps {
    display: grid;
}

.theater-step {
    min-height: 72vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(26, 22, 18, .08);
}

.theater-step:last-child { border-bottom: none; }

.theater-copy {
    max-width: 520px;
    opacity: 0.45;
    transform: translateY(20px);
    transition: opacity .25s ease, transform .25s ease;
}

.theater-step.is-on .theater-copy {
    opacity: 1;
    transform: translateY(0);
}

.theater-index {
    color: var(--brand-pink);
    font-size: .75rem;
    letter-spacing: .12em;
    font-weight: 700;
    margin-bottom: 10px;
}

.theater-copy h3 {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.theater-copy p {
    color: var(--secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* -----------------------------------------------------------------------------
   Data Intelligence demo block
   -------------------------------------------------------------------------- */
.di-demo {
    padding: 120px 0;
    background: var(--gray-50);
}

.di-stage {
    max-width: 1080px;
    margin: 56px auto 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-large);
    border: 1px solid var(--gray-200);
}

.di-stage img {
    display: block;
    width: 100%;
    height: auto;
}

.typing-layer {
    position: absolute;
    left: 8%;
    top: 16%;
    width: 68%;
    z-index: 3;
    pointer-events: none;
}

.typing-shell {
    background: rgba(20, 20, 20, 0.78);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 14px 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    line-height: 1.5;
    backdrop-filter: blur(4px);
}

.typing-caret {
    display: inline-block;
    width: 8px;
    height: 1em;
    margin-left: 3px;
    background: #fff;
    vertical-align: -2px;
    animation: blink 0.8s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.typing-result {
    margin-top: 12px;
    background: rgba(250, 249, 246, 0.94);
    border: 1px solid rgba(26, 22, 18, 0.12);
    border-radius: 10px;
    color: var(--primary);
    padding: 10px 12px;
    font-size: 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.typing-result.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.di-agents {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.di-agent {
    background: var(--surface-white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 18px;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.di-agent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--gray-300);
}

.di-agent strong {
    display: block;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.di-agent span {
    color: var(--secondary);
    font-size: 0.82rem;
    line-height: 1.5;
}

.di-agent .di-agent-pipe {
    color: var(--accent, #6366f1);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(99, 102, 241, 0.08);
    padding: 4px 7px;
    border-radius: 6px;
    align-self: flex-start;
    line-height: 1.4;
}

.di-agent code {
    background: var(--gray-100);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.7rem;
    color: var(--primary);
}

.di-agents-note {
    margin: 28px auto 0;
    max-width: 880px;
    text-align: center;
    color: var(--secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    font-style: italic;
}

/* -----------------------------------------------------------------------------
   Data Intelligence — Auto-Dashboard Surface
   -------------------------------------------------------------------------- */
.di-surface {
    margin-top: 80px;
    padding-top: 56px;
    border-top: 1px solid var(--gray-200);
}

.section-eyebrow.centered {
    display: block;
    text-align: center;
    margin-bottom: 12px;
}

.di-surface-h {
    text-align: center;
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.di-surface-sub {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
    color: var(--secondary);
    font-size: 1rem;
    line-height: 1.65;
}

.di-surface-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 1080px;
    margin: 0 auto;
}

.di-surface-card {
    background: var(--surface-white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 24px;
    transition: all 0.2s ease;
}

.di-surface-card:hover {
    transform: translateY(-2px);
    border-color: var(--gray-300);
    box-shadow: var(--shadow-medium);
}

.di-surface-eyebrow {
    color: var(--accent, #6366f1);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 6px;
}

.di-surface-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.di-surface-card p {
    color: var(--secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 12px;
}

.di-surface-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--gray-100);
    padding-top: 12px;
}

.di-surface-card ul li {
    color: var(--secondary);
    font-size: 0.84rem;
    padding: 4px 0 4px 16px;
    position: relative;
    line-height: 1.5;
}

.di-surface-card ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent, #6366f1);
    font-weight: 600;
}

/* -----------------------------------------------------------------------------
   Data Intelligence — Scheduled Reports
   -------------------------------------------------------------------------- */
.di-reports {
    margin-top: 80px;
    padding-top: 56px;
    border-top: 1px solid var(--gray-200);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.di-reports-copy h3 {
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--primary);
    margin: 12px 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.di-reports-copy > p {
    color: var(--secondary);
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0 0 20px;
}

.di-reports-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.di-reports-list li {
    color: var(--secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    padding-left: 22px;
    position: relative;
}

.di-reports-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.di-reports-list strong {
    color: var(--primary);
    font-weight: 600;
}

.di-reports-list code {
    background: var(--gray-100);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--primary);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Faux email card visualization */
.di-reports-visual {
    display: flex;
    justify-content: center;
}

.di-report-email {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: var(--shadow-large);
    width: 100%;
    max-width: 420px;
}

.di-report-email-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 14px;
}

.di-report-email-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.88rem;
}

.di-report-email-date {
    color: var(--secondary);
    font-size: 0.72rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.di-report-email-metric {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--gray-100);
}

.di-report-email-metric:last-of-type {
    border-bottom: none;
    margin-bottom: 6px;
}

.di-metric-name {
    color: var(--secondary);
    font-size: 0.82rem;
}

.di-metric-value {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.di-metric-change {
    font-size: 0.72rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.di-metric-change.up { color: #10b981; }
.di-metric-change.down { color: #10b981; } /* down on a "stale" metric is good */

.di-report-email-narrative {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
    color: var(--secondary);
    font-size: 0.82rem;
    line-height: 1.6;
}

.di-report-email-action {
    margin-top: 10px;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.82rem;
}

/* -----------------------------------------------------------------------------
   Data Intelligence — Multi-Agent Chat wrapper
   -------------------------------------------------------------------------- */
.di-agents-wrap {
    margin-top: 80px;
    padding-top: 56px;
    border-top: 1px solid var(--gray-200);
}

/* -----------------------------------------------------------------------------
   Data Intelligence — Extras (record intelligence / clustering / multi-db / cross-app)
   -------------------------------------------------------------------------- */
.di-extras {
    margin-top: 80px;
    padding-top: 56px;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.di-extras-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.di-extra {
    background: var(--surface-white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 18px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.di-extra strong {
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 600;
}

.di-extra span {
    color: var(--secondary);
    font-size: 0.82rem;
    line-height: 1.55;
}

/* Responsive — Data Intelligence */
@media (max-width: 900px) {
    .di-agents {
        grid-template-columns: repeat(2, 1fr);
    }
    .di-surface-grid {
        grid-template-columns: 1fr;
    }
    .di-reports {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .di-extras-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .di-agents {
        grid-template-columns: 1fr;
    }
    .di-extras-grid {
        grid-template-columns: 1fr;
    }
    .di-surface-h,
    .di-reports-copy h3 {
        font-size: 1.4rem;
    }
}

/* -----------------------------------------------------------------------------
   Ghost Agent Section — workspace operator, plan mode, tools, surfaces
   -------------------------------------------------------------------------- */
.ghost-section {
    padding: 140px 0;
    background:
        radial-gradient(1100px 520px at 12% 0%, rgba(124, 92, 255, 0.10) 0%, transparent 60%),
        radial-gradient(900px 420px at 88% 100%, rgba(64, 196, 255, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, var(--surface-cream) 0%, var(--surface-white) 100%);
}

.ghost-intro {
    max-width: 820px;
    margin: 0 auto 72px;
    text-align: center;
}

.ghost-intro h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 16px 0 20px;
    color: var(--gray-900);
}

.ghost-intro p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray-600);
}

/* Differentiator strip — most copilots vs Ghost */
.ghost-diffs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto 96px;
}

.ghost-diff {
    background: var(--surface-white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: 32px 28px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.ghost-diff.is-ghost {
    border-color: rgba(124, 92, 255, 0.35);
    background:
        linear-gradient(180deg, rgba(124, 92, 255, 0.05) 0%, rgba(255, 255, 255, 1) 60%);
    box-shadow:
        0 1px 2px rgba(124, 92, 255, 0.06),
        0 12px 32px -16px rgba(124, 92, 255, 0.25);
}

.ghost-diff-h {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 18px;
}

.ghost-diff.is-ghost .ghost-diff-h {
    color: #6b46c1;
}

.ghost-diff ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ghost-diff ul li {
    position: relative;
    padding: 10px 0 10px 24px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.ghost-diff ul li:last-child {
    border-bottom: none;
}

.ghost-diff ul li::before {
    content: '✕';
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--gray-400);
    font-weight: 500;
}

.ghost-diff.is-ghost ul li::before {
    content: '→';
    color: #7c5cff;
    font-weight: 600;
}

/* Plan Mode — copy + animated plan card */
.plan-mode {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: start;
    margin: 0 auto 112px;
    max-width: 1180px;
}

.plan-mode-copy h3 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    margin: 16px 0 18px;
}

.plan-mode-copy > p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 36px;
}

.plan-mechanics {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.plan-mech {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 16px;
    align-items: start;
}

.plan-mech-num {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #7c5cff 0%, #5b3df0 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px -4px rgba(124, 92, 255, 0.5);
}

.plan-mech strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.plan-mech span {
    display: block;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--gray-600);
}

.plan-mech code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--gray-100);
    color: var(--gray-800);
}

/* Plan card visual — mirrors PlanCard.jsx structure */
.plan-mode-visual {
    position: sticky;
    top: 96px;
}

.plan-card {
    background: var(--surface-white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: 22px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 24px 48px -24px rgba(124, 92, 255, 0.25);
}

.plan-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.plan-card-icon {
    color: #7c5cff;
    font-size: 1.1rem;
}

.plan-card-title {
    flex: 1;
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--gray-900);
}

.plan-card-status {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.plan-card-progress {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gray-500);
    margin: 14px 0 6px;
}

.plan-card-bar {
    height: 4px;
    background: var(--gray-100);
    border-radius: 999px;
    overflow: hidden;
}

.plan-card-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c5cff 0%, #5b3df0 100%);
    border-radius: 999px;
}

.plan-card-steps {
    display: flex;
    flex-direction: column;
    margin: 18px 0 14px;
}

.plan-card-step {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--gray-100);
    align-items: start;
}

.plan-card-step:last-child {
    border-bottom: none;
}

.plan-card-step .step-num {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    flex-shrink: 0;
}

.plan-card-step.done .step-num {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.plan-card-step.active .step-num {
    background: rgba(124, 92, 255, 0.18);
    color: #6b46c1;
    animation: plan-step-pulse 1.6s ease-in-out infinite;
}

.plan-card-step.pending .step-num {
    background: var(--gray-100);
    color: var(--gray-500);
}

@keyframes plan-step-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.45); }
    50% { box-shadow: 0 0 0 6px rgba(124, 92, 255, 0); }
}

.plan-card-step .step-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-900);
    line-height: 1.35;
    margin-bottom: 2px;
}

.plan-card-step.pending .step-label {
    color: var(--gray-600);
}

.plan-card-step .step-meta {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gray-500);
    line-height: 1.35;
}

.plan-card-controls {
    display: flex;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-100);
}

.plan-card-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background: var(--surface-white);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 160ms ease;
}

.plan-card-btn.pause:hover {
    border-color: #f59e0b;
    color: #b45309;
    background: rgba(245, 158, 11, 0.05);
}

.plan-card-btn.cancel:hover {
    border-color: #ef4444;
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.05);
}

/* What Ghost can do — capability grid */
.ghost-tools {
    max-width: 1180px;
    margin: 0 auto 112px;
    text-align: center;
}

.ghost-tools-h {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    margin: 14px 0 16px;
}

.ghost-tools-sub {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--gray-600);
    max-width: 720px;
    margin: 0 auto 56px;
}

.ghost-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    text-align: left;
}

.ghost-tool-cat {
    background: var(--surface-white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 24px 22px;
    transition: all 220ms ease;
}

.ghost-tool-cat:hover {
    border-color: rgba(124, 92, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -16px rgba(124, 92, 255, 0.3);
}

.ghost-tool-cat h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 10px;
}

.ghost-tool-tier {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 5px;
    margin-bottom: 16px;
}

.ghost-tool-tier.tier-read {
    background: rgba(64, 196, 255, 0.14);
    color: #0369a1;
}

.ghost-tool-tier.tier-write {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.ghost-tool-cat ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ghost-tool-cat ul li {
    position: relative;
    padding: 10px 0 10px 18px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.ghost-tool-cat ul li:last-child {
    border-bottom: none;
}

.ghost-tool-cat ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 9px;
    color: #7c5cff;
    font-weight: 700;
}

.ghost-tool-cat ul li strong {
    color: var(--gray-900);
    font-weight: 600;
}

.ghost-tool-cat ul li code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--gray-100);
    color: var(--gray-800);
}

/* Five surfaces */
.ghost-surfaces {
    max-width: 1180px;
    margin: 0 auto 96px;
    text-align: center;
}

.ghost-surfaces-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 48px;
    text-align: left;
}

.ghost-surface {
    background: var(--surface-white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 22px 18px;
    transition: all 220ms ease;
}

.ghost-surface:hover {
    border-color: rgba(124, 92, 255, 0.4);
    transform: translateY(-2px);
}

.ghost-surface strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.ghost-surface span {
    display: block;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--gray-600);
}

/* Closing positioning grid */
.ghost-closing {
    max-width: 1080px;
    margin: 0 auto;
    padding: 56px 48px;
    background: var(--surface-white);
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.ghost-closing h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    text-align: center;
    margin: 0 0 40px;
}

.ghost-closing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 48px;
}

.ghost-closing strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    color: #6b46c1;
    margin-bottom: 8px;
}

.ghost-closing p {
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--gray-700);
    margin: 0;
}

/* Responsive — Ghost section */
@media (max-width: 1024px) {
    .plan-mode {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .plan-mode-visual {
        position: static;
        max-width: 520px;
        margin: 0 auto;
    }

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

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

@media (max-width: 720px) {
    .ghost-section {
        padding: 96px 0;
    }

    .ghost-diffs {
        grid-template-columns: 1fr;
        margin-bottom: 72px;
    }

    .ghost-tools-grid,
    .ghost-surfaces-grid,
    .ghost-closing-grid {
        grid-template-columns: 1fr;
    }

    .ghost-closing {
        padding: 40px 28px;
    }

    .plan-mech {
        grid-template-columns: 32px 1fr;
        gap: 14px;
    }
}

/* -----------------------------------------------------------------------------
   Integrations
   -------------------------------------------------------------------------- */
.integrations-section {
    padding: 120px 0;
    background: var(--surface-white);
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1080px;
    margin: 56px auto 0;
}

.integration-cat {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 22px 24px;
    transition: all 0.2s ease;
}

.integration-cat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--gray-300);
}

.integration-cat h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--gray-400);
    margin-bottom: 10px;
}

.integration-cat p {
    color: var(--primary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* -----------------------------------------------------------------------------
   Security
   -------------------------------------------------------------------------- */
.security-section {
    padding: 120px 0;
    background: var(--gray-50);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1080px;
    margin: 56px auto 0;
}

.security-card {
    background: var(--surface-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.25s ease;
}

.security-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.security-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 22, 18, 0.05);
    border-radius: 10px;
    color: var(--primary);
}

.security-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.security-card h4 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.security-card p {
    color: var(--secondary);
    font-size: 0.93rem;
    line-height: 1.65;
}

/* -----------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq {
    padding: 120px 0;
    background: var(--surface-white);
}

.faq-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-image-column {
    background: url("../img/office3.jpg");
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    min-height: 600px;
}

.faq-content-column {
    background: var(--surface-white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--gray-200);
}

.faq-accordion { width: 100%; }

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
    transition: all 0.2s ease;
    background: var(--surface-white);
}

.faq-item:hover { box-shadow: var(--shadow-subtle); }

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    font-family: inherit;
}

.faq-question:hover { background: var(--gray-50); }

.faq-question h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.faq-icon {
    color: var(--secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
    font-size: 13px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    transition: max-height 0.45s ease-in;
}

.faq-content {
    padding: 0 24px 24px 24px;
}

.faq-content p {
    color: var(--secondary);
    line-height: 1.7;
    margin: 0;
    font-size: 0.97rem;
}

/* -----------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.cta {
    padding: 120px 0;
    background: var(--gray-50);
}

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

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.cta-content > p {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 40px;
    line-height: 1.5;
}

.cta-steps {
    display: flex;
    gap: 28px;
    justify-content: center;
    margin-bottom: 44px;
    flex-wrap: wrap;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cta-step {
    flex: 1;
    min-width: 220px;
    text-align: center;
}

.cta-step-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.cta-step p {
    color: var(--secondary);
    font-size: 0.98rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.cta-guarantee {
    font-size: 14px;
    color: var(--secondary);
    font-style: italic;
}

/* -----------------------------------------------------------------------------
   Contact form modal
   -------------------------------------------------------------------------- */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 22, 18, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.contact-modal.show {
    opacity: 1;
    visibility: visible;
}

.contact-modal-content {
    position: relative;
    background: var(--surface-white);
    border-radius: var(--radius-lg);
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(26, 22, 18, 0.25);
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.contact-modal.show .contact-modal-content {
    transform: translateY(0);
}

.contact-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary);
    z-index: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.contact-modal-close:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.contact-form-container { padding: 20px; }
.contact-form-container iframe {
    display: block;
    width: 100%;
    min-height: 600px;
}

/* -----------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--primary);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .nav-brand { margin-bottom: 16px; }
.footer-brand .nav-logo { width: 32px; height: 32px; }
.footer-brand .nav-company-name { color: white; }

.footer-brand p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    max-width: 360px;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s ease;
    cursor: pointer;
}

.footer-section a:hover { color: white; }

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 14px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-legal a:hover { color: white; }

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* -----------------------------------------------------------------------------
   Legal content pages
   -------------------------------------------------------------------------- */
.legal-page {
    padding: 160px 0 80px;
    background: var(--gray-50);
    min-height: 80vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface-white);
    padding: 56px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.legal-content .legal-meta {
    color: var(--secondary);
    font-size: 0.95rem;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 36px 0 16px;
    line-height: 1.3;
}

.legal-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin: 24px 0 12px;
}

.legal-content p,
.legal-content li {
    color: var(--secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}

.legal-content ul {
    margin: 16px 0 24px;
    padding-left: 24px;
}

.legal-content strong { color: var(--primary); font-weight: 600; }

/* -----------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .integrations-grid { grid-template-columns: repeat(2, 1fr); }
    .security-grid { grid-template-columns: repeat(2, 1fr); }
    .di-agents { grid-template-columns: repeat(2, 1fr); }
    .workspace-layout { grid-template-columns: 1fr; gap: 48px; }
    .workspace-pillars { grid-template-columns: 1fr 1fr; }

    .theater-wrap { grid-template-columns: 1fr; gap: 32px; }
    .theater-visual {
        position: relative;
        top: 0;
        aspect-ratio: 16 / 10;
        margin-bottom: 24px;
    }
    .theater-step { min-height: 52vh; }
}

@media (max-width: 968px) {
    .mobile-menu-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--surface-white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 24px;
        box-shadow: 0 4px 12px rgba(26, 22, 18, 0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        border-bottom: 1px solid var(--gray-200);
        z-index: 999;
    }

    .nav-links.active {
        max-height: 900px;
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 16px 0;
        text-align: center;
        border-bottom: 1px solid var(--gray-100);
        font-size: 16px;
    }

    .nav-dropdown {
        width: 100%;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: center;
        border-bottom: none;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        max-height: 0;
        padding: 0;
        border: 0;
        border-radius: 12px;
        box-shadow: none;
        background: var(--gray-50);
        opacity: 1;
        visibility: visible;
        overflow: hidden;
        transform: none;
        transition: max-height 0.2s ease, padding 0.2s ease;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        max-height: 520px;
        padding: 8px;
        transform: none;
    }

    .nav-dropdown .nav-dropdown-caret {
        transform: none;
    }

    .nav-dropdown.open .nav-dropdown-caret {
        transform: rotate(180deg);
    }

    .nav-dropdown-menu a {
        padding: 11px 12px;
        text-align: center;
    }

    .nav-link:last-child { border-bottom: none; }

    .nav-cta-btn {
        margin-top: 16px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero { padding: 140px 0 80px; }
    .hero-content h1 { font-size: 2.6rem; }
    .hero-subtitle { font-size: 1.15rem; }

    .section-header h2 { font-size: 2.1rem; }
    .workspace-section, .features-section, .theater, .di-demo,
    .integrations-section, .security-section, .faq, .cta {
        padding: 80px 0;
    }

    .workspace-copy h2 { font-size: 1.8rem; }

    .workspace-pillars { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .integrations-grid { grid-template-columns: 1fr; }
    .security-grid { grid-template-columns: 1fr; }
    .di-agents { grid-template-columns: 1fr; }

    .theater-copy h3 { font-size: 1.6rem; }
    .theater-step { min-height: 42vh; }

    .faq-columns { grid-template-columns: 1fr; }
    .faq-image-column { min-height: 280px; }

    .cta-content h2 { font-size: 2.1rem; }
    .cta-steps { gap: 20px; }

    .footer-content { grid-template-columns: 1fr; gap: 36px; }

    .legal-content { padding: 32px 24px; }
    .legal-content h1 { font-size: 1.9rem; }
}

/* Hide typing layer on small screens — looks cramped over screenshot */
@media (max-width: 900px) {
    .typing-layer { display: none; }
}
