/* ============================================================
   WorkOS Marketing — site.css
   Palette: deep navy + orange ember, inspired by ViviScape/WorkOS
   ============================================================ */

:root {
    --navy: #0a0e27;
    --navy-mid: #131a3a;
    --navy-soft: #1a2148;
    --navy-line: rgba(255, 255, 255, 0.08);

    --orange: #e8833a;
    --orange-light: #ffa45e;
    --pink: #ff5a87;
    --cyan: #5cc8ff;
    --green: #34d058;

    --bg: #f7f8fb;
    --bg-alt: #ffffff;
    --text: #0e1430;
    --text-soft: #4a526b;
    --muted: #7d859e;
    --line: #e6e9f2;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(11, 29, 53, 0.06), 0 2px 6px rgba(11, 29, 53, 0.05);
    --shadow-md: 0 8px 24px -8px rgba(11, 29, 53, 0.14);
    --shadow-lg: 0 30px 60px -20px rgba(11, 29, 53, 0.25);

    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --transition: 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);

    --header-h: 72px;
}

/* ---------------- Reset & base ---------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 1rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; color: var(--text-soft); }
ul { padding-left: 1.25rem; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.skip-link {
    position: absolute;
    left: -10000px;
    background: var(--navy);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------------- Header / Nav ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transition: background var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
}
.brand__mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 6px 14px -4px rgba(232, 131, 58, 0.5);
}
.brand__text span { color: var(--orange); }
.brand--footer { color: #fff; }
.brand--footer .brand__text span { color: var(--orange-light); }

.primary-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-link {
    padding: 0.5rem 0.95rem;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text-soft);
    border-radius: 999px;
    transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: rgba(10, 14, 39, 0.04); }
.nav-link.active { color: var(--text); background: rgba(10, 14, 39, 0.06); }

.header-cta { display: flex; gap: 0.5rem; align-items: center; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--line);
    background: #fff;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-weight: 500;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .btn { margin-top: 0.75rem; text-align: center; }

@media (max-width: 960px) {
    .primary-nav, .header-cta { display: none; }
    .nav-toggle { display: inline-flex; }
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.88rem; border-radius: 10px; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
    box-shadow: 0 6px 22px -6px rgba(232, 131, 58, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(232, 131, 58, 0.7); color: #fff; }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}
.btn-ghost:hover { background: rgba(10, 14, 39, 0.04); }
.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-glow { position: relative; }
.btn-glow::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    opacity: 0;
    z-index: -1;
    filter: blur(14px);
    transition: opacity var(--transition);
}
.btn-glow:hover::after { opacity: 0.55; }

/* ---------------- Section primitives ---------------- */
section { position: relative; }
.content-section { padding: 5.5rem 0; }
.content-section--dark { background: var(--navy); color: rgba(255, 255, 255, 0.85); }
.content-section--dark h2, .content-section--dark h3, .content-section--dark h4 { color: #fff; }
.content-section--dark p { color: rgba(255, 255, 255, 0.72); }
.content-section--tint { background: linear-gradient(180deg, var(--bg) 0%, #eef0f7 100%); }

.section-header { text-align: center; max-width: 760px; margin: 0 auto 2.25rem; }
.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 0.85rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid rgba(232, 131, 58, 0.25);
    border-radius: 999px;
    background: rgba(232, 131, 58, 0.08);
}
.section-label--light {
    color: var(--orange-light);
    border-color: rgba(255, 164, 94, 0.3);
    background: rgba(255, 164, 94, 0.08);
}

.text-gradient {
    background: linear-gradient(135deg, var(--orange), var(--pink) 60%, var(--orange-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.text-white { color: #fff; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    overflow: hidden;
    background: radial-gradient(ellipse at 20% 10%, #1e2657 0%, var(--navy) 55%, #050818 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    isolation: isolate;
}
.hero__canvas {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    z-index: 1;
    pointer-events: none;
}
.hero__veil {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 30%, rgba(232, 131, 58, 0.18), transparent 50%),
                radial-gradient(circle at 15% 85%, rgba(92, 200, 255, 0.15), transparent 55%),
                linear-gradient(180deg, transparent 60%, rgba(5, 8, 24, 0.95));
    z-index: 1;
    pointer-events: none;
}
.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}
.hero__eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
    animation: pulse 2.2s infinite;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero__lede {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, 0.78);
    max-width: 560px;
    margin-bottom: 2rem;
}
.hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 520px;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.metric__num {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.metric__label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0.4rem;
}

@media (max-width: 960px) {
    .hero { padding: 3rem 0; min-height: auto; }
    .hero__inner { grid-template-columns: 1fr; }
}

/* ---------------- Hero product mock ---------------- */
.hero__mock {
    position: relative;
    perspective: 1400px;
}
.mock-window {
    background: #0d1230;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(232, 131, 58, 0.08);
    overflow: hidden;
    transform: rotateY(-6deg) rotateX(4deg);
    transition: transform 0.6s ease;
}
.mock-window:hover { transform: rotateY(-2deg) rotateX(2deg); }
.mock-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mock-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}
.mock-bar span:nth-child(1) { background: #ff5f57; }
.mock-bar span:nth-child(2) { background: #febc2e; }
.mock-bar span:nth-child(3) { background: #28c840; }
.mock-bar .mock-url {
    margin-left: 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    width: auto;
    height: auto;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.25rem 0.65rem;
}
.mock-body {
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1rem;
    min-height: 320px;
}
.mock-side {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.mock-side div {
    height: 30px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
}
.mock-side div.active {
    background: linear-gradient(90deg, rgba(232, 131, 58, 0.25), rgba(232, 131, 58, 0.05));
    border-left: 2px solid var(--orange);
}
.mock-main {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.mock-kpi {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
}
.mock-kpi div {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.mock-kpi div::before {
    content: "";
    width: 40%;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}
.mock-kpi div::after {
    content: "";
    width: 70%;
    height: 12px;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    border-radius: 4px;
}
.mock-chart {
    height: 130px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 0.85rem;
    position: relative;
    overflow: hidden;
}
.mock-chart svg { width: 100%; height: 100%; }
.mock-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 0.45rem 0.65rem;
}
.mock-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.mock-row .bar1 { height: 6px; flex: 1; background: rgba(255, 255, 255, 0.1); border-radius: 4px; }
.mock-row .bar2 { width: 40px; height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 4px; }
@media (max-width: 700px) { .mock-body { grid-template-columns: 1fr; } .mock-side { flex-direction: row; flex-wrap: wrap; } .mock-side div { flex: 1; min-width: 60px; } }

/* ---------------- Page hero (interior) ---------------- */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.page-hero::after {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(circle, rgba(232, 131, 58, 0.18) 0%, transparent 65%);
    z-index: 0;
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 760px; }
.page-hero p { color: rgba(255, 255, 255, 0.72); max-width: 640px; font-size: 1.1rem; }
.breadcrumb {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 0.5rem; color: rgba(255, 255, 255, 0.3); }

/* ---------------- Feature/Solution grid ---------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.feature-card {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(232, 131, 58, 0.35);
}
.feature-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(232, 131, 58, 0.15), rgba(255, 90, 135, 0.1));
    color: var(--orange);
    font-size: 1.15rem;
    margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-soft); font-size: 0.95rem; margin: 0; }
.feature-card__num {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.1em;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.solution-card {
    position: relative;
    padding: 2rem 1.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    overflow: hidden;
    color: #fff;
}
.solution-card:hover {
    border-color: rgba(232, 131, 58, 0.5);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
}
.solution-card__num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--orange-light);
    letter-spacing: 0.18em;
}
.solution-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    margin: 0.75rem 0 1rem;
    box-shadow: 0 10px 24px -8px rgba(232, 131, 58, 0.55);
}
.solution-card h3 { color: #fff; margin-bottom: 0.5rem; }
.solution-card p { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; margin: 0; }

/* ---------------- Comparison cards ---------------- */
.compare-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}
.compare-card--light { background: var(--bg-alt); border-color: var(--line); }
.compare-card h3 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-size: 1.1rem; }
.compare-card ul { list-style: none; padding: 0; margin: 0; }
.compare-card li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
    font-size: 0.94rem;
}
.compare-card--light li { border-bottom-color: var(--line); color: var(--text-soft); }
.compare-card li:last-child { border-bottom: none; }
.compare-card .neg { color: #ff6b6b; }
.compare-card .pos { color: var(--green); }

/* ---------------- Process / Flow ---------------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process-grid { grid-template-columns: 1fr; } }
.process-step {
    position: relative;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
}
.process-step .badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    margin-bottom: 0.85rem;
}
.process-step h3 { color: #fff; }
.process-step p { color: rgba(255, 255, 255, 0.72); margin: 0; font-size: 0.95rem; }

/* ---------------- Tools grid ---------------- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}
.tool-card {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: relative;
    transition: all var(--transition);
    overflow: hidden;
}
.tool-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232, 131, 58, 0), rgba(232, 131, 58, 0));
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(232, 131, 58, 0.35); }
.tool-card__head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.85rem; }
.tool-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--orange-light);
    font-size: 1.1rem;
}
.tool-card__tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-left: auto;
    padding: 0.2rem 0.55rem;
    background: var(--line);
    border-radius: 999px;
}
.tool-card h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.tool-card p { font-size: 0.92rem; margin: 0 0 1rem; }
.tool-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px dashed var(--line);
    padding-top: 0.85rem;
}
.tool-card__list li {
    padding: 0.3rem 0;
    font-size: 0.88rem;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tool-card__list li i { color: var(--green); font-size: 0.78rem; }

/* ---------------- Developers ---------------- */
.dev-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 960px) { .dev-hero-grid { grid-template-columns: 1fr; } }

.code-block {
    background: #060a1d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.55);
}
.code-block__tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    align-items: center;
    flex-wrap: wrap;
}
.code-block__tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
}
.code-block__tab:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.code-block__tab.active { background: rgba(232, 131, 58, 0.18); color: var(--orange-light); }
.code-block__copy {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
}
.code-block__copy:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.code-block pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.7;
    color: #e0e6f5;
}
.code-block pre[hidden] { display: none; }
.code-block .kw { color: #ff8a3d; }
.code-block .str { color: #6ee7b7; }
.code-block .com { color: #6b7388; font-style: italic; }
.code-block .num { color: #ffd166; }
.code-block .fn { color: #5cc8ff; }
.code-block .var { color: #fff; }

/* ---------------- Endpoint reference ---------------- */
.endpoints {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}
.endpoint {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    transition: all var(--transition);
}
.endpoint:hover { border-color: rgba(232, 131, 58, 0.4); transform: translateY(-2px); }
.endpoint__head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.75rem; }
.endpoint__method {
    font-weight: 700;
    font-size: 0.74rem;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    letter-spacing: 0.05em;
}
.endpoint__method.get { background: rgba(92, 200, 255, 0.12); color: #0795d3; }
.endpoint__method.post { background: rgba(52, 208, 88, 0.15); color: #1a8a3b; }
.endpoint__method.put { background: rgba(255, 165, 89, 0.15); color: #b85a17; }
.endpoint__method.delete { background: rgba(255, 90, 135, 0.15); color: #c41a52; }
.endpoint__path { color: var(--text); font-weight: 600; }
.endpoint p { font-family: var(--font-body); font-size: 0.92rem; color: var(--text-soft); margin: 0; }

/* ---------------- SDK row ---------------- */
.sdks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}
.sdk-card {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: all var(--transition);
    color: var(--text);
}
.sdk-card:hover { transform: translateY(-3px); border-color: rgba(232, 131, 58, 0.4); box-shadow: var(--shadow-md); }
.sdk-card i { font-size: 2rem; color: var(--orange); margin-bottom: 0.6rem; }
.sdk-card .lbl { font-weight: 600; font-family: var(--font-display); }
.sdk-card .ver { display: block; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); margin-top: 0.25rem; }

/* ---------------- Pricing ---------------- */
.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1080px;
    margin: 2.5rem auto 0;
    align-items: stretch;
}
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; } }
.plan {
    background: linear-gradient(170deg, var(--navy) 0%, var(--navy-mid) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 2.25rem 1.85rem 1.85rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); border-color: rgba(255, 255, 255, 0.14); }
.plan--featured { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 12px 40px rgba(232, 131, 58, 0.15); }
.plan__badge {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 18px;
    border-radius: 0 0 10px 10px;
}
.plan__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 0.4rem; color: #fff; }
.plan__price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; line-height: 1.1; }
.plan__price small { font-size: 1rem; color: rgba(255, 255, 255, 0.5); margin-left: 0.25rem; font-weight: 500; }
.plan__desc { color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; margin: 0.5rem 0 1.4rem; }
.plan__features { list-style: none; padding: 0; margin: 0 0 1.6rem; flex: 1; }
.plan__features li { padding: 0.4rem 0; font-size: 0.92rem; color: rgba(255, 255, 255, 0.82); display: flex; align-items: center; gap: 0.55rem; }
.plan__features li i { color: #34d058; font-size: 0.8rem; width: 14px; flex-shrink: 0; }
.plan__features li.off { color: rgba(255, 255, 255, 0.3); }
.plan__features li.off i { color: rgba(255, 255, 255, 0.18); }
.plan__cta {
    display: block; text-align: center;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 600;
    transition: all var(--transition);
}
.plan__cta--outline { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }
.plan__cta--outline:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }
.plan__cta--solid { background: linear-gradient(135deg, var(--orange), var(--orange-light)); color: #fff; }
.plan__cta--solid:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(232, 131, 58, 0.45); color: #fff; }

/* ---------------- CTA section ---------------- */
.cta {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--navy) 0%, #15173a 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.cta::before, .cta::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
}
.cta::before { background: var(--orange); top: -100px; left: -100px; }
.cta::after { background: var(--pink); bottom: -100px; right: -100px; }
.cta .container { position: relative; z-index: 1; }
.cta h2 { color: #fff; max-width: 720px; margin: 0 auto 1rem; }
.cta p { color: rgba(255, 255, 255, 0.72); max-width: 580px; margin: 0 auto 2rem; font-size: 1.05rem; }

/* ---------------- Footer ---------------- */
.site-footer {
    background: #050818;
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-blurb { color: rgba(255, 255, 255, 0.55); margin: 1rem 0 1.25rem; max-width: 360px; font-size: 0.95rem; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.75);
    transition: all var(--transition);
}
.footer-social a:hover { background: var(--orange); color: #fff; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.55rem; }
.site-footer ul li a { color: rgba(255, 255, 255, 0.55); font-size: 0.92rem; }
.site-footer ul li a:hover { color: var(--orange-light); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}
@media (max-width: 540px) { .footer-bottom { flex-direction: column; gap: 0.4rem; } }

/* ---------------- Animations ---------------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ---------------- Logos strip ---------------- */
.logos-strip {
    padding: 2.5rem 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.logos-strip__label {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1.25rem;
}
.logos-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0.7;
}
.logos-row span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-soft);
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.logos-row i { color: var(--text); font-size: 1.2rem; }

/* ---------------- Misc helpers ---------------- */
.lead { font-size: 1.15rem; color: var(--text-soft); }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

.divider-soft { border: none; border-top: 1px solid var(--line); margin: 3rem 0; }
