:root {
  --bg: #071019;
  --panel: #10151d;
  --panel-2: #151d28;
  --text: #edf5ff;
  --muted: #9aa9bb;
  --line: rgba(255, 255, 255, 0.11);
  --green: #34d399;
  --cyan: #67e8f9;
  --amber: #fbbf24;
  --rose: #fb7185;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, textarea, input { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 25, 0.92);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #061016;
  font-weight: 900;
}
.brand strong { font-size: 16px; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a {
  border-radius: 8px;
  padding: 9px 12px;
  color: #c7d2df;
  font-size: 14px;
}
.site-header nav a:hover { background: rgba(255,255,255,.07); color: white; }

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 850;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #061016; box-shadow: 0 18px 45px rgba(52, 211, 153, .18); }
.btn-primary:hover { background: var(--cyan); }
.btn-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); }
.btn-secondary:hover { border-color: rgba(103,232,249,.55); }
.btn-ghost { border: 1px solid transparent; background: transparent; color: #c7d2df; }
.btn-small { min-height: 40px; padding: 9px 14px; font-size: 14px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(18px, 4vw, 56px);
}
.pill, .eyebrow {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(103,232,249,.25);
  border-radius: 8px;
  background: rgba(103,232,249,.08);
  padding: 8px 10px;
  text-transform: none;
  letter-spacing: 0;
}
.pill span { width: 8px; height: 8px; border-radius: 999px; background: var(--green); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  font-size: clamp(58px, 9vw, 112px);
  line-height: .9;
  font-weight: 950;
}
.hero-lede {
  max-width: 690px;
  color: #cbd6e3;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.58;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  color: #aab7c7;
  font-size: 13px;
}
.trust-row span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,.03);
}

.workbench {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--panel), #0a121b);
  box-shadow: 0 30px 100px rgba(0,0,0,.4);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  padding: 12px 14px;
  color: #cbd6e3;
  font-size: 13px;
}
.window-bar span { width: 10px; height: 10px; border-radius: 999px; }
.window-bar span:nth-child(1) { background: var(--rose); }
.window-bar span:nth-child(2) { background: var(--amber); }
.window-bar span:nth-child(3) { background: var(--green); }
.window-bar strong { margin-left: auto; }
.workbench label { display: block; padding: 22px 22px 10px; color: var(--text); font-weight: 800; }
.workbench textarea {
  display: block;
  width: calc(100% - 44px);
  min-height: 150px;
  margin: 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  resize: vertical;
  background: #08111a;
  color: #dfe9f5;
  padding: 14px;
  line-height: 1.55;
}
.workbench textarea:focus { border-color: rgba(103,232,249,.55); }
.workbench-actions { display: flex; gap: 10px; padding: 16px 22px; }
.memory-output {
  display: grid;
  gap: 10px;
  padding: 0 22px 22px;
}
.memory-output article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  padding: 14px;
}
.memory-output b { display: block; color: var(--green); margin-bottom: 5px; }
.memory-output span { color: #c5d1df; font-size: 14px; line-height: 1.5; }

.section {
  border-top: 1px solid var(--line);
  padding: clamp(64px, 7vw, 104px) clamp(18px, 4vw, 56px);
}
.section > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-heading { max-width: 720px; margin: 0 auto 42px 0; }
.section-heading.centered { margin-left: auto; text-align: center; }
.section-heading h2, .split-band h2 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  margin-bottom: 16px;
}
.section-heading p, .split-band p { color: var(--muted); line-height: 1.7; }
.feature-grid, .plan-grid, .quote-grid {
  display: grid;
  gap: 18px;
}
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card, .plan-card, .quote-card, .article-card, .sticky-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
}
.feature-card span {
  display: block;
  width: 56px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--amber));
  margin-bottom: 20px;
}
.feature-card h3, .plan-card h3 { margin-bottom: 10px; }
.feature-card p, .plan-card p, .quote-card p, .article-card p, .sticky-card p {
  color: var(--muted);
  line-height: 1.65;
}

.split-band {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 28px;
  align-items: center;
  max-width: none;
  background: linear-gradient(135deg, rgba(52,211,153,.11), rgba(7,16,25,.98) 52%, rgba(251,191,36,.08));
}
.split-band > * { max-width: 560px; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.metric-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0,0,0,.2);
  padding: 24px;
}
.metric-grid strong { display: block; font-size: 44px; }
.metric-grid span { color: var(--muted); font-size: 14px; }

