/* ============================================
   rf website — modern chrome/tech aesthetic
   ============================================ */

:root {
    --bg-deep:   #05080f;
    --bg:        #0a0e17;
    --bg-elev:   #0f1420;
    --bg-card:   #111827;
    --bg-card-h: #161d2e;
    --border:    #1e293b;
    --border-h:  #334155;
    --border-glow: rgba(56, 189, 248, 0.15);
    --text:      #e2e8f0;
    --text-dim:  #94a3b8;
    --text-faint:#475569;
    --accent:    #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.3);
    --accent2:   #818cf8;
    --accent3:   #2dd4bf;
    --green:     #34d399;
    --orange:    #fbbf24;
    --purple:    #c084fc;
    --red:       #f87171;
    --cyan:      #22d3ee;
    --code-bg:   #080c15;
    --radius:    10px;
    --radius-sm: 6px;
    --font:      'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', 'Iosevka', monospace;
    --font-ui:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background: var(--bg-deep);
    color: var(--text);
    font-family: var(--font-ui);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   Background effects
   ============================================ */

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 70%);
    opacity: 0.4;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
}

.bg-glow-1 {
    top: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: var(--accent);
}

.bg-glow-2 {
    bottom: -200px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: var(--accent2);
}

/* ============================================
   Nav — frosted glass + subtle glow
   ============================================ */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(30, 41, 59, 0.6);
}

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

.nav-logo {
    font-family: var(--font);
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -1px;
    text-decoration: none;
}
.nav-logo:hover { color: var(--accent); }
.logo-bracket { color: var(--accent); font-weight: 400; }

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

.nav-links a {
    font-size: 13.5px;
    color: var(--text-dim);
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
    padding: 6px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim) !important;
}
.nav-cta:hover {
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.06);
    color: var(--accent) !important;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ============================================
   Hero
   ============================================ */

.hero {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 24px 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.hero-wordmark {
    display: block;
    font-family: var(--font);
    font-size: 80px;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, var(--accent3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-headline {
    display: block;
    font-size: 26px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 4px;
}

.hero-desc {
    margin-top: 16px;
    font-size: 17px;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 460px;
}

.hero-stats {
    margin-top: 32px;
    display: flex;
    gap: 32px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}
.hero-stat-num {
    font-family: var(--font);
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.hero-stat-label {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-actions {
    margin-top: 36px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    border: none;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.25);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.4);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-h);
}
.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.04);
    color: var(--accent);
}

.btn-ghost {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid transparent;
}
.btn-ghost:hover {
    color: var(--text);
    border-color: var(--border);
}

/* Hero code panel — terminal chrome */
.hero-code {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(30, 41, 59, 0.3),
        0 4px 24px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(56, 189, 248, 0.05);
}

.term-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
}

.term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.term-dot-red    { background: #ff5f56; }
.term-dot-yellow { background: #ffbd2e; }
.term-dot-green  { background: #27c93f; }

.term-title {
    margin-left: 8px;
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--text-faint);
    font-weight: 500;
}

.hero-code pre {
    padding: 20px 24px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.75;
}
.hero-code code {
    font-family: var(--font);
    color: var(--text);
}

/* ============================================
   Section shared
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text);
}
.accent-dot { color: var(--accent); }

.section-subtitle {
    margin-top: 12px;
    font-size: 16px;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Features — Bly's feature-benefit format
   ============================================ */

.features {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 100px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px 24px;
    transition: all 0.3s;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, var(--accent-glow), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
    border-color: var(--border-h);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 40px var(--border-glow);
}

.feature-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(129, 140, 248, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon {
    font-size: 20px;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
    letter-spacing: -0.3px;
}

.feature-what {
    font-size: 13.5px;
    color: var(--text-dim);
    margin-bottom: 8px;
    line-height: 1.5;
}

.feature-benefit {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.55;
}

.benefit-marker {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent3);
    background: rgba(45, 212, 191, 0.1);
    padding: 1px 7px;
    border-radius: 4px;
    margin-right: 4px;
}

.feature-card code {
    color: var(--accent);
    background: rgba(56, 189, 248, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    font-family: var(--font);
}

/* C++ comparison callout */
.cpp-compare {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.12);
    font-size: 12.5px;
    line-height: 1.5;
}

.cpp-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red);
    margin-bottom: 4px;
}

