:root {
  color-scheme: dark;
  --bg: #071018;
  --bg-soft: #0b1620;
  --surface: rgba(17, 31, 43, 0.78);
  --surface-solid: #101f2b;
  --surface-2: #152938;
  --line: rgba(174, 209, 232, 0.16);
  --line-strong: rgba(174, 209, 232, 0.28);
  --text: #f4f8fb;
  --muted: #a9bbc8;
  --dim: #718896;
  --blue: #67a9ff;
  --blue-strong: #3388f5;
  --green: #4ee6ab;
  --orange: #ffbd70;
  --danger: #ff8d95;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --radius: 24px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, rgba(51, 136, 245, 0.18), transparent 32rem),
    radial-gradient(circle at 85% 18%, rgba(78, 230, 171, 0.11), transparent 28rem),
    linear-gradient(180deg, #08121b 0%, #071018 48%, #050b10 100%);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  background: rgba(7, 16, 24, 0.72);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

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

.nav {
  width: min(calc(100% - 32px), var(--max));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(103, 169, 255, 0.32);
  border-radius: 10px;
  color: var(--green);
  background: linear-gradient(145deg, rgba(103, 169, 255, 0.16), rgba(78, 230, 171, 0.09));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.lang-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #03111b;
  background: linear-gradient(135deg, #75b5ff, #4ee6ab);
  box-shadow: 0 12px 32px rgba(51, 136, 245, 0.23);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

.button-secondary:hover {
  border-color: rgba(103, 169, 255, 0.5);
  background: rgba(103, 169, 255, 0.08);
}

.button-small {
  min-height: 38px;
  padding-inline: 14px;
  border-radius: 11px;
  font-size: 13px;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.hero {
  position: relative;
  padding: 96px 0 84px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 7px 11px;
  border: 1px solid rgba(78, 230, 171, 0.22);
  border-radius: 999px;
  color: #a4f5d6;
  background: rgba(78, 230, 171, 0.07);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(78, 230, 171, 0.85);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(100deg, #f4f8fb 5%, #8ec1ff 48%, #5be5b1 94%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

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

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 20px;
  color: var(--dim);
  font-size: 13px;
}

.hero-note span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--green);
}

.terminal-shell {
  position: relative;
  padding: 1px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(103, 169, 255, 0.45), rgba(78, 230, 171, 0.14), rgba(255, 255, 255, 0.08));
  box-shadow: var(--shadow);
}

.terminal-shell::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: -1;
  background: radial-gradient(circle, rgba(51, 136, 245, 0.17), transparent 68%);
  filter: blur(16px);
}

.terminal-window {
  overflow: hidden;
  border-radius: 25px;
  background: #071019;
}

.terminal-bar {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #0d1a24;
}

.terminal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #39505f;
}

.terminal-dot:nth-child(1) { background: #ff7d86; }
.terminal-dot:nth-child(2) { background: #ffc66d; }
.terminal-dot:nth-child(3) { background: #4ee6ab; }

.terminal-title {
  margin-left: 8px;
  color: #718896;
  font: 12px var(--mono);
}

.terminal-body {
  min-height: 430px;
  padding: 24px 22px 20px;
  color: #d8e7ef;
  font: 14px/1.62 var(--mono);
}

.terminal-line {
  min-height: 23px;
  white-space: pre-wrap;
}

.terminal-muted { color: #718896; }
.terminal-blue { color: #78b6ff; }
.terminal-green { color: #5be5b1; }
.terminal-orange { color: #ffc57a; }
.terminal-prompt { color: #9fc8e0; }

.terminal-card {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(103, 169, 255, 0.22);
  border-radius: 11px;
  background: rgba(103, 169, 255, 0.06);
}

.terminal-option {
  display: flex;
  gap: 10px;
  padding: 4px 0;
}

.terminal-option.active {
  color: #03111b;
  background: var(--green);
  margin-inline: -7px;
  padding-inline: 7px;
  border-radius: 5px;
}

.composer-mock {
  margin: 18px 0 0;
  padding: 13px 14px;
  border: 1px solid rgba(78, 230, 171, 0.32);
  border-radius: 12px;
  background: #0c1c24;
  color: #e8f5f1;
}

.composer-footer {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  color: #6e8b99;
  font-size: 11px;
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 28px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-label {
  color: var(--text);
  font-weight: 800;
}

.trust-detail {
  color: var(--dim);
  font-size: 13px;
}

.section {
  padding: 108px 0;
}

.section-tight {
  padding: 76px 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 48px;
}

.kicker {
  margin-bottom: 11px;
  color: var(--blue);
  font: 800 12px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.042em;
}

.section-lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
}

.problem-grid,
.feature-grid,
.security-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(20, 39, 53, 0.72), rgba(11, 22, 32, 0.72));
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -70px -90px auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(51, 136, 245, 0.08);
  filter: blur(10px);
}

.card-number,
.card-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(103, 169, 255, 0.26);
  border-radius: 11px;
  color: var(--blue);
  background: rgba(103, 169, 255, 0.07);
  font: 800 13px var(--mono);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
  min-height: 280px;
}

.feature-card.wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
}

.code-sample {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #071019;
  color: #d5e5ed;
  font: 13px/1.7 var(--mono);
}

.code-sample pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(16, 31, 43, 0.56);
}

.workflow-step {
  position: relative;
  min-height: 220px;
  padding: 27px;
  border-right: 1px solid var(--line);
}

.workflow-step:last-child {
  border-right: 0;
}

.workflow-step::after {
  content: "→";
  position: absolute;
  top: 32px;
  right: -11px;
  z-index: 2;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--dim);
  background: var(--bg-soft);
  font-size: 12px;
}

.workflow-step:last-child::after {
  display: none;
}

.workflow-index {
  margin-bottom: 56px;
  color: var(--green);
  font: 800 12px var(--mono);
}

.workflow-step h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.workflow-step p {
  color: var(--muted);
  font-size: 14px;
}

.security-grid {
  grid-template-columns: repeat(2, 1fr);
}

.security-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.02);
}

.security-check {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #03111b;
  background: var(--green);
  font-weight: 900;
}

.security-item h3 {
  margin-bottom: 5px;
  font-size: 16px;
}

.security-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.price-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid rgba(103, 169, 255, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 20%, rgba(78, 230, 171, 0.1), transparent 24rem),
    linear-gradient(145deg, rgba(20, 42, 58, 0.9), rgba(9, 20, 30, 0.92));
  box-shadow: var(--shadow);
}