.pricing-section { background: #08111a; }
.billing-toggle, .modal-billing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: fit-content;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #060c12;
  padding: 4px;
}
.billing-toggle button, .modal-billing button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #c7d2df;
  cursor: pointer;
  padding: 10px 16px;
  font-weight: 850;
}
.billing-toggle button.active, .modal-billing button.active { background: var(--green); color: #061016; }
.savings-note { text-align: center; color: var(--green); margin: 16px 0 32px; }
.plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-card { position: relative; display: flex; min-height: 100%; flex-direction: column; }
.plan-card.recommended { border-color: rgba(103,232,249,.5); background: rgba(103,232,249,.065); box-shadow: 0 24px 70px rgba(0,0,0,.26); }
.plan-card.selected { outline: 2px solid rgba(52,211,153,.65); }
.badge {
  position: absolute;
  top: -13px;
  left: 22px;
  border-radius: 7px;
  background: var(--amber);
  color: #111827;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 950;
}
.plan-top { display: flex; justify-content: space-between; gap: 16px; }
.plan-top input { width: 20px; height: 20px; accent-color: var(--green); }
.price { display: flex; align-items: flex-end; gap: 8px; margin: 24px 0 6px; }
.price strong { font-size: 48px; line-height: .95; }
.price span, .price-note { color: var(--muted); font-size: 13px; }
.plan-card ul, .article-card ul, .article-card ol {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.plan-card li, .article-card li {
  color: #cbd6e3;
  line-height: 1.55;
}
.plan-card li::before, .article-card ul li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  margin-right: 9px;
}
.plan-card .btn { margin-top: auto; width: 100%; }

.quote-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quote-card div { color: var(--amber); margin-bottom: 12px; }
.quote-card strong { display: block; margin-top: 20px; }
.quote-card span { color: var(--muted); font-size: 13px; }

.page-hero {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(52px, 7vw, 94px) clamp(18px, 4vw, 56px);
}
.page-hero.centered { text-align: center; }
.page-hero h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1; }
.page-hero p { color: #cbd6e3; line-height: 1.7; font-size: 18px; }
.crumb { display: inline-block; color: var(--cyan); margin-bottom: 20px; }
.content-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 30px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px) clamp(64px, 7vw, 104px);
}
.sticky-card { position: sticky; top: 94px; }
.sticky-card .btn { width: 100%; margin-top: 18px; }
.article-stack { display: grid; gap: 18px; }
.article-card h2 { font-size: 28px; }
.article-card.related div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.article-card.related a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  padding: 14px;
  color: #dbeafe;
}
.legal {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px) 88px;
}
.legal section {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.legal h2 { font-size: 22px; }
.legal p { color: #cbd6e3; line-height: 1.75; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(2, 6, 12, .72);
  padding: 20px;
  backdrop-filter: blur(12px);
}
.plan-modal {
  position: relative;
  width: min(960px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 34px 110px rgba(0,0,0,.46);
}
.plan-modal h2 { max-width: 780px; font-size: clamp(28px, 4vw, 48px); margin-bottom: 12px; }
.plan-modal p { color: var(--muted); line-height: 1.65; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: #dbeafe;
  cursor: pointer;
  padding: 6px 10px;
  font-weight: 850;
}
.modal-billing { margin: 24px 0 0; }
.modal-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.modal-plans button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #08111a;
  color: var(--text);
  cursor: pointer;
  padding: 18px;
  text-align: left;
}
.modal-plans button.active { border-color: rgba(103,232,249,.65); outline: 2px solid rgba(52,211,153,.45); }
.modal-plans span, .modal-plans small { display: block; color: var(--muted); }
.modal-plans strong { display: block; margin: 7px 0; font-size: 20px; }
.modal-plans em { display: block; margin-bottom: 5px; color: var(--green); font-size: 28px; font-style: normal; font-weight: 950; }
.modal-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #08111a;
  padding: 18px;
}
.modal-summary span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.modal-summary strong { display: block; margin-top: 4px; }
.modal-summary p { margin: 5px 0 0; font-size: 14px; }
.modal-message { margin-top: 16px; }
.modal-message.error { color: var(--rose); }
.reopen-link { display: inline-block; margin-top: 12px; color: var(--cyan); font-weight: 850; }

.checkout-done {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.checkout-done article {
  max-width: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 32px;
  text-align: center;
}
.checkout-done div {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 8px;
  background: var(--green);
  color: #061016;
  font-weight: 950;
}

.footer {
  border-top: 1px solid var(--line);
  background: #050a12;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .75fr .75fr;
  gap: 42px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px clamp(18px, 4vw, 56px);
}
.footer p, .footer a { color: var(--muted); line-height: 1.65; }
.footer a { display: block; margin-top: 10px; }
.footer a:hover { color: var(--cyan); }
.footer-brand { margin-bottom: 14px; }
.copyright {
  border-top: 1px solid var(--line);
  padding: 18px;
  color: #6b7b8e;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 980px) {
  .site-header nav { display: none; }
  .hero, .split-band, .content-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .workbench { min-width: 0; }
  .feature-grid, .plan-grid, .quote-grid, .modal-plans { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
}

@media (max-width: 640px) {
  .site-header { padding: 12px 14px; }
  .site-header .btn { display: none; }
  h1 { font-size: 56px; }
  .trust-row { grid-template-columns: 1fr; }
  .hero-actions, .workbench-actions, .modal-summary { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .billing-toggle { width: 100%; }
  .article-card.related div { grid-template-columns: 1fr; }
}
