:root {
  --bg: #080b12;
  --panel: #101827;
  --panel-2: #141d30;
  --text: #f7f9ff;
  --muted: #aab4c8;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #4e65ff;
  --cyan: #92effd;
  --gold: #fbc02d;
  --green: #29d391;
  --danger: #ff6b6b;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(78, 101, 255, 0.2), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(251, 192, 45, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
input,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  z-index: 100;
  width: auto;
  height: auto;
  clip: auto;
  left: 16px;
  top: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.scrolled {
  background: rgba(8, 11, 18, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(146, 239, 253, 0.35);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(78, 101, 255, 0.42), rgba(146, 239, 253, 0.14));
  box-shadow: 0 0 30px rgba(78, 101, 255, 0.25);
}

.brand-text span {
  color: var(--gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-menu .nav-cta {
  color: #111;
  background: var(--gold);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 18, 0.96), rgba(8, 11, 18, 0.78) 42%, rgba(8, 11, 18, 0.24)),
    linear-gradient(0deg, var(--bg), transparent 35%);
}

.hero-content {
  position: relative;
  padding-top: 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

h2 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.hero-copy {
  max-width: 610px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 30px;
}

.trust-row {
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.85rem;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--gold), #f57f17);
  color: #111;
  box-shadow: 0 18px 44px rgba(251, 192, 45, 0.22);
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.section {
  padding: 98px 0;
}

.section-heading {
  margin-bottom: 34px;
}

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

.feature-card,
.price-card,
.step,
.code-panel,
.form-tabs {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}

.feature-card,
.price-card,
.step {
  padding: 26px;
}

.feature-icon,
.step span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(78, 101, 255, 0.18);
  color: var(--cyan);
  font-weight: 900;
}

.feature-card p,
.price-card p,
.step p,
.install-layout p,
.support-layout p,
.legal-section p,
.site-footer p {
  color: var(--muted);
}

.install-band,
.support-band {
  background:
    linear-gradient(135deg, rgba(78, 101, 255, 0.11), rgba(251, 192, 45, 0.07)),
    rgba(255, 255, 255, 0.025);
  border-block: 1px solid var(--line);
}

.install-layout,
.support-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.code-panel {
  padding: 30px;
  text-align: center;
}

.panel-label,
.tiny {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.code-panel strong {
  display: block;
  margin: 8px 0 18px;
  color: var(--gold);
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: 0.12em;
}

.steps-grid {
  margin-top: 26px;
}

.price-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.price-card.featured {
  border-color: rgba(251, 192, 45, 0.5);
  background: linear-gradient(180deg, rgba(251, 192, 45, 0.14), rgba(255, 255, 255, 0.04));
}

.price {
  color: var(--gold);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.form-tabs {
  padding: 18px;
}

.tab-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.tab-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.tab-button.active {
  background: var(--blue);
  color: var(--text);
}

.smart-form {
  display: none;
  gap: 12px;
}

.smart-form.active {
  display: grid;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  outline: none;
  padding: 12px 13px;
}

input:focus,
textarea:focus {
  border-color: rgba(146, 239, 253, 0.7);
  box-shadow: 0 0 0 3px rgba(146, 239, 253, 0.12);
}

.legal-section {
  max-width: 900px;
}

.legal-section a {
  color: var(--cyan);
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #06080d;
  padding: 42px 0;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.footer-layout div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-layout a,
.footer-layout span {
  color: var(--muted);
}

.toast {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100% - 36px));
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 24, 39, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    inset: 76px 20px auto;
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(8, 11, 18, 0.96);
    box-shadow: var(--shadow);
    transform-origin: top right;
    opacity: 0;
    transform: scale(0.96) translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-menu.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
  }

  .nav-menu a {
    display: block;
  }

  .hero {
    min-height: 820px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(8, 11, 18, 0.65), rgba(8, 11, 18, 0.98) 55%, var(--bg)),
      linear-gradient(90deg, rgba(8, 11, 18, 0.88), rgba(8, 11, 18, 0.35));
  }

  .hero-content {
    align-self: end;
    padding-bottom: 70px;
  }

  .feature-grid,
  .pricing-grid,
  .steps-grid,
  .install-layout,
  .support-layout,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .tab-buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 72px 0;
  }

  .hero-actions .button {
    width: 100%;
  }
}
