:root {
  --night: #071018;
  --harbor: #0c1824;
  --panel: #122433;
  --line: rgba(196, 168, 122, 0.22);
  --copper: #c4783a;
  --copper-bright: #e09a55;
  --foam: #d7e6ea;
  --mist: #93a8b3;
  --signal: #7aa8b4;
  --ok: #8fbf8a;
  --danger: #d07a6a;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foam);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(196, 120, 58, 0.16), transparent 50%),
    radial-gradient(900px 500px at -10% 20%, rgba(122, 168, 180, 0.12), transparent 45%),
    linear-gradient(180deg, var(--night), var(--harbor) 40%, #0a141c);
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 1000;
  padding: 8px 14px;
  background: var(--copper);
  color: #1a120c;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(7, 16, 24, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 16, 24, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.brand img {
  width: 36px;
  height: 36px;
}

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

.nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--mist);
  border-radius: 999px;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--foam);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--foam);
  border-radius: 10px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible,
.nav a:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--copper-bright);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--copper);
  color: #1a120c;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--copper-bright);
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--foam);
}

.btn-ghost:hover {
  border-color: var(--copper);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 80px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--copper-bright);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(143, 191, 138, 0.7);
  animation: ping 2s infinite;
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  margin: 16px 0 18px;
}

.lede {
  max-width: 42ch;
  color: var(--mist);
  margin: 0 0 28px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.conf-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.conf-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--copper), var(--signal));
}

.conf-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mist);
}

.conf-body {
  margin: 0;
  padding: 20px 22px 24px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
  color: #c9d7dc;
  overflow-x: auto;
}

.conf-body .key {
  color: var(--copper-bright);
}

.conf-body .val {
  color: var(--signal);
}

.tunnel {
  height: 6px;
  margin: 0 18px 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.tunnel span {
  display: block;
  width: 28%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--copper-bright), transparent);
  animation: travel 2.4s linear infinite;
}

@keyframes travel {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(380%);
  }
}

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 48ch;
  margin-bottom: 36px;
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 12px;
}

.muted {
  color: var(--mist);
  margin: 0;
}

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

.card {
  background: rgba(18, 36, 51, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card img {
  width: 28px;
  height: 28px;
  color: var(--copper-bright);
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.plan {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.plan.featured {
  border-color: rgba(196, 120, 58, 0.55);
  background:
    linear-gradient(180deg, rgba(196, 120, 58, 0.12), transparent 40%),
    var(--panel);
}

.plan .price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 12px 0 8px;
}

.plan ul {
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.plan li {
  padding: 8px 0 8px 22px;
  position: relative;
  color: var(--mist);
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper);
}

.steps {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
}

.step:first-child {
  border-top: 0;
}

.step-index {
  font-family: var(--font-mono);
  color: var(--copper-bright);
  font-size: 0.85rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq p {
  color: var(--mist);
  margin: 8px 0 12px;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  background: #101e2a;
  border: 1px solid var(--line);
}

.site-footer {
  padding: 36px 0 48px;
  color: var(--mist);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--harbor);
  color: var(--foam);
  padding: 0;
  width: min(480px, calc(100% - 24px));
}

.dialog::backdrop {
  background: rgba(4, 10, 14, 0.72);
}

.dialog-inner {
  padding: 24px;
}

.dialog h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.field {
  display: grid;
  gap: 6px;
  margin: 14px 0;
}

.field label {
  font-size: 0.9rem;
}

.field input {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--night);
  color: var(--foam);
}

.form-msg {
  min-height: 1.4em;
  font-size: 0.9rem;
}

.form-msg.ok {
  color: var(--ok);
}

.form-msg.err {
  color: var(--danger);
}

.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .hero,
  .grid-3,
  .plans {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    background: rgba(7, 16, 24, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pulse-dot,
  .tunnel span {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
