/* ================================================================
   Hydrogen Executor Mac — style.css
   "Frosted Silicon" — original design language
   Playfair Display display type + Instrument Sans body
   ================================================================ */

/* ── Google Fonts already loaded in HTML ── */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Surface palette — warm white + subtle depth */
  --bg:           #f8f8f6;
  --bg-card:      #ffffff;
  --bg-raised:    #fdfdfc;
  --bg-subtle:    #f2f2ef;
  --bg-dark:      #141414;
  --bg-dark-card: #1e1e1e;

  /* Blue accent — slightly warmer than system blue */
  --blue:         #1671f5;
  --blue-mid:     #3d89f8;
  --blue-light:   #e8f0fe;
  --blue-glow:    rgba(22, 113, 245, 0.18);

  /* Text scale */
  --t1:           #0d0d0d;
  --t2:           #2a2a2a;
  --t3:           #6b6b6b;
  --t4:           #a8a8a8;
  --t-inv:        rgba(255,255,255,0.88);
  --t-inv-soft:   rgba(255,255,255,0.45);

  /* Borders */
  --bdr:          rgba(0,0,0,0.07);
  --bdr-mid:      rgba(0,0,0,0.11);
  --bdr-strong:   rgba(0,0,0,0.18);
  --bdr-inv:      rgba(255,255,255,0.1);

  /* Semantics */
  --green:        #22c55e;
  --green-light:  rgba(34,197,94,0.12);
  --red:          #ef4444;
  --yellow:       #eab308;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(0,0,0,0.05);
  --sh-sm: 0 2px 8px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --sh:    0 4px 20px rgba(0,0,0,0.09), 0 1px 4px rgba(0,0,0,0.05);
  --sh-lg: 0 12px 48px rgba(0,0,0,0.12), 0 3px 10px rgba(0,0,0,0.06);
  --sh-xl: 0 24px 80px rgba(0,0,0,0.15), 0 6px 20px rgba(0,0,0,0.08);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font:         'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'Menlo', 'Monaco', monospace;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  max-width: 100%;
}

