@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  --bg:          #FFFFFF;
  --bg-alt:      #F7F8FC;
  --surface:     #ECEEF5;
  --surface-2:   #E0E3EE;
  --border:      #DDE1EB;
  --text:        #0D1117;
  --text-2:      #374151;
  --muted:       #6B7280;
  --accent:      #3B82F6;
  --accent-d:    #1D4ED8;
  --accent-l:    #EFF6FF;
  --accent-m:    #BFDBFE;
  --green:       #059669;
  --radius:      12px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:   0 20px 48px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.06);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--accent);
}

.nav-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

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

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  white-space: nowrap;
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-alt);
  border-color: var(--surface-2);
  color: var(--text);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 3px rgba(59,130,246,0.30);
}
.btn-primary:hover {
  background: var(--accent-d);
  box-shadow: 0 4px 12px rgba(59,130,246,0.35);
}

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all 0.15s;
  flex-shrink: 0;
}
.nav-icon-btn svg { width: 18px; height: 18px; }
.nav-icon-btn:hover {
  background: var(--bg-alt);
  border-color: var(--surface-2);
  color: var(--text);
}

/* CTA band overrides */
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
  color: var(--text);
  border: none;
}
.btn-cta-primary:hover { background: var(--accent-l); color: var(--accent-d); }

.btn-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
  color: rgba(255,255,255,0.80);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-cta-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}

