/* ==========================================================================
   TIVR — Shared Design System
   Dark premium theme. Used by every page.
   ========================================================================== */

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

:root {
    --bg-primary: #050816;
    --bg-secondary: #0A0F1F;
    --bg-card: #0D1426;
    --bg-card-hover: #111A30;
    --border: rgba(94, 234, 212, 0.08);
    --border-strong: rgba(94, 234, 212, 0.2);
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --accent-teal: #5EEAD4;
    --accent-teal-bright: #2DD4BF;
    --accent-purple: #A78BFA;
    --accent-blue: #60A5FA;
    --accent-pink: #F472B6;
    --accent-amber: #FBBF24;
    --s-color-terracotta: #E2725B;
    --gradient-primary: linear-gradient(135deg, #5EEAD4 0%, #A78BFA 100%);
    --gradient-soft: linear-gradient(135deg, rgba(94, 234, 212, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
    --shadow-card: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
    --shadow-glow: 0 0 80px -20px rgba(94, 234, 212, 0.18);
    --maxw: 1240px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Ambient gradient mesh */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(94, 234, 212, 0.09), transparent),
        radial-gradient(ellipse 60% 40% at 85% 30%, rgba(167, 139, 250, 0.07), transparent),
        radial-gradient(ellipse 70% 50% at 15% 85%, rgba(96, 165, 250, 0.05), transparent);
    pointer-events: none;
    z-index: 0;
}

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

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

main { position: relative; z-index: 1; }

/* ----- Buttons --------------------------------------------------------- */
.btn {
    padding: 11px 22px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    white-space: nowrap;
}
.btn-primary { background: var(--accent-teal); color: #04111F; font-weight: 700; }
.btn-primary:hover { background: var(--accent-teal-bright); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(94, 234, 212, 0.28); }
.btn-secondary { background: rgba(255,255,255,0.05); color: var(--text-primary); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: rgba(255,255,255,0.09); border-color: var(--accent-teal); transform: translateY(-2px); }
.btn-ghost { color: var(--text-secondary); background: transparent; }
.btn-ghost:hover { color: var(--text-primary); }
.btn-large { padding: 15px 30px; font-size: 15px; border-radius: 13px; }

/* ----- Navigation ------------------------------------------------------ */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 14px 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(5, 8, 22, 0.72);
    border-bottom: 1px solid var(--border);
    transition: background .3s ease, border-color .3s ease;
}
.site-nav.scrolled { background: rgba(5, 8, 22, 0.92); border-bottom-color: var(--border-strong); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--text-primary);
}
.logo-img { height: 28px; width: auto; display: block; flex-shrink: 0; }
.logo-word { font-size: 22px; font-weight: 300; letter-spacing: 3px; line-height: 1; color: #E6EDF7; }
.mock-bar .logo-img { height: 20px; }

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
}
.nav-links > li { position: relative; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-primary); }