/* ── Ambient mesh ────────────────────────────────────────────── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.amb-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.amb-1 {
  width: 700px; height: 700px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, #c7dffe 0%, transparent 70%);
}
.amb-2 {
  width: 600px; height: 600px;
  top: 40%; right: -150px;
  background: radial-gradient(circle, #dbeafe 0%, transparent 70%);
}
.amb-3 {
  width: 500px; height: 500px;
  bottom: -100px; left: 30%;
  background: radial-gradient(circle, #e0f2fe 0%, transparent 70%);
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(248, 248, 246, 0.75);
  backdrop-filter: saturate(200%) blur(24px);
  -webkit-backdrop-filter: saturate(200%) blur(24px);
  border-bottom: 1px solid var(--bdr);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--t1);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.logo:hover { opacity: 0.75; }
.logo-gem {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(59,130,246,0.35);
  flex-shrink: 0;
}
.logo-gem-lg {
  width: 48px; height: 48px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(59,130,246,0.4);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 auto;
}
.nav a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--t3);
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav a:hover { color: var(--t1); background: rgba(0,0,0,0.05); }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-header {
  flex-shrink: 0;
  background: var(--t1);
  color: #fff;
  font-size: 0.83rem;
  padding: 9px 18px;
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.btn-header:hover { background: #1c1c1c; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.28); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 100px;
  box-shadow: 0 4px 18px rgba(22,113,245,0.38);
}
.btn-primary:hover { background: #0f62e8; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(22,113,245,0.48); }
.btn-primary:active { transform: translateY(0); }

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.bc-wrap { padding: 11px 28px; position: relative; z-index: 1; }
.bc { display: flex; align-items: center; gap: 6px; list-style: none; font-size: 0.79rem; }
.bc li { display: flex; align-items: center; gap: 6px; }
.bc a { color: var(--blue); text-decoration: none; }
.bc a:hover { text-decoration: underline; }
.bc span:not(.bc-arr) { color: var(--t3); }
.bc-arr { color: var(--t4); font-size: 0.9rem; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero { padding: 72px 0 64px; }
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

/* Hero left */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--bdr-mid);
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--t3);
  padding: 5px 13px 5px 10px;
  margin-bottom: 22px;
  box-shadow: var(--sh-xs);
  letter-spacing: 0.01em;
}
.badge-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
  50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0.06); }
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--t1);
  margin-bottom: 20px;
}
.hero-h1 em {
  font-style: italic;
  color: var(--blue);
}
.hero-h1-sub {
  display: block;
  color: var(--t3);
  font-size: 0.72em;
  font-weight: 700;
  font-style: normal;
  font-family: var(--font);
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.hero-p {
  font-size: 1rem;
  color: var(--t3);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 440px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: gap 0.15s;
}
.hero-link:hover { gap: 8px; }
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--bdr-mid);
  color: var(--t3);
  box-shadow: var(--sh-xs);
  letter-spacing: 0.01em;
}
.chip-green { color: #15803d; background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.2); }

/* ── Terminal window ────────────────────────────────────────── */
.hero-right { position: relative; }
.term-window {
  background: #1a1b1e;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--sh-xl), 0 0 0 1px rgba(0,0,0,0.4);
  overflow: hidden;
  animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.term-bar {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  background: #242428;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 12px;
}
.term-dots { display: flex; gap: 6px; }
.td { width: 12px; height: 12px; border-radius: 50%; }
.td-r { background: #ff5f57; }
.td-y { background: #febc2e; }
.td-g { background: #28c840; }
.term-title {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.35);
  flex: 1;
  text-align: center;
  margin-right: 56px;
  font-family: var(--font);
}
.term-right-icons { display: flex; gap: 8px; }
.term-sidebar {
  display: flex;
  flex-direction: column;
  float: left;
  width: 120px;
  background: #1e1f23;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 10px 0;
  height: 100%;
}
/* Clear float with pseudo */
.term-window > .term-sidebar { position: absolute; left: 0; top: 0; bottom: 0; padding-top: 0; }
/* Reapproach: use flex layout for the body */
.term-body {
  display: flex;
  min-height: 220px;
}
.term-sidebar {
  float: none;
  position: static;
  width: 120px;
  background: #1e1f23;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 10px 0;
  flex-shrink: 0;
}
.ts-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font);
  font-size: 0.71rem;
  color: rgba(255,255,255,0.35);
  padding: 8px 12px;
  cursor: default;
  transition: background 0.15s, color 0.15s;
}
.ts-item:hover { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.6); }
.ts-active { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.06); }
.term-editor { flex: 1; display: flex; flex-direction: column; }
.term-tabs {
  display: flex;
  background: #242428;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 12px;
  gap: 0;
}
.ttab {
  font-family: var(--font);
  font-size: 0.71rem;
  color: rgba(255,255,255,0.35);
  padding: 8px 14px;
  border-bottom: 2px solid transparent;
  cursor: default;
}
.ttab-active { color: rgba(255,255,255,0.82); border-bottom-color: var(--blue); }
.term-code {
  flex: 1;
  padding: 14px 0;
  background: #1a1b1e;
}
.tc {
  display: flex;
  align-items: baseline;
  padding: 1.5px 16px;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
}
.tc-active { background: rgba(255,255,255,0.04); }
.tln { width: 22px; color: rgba(255,255,255,0.18); flex-shrink: 0; margin-right: 14px; text-align: right; user-select: none; font-size: 0.67rem; }
.tkw  { color: #c792ea; }
.tfn  { color: #82aaff; }
.tstr { color: #c3e88d; }
.tcm  { color: rgba(255,255,255,0.25); font-style: italic; }
.tp   { color: rgba(255,255,255,0.55); }
.tvar { color: #e0c792; }
.tkey { color: #89ddff; }
.tnum { color: #f78c6c; }
.top  { color: rgba(255,255,255,0.4); }
.tcursor {
  display: inline-block;
  width: 2px;
  height: 13px;
  background: rgba(255,255,255,0.7);
  vertical-align: middle;
  margin-left: 1px;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.term-foot {
  display: flex;
  align-items: center;
  background: #242428;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 10px 16px;
  gap: 0;
}
.tf-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
}
.tf-stat:first-child { padding-left: 0; }
.tf-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tf-green { background: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
.tf-label { font-family: var(--font); font-size: 0.68rem; color: rgba(255,255,255,0.35); }
.tf-val { font-family: var(--font); font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.7); }
.tf-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.08); }

/* Floating labels */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--bdr-mid);
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--t2);
  padding: 7px 14px;
  box-shadow: var(--sh);
  white-space: nowrap;
  z-index: 10;
}
.fb-1 { bottom: -18px; left: -28px; animation: floatY 8s 1s ease-in-out infinite; }
.fb-2 { top: -18px; right: -20px; animation: floatY 9s 2.5s ease-in-out infinite; }

/* ── Hero ribbon ─────────────────────────────────────────────── */
.hero-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--r-lg);
  margin-top: 72px;
  padding: 0;
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.rib-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 22px 40px;
  transition: background 0.15s;
}
.rib-item:hover { background: var(--bg-subtle); }
.rib-item strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--t1);
  letter-spacing: -0.03em;
  line-height: 1;
}
.rib-item span {
  font-size: 0.72rem;
  color: var(--t4);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.rib-sep { width: 1px; height: 40px; background: var(--bdr); flex-shrink: 0; }

/* ── SCREENSHOT ─────────────────────────────────────────────── */
.ss-section { padding: 80px 0; }
.ss-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-xl);
  border: 1px solid var(--bdr-mid);
  background: var(--bg-card);
}
.ss-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #ebebeb;
  border-bottom: 1px solid var(--bdr);
}
.ss-dots { display: flex; gap: 6px; }
.ss-dots span { width: 11px; height: 11px; border-radius: 50%; }
.ss-dots span:nth-child(1) { background: #ff5f57; }
.ss-dots span:nth-child(2) { background: #febc2e; }
.ss-dots span:nth-child(3) { background: #28c840; }
.ss-url {
  flex: 1;
  background: #fff;
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--t3);
  padding: 4px 12px;
  border: 1px solid var(--bdr);
  text-align: center;
}
.ss-img { width: 100%; height: auto; display: block; }

/* ── GENERIC SECTION ─────────────────────────────────────────── */
.section { padding: 72px 0; }
.s-head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.s-eye {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.s-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--t1);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 14px;
}
.s-head p {
  font-size: 0.97rem;
  color: var(--t3);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ── FEATURES ───────────────────────────────────────────────── */
.feat-section { background: var(--bg-raised); border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr); padding: 72px 0; }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 26px 22px;
  box-shadow: var(--sh-xs);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(22,113,245,0.3), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.feat-card:hover::before { opacity: 1; }
.fc-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--blue-light);
  border: 1px solid rgba(22,113,245,0.14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.fc-icon svg { stroke: var(--blue); }
.feat-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feat-card p {
  font-size: 0.85rem;
  color: var(--t3);
  line-height: 1.68;
}

/* ── CHANGELOG ──────────────────────────────────────────────── */
.cl-section { background: var(--bg); }
.cl-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--bdr);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--sh-sm);
}
.cl-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--bdr);
  transition: background 0.15s;
}
.cl-row:last-child { border-bottom: none; }
.cl-row:hover { background: var(--bg-subtle); }
.cl-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}
.cl-badge {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--bg-subtle);
  color: var(--t3);
  border: 1px solid var(--bdr);
  align-self: flex-start;
}
.cl-new { background: var(--blue-light); color: var(--blue); border-color: rgba(22,113,245,0.2); }
.cl-date {
  font-size: 0.78rem;
  color: var(--t4);
  font-weight: 500;
}
.cl-right { display: flex; flex-direction: column; gap: 10px; }
.cl-ver {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--t2);
  background: none;
  letter-spacing: -0.01em;
}
.cl-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cl-items li {
  font-size: 0.86rem;
  color: var(--t3);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}
