:root {
  --bg: #04070d;
  --bg2: #070b14;
  --text: #eef2ff;
  --muted: #6b7fa3;
  --line: rgba(255,255,255,0.08);
  --card: rgba(255,255,255,0.04);
  --card-h: rgba(255,255,255,0.07);
  --accent: #5b7fff;
  --accent2: #2d50e6;
  --accent-glow: rgba(91,127,255,0.25);
  --green: #34d874;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', 'Manrope', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
.container { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }

/* ── Noise ── */
.noise {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── Header ── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4,7,13,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
  color: var(--text);
}

.logo-img { width: 48px; height: 48px; border-radius: 13px; object-fit: cover; }
.logo-text { color: var(--text); }

.nav {
  display: flex; align-items: center; gap: 24px;
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.nav a { transition: color .15s; }
.nav a:hover { color: var(--text); }

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

/* Unified button style for header */
.btn-header, .btn-login, .btn-profile {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  font-size: 13px; font-weight: 600;
  border-radius: 10px;
  transition: opacity .15s, transform .15s;
  white-space: nowrap;
  font-family: var(--sans);
  border: none; cursor: pointer;
  text-decoration: none;
}

.btn-header {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-header:hover { opacity: .88; transform: translateY(-1px); }

.btn-login {
  background: var(--card-h);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-login:hover { background: rgba(255,255,255,0.1); }

.btn-profile {
  background: rgba(91,127,255,0.1);
  border: 1px solid rgba(91,127,255,0.2);
  color: var(--accent);
}
.btn-profile:hover { background: rgba(91,127,255,0.18); }

.burger {
  display: none; width: 40px; height: 40px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 16px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 700; font-size: 14px;
  border-radius: 12px; border: none; cursor: pointer;
  transition: opacity .15s, transform .15s;
  box-shadow: 0 6px 24px var(--accent-glow);
  font-family: var(--sans); text-decoration: none;
}
.btn-primary:hover { opacity: .88; transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--text); font-weight: 600; font-size: 14px;
  border-radius: 12px; transition: background .15s, transform .15s;
  text-decoration: none;
}
.btn-ghost:hover { background: var(--card-h); transform: translateY(-2px); }

/* ── Hero ── */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }

.hero::before {
  content: '';
  position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(91,127,255,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero-layout {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 56px; align-items: center;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: rgba(52,216,116,0.08); border: 1px solid rgba(52,216,116,0.18);
  border-radius: 999px; color: var(--green);
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
}

.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 5px rgba(52,216,116,0.15);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }

.hero-title {
  font-size: clamp(42px, 6.5vw, 76px);
  font-weight: 800; line-height: .95; letter-spacing: -0.055em;
  margin: 0 0 18px;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc { color: var(--muted); font-size: 17px; max-width: 500px; margin: 0 0 28px; }

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }

.hero-apps { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }

.app-pill {
  padding: 4px 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text);
}

/* Terminal */
.terminal {
  background: rgba(6,10,20,.92); border: 1px solid rgba(91,127,255,0.18);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 28px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(91,127,255,0.06);
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dot-r { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dot-y { width: 11px; height: 11px; border-radius: 50%; background: #ffbd2e; }
.dot-g { width: 11px; height: 11px; border-radius: 50%; background: #28c840; }
.terminal-title { margin-left: 6px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.terminal-body { padding: 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 2; }
.t-line { display: flex; gap: 14px; }
.t-dim { color: rgba(255,255,255,0.22); }
.t-green { color: var(--green); }
.t-key { color: var(--accent); min-width: 76px; }
.t-val { color: #c7d2fe; }
.t-cursor { display: inline-block; background: var(--accent); color: transparent; border-radius: 2px; animation: cur 1s step-end infinite; }
@keyframes cur { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 12px; }
.stat-pill { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; }
.stat-pill strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }
.stat-pill span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.hero-scroll { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 52px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* ── Account banner ── */
.section-account { padding: 0 0 72px; }

.account-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 44px 52px;
  background: linear-gradient(135deg, rgba(91,127,255,0.1), rgba(45,80,230,0.05));
  border: 1px solid rgba(91,127,255,0.18);
  border-radius: 24px;
  position: relative; overflow: hidden;
}

.account-banner::after {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,127,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.account-banner-left { flex: 1; min-width: 0; }

.account-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px;
  background: rgba(91,127,255,0.12); border: 1px solid rgba(91,127,255,0.2);
  border-radius: 999px; color: var(--accent); font-size: 12px; font-weight: 700;
  margin-bottom: 16px;
}

.account-banner-title {
  font-size: clamp(22px, 3vw, 36px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.1; margin: 0 0 10px;
}

.account-banner-desc { color: var(--muted); font-size: 15px; margin: 0 0 24px; }

.account-features-row { display: flex; gap: 20px; flex-wrap: wrap; }

.account-feat { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.account-feat > span { font-size: 20px; flex-shrink: 0; }
.account-feat strong { display: block; font-weight: 700; color: var(--text); margin-bottom: 1px; }
.account-feat em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }

.account-banner-right { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; position: relative; z-index: 1; }
.account-btn { font-size: 14px; padding: 14px 28px; white-space: nowrap; }
.account-banner-note { font-size: 13px; color: var(--muted); margin: 0; }
.account-banner-note a { color: var(--accent); font-weight: 600; }
.account-banner-note a:hover { text-decoration: underline; }

/* ── Sections ── */
.section { padding: 88px 0; }
.section-dark { background: rgba(255,255,255,0.02); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-label {
  display: inline-flex; padding: 5px 13px;
  border: 1px solid rgba(91,127,255,0.22); border-radius: 999px;
  color: var(--accent); background: rgba(91,127,255,0.07);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; margin-bottom: 14px;
}

.section-title { font-size: clamp(28px, 4vw, 50px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.06; margin: 0 0 10px; }
.section-sub { color: var(--muted); margin: 0 0 36px; }

/* ── Features ── */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }

.feature-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px;
  transition: background .2s, border-color .2s, transform .2s;
}
.feature-card:hover { background: var(--card-h); border-color: rgba(91,127,255,0.18); transform: translateY(-3px); }

.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; background: rgba(91,127,255,0.1); border-radius: 14px; font-size: 22px; margin-bottom: 16px; }

.feature-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 7px; letter-spacing: -0.02em; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ── Plans ── */
.plans-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }

.plan-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 28px; position: relative;
  transition: transform .2s;
}
.plan-card:hover { transform: translateY(-4px); }

.plan-card.plan-featured {
  background: linear-gradient(180deg, rgba(91,127,255,0.13), rgba(255,255,255,0.04));
  border-color: rgba(91,127,255,0.32);
  box-shadow: 0 0 0 1px rgba(91,127,255,0.1), 0 20px 50px rgba(45,80,230,0.18);
}

.plan-badge {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px;
}

.plan-name { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.plan-price { font-size: 50px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; margin-bottom: 4px; }
.plan-price span { font-size: 26px; color: var(--muted); }
.plan-period { color: var(--muted); font-size: 13px; margin-bottom: 20px; }

.plan-features { list-style: none; margin: 0 0 22px; display: grid; gap: 7px; }
.plan-features li { font-size: 13px; color: var(--muted); }

.btn-plan {
  display: block; text-align: center; padding: 12px;
  background: var(--card-h); border: 1px solid var(--line);
  color: var(--text); font-weight: 700; font-size: 14px;
  border-radius: 12px; transition: background .15s, transform .1s;
  cursor: pointer; font-family: var(--sans);
}
.btn-plan:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }

.btn-plan-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; color: #fff;
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-plan-accent:hover { opacity: .88; }

/* ── Steps ── */
.steps { display: flex; align-items: center; gap: 14px; }
.step { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.step-num { font-family: var(--mono); font-size: 34px; font-weight: 700; color: var(--accent); opacity: .35; margin-bottom: 12px; letter-spacing: -0.04em; }
.step h3 { font-size: 17px; font-weight: 700; margin: 0 0 7px; }
.step p { color: var(--muted); font-size: 14px; }
.step-arrow { font-size: 22px; color: var(--muted); flex-shrink: 0; }

/* ── FAQ ── */
.faq-list { display: grid; gap: 8px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .2s; }
.faq-item[open] { border-color: rgba(91,127,255,0.22); }
.faq-item summary { padding: 17px 20px; font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--accent); flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 16px; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ── Documents ── */
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.doc-nav { position: sticky; top: 86px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 3px; }
.doc-nav-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 7px 11px 11px; border-bottom: 1px solid var(--line); margin-bottom: 3px; }
.doc-nav a { padding: 9px 11px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.doc-nav a:hover { background: var(--card-h); color: var(--text); }
.doc-nav.ghost { opacity: 0; pointer-events: none; }
.document { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px,4vw,44px); }
.doc-eyebrow { display: inline-flex; padding: 4px 11px; border: 1px solid rgba(91,127,255,0.22); border-radius: 999px; color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.document h2 { font-size: clamp(22px,4vw,38px); letter-spacing: -0.04em; line-height: 1.1; margin: 0 0 7px; }
.document h3 { font-size: 17px; margin: 28px 0 8px; color: var(--text); }
.document p, .document li { color: var(--muted); font-size: 14px; line-height: 1.75; }
.document a { color: var(--accent); }
.document ol { padding-left: 20px; }
.doc-date { color: var(--accent) !important; font-weight: 700; }

/* ── Contacts ── */
.contact-section { padding-bottom: 72px; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; background: linear-gradient(135deg, rgba(91,127,255,0.1), rgba(255,255,255,0.03)); border: 1px solid rgba(91,127,255,0.18); border-radius: 26px; }
.contact-card h2 { font-size: clamp(24px,3.5vw,40px); letter-spacing: -0.04em; margin: 7px 0; }
.contact-card p { color: var(--muted); }
.contact-right { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); padding: 26px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-copy { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 18px; color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .nav, .header-btns .btn-header { display: none; }
  .burger { display: flex; }
  .nav.is-open { position: absolute; display: grid; top: 68px; left: 16px; right: 16px; padding: 14px; background: rgba(4,7,13,.98); border: 1px solid var(--line); border-radius: 18px; backdrop-filter: blur(20px); z-index: 100; }
  .nav.is-open a { padding: 11px; border-radius: 10px; }
  .nav.is-open a:hover { background: var(--card); }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { position: static; }
  .doc-nav.ghost { display: none; }
  .contact-card { flex-direction: column; align-items: flex-start; }
  .account-banner { flex-direction: column; align-items: flex-start; padding: 30px 26px; gap: 24px; }
  .account-banner-right { align-items: flex-start; text-align: left; }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .hero { padding: 56px 0 44px; }
  .account-features-row { gap: 12px; }
}