/* Mega-menu */
.has-menu > a svg { transition: transform .2s; }
.has-menu:hover > a svg { transform: rotate(180deg); }
.mega-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 540px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-menu:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-menu::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.mega-link {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 11px;
    transition: background .15s;
}
.mega-link:hover { background: var(--bg-card-hover); }
.mega-ico {
    width: 38px; height: 38px;
    border-radius: 9px;
    background: rgba(94,234,212,0.08);
    color: var(--accent-teal);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mega-link strong { display: block; color: var(--text-primary); font-size: 14px; font-weight: 600; }
.mega-link span { display: block; color: var(--text-muted); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }

.nav-cta { display: flex; gap: 10px; align-items: center; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    width: 40px; height: 40px;
    cursor: pointer;
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
}

/* ----- Generic section ------------------------------------------------- */
.section { padding: 116px 0; position: relative; }
.section-sm { padding: 80px 0; }

.section-header {
    text-align: center;
    max-width: 740px;
    margin: 0 auto 72px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 100px;
    font-size: 12px;
    color: var(--accent-purple);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}
.eyebrow.teal { background: rgba(94,234,212,0.08); border-color: rgba(94,234,212,0.2); color: var(--accent-teal); }
.eyebrow.pink { background: rgba(244,114,182,0.08); border-color: rgba(244,114,182,0.2); color: var(--accent-pink); }
.eyebrow.blue { background: rgba(96,165,250,0.08); border-color: rgba(96,165,250,0.2); color: var(--accent-blue); }

.section-title {
    font-size: clamp(30px, 4.2vw, 50px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: 18px;
    background: linear-gradient(180deg, #FFFFFF 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-desc { font-size: 18px; color: var(--text-secondary); line-height: 1.6; }
.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pulse-dot {
    width: 6px; height: 6px;
    background: var(--accent-teal);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-teal);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .5; transform: scale(1.3);} }

/* ----- Hero ------------------------------------------------------------ */
.hero {
    padding: 168px 0 90px;
    position: relative;
    overflow: hidden;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(94,234,212,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94,234,212,0.035) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, black, transparent);
    pointer-events: none;
}
.hero-content { text-align: center; max-width: 900px; margin: 0 auto; }
.hero-content.narrow { max-width: 800px; }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(94,234,212,0.08);
    border: 1px solid rgba(94,234,212,0.2);
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent-teal);
    font-weight: 500;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 22px;
    background: linear-gradient(180deg, #FFFFFF 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 38px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-muted); }

/* ----- Dashboard mockup ------------------------------------------------ */
.mock {
    position: relative;
    margin: 64px auto 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    box-shadow: 0 40px 90px -30px rgba(0,0,0,0.7), var(--shadow-glow);
    max-width: 1140px;
}
.mock-bar {
    padding: 14px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    flex-wrap: wrap;
    gap: 10px;
}
.mock-bar-left { display: flex; align-items: center; gap: 14px; }
.live-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 600;
    color: var(--accent-teal); letter-spacing: 0.1em;
}
.mock-chips { display: flex; gap: 8px; font-size: 11px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.mock-chip { padding: 4px 10px; border-radius: 6px; }
.mock-chip.on { background: rgba(94,234,212,0.1); color: var(--accent-teal); }
.mock-body { padding: 22px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }

/* Real product screenshot inside the window frame */
.mock-shot { display: block; width: 100%; height: auto; }
.mock.has-shot::before { background: linear-gradient(180deg, transparent 72%, rgba(5, 8, 22, 0.55) 100%); }

/* Standalone framed screenshot (no window chrome) */
.shot-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), var(--shadow-glow);
}
.shot-frame img { display: block; width: 100%; height: auto; }

.kpi {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    position: relative;
}
.kpi::after {
    content: '';
    position: absolute; top: 12px; right: 12px;
    width: 6px; height: 6px;
    background: var(--accent-teal); border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-teal);
}
.kpi-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 8px; }
.kpi-value { font-size: 21px; font-weight: 700; font-family: 'JetBrains Mono', monospace; letter-spacing: -0.02em; }
.kpi-meta { font-size: 10px; color: var(--text-muted); margin-top: 6px; }

.mock-charts { grid-column: span 6; display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.chart-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    min-height: 230px;
}
.chart-title { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 14px; }
.chart-svg { width: 100%; height: 170px; }
.donut-wrap { width: 100%; height: 170px; display: flex; align-items: center; justify-content: center; }

/* ----- Logo strip ------------------------------------------------------ */
.logo-strip {
    padding: 52px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(13,20,38,0.3);
}
.strip-label {
    text-align: center; font-size: 12px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; margin-bottom: 28px;
}
.strip-logos { display: flex; justify-content: center; align-items: center; gap: 44px; flex-wrap: wrap; }
.strip-logo { font-family: 'JetBrains Mono', monospace; font-size: 17px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.05em; opacity: 0.65; transition: opacity .2s, color .2s; }
.strip-logo:hover { opacity: 1; color: var(--accent-teal); }

