/* ==========================================================================
   Brahmi — GPU Cloud
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f3f2f8;
  --border: #e8e6f0;
  --border-strong: #d6d3e2;
  --text: #16141f;
  --muted: #565169;
  --faint: #8a8599;
  --brand: #6b46e5;
  --brand-hover: #5a37d1;
  --brand-2: #6b46e5;
  --brand-soft: #f1edff;
  --brand-ink: #4b2fb8;
  --ok: #15803d;
  --warn: #b45309;
  --info: #2f5bd3;
  --dark: #15131f;
  --dark-2: #1d1a2b;
  --dark-text: #e6e3f0;
  --dark-faint: #8a8599;
  --grad: var(--brand);
  --header-bg: rgba(255, 255, 255, .85);
  --ok-bg: #e9f8ef;
  --warn-bg: #fdf3e3;
  --info-bg: #ebf0fd;
  --danger: #dc2626;
  --vendor: #a7a3b5;
  --wide-border: #e2daff;
  --cta-border: transparent;
  --dark-border: transparent;
  --backdrop: rgba(22, 20, 31, .45);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23565169'%3E%3Cpath d='M12 15l-5-5h10z'/%3E%3C/svg%3E");
  --shadow-lg: 0 24px 60px -24px rgba(22, 20, 31, .45);
  --shadow-sm: 0 1px 2px rgba(22, 20, 31, .05);
  --shadow: 0 1px 2px rgba(22, 20, 31, .04), 0 8px 24px -12px rgba(22, 20, 31, .12);
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1200px;
  --header-h: 84px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

/* Dark theme: follows the OS unless the visitor picked one (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0d14;
    --bg-alt: #13121b;
    --surface: #17151f;
    --surface-2: #211f2c;
    --border: #2a2738;
    --border-strong: #3a3650;
    --text: #eeedf4;
    --muted: #a9a5b8;
    --faint: #77738a;
    --brand: #8b6cf6;
    --brand-hover: #9d82f8;
    --brand-2: #8b6cf6;
    --brand-soft: rgba(139, 108, 246, .14);
    --brand-ink: #c4b5fd;
    --ok: #4ade80;
    --warn: #fbbf24;
    --info: #8aa8ff;
    --dark: #09080e;
    --dark-2: #111019;
    --header-bg: rgba(14, 13, 20, .82);
    --ok-bg: rgba(74, 222, 128, .12);
    --warn-bg: rgba(251, 191, 36, .12);
    --info-bg: rgba(138, 168, 255, .12);
    --danger: #f87171;
    --vendor: #5f5b70;
    --wide-border: rgba(139, 108, 246, .3);
    --cta-border: var(--border);
    --dark-border: var(--border);
    --backdrop: rgba(0, 0, 0, .6);
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23a9a5b8'%3E%3Cpath d='M12 15l-5-5h10z'/%3E%3C/svg%3E");
    --shadow-sm: none;
    --shadow: 0 12px 32px -16px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0d14;
  --bg-alt: #13121b;
  --surface: #17151f;
  --surface-2: #211f2c;
  --border: #2a2738;
  --border-strong: #3a3650;
  --text: #eeedf4;
  --muted: #a9a5b8;
  --faint: #77738a;
  --brand: #8b6cf6;
  --brand-hover: #9d82f8;
  --brand-2: #8b6cf6;
  --brand-soft: rgba(139, 108, 246, .14);
  --brand-ink: #c4b5fd;
  --ok: #4ade80;
  --warn: #fbbf24;
  --info: #8aa8ff;
  --dark: #09080e;
  --dark-2: #111019;
  --header-bg: rgba(14, 13, 20, .82);
  --ok-bg: rgba(74, 222, 128, .12);
  --warn-bg: rgba(251, 191, 36, .12);
  --info-bg: rgba(138, 168, 255, .12);
  --danger: #f87171;
  --vendor: #5f5b70;
  --wide-border: rgba(139, 108, 246, .3);
  --cta-border: var(--border);
  --dark-border: var(--border);
  --backdrop: rgba(0, 0, 0, .6);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23a9a5b8'%3E%3Cpath d='M12 15l-5-5h10z'/%3E%3C/svg%3E");
  --shadow-sm: none;
  --shadow: 0 12px 32px -16px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.grad { color: var(--brand); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--faint); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 12px 0 auto 0; height: 60px; z-index: 100; padding: 0 16px;
}
.nav {
  height: 100%; max-width: calc(var(--container) - 48px); padding: 0 10px 0 22px;
  display: flex; align-items: center; gap: 28px;
  background: var(--header-bg); border: 1px solid var(--border); border-radius: 999px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm); transition: box-shadow .25s ease, border-color .25s ease;
}
.header.scrolled .nav { box-shadow: var(--shadow); border-color: var(--border-strong); }
.logo img { height: 32px; width: auto; }
.logo-on-dark { display: none !important; }
:root[data-theme="dark"] .logo-on-light { display: none !important; }
:root[data-theme="dark"] .logo-on-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo-on-light { display: none !important; }
  :root:not([data-theme]) .logo-on-dark { display: block !important; }
}
.theme-toggle { width: 40px; height: 40px; margin-right: -20px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); display: grid; place-items: center; font-size: 19px; transition: color .15s, border-color .15s, background-color .15s; }
.theme-toggle:hover { color: var(--text); background: var(--bg-alt); }
.theme-toggle .ri-sun-line { display: none; }
:root[data-theme="dark"] .theme-toggle .ri-sun-line { display: block; }
:root[data-theme="dark"] .theme-toggle .ri-moon-line { display: none; }
.nav-menu { display: flex; gap: 2px; margin-right: auto; }
.nav-menu > a { font-size: 14.5px; color: var(--muted); font-weight: 500; padding: 6px 12px; border-radius: 999px; transition: color .15s, background-color .15s; }
.nav-menu > a:hover { color: var(--text); background: var(--surface-2); }
.nav-menu-cta { display: none; }
.nav-cta { display: flex; gap: 8px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, top .2s ease; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 24px; }
.nav-open .nav-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 72px) 0 40px; overflow: hidden; background: radial-gradient(70% 55% at 50% 0%, var(--brand-soft), transparent 70%), var(--bg); }
.hero-glow { display: none; }
.hero-grid { display: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr; gap: 64px; justify-items: center; }
.hero-copy { text-align: center; max-width: 860px; display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; margin-bottom: 26px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: 13.5px; color: var(--muted); transition: border-color .15s, transform .15s;
}
.pill:hover { border-color: var(--brand); color: var(--text); transform: translateY(-1px); }
.pill-tag { background: var(--brand-soft); color: var(--brand-ink); padding: 2px 9px; border-radius: 999px; font-weight: 600; font-size: 12px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 750; letter-spacing: -0.04em; line-height: 1.05; }
.lead { margin-top: 22px; font-size: 18.5px; color: var(--muted); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero-stats { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; justify-content: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.hero-stats li { display: flex; flex-direction: column; align-items: center; padding: 16px 32px; }
.hero-stats li + li { border-left: 1px solid var(--border); }
.hero-stats strong { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.hero-stats span { font-size: 13.5px; color: var(--faint); }

/* Terminal */
.terminal {
  background: var(--dark); border: 1px solid var(--dark-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden; min-width: 0; width: 100%; max-width: 860px;
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a3650; }
.terminal-bar p { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--dark-faint); }
.terminal-body { margin: 0; padding: 20px 22px 26px; font-family: var(--mono); font-size: 13.5px; line-height: 1.85; color: var(--dark-text); min-height: 300px; white-space: pre-wrap; word-break: break-word; }
.t-prompt { color: #b9a6ff; }
.t-ok { color: #6ee7a0; }
.t-dim { color: var(--dark-faint); }
.t-hl { color: #9db4ff; }
.t-cursor { display: inline-block; width: 8px; height: 16px; background: #b9a6ff; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.vendor-strip { position: relative; margin-top: 64px; padding-top: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; }
.vendor-strip p { font-size: 13px; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; width: 100%; text-align: center; }
.vendor-strip span { font-weight: 700; font-size: 17px; color: var(--vendor); letter-spacing: -0.01em; }
.vendor-strip span em { font-style: normal; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-left: 6px; vertical-align: middle; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head--left { text-align: left; margin: 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.section h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; }
.section-sub { margin-top: 18px; color: var(--muted); font-size: 17.5px; }
.section-sub a { color: var(--brand-2); }
.fineprint { margin-top: 22px; font-size: 13px; color: var(--faint); text-align: center; }

/* ---------- Catalog controls ---------- */
.catalog-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.segmented { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; overflow-x: auto; max-width: 100%; }
.segmented button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.segmented button:hover { color: var(--text); }
.segmented button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(22,20,31,.1); }
.billing-toggle { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--faint); font-weight: 600; }
.billing-toggle .is-active { color: var(--text); }
.billing-toggle em { font-style: normal; font-size: 12px; color: var(--ok); background: var(--ok-bg); padding: 2px 8px; border-radius: 999px; margin-left: 4px; }
.switch { width: 46px; height: 26px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); position: relative; padding: 0; }
.switch span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s ease; }
.switch[aria-checked="true"] { background: var(--brand); border-color: var(--brand); }
.switch[aria-checked="true"] span { transform: translateX(20px); }

/* ---------- GPU cards ---------- */
.gpu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gpu-card {
  position: relative; display: flex; flex-direction: column; padding: 24px; min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  animation: cardIn .35s ease both;
}
.gpu-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.gpu-card--flagship { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.gpu-card--flagship::before { content: "Most popular"; position: absolute; top: -11px; left: 24px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gpu-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.gpu-vendor { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--available { color: var(--ok); background: var(--ok-bg); }
.status--limited { color: var(--warn); background: var(--warn-bg); }
.status--waitlist { color: var(--info); background: var(--info-bg); }
.status--soon { color: var(--brand); background: var(--surface-2, var(--info-bg)); border: 1px dashed currentColor; }
.gpu-card h3 { font-size: 24px; letter-spacing: -0.03em; }
.gpu-arch { font-size: 13px; color: var(--faint); margin-top: 2px; }
.gpu-blurb { font-size: 14px; color: var(--muted); margin-top: 12px; min-height: 44px; }
.gpu-specs { list-style: none; padding: 14px 16px; margin: 16px 0; background: var(--bg-alt); border-radius: var(--radius); display: grid; gap: 8px; }
.gpu-specs li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.gpu-specs span { color: var(--faint); }
.gpu-specs b { font-weight: 600; font-family: var(--mono); font-size: 12.5px; text-align: right; }
.gpu-configs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.gpu-configs span { font-family: var(--mono); font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.gpu-price { margin-top: auto; display: flex; align-items: baseline; gap: 6px; margin-bottom: 16px; }
.gpu-price strong { font-size: 30px; font-weight: 750; letter-spacing: -0.03em; }
.gpu-price span { font-size: 13px; color: var(--faint); }
.gpu-price s { font-size: 13px; color: var(--faint); margin-left: 4px; }
/* Price reveal: blurred until the visitor clicks the eye */
.gpu-price { position: relative; align-items: center; }
.price-value { display: flex; align-items: baseline; gap: 6px; min-width: 0; transition: filter .45s ease, opacity .45s ease; }
.price-value strong { font-variant-numeric: tabular-nums; }
.gpu-price.is-masked .price-value { filter: blur(9px); opacity: .55; user-select: none; pointer-events: none; }
.price-eye { margin-left: auto; flex: none; height: 34px; min-width: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font: inherit; font-size: 17px; cursor: pointer; transition: color .15s, border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.price-eye:hover { color: var(--brand); border-color: var(--brand); }
.price-eye:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.price-eye-label { display: none; font-size: 13px; font-weight: 600; }
/* Masked: the eye becomes a "Reveal price" pill beside the blurred figure */
.gpu-price.is-masked .price-eye { padding: 0 14px 0 12px; color: var(--brand); border-color: var(--brand); background: var(--surface); box-shadow: var(--shadow-sm); animation: eyePulse 2.4s ease-in-out infinite; }
.gpu-price.is-masked .price-eye:hover { background: var(--brand); color: #fff; transform: scale(1.03); }
.gpu-price.is-masked .price-eye-label { display: inline; }
.gpu-price--soon strong { font-size: 20px; color: var(--muted, var(--faint)); }
@keyframes eyePulse { 0%, 100% { box-shadow: var(--shadow-sm), 0 0 0 0 color-mix(in srgb, var(--brand) 35%, transparent); } 50% { box-shadow: var(--shadow-sm), 0 0 0 6px color-mix(in srgb, var(--brand) 0%, transparent); } }
.catalog-toggles { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.price-toggle-label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.price-toggle-label.is-active { color: var(--text); }
.gpu-card .btn { width: 100%; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { padding: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.product-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.product-card--wide { grid-column: span 2; grid-row: span 2; background: var(--brand-soft); border-color: var(--wide-border); display: flex; flex-direction: column; }
.product-card--wide h3 { font-size: 28px; }
.product-card--wide p { font-size: 16.5px; max-width: 520px; }
.product-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 22px; margin-bottom: 20px; }
.product-card h3 { font-size: 20px; margin-bottom: 10px; }
.product-card p { color: var(--muted); font-size: 15px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--text); font-size: 15px; }
.checks li::before { content: "\eb7b"; font-family: remixicon; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 12px; line-height: 18px; text-align: center; }
.product-card--wide .checks { margin-top: auto; padding-top: 28px; }
.product-card--app { position: relative; display: flex; flex-direction: column; }
.product-card--app:hover { border-color: var(--brand); }

.product-tag { position: absolute; top: 30px; right: 30px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-ink); background: var(--brand-soft); padding: 3px 9px; border-radius: 999px; }
.product-link { margin-top: auto; padding-top: 18px; color: var(--brand-2); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 4px; }
.product-card--app:hover .product-link i { transform: translate(2px, -2px); }
.product-link i { transition: transform .15s; }

/* ---------- Solutions ---------- */
.solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.solution-card { display: flex; flex-direction: column; padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.solution-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.solution-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.solution-for { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-ink); background: var(--brand-soft); padding: 3px 9px; border-radius: 999px; text-align: right; }
.solution-card h3 { font-size: 22px; margin-bottom: 8px; }
.solution-lede { color: var(--text); font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.solution-card p:not(.solution-lede) { color: var(--muted); font-size: 15px; }
.solution-card .checks { margin: 22px 0 26px; }
.solution-card .checks li { font-size: 14.5px; }
.solution-cta { margin-top: auto; align-self: flex-start; }

/* ---------- Compare table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; min-width: 880px; font-size: 14.5px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.compare thead th { font-size: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 500; background: var(--surface-2); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr { transition: background .15s; }
.compare tbody tr:hover { background: var(--bg-alt); }
.compare td:first-child { font-weight: 600; }
.compare td:first-child small { display: block; font-weight: 400; color: var(--faint); font-size: 12px; }
.compare td { color: var(--muted); font-variant-numeric: tabular-nums; }
.compare .num { text-align: right; }
.compare td.num { color: var(--text); font-family: var(--mono); font-size: 14px; }
.compare td.num.hl { color: var(--brand); font-weight: 600; }

/* ---------- Calculator ---------- */
.calc { margin-top: 40px; display: grid; grid-template-columns: 1.4fr 1fr; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.calc-inputs { padding: 34px; display: grid; gap: 22px; }
.calc-inputs h3 { font-size: 22px; }
.calc-result { padding: 34px; background: var(--bg-alt); border-left: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.calc-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--border-strong); }
.calc-line span { color: var(--muted); font-size: 15px; }
.calc-line strong { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.calc-line--hl strong { font-size: 34px; color: var(--brand); }
.calc-save { color: var(--ok); font-size: 14px; font-weight: 600; min-height: 22px; }
.calc-meta { color: var(--faint); font-size: 13px; margin-bottom: 8px; }

/* ---------- Form fields ---------- */
.field { display: grid; gap: 8px; }
.field > span { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); font-weight: 500; }
.field em { font-style: normal; color: var(--faint); }
.field output { font-family: var(--mono); color: var(--text); font-weight: 600; }
.field input:not([type="range"]), .field select, .field textarea {
  width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 11px 14px; font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field select { appearance: none; background-image: var(--select-arrow); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(107,70,229,.15); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--brand) var(--fill, 50%), var(--surface-2) var(--fill, 50%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); cursor: pointer; }
input[type="range"]:focus-visible { box-shadow: 0 0 0 3px rgba(107,70,229,.2); }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); padding: 30px; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.feature:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.feature i { font-size: 22px; color: var(--brand); width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 20px; }
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Developers ---------- */
.dev { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.code-card { background: var(--dark); border: 1px solid var(--dark-border); border-radius: var(--radius-lg); overflow: hidden; min-width: 0; box-shadow: var(--shadow-lg); }
.code-tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid rgba(255,255,255,.08); background: var(--dark-2); }
.code-tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; font-family: var(--mono); font-size: 13px; color: var(--dark-faint); }
.code-tabs button[aria-selected="true"] { background: var(--dark); color: #fff; }
.code { margin: 0; padding: 24px; font-family: var(--mono); font-size: 13.5px; line-height: 1.8; color: var(--dark-text); overflow-x: auto; min-height: 290px; }
.code .c { color: var(--dark-faint); }
.code .k { color: #b9a6ff; }
.code .s { color: #9fe3b8; }
.code .n { color: #fbbf77; }

/* ---------- Use cases ---------- */
.usecase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.usecase { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.usecase > span { font-size: 40px; font-weight: 750; line-height: 1; letter-spacing: -0.04em; color: var(--brand); opacity: .35; margin-bottom: 6px; }
.usecase h3 { font-size: 19px; }
.usecase p { color: var(--muted); font-size: 14.5px; flex: 1; }
.usecase small { align-self: flex-start; font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 3px 10px; border-radius: 999px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.faq details:hover { border-color: var(--border-strong); }
.faq details[open] { border-color: var(--brand); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 60px 18px 22px; font-weight: 600; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\ea13"; font-family: remixicon; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 16px; color: var(--muted); transition: transform .2s, background-color .2s, color .2s; font-weight: 400; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--brand); color: #fff; }
.faq details p { padding: 0 60px 20px 22px; color: var(--muted); }

/* ---------- CTA ---------- */
.section-cta { padding-top: 40px; }
.cta { position: relative; overflow: hidden; text-align: center; padding: 80px 32px; border-radius: 24px; background: var(--dark); border: 1px solid var(--cta-border); color: #fff; }
.cta-glow { display: none; }
.cta .grad { color: #b9a6ff; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); }
.cta h2 { position: relative; max-width: 720px; margin: 0 auto; }
.cta p { position: relative; color: #b5b1c4; font-size: 17.5px; margin-top: 18px; }
.cta .hero-actions { position: relative; justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 28px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 38px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; }
.footer-parent { margin-top: 10px; }
.footer-parent a { color: var(--brand-2); font-weight: 600; }
.footer h4 { font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 500; margin-bottom: 16px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:not(.footer-parent a) { color: var(--muted); font-size: 14.5px; transition: color .15s; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); }

/* ---------- Modal ---------- */
.modal {
  width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; margin: auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.modal::backdrop { background: var(--backdrop); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .22s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close-form { position: absolute; top: 14px; right: 14px; margin: 0; }
.modal-close { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border); background: transparent; font-size: 20px; display: grid; place-items: center; color: var(--muted); }
.modal-close:hover { color: var(--text); background: var(--bg-alt); }
.modal-body { padding: 36px; }
.modal-body h3 { font-size: 24px; padding-right: 40px; }
.modal-sub { color: var(--muted); margin: 8px 0 26px; font-size: 15px; }
#contactForm { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: var(--danger); font-size: 14px; }
.modal-alt { text-align: center; font-size: 14px; color: var(--faint); }
.modal-alt a { color: var(--brand-2); }
.modal-success { text-align: center; padding: 56px 36px; }
.modal-success i { font-size: 54px; color: var(--ok); }
.modal-success h3 { padding: 0; margin: 10px 0 8px; }
.modal-success p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .gpu-grid { grid-template-columns: repeat(3, 1fr); }
  .usecase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav-cta { display: none; }
  .theme-toggle { margin-left: auto; margin-right: -22px; }
  .nav-toggle { display: block; }
  .nav { padding: 0 8px 0 18px; }
  .nav-menu {
    position: fixed; top: 80px; left: 16px; right: 16px; margin: 0; max-height: calc(100dvh - 96px); overflow-y: auto;
    flex-direction: column; gap: 0; padding: 8px 20px 20px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-menu > a { padding: 14px 4px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--border); color: var(--text); }
  .nav-menu > a:hover { background: none; }
  .nav-menu-cta { display: grid; gap: 10px; margin-top: 24px; }
  .nav-menu-cta .btn { height: 48px; }
  .nav-open .nav-menu { opacity: 1; visibility: visible; transform: none; }

  .hero { padding-top: calc(var(--header-h) + 48px); }
  .dev, .faq-wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-inner { gap: 48px; }
  .terminal-body { min-height: 0; }
  .gpu-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card--wide { grid-row: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc-result { border-left: 0; border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 84px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero-stats { width: 100%; flex-wrap: nowrap; }
  .hero-stats li { flex: 1; padding: 12px 8px; text-align: center; }
  .hero-stats strong { font-size: 19px; }
  .hero-stats span { font-size: 12px; line-height: 1.35; }
  .header { padding: 0 12px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .gpu-grid, .product-grid, .feature-grid, .usecase-grid { grid-template-columns: 1fr; }
  .product-card--wide { grid-column: auto; }
  .solution-grid { grid-template-columns: 1fr; }
  .solution-card { padding: 24px; }
  .solution-top { flex-direction: column-reverse; }
  .solution-for { text-align: left; }
  .catalog-controls { flex-direction: column; align-items: stretch; }
  .billing-toggle { justify-content: center; }
  .catalog-toggles { flex-direction: column; gap: 14px; }
  .calc-inputs, .calc-result, .feature, .product-card { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .modal-body { padding: 28px 20px; }
  .cta { padding: 56px 20px; }
  .terminal-body { font-size: 12px; padding: 16px; }
  .code { font-size: 12.5px; padding: 18px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