.cl-items li::before { content: '·'; position: absolute; left: 4px; color: var(--blue-mid); }

/* ── SPECS ──────────────────────────────────────────────────── */
.specs-section { background: var(--bg-raised); border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr); }
.specs-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
.specs-table {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.sp-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--bdr);
  transition: background 0.15s;
}
.sp-row:last-child { border-bottom: none; }
.sp-row:hover { background: var(--bg-subtle); }
.sp-k {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--t4);
  width: 70px;
  flex-shrink: 0;
  font-family: var(--font-mono);
}
.sp-v { font-size: 0.88rem; color: var(--t2); font-weight: 500; }
.sp-free { color: #15803d; font-weight: 700; }
.specs-aside { display: flex; flex-direction: column; gap: 14px; }
.sa-card {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--sh-xs);
}
.sa-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 4px;
}
.sa-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--t4);
  margin-bottom: 14px;
}
.sa-bar {
  height: 5px;
  background: var(--bg-subtle);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 12px;
}
.sa-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  border-radius: 100px;
}
.sa-card p { font-size: 0.82rem; color: var(--t3); line-height: 1.6; }
.sa-card-dark {
  background: var(--bg-dark);
  border-color: rgba(255,255,255,0.07);
}
.sa-dark-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}
.sa-os-list { display: flex; flex-direction: column; gap: 8px; }
.sa-os {
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
}

