/* =================================================================
   TIBR ENTERPRISE — Brand design system
   Family resemblance to TibrAI: Figtree, brand-orange, dark glassy
   gradient surfaces, subtle grid + orange glow, premium enterprise feel.
   ================================================================= */

:root {
    /* Brand */
    --brand: #ff6a2a;
    --brand-hover: #f1592a;
    --brand-deep: #f15a16;
    --brand-accent: #ff7a3f;
    --brand-soft: rgba(255, 106, 42, 0.12);

    /* Dark surfaces */
    --bg-0: #0a0a0a;
    --bg-1: #0f1117;
    --bg-2: #131722;
    --navy: #0b1220;

    /* Light surfaces */
    --paper: #ffffff;
    --paper-2: #f7f8fa;
    --paper-3: #eef1f5;

    /* Ink */
    --ink-900: #0f172a;
    --ink-700: #334155;
    --ink-500: #64748b;
    --ink-400: #94a3b8;

    /* Lines */
    --line: #e2e8f0;
    --line-dark: rgba(255, 255, 255, 0.08);

    --radius: 16px;
    --radius-sm: 12px;
    --radius-lg: 24px;
    --maxw: 1200px;
    --shadow-glow: 0 8px 30px rgba(241, 90, 22, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Figtree', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink-900);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Section rhythm ---------- */
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.section-tight { padding: 3rem 0; }

.eyebrow {
    display: inline-block;
    color: var(--brand);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.eyebrow-line::before {
    content: '';
    display: inline-block;
    width: 28px; height: 2px;
    background: var(--brand);
    vertical-align: middle;
    margin-right: 0.6rem;
    border-radius: 2px;
}

.h-display { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800; }
.h-section { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; }
.lead { font-size: 1.18rem; color: var(--ink-500); line-height: 1.7; }
.muted { color: var(--ink-500); }
.text-brand { color: var(--brand); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.measure { max-width: 720px; }
.measure-sm { max-width: 560px; }

/* =================================================================
   DARK SURFACE (hero / feature spotlights / footer)
   ================================================================= */
.dark {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #11131b 50%, #0b1220 100%);
    color: #fff;
    overflow: hidden;
}
.dark .lead, .dark .muted { color: #9aa3b2; }
.dark .eyebrow { color: var(--brand-accent); }

/* Subtle grid + orange glow */
.dark .grid-bg {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, #000 40%, transparent 100%);
            mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, #000 40%, transparent 100%);
}
.dark .glow {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse at 18% 22%, rgba(255, 106, 42, 0.16) 0%, transparent 46%),
        radial-gradient(ellipse at 84% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 42%);
}
.dark > .container, .dark > .container-wide { position: relative; z-index: 1; }

/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
    display: inline-flex; align-items: center; gap: 0.55rem;
    padding: 0.9rem 1.6rem;
    border-radius: 0.65rem;
    font-weight: 600; font-size: 1rem;
    cursor: pointer; border: 1px solid transparent;
    transition: transform .16s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
    white-space: nowrap;
}
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
    box-shadow: 0 6px 20px rgba(241, 90, 22, 0.30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(241, 90, 22, 0.42); }

.btn-ghost-light {
    color: #e6e9ef;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.35); color: #fff; }

.btn-outline {
    color: var(--brand);
    border-color: rgba(241, 89, 42, 0.5);
    background: #fff;
}
.btn-outline:hover { background: var(--brand-soft); border-color: var(--brand); }

.btn-lg { padding: 1.05rem 2rem; font-size: 1.06rem; }
.btn-block { width: 100%; justify-content: center; }

/* =================================================================
   NAVBAR
   ================================================================= */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 10, 12, 0.72);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nav-inner {
    max-width: 1320px; margin: 0 auto; padding: 0.85rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { width: 38px; height: 38px; }
.brand-name { color: #fff; font-weight: 800; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand-name span { color: var(--brand); }
.brand-sub {
    color: #8a93a3; font-weight: 600; font-size: 0.62rem; letter-spacing: 0.22em;
    text-transform: uppercase; margin-top: 2px;
}

.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-link {
    color: #cbd2dd; font-size: 0.95rem; font-weight: 500;
    transition: color .18s ease; position: relative;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 0.8rem; }
.nav-login { color: #cbd2dd; font-weight: 600; font-size: 0.95rem; }
.nav-login:hover { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.7rem; cursor: pointer; line-height: 1; }

.mobile-menu {
    display: none;
    background: #0b0d13; border-bottom: 1px solid var(--line-dark);
    padding: 1rem 1.5rem 1.5rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: block; color: #cbd2dd; font-weight: 500; font-size: 1.05rem;
    padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .btn { margin-top: 1rem; }

/* =================================================================
   HERO
   ================================================================= */
.hero { padding: 7rem 0 6rem; text-align: center; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 920px; margin: 0 auto 1.5rem; }
.hero .em { color: var(--brand); }
.hero .lead { max-width: 660px; margin: 0 auto 2.4rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 1.6rem; color: #6b7280; font-size: 0.9rem; }

.badge-pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 0.4rem 0.95rem; border-radius: 999px;
    font-size: 0.82rem; color: #cbd2dd; margin-bottom: 1.8rem;
}
.badge-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); }

/* Logo strip */
.logos { padding: 2.5rem 0; }
.logos p { text-align: center; color: #6b7280; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.4rem; }
.logos-row { display: flex; flex-wrap: wrap; gap: 2.4rem 3rem; justify-content: center; align-items: center; opacity: 0.65; }
.logos-row span { color: #aeb6c2; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }

/* =================================================================
   PIPELINE STRIP (Estimate -> Win -> Deliver -> Final Account)
   ================================================================= */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3.5rem; }
.pipe-step {
    position: relative; text-align: left;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius); padding: 1.4rem;
}
.pipe-step .n { color: var(--brand); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.1em; }
.pipe-step h4 { color: #fff; font-size: 1.15rem; margin: 0.5rem 0 0.4rem; }
.pipe-step p { color: #8a93a3; font-size: 0.9rem; }
.pipe-step:not(:last-child)::after {
    content: '→'; position: absolute; right: -1.35rem; top: 50%; transform: translateY(-50%);
    color: var(--brand); font-size: 1.1rem; z-index: 2;
}

/* =================================================================
   FEATURE GRID (glass cards)
   ================================================================= */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.8rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10); border-color: #d6deea; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.55rem; }
.card p { color: var(--ink-500); font-size: 0.96rem; }

/* glass cards on dark */
.card-glass {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius);
    padding: 1.8rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.card-glass:hover { transform: translateY(-4px); background: rgba(255,255,255,0.06); border-color: rgba(255,106,42,0.35); box-shadow: 0 22px 44px rgba(0,0,0,0.35); }
.card-glass h3 { color: #fff; font-size: 1.2rem; margin-bottom: 0.55rem; }
.card-glass p { color: #99a2b1; font-size: 0.96rem; }

.icon-tile {
    width: 50px; height: 50px; border-radius: 13px;
    display: grid; place-items: center; margin-bottom: 1.1rem;
    background: linear-gradient(135deg, rgba(255,106,42,0.18), rgba(255,106,42,0.06));
    border: 1px solid rgba(255,106,42,0.28);
    color: var(--brand);
}
.icon-tile .mdi { font-size: 1.55rem; }
.card-glass .icon-tile { color: var(--brand-accent); }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
    display: inline-block; padding: 0.45rem 0.95rem; border-radius: 999px;
    background: var(--brand-soft); border: 1px solid rgba(255,106,42,0.3);
    color: var(--brand); font-size: 0.85rem; font-weight: 600;
}
.dark .tag { color: var(--brand-accent); }

/* check list */
.checks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.85rem; }
.checks li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-700); }
.dark .checks li { color: #c5ccd6; }
.checks .mdi { color: var(--brand); font-size: 1.2rem; margin-top: 1px; flex-shrink: 0; }

/* =================================================================
   SPLIT (alternating feature rows)
   ================================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split.reverse .split-media { order: -1; }
.split-media {
    border-radius: var(--radius-lg); overflow: hidden;
    background: linear-gradient(135deg, #11131b, #0b1220);
    border: 1px solid var(--line-dark); min-height: 340px;
    position: relative; padding: 2rem;
}

/* Mock UI panel used inside split-media */
.mock {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius); padding: 1.2rem; height: 100%;
}
.mock-bar { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.mock-bar i:first-child { background: var(--brand); }
.mock-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.7rem 0.9rem; border-radius: 9px; margin-bottom: 0.55rem;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    color: #c5ccd6; font-size: 0.85rem;
}
.mock-row .v { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.mock-row.hi { border-color: rgba(255,106,42,0.4); background: rgba(255,106,42,0.08); }
.mock-row .pill-ok { color: #4ade80; font-weight: 700; font-size: 0.78rem; }
.mock-row .pill-warn { color: var(--brand-accent); font-weight: 700; font-size: 0.78rem; }

/* =================================================================
   STATS
   ================================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; }
.stat .num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: var(--brand); letter-spacing: -0.03em; }
.stat .lbl { color: var(--ink-500); font-size: 0.95rem; margin-top: 0.3rem; }
.dark .stat .lbl { color: #99a2b1; }

/* =================================================================
   CTA BAND
   ================================================================= */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; max-width: 720px; margin: 0 auto 1.1rem; }
.cta-band .lead { max-width: 600px; margin: 0 auto 2.2rem; }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { background: #07080b; color: #9aa3b2; padding: 4.5rem 0 2.5rem; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
.footer .brand-name { font-size: 1.25rem; }
.footer-about { max-width: 320px; margin-top: 1rem; font-size: 0.92rem; line-height: 1.7; }
.footer h5 { color: #fff; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.footer a { color: #9aa3b2; font-size: 0.93rem; transition: color .15s ease; }
.footer a:hover { color: var(--brand-accent); }
.footer-bottom {
    margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid var(--line-dark);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
    font-size: 0.85rem; color: #6b7280;
}

/* =================================================================
   AUTH (login) — TibrAI split layout
   ================================================================= */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-left { position: relative; padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.auth-left .inner { position: relative; z-index: 1; max-width: 480px; }
.auth-right { display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--paper-2); }
.auth-card {
    width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 2.6rem; box-shadow: 0 30px 60px rgba(15,23,42,0.10);
}
.auth-logo { display: flex; justify-content: center; margin-bottom: 1.6rem; }
.auth-logo img { width: 56px; height: 56px; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--ink-700); margin-bottom: 0.5rem; }
.field input {
    width: 100%; padding: 0.85rem 1rem; font-size: 1rem; color: var(--ink-900);
    border: 1px solid #d4d4d8; border-radius: 0.6rem; outline: none;
    transition: border-color .18s, box-shadow .18s; font-family: inherit;
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(241,89,42,0.18); }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; font-size: 0.88rem; }
.auth-row a { color: var(--brand); font-weight: 600; }

/* =================================================================
   MISC
   ================================================================= */
.divider-soft { border: 0; border-top: 1px solid var(--line); }
.kbd {
    display: inline-block; padding: 0.15rem 0.5rem; border-radius: 6px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
    font-size: 0.82rem; font-weight: 700; color: #fff; font-family: ui-monospace, monospace;
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-head .lead { margin-top: 1rem; }

.faq-item { border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.faq-item h4 { font-size: 1.12rem; margin-bottom: 0.6rem; }
.faq-item p { color: var(--ink-500); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.price-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 2.2rem; display: flex; flex-direction: column;
}
.price-card.featured {
    border-color: var(--brand); box-shadow: 0 22px 50px rgba(241,90,22,0.16);
    position: relative;
}
.price-card.featured::before {
    content: 'Most popular'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(180deg, var(--brand), var(--brand-deep)); color: #fff;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.35rem 0.9rem; border-radius: 999px;
}
.price-card h3 { font-size: 1.3rem; }
.price-card .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 1rem 0 0.2rem; }
.price-card .price small { font-size: 1rem; font-weight: 500; color: var(--ink-500); }
.price-card .desc { color: var(--ink-500); font-size: 0.95rem; min-height: 48px; }
.price-card .checks { flex: 1; }
.price-card .btn { margin-top: 1.8rem; }

/* =================================================================
   COMPARISON TABLE (vs spreadsheets)
   ================================================================= */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(15,23,42,0.06); }
.compare { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; background: #fff; }
.compare th, .compare td { padding: 1.05rem 1.5rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); background: var(--paper-2); font-weight: 700; }
.compare thead th.col-tibr { color: var(--brand); }
.compare td.feat { font-weight: 700; color: var(--ink-900); width: 30%; }
.compare td .sub { display: block; color: var(--ink-500); font-weight: 400; font-size: 0.9rem; margin-top: 0.15rem; }
.compare .col-tibr { background: rgba(255,106,42,0.045); color: var(--ink-700); }
.compare td.col-other { color: var(--ink-500); }
.compare .mdi-close-circle { color: #cbd5e1; margin-right: 0.4rem; }
.compare .mdi-check-circle { color: var(--brand); margin-right: 0.4rem; }
.compare tbody tr:last-child td { border-bottom: 0; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 980px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: block; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .pipeline { grid-template-columns: repeat(2, 1fr); }
    .pipe-step:not(:last-child)::after { display: none; }
    .split { grid-template-columns: 1fr; gap: 2rem; }
    .split.reverse .split-media { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .auth { grid-template-columns: 1fr; }
    .auth-left { display: none; }
}

@media (max-width: 680px) {
    .section { padding: 4rem 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
    .pipeline { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero { padding: 4.5rem 0 4rem; }
    .auth-card { padding: 1.8rem; }
    .container, .container-wide { padding: 0 1.2rem; }
}

/* =================================================================
   CLICKABLE TILE + "LEARN MORE" AFFORDANCE
   ================================================================= */
.card.tile { cursor: pointer; position: relative; }
.tile-detail { display: none; }
.tile-more {
    display: inline-flex; align-items: center; gap: 0.35rem;
    margin-top: 1rem; color: var(--brand); font-weight: 600; font-size: 0.9rem;
    opacity: 0.75; transition: opacity .2s ease, gap .2s ease;
}
.card.tile:hover .tile-more { opacity: 1; gap: 0.6rem; }
.card-glass.tile { cursor: pointer; }
.card-glass.tile .tile-more { color: var(--brand-accent); }

/* =================================================================
   SLIDE-OVER DRAWER (feature deep-dive)
   ================================================================= */
.drawer-backdrop {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(7, 8, 11, 0.62);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
    position: fixed; top: 0; right: 0; z-index: 201;
    height: 100%; width: min(540px, 94vw);
    background: linear-gradient(160deg, #11131b 0%, #0b1220 100%);
    color: #fff;
    transform: translateX(100%);
    transition: transform .38s cubic-bezier(.22, .61, .36, 1);
    box-shadow: -30px 0 70px rgba(0, 0, 0, 0.5);
    display: flex; flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.drawer.open { transform: none; }
body.drawer-open { overflow: hidden; }

.drawer-head {
    padding: 2rem 2rem 1.4rem; position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.drawer-close {
    position: absolute; top: 1.3rem; right: 1.3rem;
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd2dd; font-size: 1.3rem; cursor: pointer; line-height: 1;
    display: grid; place-items: center; transition: all .18s ease;
}
.drawer-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.drawer-head .icon-tile { margin-bottom: 1.1rem; }
.drawer-head .eyebrow { margin-bottom: 0.6rem; }
.drawer-title { font-size: 1.6rem; font-weight: 800; margin: 0; }

.drawer-body { flex: 1; overflow-y: auto; padding: 1.6rem 2rem 2rem; }
.drawer-body .drawer-lead { font-size: 1.05rem; color: #c5ccd6; line-height: 1.7; margin: 0 0 1.2rem; }
.drawer-body .checks li { color: #c5ccd6; }
.drawer-body p { color: #99a2b1; line-height: 1.7; }

.drawer-foot {
    padding: 1.3rem 2rem; border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex; gap: 0.8rem; align-items: center;
}
.drawer-foot .btn { flex: 1; justify-content: center; }

@media (max-width: 560px) {
    .drawer { width: 100vw; }
    .drawer-head, .drawer-body, .drawer-foot { padding-left: 1.3rem; padding-right: 1.3rem; }
}

/* =================================================================
   PRODUCT SCREENSHOT FRAME (browser-chrome style)
   ================================================================= */
.shot {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0d0f15;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.shot-top {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.65rem 0.9rem;
    background: #15171f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.shot-top i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.18); display: inline-block; }
.shot-top i:first-child { background: var(--brand); }
.shot-top .url {
    margin-left: 0.7rem; flex: 1; max-width: 320px;
    background: rgba(255,255,255,0.06); border-radius: 999px;
    color: #8a93a3; font-size: 0.72rem; padding: 0.25rem 0.8rem;
}
.shot img { display: block; width: 100%; height: auto; }

/* On a light section, soften the frame */
.section .shot:not(.shot-dark) { border-color: var(--line); box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14); }

/* Showcase band */
.showcase { text-align: center; }
.showcase .shot { max-width: 1000px; margin: 2.8rem auto 0; }
.split-media.has-shot { background: none; border: 0; padding: 0; min-height: 0; }

/* reveal on scroll — only hidden when JS is present (progressive enhancement) */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html.js .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}
