/* ────────────────────────────────────────────────────────────────
   Out of the Box Solutions — obscorp.ai
   Dark + bento + glassmorphism + bold typography
   Brand cyan sampled from the logo mark.
   ────────────────────────────────────────────────────────────── */

:root {
    /* palette */
    --bg: #0a0a0f;
    --bg-2: #0e0f16;
    --bg-elev: #141624;
    --fg: #f4f4f5;
    --fg-dim: #a1a1aa;
    --fg-mute: #71717a;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --card: rgba(255, 255, 255, 0.04);
    --card-hover: rgba(255, 255, 255, 0.065);

    /* brand */
    --brand: #19b6dc;               /* sampled cyan from logo */
    --brand-2: #67e8f9;             /* lighter */
    --brand-deep: #0891b2;          /* deeper for gradient pairing */
    --violet: #8b5cf6;

    /* typography */
    --f-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --f-mono: ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, Consolas, monospace;

    --radius: 18px;
    --radius-sm: 10px;
    --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }

html {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    min-height: 100dvh;
    overflow-x: hidden;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(25, 182, 220, 0.12), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(139, 92, 246, 0.10), transparent 60%),
        var(--bg);
}

a { color: inherit; text-decoration: none; }
code { font-family: var(--f-mono); font-size: 0.92em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
    font-family: var(--f-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    line-height: 1.08;
}

/* ── Background layers ─────────────────────────────────────── */
.bg-grid {
    position: fixed; inset: 0; z-index: -2;
    background-image:
        radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse 75% 50% at 50% 20%, #000, transparent);
    pointer-events: none;
}

.bg-glow {
    position: fixed; inset: 0; z-index: -1;
    background:
        radial-gradient(600px 380px at 70% 10%, rgba(25, 182, 220, 0.18), transparent 70%),
        radial-gradient(500px 300px at 20% 80%, rgba(139, 92, 246, 0.14), transparent 70%);
    pointer-events: none;
    animation: glowfloat 18s ease-in-out infinite alternate;
}

@keyframes glowfloat {
    0%   { transform: translate3d(0, 0, 0); }
    50%  { transform: translate3d(-2%, 2%, 0); }
    100% { transform: translate3d(2%, -1%, 0); }
}

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    max-width: var(--maxw); margin: 0 auto;
    padding: 18px 24px;
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    background: rgba(10, 10, 15, 0.55);
    border-bottom: 1px solid var(--border);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-line1 {
    font-family: var(--f-display); font-weight: 700;
    font-size: 16px; letter-spacing: 0.04em;
}
.brand-line1 .dim { color: var(--brand); font-weight: 500; }
.brand-line2 {
    font-family: var(--f-display); font-weight: 500;
    font-size: 11px; letter-spacing: 0.48em;
    color: var(--fg-dim);
    margin-top: 3px;
}

.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
    font-size: 14px; color: var(--fg-dim);
    padding: 8px 0;
    transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--fg); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: var(--f-body);
    font-weight: 600; font-size: 14px;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease, color 0.15s ease;
    cursor: pointer;
}
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #0a0a0f;
    box-shadow:
        0 0 0 0 rgba(25, 182, 220, 0.4),
        0 8px 24px -8px rgba(25, 182, 220, 0.5);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 4px rgba(25, 182, 220, 0.18),
        0 12px 28px -8px rgba(25, 182, 220, 0.6);
}

.btn-ghost {
    background: var(--card);
    color: var(--fg);
    border-color: var(--border-strong);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--card-hover); border-color: rgba(255,255,255,0.22); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    position: relative;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 88px 24px 120px;
}
.hero-inner { max-width: 840px; position: relative; z-index: 2; }