/* ── INSTALL ─────────────────────────────────────────────────── */
.install-section { background: var(--bg); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 28px 22px 26px;
  box-shadow: var(--sh-xs);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  position: relative;
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.step-n {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--bg-subtle);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 14px;
  user-select: none;
}
.step-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 9px;
  letter-spacing: -0.01em;
}
.step-card p {
  font-size: 0.83rem;
  color: var(--t3);
  line-height: 1.65;
}
.step-card em { font-style: normal; color: var(--t2); font-weight: 600; }
.install-cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.install-note { font-size: 0.76rem; color: var(--t4); }

/* ── SCRIPTS ─────────────────────────────────────────────────── */
.scripts-section { background: var(--bg-raised); border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr); }
.scripts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.sc-card {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  box-shadow: var(--sh-xs);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.15s;
}
.sc-card:hover { transform: translateY(-2px); box-shadow: var(--sh); border-color: rgba(22,113,245,0.2); }
.sc-em { font-size: 1.3rem; flex-shrink: 0; }
.sc-card div { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.sc-card strong { font-size: 0.85rem; font-weight: 600; color: var(--t1); }
.sc-card span { font-size: 0.71rem; color: var(--t4); }
.sc-ok { font-size: 0.78rem; font-weight: 700; color: #15803d; flex-shrink: 0; }

/* ── COMPARISON ─────────────────────────────────────────────── */
.compare-section { background: var(--bg); }
.cmp-wrap { overflow-x: auto; }
.cmp-tbl {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  min-width: 460px;
}
.cmp-tbl thead th {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--t4);
  padding: 14px 22px;
  text-align: left;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--bdr-mid);
}
.cmp-tbl th.cmp-hl { background: var(--blue-light); color: var(--blue); }
.cmp-tbl td {
  padding: 13px 22px;
  font-size: 0.87rem;
  color: var(--t3);
  border-bottom: 1px solid var(--bdr);
}
.cmp-tbl tr:last-child td { border-bottom: none; }
.cmp-tbl td.cmp-hl { color: var(--t2); background: rgba(22,113,245,0.02); }
.cmp-tbl td.cmp-hl strong { color: var(--blue); }
.cmp-tbl tbody tr:hover td { background: var(--bg-subtle); }
.cmp-tbl tbody tr:hover td.cmp-hl { background: rgba(22,113,245,0.04); }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-section { background: var(--bg-raised); border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr); }
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.faq-item {
  border-bottom: 1px solid var(--bdr);
  transition: background 0.15s;
}
.faq-item:last-child { border-bottom: none; }
.faq-item[open] { background: #fafaf8; }
.faq-item summary {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--t1);
  padding: 20px 26px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--blue);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.2s var(--ease);
  text-align: center;
  line-height: 24px;
}
.faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}
.faq-item summary:hover { color: var(--blue); }
.faq-item p {
  font-size: 0.88rem;
  color: var(--t3);
  padding: 0 26px 20px;
  line-height: 1.7;
}