/* ── HERO ── */
.hero {
  padding: 160px 48px 120px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 560px;
  background: radial-gradient(ellipse 65% 55% at 50% 0%, rgba(59,130,246,0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-l);
  border: 1px solid var(--accent-m);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 40px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: clamp(38px, 5.2vw, 66px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.06;
  margin-bottom: 28px;
  color: var(--text);
}

.hero h1 .accent {
  background: linear-gradient(125deg, #3B82F6 20%, #7C3AED 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero > p {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-ctas .btn { padding: 13px 26px; font-size: 15px; }

/* ── HERO VISUAL ── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 72px;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.hv-card {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.hv-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(59,130,246,0.14);
  transform: translateY(-3px);
}

.hv-card-main {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(59,130,246,0.16);
  transform: translateY(-8px);
}
.hv-card-main:hover { transform: translateY(-12px); }

.hv-connector {
  height: 1px;
  width: 36px;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--border) 0%, var(--accent) 50%, var(--border) 100%);
}

.hv-icon { font-size: 34px; margin-bottom: 12px; }
.hv-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.hv-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── SECTION BASE ── */
section { padding: 100px 48px; }
.page-first-section { padding-top: 144px; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  line-height: 1.12;
  color: var(--text);
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.75;
}

/* ── PRODUCTS ── */
.products-section { background: var(--bg); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
  align-items: center;
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card-featured {
  border-color: var(--accent);
  box-shadow: 0 4px 28px rgba(59,130,246,0.13);
  position: relative;
  z-index: 1;
}
.product-card-featured:hover {
  transform: translateY(-2px);
}

.product-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
}
.tag-content  { background: #FFF7ED; color: #C2410C; }
.tag-compute  { background: var(--accent-l); color: var(--accent-d); }
.tag-protocol { background: #F5F3FF; color: #7C3AED; }

.product-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.content-bg  { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); }
.compute-bg  { background: var(--accent-l); }
.protocol-bg { background: #F5F3FF; }

.product-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}
.product-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.product-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.15s;
}
.product-cta:hover { color: var(--accent-d); }

/* ── ABOUT ── */
.about-section { background: var(--bg-alt); }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: start;
}

.about-intro {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.75;
  margin-top: 24px;
  margin-bottom: 16px;
}

.about-body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.av-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.av-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-l);
  border: 1px solid var(--accent-m);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.av-item h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.av-item p  { font-size: 14px; color: var(--muted); line-height: 1.65; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 64px;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(59,130,246,0.10);
}

.stat-card-accent {
  border-color: var(--accent);
  background: var(--accent-l);
}

.stat-num {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card-accent .stat-num { color: var(--accent-d); }

.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── PLATFORM ── */
.platform-section { background: var(--bg-alt); }

.platform-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  margin-top: 60px;
  align-items: start;
}

/* ── TERMINAL ── */
.terminal-wrap {
  border: 1px solid #1F2937;
  border-radius: 16px;
  overflow: hidden;
  background: #0D1117;
  box-shadow: var(--shadow-lg);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #161B22;
  border-bottom: 1px solid #21262D;
}
.terminal-bar .dot-r { background: #EF4444; }
.terminal-bar .dot-y { background: #F59E0B; }
.terminal-bar .dot-g { background: #10B981; }
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-title {
  margin-left: auto; margin-right: auto;
  font-size: 12px;
  color: #6B7280;
  font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
  padding: 24px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.9;
}
.t-dim    { color: #3D4F63; }
.t-prompt { color: #10B981; }
.t-cmd    { color: #CDD9E5; }
.t-key    { color: #79C0FF; }
.t-val    { color: #56D364; }
.t-str    { color: #E3B341; }
.t-url    { color: #58A6FF; }

/* ── DUAL TERMINAL ── */
.terminals-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.terminal-cmd {
  background: #0C0C0C;
  border-color: #3A3A3A;
}

.terminal-bar-cmd {
  background: #1E1E1E;
  border-bottom-color: #3A3A3A;
  justify-content: space-between;
  padding: 10px 14px;
}

.terminal-bar-cmd .terminal-title {
  margin: 0;
  color: #C6C6C6;
  font-size: 12px;
}

.cmd-controls {
  display: flex;
  gap: 2px;
}

.cmd-btn {
  font-size: 11px;
  color: #888;
  width: 24px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  cursor: default;
  font-family: 'JetBrains Mono', monospace;
}

.cmd-btn-close { color: #EF4444; }

/* ── PLATFORM STEPS ── */
.platform-steps {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.ps-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.ps-num {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent-l);
  border: 1px solid var(--accent-m);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}

.ps-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.ps-item p  { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 10px; }
.ps-item code {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--green);
  white-space: nowrap;
}

/* ── FEATURES ── */
#features { background: var(--bg-alt); }

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

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(59,130,246,0.10);
}

.feature-icon { font-size: 22px; margin-bottom: 14px; }
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── CONTENT / GAMES ── */
.content-section { background: var(--bg); }

.apps-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 60px;
  justify-content: center;
}

.app-card {
  flex: 0 1 calc(33.333% - 16px);
  min-width: 260px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  color: inherit;
}
.app-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(59,130,246,0.12);
}

.app-icon-wrap {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.app-icon-img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.app-details {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-details h3 { font-size: 16px; font-weight: 700; }
.app-details p  { font-size: 14px; color: var(--muted); line-height: 1.6; flex: 1; }

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-l);
  border: 1px solid var(--accent-m);
  border-radius: 8px;
  padding: 8px 14px;
  width: fit-content;
  transition: all 0.15s;
}
.app-card:hover .play-badge {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, #0D1117 0%, #111827 50%, #0F1B2D 100%);
  padding: 100px 48px;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  color: #fff;
}

.cta-band p {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 40px;
}

.cta-band .hero-ctas { justify-content: center; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--bg);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
}

.footer-logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy { font-size: 13px; color: var(--muted); }

/* ── DOWNLOAD ── */
.download-hero-section { background: var(--bg-alt); padding-bottom: 60px; }

.dl-version-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.dl-link { color: var(--accent); font-weight: 600; }
.dl-link:hover { color: var(--accent-d); }

.download-cards-section { background: var(--bg); padding-top: 60px; padding-bottom: 80px; }

.dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}

.dl-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.dl-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.dl-card-featured {
  border-color: var(--accent);
  box-shadow: 0 4px 28px rgba(59,130,246,0.13);
}

.dl-os-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--accent-l);
  border: 1px solid var(--accent-m);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}

.dl-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }

.dl-os-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
.dl-os-detail { font-size: 13px; color: var(--muted); }

.dl-file-info {
  margin-top: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dl-file-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.dl-file-contents { font-size: 12px; color: var(--muted); }
.dl-file-contents code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--green);
  font-size: 11px;
}

.dl-btn {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  font-size: 15px;
}

.download-steps-section { background: var(--bg-alt); }

.dl-steps {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 52px;
  max-width: 680px;
}

@media (max-width: 768px) {
  .dl-grid { grid-template-columns: 1fr; }
}

/* ── CONTACT ── */
.contact-section { background: var(--bg-alt); }

.contact-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 0;
}

.contact-main {
  display: flex;
  flex-direction: column;
}

.contact-intro {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 16px;
  margin-bottom: 32px;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 80px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-info-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-l);
  border: 1px solid var(--accent-m);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.form-group input,
.form-group textarea {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.10);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.contact-submit {
  width: 100%;
  justify-content: center;
  padding: 13px 28px;
  font-size: 15px;
  margin-top: 4px;
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

.form-status.success { color: var(--green); font-weight: 500; }
.form-status.error   { color: #EF4444;      font-weight: 500; }

/* ── DESKTOP: secondary cards at 90% of featured ── */
@media (min-width: 769px) {
  .hv-card-main {
    transform: scale(1.3) translateY(-8px);
    position: relative;
    z-index: 1;
  }
  .hv-card-main:hover {
    transform: scale(1.3) translateY(-12px);
  }
  .hv-card:not(.hv-card-main) {
    transform: scale(0.9);
  }
  .hv-card:not(.hv-card-main):hover {
    transform: scale(0.9) translateY(-3px);
  }

  .product-card-featured {
    transform: scale(1.25);
  }
  .product-card-featured:hover {
    transform: scale(1.25) translateY(-2px);
  }
  .product-card:not(.product-card-featured) {
    transform: scale(0.75);
  }
  .product-card:not(.product-card-featured):hover {
    transform: scale(0.75) translateY(-2px);
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .platform-layout { grid-template-columns: 1fr; }
  .contact-layout  { grid-template-columns: 1fr; gap: 40px; }
  .contact-sidebar { padding-top: 0; }
  .about-layout    { grid-template-columns: 1fr; }
  .about-stats     { padding-top: 0; }
  .contact-intro   { max-width: 100%; }
}

@media (max-width: 768px) {
  nav { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav-logo { font-size: 16px; }
  .nav-logo-img { width: 24px; height: 24px; }

  .hero { padding: 100px 20px 72px; }
  .hero h1 { letter-spacing: -1.5px; }
  .hero > p { font-size: 16px; }

  /* Stack CTA buttons on narrow screens */
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  .hero-ctas .btn { width: 100%; max-width: 320px; justify-content: center; }

  .hero-visual {
    flex-direction: column;
    gap: 0;
    margin-top: 48px;
  }
  .hv-card { width: 100%; }
  .hv-connector {
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, var(--border) 0%, var(--accent) 50%, var(--border) 100%);
  }
  .hv-card-main { transform: none; }

  section { padding: 64px 20px; }

  .products-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .apps-grid .app-card { flex: 0 1 100%; }

  /* Terminal: scrollable horizontally on mobile */
  .platform-layout > * { min-width: 0; }
  .terminal-wrap { overflow-x: auto; }
  .terminal-body { font-size: 11.5px; min-width: 520px; }

  /* Platform steps full width */
  .ps-item { gap: 14px; }
  .ps-item > div:not(.ps-num) { min-width: 0; }
  .ps-item code { display: block; overflow-x: auto; }

  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }

  .cta-band { padding: 72px 20px; }
  .cta-band .hero-ctas { flex-direction: column; align-items: center; }
  .cta-band .hero-ctas .btn-cta-primary,
  .cta-band .hero-ctas .btn-cta-ghost {
    width: 100%; max-width: 320px; justify-content: center;
  }

  footer {
    padding: 32px 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

/* ── HELP / DOCS ── */
.docs-section { background: var(--bg); }

.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  margin-top: 48px;
  align-items: start;
}

.docs-sidebar { position: sticky; top: 88px; }

.docs-nav-group { margin-bottom: 26px; }
.docs-nav-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.docs-nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.docs-nav a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.docs-nav a:hover { background: var(--bg-alt); color: var(--text); }
.docs-nav a.active {
  background: var(--accent-l);
  color: var(--accent-d);
  font-weight: 600;
}
.docs-nav .coming-soon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  font-size: 14px;
  color: var(--muted);
  cursor: default;
  opacity: 0.75;
}
.soon-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--surface);
  color: var(--muted);
  border-radius: 5px;
  padding: 2px 6px;
  white-space: nowrap;
  vertical-align: middle;
}

/* docs content / prose */
.docs-content { max-width: 760px; min-width: 0; }
.docs-content h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  margin: 48px 0 14px;
}
.docs-content > h2:first-child { margin-top: 0; }
.docs-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 10px;
}
.docs-content p { font-size: 15px; color: var(--text-2); line-height: 1.8; margin-bottom: 16px; }
.docs-content ul, .docs-content ol { margin: 0 0 16px 22px; }
.docs-content li { font-size: 15px; color: var(--text-2); line-height: 1.8; margin-bottom: 6px; }
.docs-content a { color: var(--accent); font-weight: 500; }
.docs-content a:hover { color: var(--accent-d); text-decoration: underline; }
.docs-content strong { color: var(--text); font-weight: 700; }
.docs-content hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* inline + block code */
.docs-content :not(pre) > code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--green);
}
.docs-content pre {
  background: #0D1117;
  border: 1px solid #1F2937;
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0 0 20px;
  box-shadow: var(--shadow-sm);
}
.docs-content pre code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #CDD9E5;
  background: none;
  border: none;
  padding: 0;
}
.docs-cmd-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

/* note / callout */
.docs-note {
  background: var(--accent-l);
  border: 1px solid var(--accent-m);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}
.docs-note strong { color: var(--accent-d); }

/* figures */
.docs-figure { margin: 4px 0 24px; display: flex; flex-direction: column; gap: 8px; }
.docs-figure img {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: block;
}
.docs-figure figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.docs-figure-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 4px 0 24px;
}
.docs-figure-row .docs-figure { margin: 0; }

/* numbered steps inside docs reuse .ps-item */
.docs-content .ps-item { margin-bottom: 36px; }
.docs-content .ps-item p { margin-bottom: 12px; }

@media (max-width: 960px) {
  .docs-layout { grid-template-columns: 1fr; gap: 28px; }
  .docs-sidebar { position: static; }
  .docs-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .docs-nav-group { margin-bottom: 14px; }
}

@media (max-width: 768px) {
  .docs-figure-row { grid-template-columns: 1fr; }
}