.kicker {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--brand-2);
    padding: 6px 12px;
    border: 1px solid rgba(25, 182, 220, 0.3);
    background: rgba(25, 182, 220, 0.06);
    border-radius: 999px;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(44px, 8vw, 88px);
    font-weight: 700;
    letter-spacing: -0.035em;
    margin: 0 0 24px;
    line-height: 1.02;
}
.hero h1 .accent {
    background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 45%, var(--violet) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.hero-sub {
    font-size: clamp(17px, 1.4vw, 20px);
    color: var(--fg-dim);
    max-width: 62ch;
    margin: 0 0 36px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-meta {
    list-style: none; padding: 0; margin: 0;
    display: flex; gap: 26px; flex-wrap: wrap;
    font-size: 13px; color: var(--fg-mute);
}
.hero-meta .dot {
    display: inline-block; width: 6px; height: 6px;
    border-radius: 999px; background: var(--brand);
    box-shadow: 0 0 10px rgba(25, 182, 220, 0.7);
    margin-right: 8px; vertical-align: middle;
}

.hero-mark {
    position: absolute;
    top: 40px; right: 24px;
    width: 320px; height: 320px;
    opacity: 0.55;
    z-index: 1;
    filter: drop-shadow(0 0 40px rgba(25, 182, 220, 0.18));
    animation: bob 8s ease-in-out infinite alternate;
    pointer-events: none;
}
.hero-mark img { width: 100%; height: 100%; }

@keyframes bob {
    from { transform: translateY(0) rotate(-2deg); }
    to   { transform: translateY(-14px) rotate(2deg); }
}

@media (max-width: 900px) {
    .hero-mark { display: none; }
}

/* ── Section primitives ────────────────────────────────────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent); }
.section-head { max-width: 700px; margin-bottom: 48px; }

.eyebrow {
    display: inline-block;
    font-family: var(--f-mono); font-size: 12px;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 18px;
}

.section h2 {
    font-size: clamp(32px, 4.2vw, 48px);
    letter-spacing: -0.025em;
    margin: 0 0 18px;
}

.lede { font-size: 17px; color: var(--fg-dim); max-width: 62ch; }

/* ── Bento ─────────────────────────────────────────────────── */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.bento-card {
    position: relative;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}
.bento-card::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(360px 180px at var(--mx, 50%) var(--my, 0%), rgba(25, 182, 220, 0.10), transparent 60%);
    opacity: 0; transition: opacity 0.3s ease;
    pointer-events: none;
}
.bento-card:hover { background: var(--card-hover); border-color: var(--border-strong); transform: translateY(-2px); }
.bento-card:hover::before { opacity: 1; }

.bento-card.span-2 { grid-column: span 2; }
@media (max-width: 900px) {
    .bento { grid-template-columns: 1fr; }
    .bento-card.span-2 { grid-column: span 1; }
}

.card-kicker {
    font-family: var(--f-mono); font-size: 12px;
    letter-spacing: 0.1em; color: var(--fg-mute);
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 10px;
}
.card-kicker .idx {
    color: var(--brand);
    font-weight: 600;
}

.bento-card h3 {
    font-size: 22px;
    margin: 0 0 10px;
    letter-spacing: -0.015em;
}
.bento-card p { color: var(--fg-dim); font-size: 15px; margin: 0 0 14px; }
.card-list {
    list-style: none; padding: 0; margin: 10px 0 0;
    font-size: 14px; color: var(--fg-dim);
}
.card-list li {
    padding: 6px 0 6px 20px;
    position: relative;
    border-top: 1px dashed var(--border);
}
.card-list li::before {
    content: "▸"; position: absolute; left: 2px; top: 6px; color: var(--brand);
}

.bento-accent {
    background:
        linear-gradient(135deg, rgba(25, 182, 220, 0.10), rgba(139, 92, 246, 0.08)),
        var(--card);
    border-color: rgba(25, 182, 220, 0.25);
}

/* ── Split (platform showcase) ─────────────────────────────── */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-copy { max-width: 540px; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; font-size: 15px; color: var(--fg-dim); }
.check-list li {
    padding: 10px 0 10px 32px;
    position: relative;
    border-top: 1px solid var(--border);
}
.check-list li::before {
    content: "";
    position: absolute; left: 0; top: 14px;
    width: 18px; height: 18px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--violet) 100%);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4 10l4 4 8-8' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4 10l4 4 8-8' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Terminal */
