:root {
  --bg: #09090b;
  --panel: #111214;
  --text: #f5f5f5;
  --muted: #a1a1aa;
  --accent: #ff7a00;
  --line: rgba(255, 255, 255, 0.08);
  --font: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 480px at 12% -8%, rgba(255, 122, 0, 0.16), transparent 55%),
    radial-gradient(800px 400px at 88% 0%, rgba(255, 255, 255, 0.04), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
  z-index: 0;
}

.top, main, .foot { position: relative; z-index: 1; }

.top {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.brand small {
  color: var(--muted);
  font-size: 12px;
}
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent) !important;
  color: #140a00 !important;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700 !important;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  min-height: min(72vh, 640px);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 7rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
  animation: rise 0.7s ease both;
}
.tagline {
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 28ch;
  animation: rise 0.8s ease 0.08s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 0.85s ease 0.14s both;
}
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-primary {
  background: var(--accent);
  color: #140a00;
}
.btn-primary span { font-weight: 800; font-size: 16px; }
.btn-primary small { opacity: 0.75; font-size: 12px; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
  justify-content: center;
  font-weight: 650;
}

.hero-visual { animation: floatIn 1s ease 0.2s both; }
.window {
  background: #0e0e11;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #121214;
}
.window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3f3f46;
}
.window-bar i:nth-child(1) { background: #ef4444; }
.window-bar i:nth-child(2) { background: #eab308; }
.window-bar i:nth-child(3) { background: #22c55e; }
.window-bar span {
  margin-left: 10px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}
.window-body {
  display: grid;
  grid-template-columns: 56px 1fr;
  min-height: 280px;
}
.window-body aside {
  border-right: 1px solid var(--line);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.window-body aside b {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #111214;
  border: 1px solid rgba(255, 122, 0, 0.4);
  color: var(--text);
}
.window-body aside span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}
.window-body aside span.on {
  background: rgba(255, 122, 0, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 0, 0.4);
}
.editor {
  padding: 20px;
  font-family: var(--mono);
  font-size: 13px;
  color: #d4d4d8;
  background:
    linear-gradient(180deg, rgba(255, 122, 0, 0.08), transparent 40%),
    #0c0c0e;
}
.editor em { color: var(--accent); font-style: normal; }

.strip {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.strip article {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(17, 18, 20, 0.85);
}
.strip span {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 12px;
}
.strip h2 { margin: 10px 0 8px; font-size: 22px; letter-spacing: -0.03em; }
.strip p { margin: 0; color: var(--muted); font-size: 14px; }
.strip code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
}

.features, .packs, .faq {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 72px;
}
.features h2, .packs-head h2, .faq h2 {
  margin: 0 0 18px;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.feat-grid.feat-3 {
  grid-template-columns: repeat(3, 1fr);
}
.platforms-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 560px;
}
.platform-btn {
  width: 100%;
}
.hero-clean .tagline {
  max-width: 36ch;
}
.feat-grid div {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.feat-grid h3 { margin: 0 0 8px; font-size: 16px; }
.feat-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.packs-head p { margin: -8px 0 18px; color: var(--muted); }
.pack-list {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
}
.pack-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.pack-row:last-child { border-bottom: 0; }
.pack-row:hover { background: rgba(255, 122, 0, 0.06); }
.pack-row.primary { background: linear-gradient(90deg, rgba(255, 122, 0, 0.12), transparent); }
.pack-row strong { display: block; }
.pack-row span { color: var(--muted); font-size: 13px; }
.pack-row em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.req { margin-top: 14px; color: var(--muted); font-size: 13px; }

.lang-switch select {
  background: #0b0b0f;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.pack-row.muted-row {
  opacity: 0.72;
  cursor: default;
}
.pack-row.muted-row:hover { background: transparent; }
.pack-row.muted-row em { color: var(--muted); }

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: rgba(17, 18, 20, 0.7);
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
}
.faq p { margin: 10px 0 0; color: var(--muted); }
.faq code { font-family: var(--mono); color: var(--text); font-size: 13px; }

.foot {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}
.foot > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.foot-links { display: flex; gap: 16px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--accent); }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .hero, .strip, .feat-grid, .feat-grid.feat-3, .platforms-row { grid-template-columns: 1fr; }
  nav a:not(.nav-cta) { display: none; }
  .lang-switch { display: inline-flex; }
  .hero { min-height: auto; margin-top: 12px; }
  .foot { flex-direction: column; }
}