/* ----- How it works flow ---------------------------------------------- */
.flow { display: flex; align-items: stretch; gap: 16px; }
.flow-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    border-radius: 16px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    transition: transform .25s ease, box-shadow .25s ease;
}
.flow-card:hover { transform: translateY(-5px); }
.flow-card.teal { background: linear-gradient(158deg, rgba(94,234,212,0.13), rgba(13,20,38,0.35) 58%); border-color: rgba(94,234,212,0.28); }
.flow-card.teal:hover { box-shadow: 0 24px 50px -24px rgba(94,234,212,0.4); }
.flow-card.purple { background: linear-gradient(158deg, rgba(167,139,250,0.13), rgba(13,20,38,0.35) 58%); border-color: rgba(167,139,250,0.28); }
.flow-card.purple:hover { box-shadow: 0 24px 50px -24px rgba(167,139,250,0.4); }
.flow-card.blue { background: linear-gradient(158deg, rgba(96,165,250,0.13), rgba(13,20,38,0.35) 58%); border-color: rgba(96,165,250,0.28); }
.flow-card.blue:hover { box-shadow: 0 24px 50px -24px rgba(96,165,250,0.4); }
.flow-card.pink { background: linear-gradient(158deg, rgba(244,114,182,0.13), rgba(13,20,38,0.35) 58%); border-color: rgba(244,114,182,0.28); }
.flow-card.pink:hover { box-shadow: 0 24px 50px -24px rgba(244,114,182,0.4); }
.flow-ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.flow-card.teal .flow-ico { background: rgba(94,234,212,0.12); color: var(--accent-teal); border: 1px solid rgba(94,234,212,0.25); }
.flow-card.blue .flow-ico { background: rgba(96,165,250,0.12); color: var(--accent-blue); border: 1px solid rgba(96,165,250,0.25); }
.flow-card.purple .flow-ico { background: rgba(167,139,250,0.12); color: var(--accent-purple); border: 1px solid rgba(167,139,250,0.25); }
.flow-card.pink .flow-ico { background: rgba(244,114,182,0.12); color: var(--accent-pink); border: 1px solid rgba(244,114,182,0.25); }
.flow-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.flow-card.teal .flow-eyebrow { color: var(--accent-teal); }
.flow-card.blue .flow-eyebrow { color: var(--accent-blue); }
.flow-card.purple .flow-eyebrow { color: var(--accent-purple); }
.flow-card.pink .flow-eyebrow { color: var(--accent-pink); }
.flow-label { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); }
.flow-arrow { display: flex; align-items: center; color: var(--text-muted); flex-shrink: 0; }

/* ----- Generic cards --------------------------------------------------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--bg-card-hover); }

.feat-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: rgba(94,234,212,0.08);
    color: var(--accent-teal);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.feat-icon.purple { background: rgba(167,139,250,0.08); color: var(--accent-purple); }
.feat-icon.pink { background: rgba(244,114,182,0.08); color: var(--accent-pink); }
.feat-icon.blue { background: rgba(96,165,250,0.08); color: var(--accent-blue); }
.feat-icon.amber { background: rgba(251,191,36,0.08); color: var(--accent-amber); }

.card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.card p { color: var(--text-secondary); font-size: 14.5px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.span-2 { grid-column: span 2; }

/* feature-list with check icons */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-top: 18px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--text-secondary); }
.check {
    width: 18px; height: 18px; flex-shrink: 0;
    border-radius: 6px;
    background: rgba(94,234,212,0.12);
    color: var(--accent-teal);
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}

/* pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
    padding: 8px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: border-color .2s, color .2s;
}
.pill:hover { border-color: var(--border-strong); color: var(--text-primary); }
.pill .pill-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-teal); margin-right: 7px; vertical-align: middle; }

/* ----- Split (text + visual) ------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.wide-left { grid-template-columns: 1.1fr 1fr; }
.split h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
    margin-bottom: 18px;
    background: linear-gradient(180deg, #FFFFFF 0%, #94A3B8 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.split p.lead { font-size: 16.5px; color: var(--text-secondary); margin-bottom: 42px; }

/* ----- AI orbit visual ------------------------------------------------- */
.orbit-visual { position: relative; aspect-ratio: 1; max-width: 460px; margin: 0 auto; width: 100%; }
.orbit { position: absolute; inset: 0; border: 1px solid var(--border); border-radius: 50%; animation: rotate 30s linear infinite; }
.orbit-2 { inset: 12%; animation-duration: 20s; animation-direction: reverse; }
.orbit-3 { inset: 24%; animation-duration: 15s; }
.orbit-4 { inset: 36%; animation-duration: 10s; animation-direction: reverse; }
@keyframes rotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.ai-core {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 110px; height: 110px;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(94,234,212,0.4), 0 0 40px rgba(167,139,250,0.4);
    display: flex; align-items: center; justify-content: center;
    color: var(--bg-primary); font-weight: 800; font-size: 28px;
    animation: pulseCore 3s ease-in-out infinite;
}
@keyframes pulseCore { 0%,100% { transform: translate(-50%,-50%) scale(1);} 50% { transform: translate(-50%,-50%) scale(1.05);} }
.orbit-node {
    position: absolute;
    width: 54px; height: 54px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 600;
    color: var(--accent-teal);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.node-1 { top: -5%; left: 50%; transform: translateX(-50%); }
.node-2 { top: 50%; right: -5%; transform: translateY(-50%); }
.node-3 { bottom: -5%; left: 50%; transform: translateX(-50%); color: var(--accent-purple); }
.node-4 { top: 50%; left: -5%; transform: translateY(-50%); color: var(--accent-pink); }

/* ----- Steps (how it works) ------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    position: relative;
}
.step-num {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--gradient-soft);
    border: 1px solid var(--border-strong);
    color: var(--accent-teal);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 14px; }

/* ----- Insight / notification cards ----------------------------------- */
.insight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    transition: border-color .2s, transform .2s;
}
.insight-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.insight-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.insight-tag {
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 3px 9px; border-radius: 6px;
}
.tag-alert { background: rgba(244,114,182,0.12); color: var(--accent-pink); }
.tag-trend { background: rgba(94,234,212,0.12); color: var(--accent-teal); }
.tag-info { background: rgba(96,165,250,0.12); color: var(--accent-blue); }
.tag-time { font-size: 11px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; margin-left: auto; }
.insight-card p { color: var(--text-secondary); font-size: 14px; }
.insight-card .q { color: var(--text-primary); font-weight: 600; font-size: 15px; margin-bottom: 6px; }

/* ----- Timeline (roadmap) --------------------------------------------- */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
    content: ''; position: absolute;
    left: 23px; top: 8px; bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-teal), var(--accent-purple), var(--accent-pink), transparent);
}
.tl-item { position: relative; padding-left: 70px; padding-bottom: 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
    position: absolute; left: 12px; top: 4px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent-teal);
    display: flex; align-items: center; justify-content: center;
}
.tl-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-teal); }
.tl-phase { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent-teal); letter-spacing: 0.06em; margin-bottom: 6px; }
.tl-item h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.tl-item > p { color: var(--text-secondary); font-size: 15px; margin-bottom: 16px; }

/* ----- FAQ accordion --------------------------------------------------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16.5px;
    font-weight: 600;
    text-align: left;
    padding: 24px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq-q .faq-ico { flex-shrink: 0; transition: transform .25s ease; color: var(--accent-teal); }
.faq-item.open .faq-q .faq-ico { transform: rotate(45deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    color: var(--text-secondary);
    font-size: 15px;
}
.faq-item.open .faq-a { padding-bottom: 24px; }

/* ----- Stats band ------------------------------------------------------ */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-item { text-align: center; }
.stat-num {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ----- Integration cards ---------------------------------------------- */
.int-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    transition: transform .2s, border-color .2s;
}
.int-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.int-card .int-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.int-card.gds .int-label { color: var(--accent-teal); }
.int-card.lcc .int-label { color: var(--accent-purple); }
.int-card .int-name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }

/* ----- Architecture diagram ------------------------------------------- */
.arch-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: start; }
.arch-stack { display: flex; flex-direction: column; }
.arch-cap { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.arch-nodes { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.arch-node { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 100px; background: var(--bg-card); border: 1px solid var(--border); font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.arch-node svg { color: var(--accent-blue); flex-shrink: 0; }

.arch-flow { position: relative; width: 2px; height: 26px; margin: 7px auto; background: linear-gradient(180deg, rgba(94,234,212,0.4), rgba(94,234,212,0.04)); }
.arch-flow::after {
    content: ''; position: absolute; left: -2px; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-teal); box-shadow: 0 0 10px var(--accent-teal);
    animation: archFlow 2.6s linear infinite;
}
.arch-flow.d1::after { animation-delay: .4s; }
.arch-flow.d2::after { animation-delay: .9s; }
.arch-flow.d3::after { animation-delay: 1.4s; }
.arch-flow.d4::after { animation-delay: 1.9s; }
@keyframes archFlow { 0% { top: -6px; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { top: 26px; opacity: 0; } }

.arch-layer {
    --lyr: 94,234,212;
    position: relative; border-radius: 15px; padding: 16px 20px;
    background: var(--bg-card); border: 1px solid var(--border-strong);
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    animation: archPulse 5.5s ease-in-out infinite;
}
@keyframes archPulse {
    0%,100% { box-shadow: 0 8px 26px -18px rgba(0,0,0,0.55); }
    50% { box-shadow: 0 6px 42px -12px rgba(var(--lyr),0.32); }
}
.arch-num { width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; background: rgba(var(--lyr),0.16); color: rgb(var(--lyr)); }
.arch-info { flex: 1; min-width: 160px; }
.arch-info h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 2px; }
.arch-info p { font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.arch-icons { display: flex; gap: 7px; }
.arch-icons span { width: 32px; height: 32px; border-radius: 8px; background: var(--bg-secondary); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: rgb(var(--lyr)); }
.arch-layer.lyr-blue { --lyr: 96,165,250; border-color: rgba(96,165,250,0.32); background: linear-gradient(118deg, rgba(96,165,250,0.1), var(--bg-card) 68%); }
.arch-layer.lyr-teal { --lyr: 94,234,212; border-color: rgba(94,234,212,0.32); background: linear-gradient(118deg, rgba(94,234,212,0.1), var(--bg-card) 68%); }
.arch-layer.lyr-purple { --lyr: 167,139,250; border-color: rgba(167,139,250,0.32); background: linear-gradient(118deg, rgba(167,139,250,0.1), var(--bg-card) 68%); }

.arch-sub { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.arch-sub span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 9px; font-size: 11.5px; font-weight: 600; color: var(--accent-purple); background: rgba(167,139,250,0.08); border: 1px dashed rgba(167,139,250,0.4); }

.arch-base { margin-top: 4px; border-radius: 15px; padding: 16px 22px; display: flex; align-items: center; gap: 14px; justify-content: center; background: linear-gradient(118deg, rgba(96,165,250,0.14), rgba(13,20,38,0.6)); border: 1px solid rgba(96,165,250,0.32); }
.arch-base-ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(96,165,250,0.16); color: var(--accent-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.arch-base h3 { font-size: 14px; font-weight: 700; }
.arch-base p { font-size: 11.5px; color: var(--text-muted); }

.arch-rail { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 4px 22px; }
.arch-feat { display: flex; gap: 14px; padding: 19px 0; border-bottom: 1px solid var(--border); }
.arch-feat:last-child { border-bottom: none; }
.arch-feat-ico { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.arch-feat-ico.blue { background: rgba(96,165,250,0.1); color: var(--accent-blue); }
.arch-feat-ico.pink { background: rgba(244,114,182,0.1); color: var(--accent-pink); }
.arch-feat-ico.teal { background: rgba(94,234,212,0.1); color: var(--accent-teal); }
.arch-feat-ico.purple { background: rgba(167,139,250,0.1); color: var(--accent-purple); }
.arch-feat h4 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.arch-feat p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }

/* compact stack (homepage teaser) */
.arch-stack.center { max-width: 720px; margin: 0 auto; }
.arch-layer.compact { padding: 14px 18px; gap: 13px; }
.arch-tag {
    display: inline-flex; align-items: center;
    padding: 4px 9px; border-radius: 6px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; white-space: nowrap;
    background: rgba(var(--lyr), 0.13); color: rgb(var(--lyr));
}

/* ----- Support pipeline ----------------------------------------------- */
.pipeline { display: flex; align-items: stretch; justify-content: center; gap: 8px; max-width: 1000px; margin: 0 auto; }
.pipe-node { flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 22px 14px; text-align: center; transition: border-color .2s, transform .2s; }
.pipe-node:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.pipe-node .feat-icon { margin: 0 auto 12px; }
.pipe-node h3 { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.pipe-arrow { display: flex; align-items: center; color: var(--accent-teal); flex-shrink: 0; }
.dot-ok { width: 9px; height: 9px; border-radius: 50%; background: #34D399; box-shadow: 0 0 9px #34D399; display: inline-block; flex-shrink: 0; }

/* ----- CTA band -------------------------------------------------------- */
.cta-band { padding: 60px 0 116px; }
.cta-card {
    background: var(--gradient-soft);
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    padding: 64px 40px;
    text-align: center;
    max-width: 940px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(94,234,212,0.12), transparent);
    pointer-events: none;
}
.cta-card h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
    margin-bottom: 16px; position: relative;
}
.cta-card p { color: var(--text-secondary); font-size: 17px; max-width: 560px; margin: 0 auto 30px; position: relative; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ----- Form ------------------------------------------------------------ */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 36px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 7px; }
.field input, .field select, .field textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-teal); }
.field textarea { resize: vertical; min-height: 110px; }

/* ----- Footer ---------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 72px 0 36px;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 16px; max-width: 280px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; color: var(--text-secondary); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--accent-teal); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}
.social-links { display: flex; gap: 12px; }
.social-link {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    transition: color .2s, border-color .2s;
}
.social-link:hover { color: var(--accent-teal); border-color: var(--border-strong); }

.footer-credit {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--s-color-terracotta);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.footer-credit > span {
    white-space: nowrap;
}
.sabre-logo {
    display: inline-block;
    vertical-align: middle;
    height: 15px;
    width: auto;
    max-width: none;
    /* renders any solid logo as white for the dark footer */
    /* filter: brightness(0) invert(1); */
    opacity: 0.7;
}

/* ----- Breadcrumb ------------------------------------------------------ */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-teal); }
.breadcrumb span { margin: 0 8px; }