.terminal {
    background: #0b0d14;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow:
        0 30px 60px -24px rgba(0,0,0,0.6),
        0 0 0 1px rgba(25, 182, 220, 0.08) inset;
}
.term-head {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
    font-family: var(--f-mono); font-size: 12px; color: var(--fg-mute);
}
.term-dot { width: 10px; height: 10px; border-radius: 999px; background: #2a2e3a; }
.term-dot:nth-child(1) { background: #ff5f56; }
.term-dot:nth-child(2) { background: #ffbd2e; }
.term-dot:nth-child(3) { background: #27c93f; }
.term-title { margin-left: 10px; }

.term-body {
    font-family: var(--f-mono); font-size: 13px; line-height: 1.65;
    margin: 0; padding: 18px 20px; overflow-x: auto;
    color: var(--fg-dim);
}
.term-body .tprompt { color: var(--brand-2); margin-right: 6px; user-select: none; }
.term-body .tcom    { color: var(--fg-mute); font-style: italic; }
.term-body .tok     { color: #86efac; }

/* Inline code */
.code {
    background: rgba(25, 182, 220, 0.06);
    border: 1px solid rgba(25, 182, 220, 0.18);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-top: 14px;
    overflow-x: auto;
}
.code code { color: var(--brand-2); font-size: 12px; letter-spacing: 0.02em; }

/* ── Stats strip ───────────────────────────────────────────── */
.strip {
    padding-top: 32px; padding-bottom: 32px;
}
.strip-inner {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    backdrop-filter: blur(14px);
}
.stat { text-align: center; }
.stat-num {
    display: block;
    font-family: var(--f-display); font-weight: 700;
    font-size: clamp(28px, 3vw, 40px);
    background: linear-gradient(135deg, var(--fg) 0%, var(--brand-2) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    line-height: 1;
}
.stat-num sub { font-size: 0.45em; color: var(--fg-mute); -webkit-text-fill-color: var(--fg-mute); letter-spacing: 0.05em; }
.stat-lbl {
    display: block; margin-top: 6px;
    font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--fg-mute);
}
@media (max-width: 700px) { .strip-inner { grid-template-columns: repeat(2, 1fr); } }

/* ── Steps ─────────────────────────────────────────────────── */
.steps {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    counter-reset: s;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step-card {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    position: relative;
}
.step-num {
    display: inline-block;
    font-family: var(--f-mono); font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--brand);
    margin-bottom: 14px;
}
.step-card h3 { font-size: 18px; margin: 0 0 8px; }
.step-card p { color: var(--fg-dim); font-size: 14px; margin: 0; }

/* ── CTA ───────────────────────────────────────────────────── */
.cta-section { padding-bottom: 120px; }
.cta-card {
    padding: 72px 56px;
    border-radius: calc(var(--radius) * 1.4);
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(25, 182, 220, 0.18), transparent 70%),
        radial-gradient(500px 300px at 0% 100%, rgba(139, 92, 246, 0.14), transparent 70%),
        linear-gradient(180deg, var(--bg-elev), var(--bg-2));
    border: 1px solid var(--border-strong);
    text-align: center;
}
.cta-card h2 {
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}
.cta-card p {
    color: var(--fg-dim); max-width: 56ch; margin: 0 auto 36px;
    font-size: 17px;
}
.cta-card .hero-cta { justify-content: center; margin: 0; }

/* ── Footer ────────────────────────────────────────────────── */
.foot {
    border-top: 1px solid var(--border);
    margin-top: 40px;
}
.foot-inner {
    max-width: var(--maxw); margin: 0 auto;
    padding: 40px 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
}
.foot-brand {
    display: flex; align-items: center; gap: 14px;
    font-family: var(--f-display);
}
.foot-brand .brand-line1 { font-size: 14px; letter-spacing: 0.05em; }
.foot-brand .brand-line1 .dim { color: var(--brand); font-weight: 500; }
.foot-brand .brand-line2 { font-size: 10px; letter-spacing: 0.42em; color: var(--fg-mute); }
.foot-links { display: flex; gap: 22px; font-size: 13px; color: var(--fg-dim); }
.foot-links a:hover { color: var(--fg); }
.foot-fine { font-size: 12px; color: var(--fg-mute); margin: 0; }

/* ── Reveal animation (JS-driven) ──────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Nested reveal timings in hero */
.hero-inner .reveal:nth-child(1) { transition-delay: 0.02s; }
.hero-inner .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero-inner .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero-inner .reveal:nth-child(4) { transition-delay: 0.24s; }
.hero-inner .reveal:nth-child(5) { transition-delay: 0.32s; }

/* ── Respect motion preferences ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        transition-duration: 0.001s !important;
    }
    .reveal { opacity: 1; transform: none; }
}