.price-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price {
  margin-bottom: 10px;
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.price small {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.price-list {
  display: grid;
  gap: 11px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.price-list li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--green);
  font-weight: 900;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
}

details[open] {
  border-color: rgba(103, 169, 255, 0.26);
  background: rgba(103, 169, 255, 0.04);
}

summary {
  position: relative;
  padding: 20px 48px 20px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 20px;
  color: var(--blue);
  font: 24px/1 var(--mono);
}

details[open] summary::after {
  content: "−";
}

details p {
  padding: 0 20px 20px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.final-cta {
  text-align: center;
  padding: 86px 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(51, 136, 245, 0.17), transparent 34rem),
    rgba(255, 255, 255, 0.018);
}

.final-cta h2 {
  max-width: 760px;
  margin-inline: auto;
}

.final-cta p {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--muted);
}

.site-footer {
  padding: 46px 0;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 22px;
}

.footer-links a:hover {
  color: var(--text);
}

.legal-page {
  padding: 76px 0 110px;
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 760px);
  gap: clamp(32px, 7vw, 90px);
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.legal-nav a {
  padding: 8px 10px;
  border-radius: 9px;
}

.legal-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.legal-content h1 {
  font-size: clamp(36px, 6vw, 58px);
}

.legal-content h2 {
  margin-top: 48px;
  margin-bottom: 14px;
  font-size: 27px;
  letter-spacing: -0.025em;
}

.legal-content h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 18px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-meta {
  margin-bottom: 34px;
  color: var(--dim);
  font-size: 14px;
}

.notice {
  padding: 18px 20px;
  border: 1px solid rgba(255, 189, 112, 0.28);
  border-radius: 14px;
  color: #e9d5bc;
  background: rgba(255, 189, 112, 0.06);
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

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

@media (max-width: 940px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .price-card,
  .feature-card.wide {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 58px;
  }

  .terminal-shell {
    max-width: 680px;
    margin-inline: auto;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .problem-grid,
  .workflow {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-step:nth-child(2) {
    border-right: 0;
  }

  .workflow-step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .workflow-step:nth-child(2)::after {
    display: none;
  }

  .legal-shell {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav {
    width: min(calc(100% - 24px), var(--max));
  }

  .nav-actions .button {
    display: none;
  }

  .hero {
    padding: 72px 0 58px;
  }

  h1 {
    font-size: clamp(39px, 13vw, 58px);
  }

  .terminal-body {
    min-height: 390px;
    padding: 19px 15px;
    font-size: 12px;
  }

  .section {
    padding: 78px 0;
  }

  .problem-grid,
  .feature-grid,
  .security-grid,
  .faq-grid,
  .workflow,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .feature-card.wide {
    grid-column: span 1;
  }

  .trust-item,
  .trust-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .workflow-step,
  .workflow-step:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-step:last-child {
    border-bottom: 0;
  }

  .workflow-step::after {
    display: none;
  }

  .workflow-index {
    margin-bottom: 28px;
  }

  .footer-grid {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-nav {
    grid-template-columns: 1fr;
  }
}