.cpp-compare code {
    color: #fca5a5 !important;
    background: rgba(239, 68, 68, 0.06) !important;
    font-size: 0.85em;
}

.cpp-note {
    display: block;
    color: var(--text-faint);
    font-size: 11px;
    margin-top: 4px;
    font-style: italic;
}

/* ============================================
   Examples
   ============================================ */

.examples {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 100px;
}

.example-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 72px;
}
.example-block:last-child { margin-bottom: 0; }

.example-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.example-what {
    font-size: 15px;
    color: var(--text-dim);
    margin-bottom: 8px;
    line-height: 1.6;
}

.example-benefit {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.6;
}

.cpp-compare-inline {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.12);
    font-size: 13px;
    line-height: 1.5;
}

.cpp-compare-inline .cpp-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red);
    margin-bottom: 4px;
}

.cpp-compare-inline code {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.06);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.88em;
    font-family: var(--font);
    word-break: break-all;
}

.example-code {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.example-code .term-chrome {
    background: rgba(0, 0, 0, 0.25);
}

.example-code pre {
    padding: 18px 24px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.75;
}

.example-code code {
    font-family: var(--font);
    color: var(--text);
}

/* Stacked code panels (rf + C++ side by side) */
.example-code-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.example-code-cpp {
    border-color: rgba(239, 68, 68, 0.2) !important;
    background: rgba(120, 40, 40, 0.06) !important;
}

.example-code-cpp .term-chrome {
    background: rgba(120, 40, 40, 0.15);
}

/* C++ syntax highlighting */
.tok-cpp-kw  { color: #f87171; }
.tok-cpp-fn  { color: #fbbf24; }
.tok-cpp-cm  { color: #94a3b8; }
.tok-cpp-str { color: #86efac; }
.tok-cpp-num { color: #fbbf24; }

/* ============================================
   Types table
   ============================================ */

.types-overview {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 100px;
}

.type-table-wrap {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-card);
}

.type-table {
    width: 100%;
    border-collapse: collapse;
}

.type-table th {
    text-align: left;
    padding: 14px 24px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}

.type-table td {
    padding: 14px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.type-table tr:last-child td { border-bottom: none; }

.type-table td:first-child {
    font-weight: 700;
    color: var(--text-dim);
    white-space: nowrap;
    width: 140px;
}

.type-table td:nth-child(2) {
    color: var(--text);
    width: 280px;
}

.type-table td:last-child {
    color: var(--text-dim);
    font-size: 13.5px;
}

.type-table code {
    color: var(--accent);
    background: rgba(56, 189, 248, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    font-family: var(--font);
}

/* ============================================
   Comparison table
   ============================================ */

.comparison {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 100px;
}

.comparison-table-wrap {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-card);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    text-align: left;
    padding: 14px 24px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.comparison-table th.col-rf {
    color: var(--accent);
}

.comparison-table th.col-cpp {
    color: var(--red);
}

.comparison-table td {
    padding: 14px 24px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.comparison-table tr:last-child td { border-bottom: none; }

.col-task {
    font-weight: 600;
    color: var(--text-dim);
    white-space: nowrap;
    width: 160px;
}

.col-rf {
    color: var(--accent);
    font-family: var(--font);
    font-size: 13px !important;
    width: 300px;
}

.col-cpp {
    color: #fca5a5;
    font-family: var(--font);
    font-size: 12.5px !important;
}

.comparison-table code {
    color: inherit;
    background: transparent;
    padding: 0;
    font-size: inherit;
}

.col-loc {
    color: var(--accent);
    font-family: var(--font);
    font-size: 14px !important;
    font-weight: 700;
    text-align: center;
    width: 50px;
}

/* ============================================
   Waitlist
   ============================================ */

.waitlist {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 120px;
}

.waitlist-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 40px 32px;
    text-align: center;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.waitlist-fields {
    display: flex;
    gap: 10px;
}

.waitlist-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
.waitlist-input:focus {
    border-color: var(--accent);
}
.waitlist-input::placeholder {
    color: var(--text-faint);
}

.waitlist-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.waitlist-btn:hover {
    opacity: 0.9;
}

.waitlist-note {
    font-size: 13px;
    color: var(--text-dim);
    margin: 0;
}

.waitlist-success,
.waitlist-error {
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 15px;
    text-align: center;
}
.waitlist-success {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--green);
}
.waitlist-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: var(--red);
}

/* ============================================
   More examples
   ============================================ */

.more-examples {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 120px;
}

.more-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.more-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    transition: all 0.3s;
    color: var(--text);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.more-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 30px var(--border-glow);
    color: var(--text);
}

.more-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 12px;
}

.more-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.more-card p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
}

.more-cpp {
    display: block;
    margin-top: 10px;
    font-size: 11px;
    font-family: var(--font);
    color: var(--red);
    opacity: 0;
    transition: opacity 0.3s;
}
.more-card:hover .more-cpp {
    opacity: 1;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 28px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    font-family: var(--font);
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.footer-tag {
    font-size: 13px;
    color: var(--text-faint);
}

.footer-right {
    display: flex;
    gap: 28px;
}

.footer-right a {
    font-size: 13.5px;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-right a:hover { color: var(--text); }

/* ============================================
   Syntax highlighting
   ============================================ */

.tok-kw      { color: #c084fc; }  /* keywords */
.tok-type    { color: #38bdf8; }  /* types */
.tok-fn      { color: #f0abfc; }  /* function names */
.tok-str     { color: #86efac; }  /* string literals */
.tok-num     { color: #fbbf24; }  /* number literals */
.tok-cm      { color: #64748b; }  /* comments */
.tok-attr    { color: #fbbf24; }  /* annotations: #soa, #align, @dispatch */
.tok-builtin { color: #fbbf24; }  /* builtins: @disjoint, @sizeof */

/* ============================================
   Case studies
   ============================================ */

.case-studies {
    max-width: 960px;
    margin: 0 auto;
    padding: 100px 24px;
    position: relative;
    z-index: 1;
}

.case-study {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 32px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.case-study:hover {
    border-color: var(--border-h);
    box-shadow: 0 0 40px var(--border-glow);
}

.case-study-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 32px 0 32px;
}

.case-study-num {
    font-family: var(--font);
    font-size: 40px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.25;
    line-height: 1;
    flex-shrink: 0;
}

.case-study h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.case-study-tag {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.5;
}

.case-study-tag code {
    font-family: var(--font);
    font-size: 13px;
    background: rgba(56, 189, 248, 0.08);
    color: var(--accent);
    padding: 1px 6px;
    border-radius: 3px;
}

.case-study-body {
    padding: 20px 32px 32px;
}

.case-study-proof {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 16px;
}

.case-study-ir {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    overflow-x: auto;
}

.case-study-ir h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.case-study-ir pre {
    font-family: var(--font);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-dim);
    white-space: pre;
}

.case-study-ir code {
    font-family: inherit;
    font-size: inherit;
}

.case-study-ir-cpp {
    border-left: 2px solid var(--red);
}

.case-study-verdict {
    margin-top: 18px;
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
    background: rgba(56, 189, 248, 0.03);
    border-left: 2px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.case-study-verdict code {
    font-family: var(--font);
    font-size: 13px;
    background: rgba(56, 189, 248, 0.08);
    color: var(--accent);
    padding: 1px 5px;
    border-radius: 3px;
}

.case-study-verdict em {
    color: var(--text);
    font-style: normal;
    font-weight: 600;
}

/* Responsive: single column for IR blocks */
@media (max-width: 700px) {
    .case-study-proof {
        grid-template-columns: 1fr;
    }
    .case-study-header {
        padding: 20px 20px 0 20px;
    }
    .case-study-body {
        padding: 16px 20px 24px;
    }
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(56, 189, 248, 0.05); }
    50%      { box-shadow: 0 0 50px rgba(56, 189, 248, 0.12); }
}

.hero-code {
    animation: glowPulse 4s ease-in-out infinite;
}

.fade-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-on-scroll.js-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 110px 24px 60px;
        gap: 40px;
    }
    .hero-wordmark { font-size: 56px; }
    .hero-headline { font-size: 22px; }
    .feature-grid { grid-template-columns: 1fr 1fr; }

    .example-block {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .example-text { order: 1; }
    .example-code { order: 2; }

    .waitlist-fields { flex-direction: column; }
    .more-grid { grid-template-columns: 1fr 1fr; }
    .comparison-table-wrap { overflow-x: auto; }
}

@media (max-width: 560px) {
    .feature-grid { grid-template-columns: 1fr; }
    .more-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 12px; }
    .section-title { font-size: 28px; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }

    .footer-inner { flex-direction: column; gap: 14px; text-align: center; }
}