/* ── CTA ─────────────────────────────────────────────────────── */
.cta-section { padding: 80px 0; }
.cta-card {
  background: linear-gradient(135deg, #0a0f1e 0%, #0c1a3a 50%, #0d2660 100%);
  border-radius: var(--r-xl);
  padding: 80px 40px;
  text-align: center;
  box-shadow: 0 28px 80px rgba(10,20,60,0.45);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.cta-glow {
  position: absolute;
  width: 600px; height: 400px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(59,130,246,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
}
.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 14px;
}
.cta-card > .cta-content > p {
  color: rgba(255,255,255,0.5);
  font-size: 0.97rem;
  margin-bottom: 36px;
  line-height: 1.65;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.btn-cta-main {
  background: #fff;
  color: #0c1a3a;
  padding: 15px 32px;
  border-radius: 100px;
  font-size: 0.97rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.btn-cta-main:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.cta-meta {
  margin-top: 18px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.28);
}

/* ── SHARE ───────────────────────────────────────────────────── */
.share-section { padding: 40px 0 60px; text-align: center; }
.share-lbl {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--t4);
  margin-bottom: 18px;
}
.share-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.sh-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--bg-card);
  color: var(--t2);
  border: 1px solid var(--bdr-mid);
  box-shadow: var(--sh-xs);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.15s, color 0.15s, border-color 0.15s;
}
.sh-btn:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.sh-btn:nth-child(1):hover { background: #0077b5; color: #fff; border-color: #0077b5; }
.sh-btn:nth-child(2):hover { background: #0f0f0f; color: #fff; border-color: #0f0f0f; }
.sh-btn:nth-child(3):hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.sh-btn:nth-child(4):hover { background: #ff4500; color: #fff; border-color: #ff4500; }
.sh-btn:nth-child(5):hover { background: #e60023; color: #fff; border-color: #e60023; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--bdr);
  padding: 44px 0 36px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-brand p { font-size: 0.79rem; color: var(--t4); max-width: 380px; line-height: 1.55; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.8rem;
  color: var(--blue);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.15s;
}
.footer-nav a:hover { background: var(--blue-light); }
.footer-copy { font-size: 0.74rem; color: var(--t4); }

/* ── Reveal animation ────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-layout { grid-template-columns: 1fr; gap: 48px; }
  .hero-window { animation: none; }
  .fb-1, .fb-2 { display: none; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .specs-layout { grid-template-columns: 1fr; }
  .specs-aside { flex-direction: row; }
  .sa-card { flex: 1; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero { padding: 48px 0 56px; }
  .hero-h1 { font-size: 2.4rem; }
  .feat-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .rib-item { padding: 18px 20px; }
  .rib-item strong { font-size: 1.05rem; }
  .cl-row { grid-template-columns: 1fr; gap: 10px; }
  .cl-left { flex-direction: row; align-items: center; }
  .specs-aside { flex-direction: column; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-primary { align-self: stretch; justify-content: center; }
  .cta-card { padding: 52px 24px; }
  .scripts-grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
}
@media (max-width: 420px) {
  .hero-ribbon {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .rib-sep { display: none; }
  .rib-item { border-bottom: 1px solid var(--bdr); }
}