/* ----- Scroll reveal --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ----- Responsive ------------------------------------------------------ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .nav-links, .nav-cta .btn-ghost { display: none; }
    .nav-toggle { display: flex; }
    .site-nav.menu-open .nav-links {
        display: flex;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-strong);
        padding: 16px 24px 22px;
    }
    .site-nav.menu-open .nav-links > li { width: 100%; }
    .site-nav.menu-open .nav-links a { padding: 10px 0; font-size: 15px; }
    .mega-menu { display: none; }
    .has-menu:hover .mega-menu { display: none; }
    .split, .split.wide-left { grid-template-columns: 1fr; gap: 40px; }
    .steps { grid-template-columns: 1fr; }
    .flow { flex-direction: column; gap: 10px; }
    .flow-arrow { transform: rotate(90deg); align-self: center; }
    .pipeline { flex-direction: column; }
    .pipe-arrow { transform: rotate(90deg); }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2, .grid-4 { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .stat-band { grid-template-columns: repeat(2, 1fr); }
    .mock-body { grid-template-columns: repeat(2, 1fr); }
    .mock-charts { grid-column: span 2; grid-template-columns: 1fr; }
    .section { padding: 84px 0; }
    .hero { padding: 140px 0 70px; }
    .section-header { margin-bottom: 52px; }
    .arch-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 520px) {
    .mock-body { grid-template-columns: 1fr; }
    .mock-charts { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr; }
    .stat-band { grid-template-columns: 1fr 1fr; }
    .cta-card { padding: 44px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .orbit, .ai-core, .pulse-dot, .arch-layer { animation: none; }
    .arch-flow::after { animation: none; opacity: 1; top: 10px; }
    html { scroll-behavior: auto; }
}
