:root {
  --primary: #635bff;
  --accent: #00d4ff;
  --secondary: #0a2540;
  --muted: #425466;
  --bg: #fff;
  --alt: #f6f9fc;
  --border: #e6ebf1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--secondary);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, .btn { font: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 65px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: 1280px;
  height: 65px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary);
  font-size: 22px;
  font-weight: 700;
}
.logo {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  flex: 0 0 auto;
}
.logo svg, .card svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-links {
  display: flex;
  gap: 34px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--secondary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 0;
  padding: 0 23px;
  font-weight: 700;
  cursor: pointer;
}
.btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 20px rgba(99,91,255,.22);
}
.btn.ghost { background: transparent; color: var(--secondary); padding: 0 8px; font-weight: 500; }
.btn.outline {
  background: white;
  color: var(--secondary);
  border: 1px solid var(--border);
  box-shadow: 0 3px 8px rgba(10,37,64,.04);
}
.btn.big { height: 50px; padding: 0 24px; }
.btn.full { width: 100%; }

.hero {
  padding: 110px 0 84px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 576px);
  gap: 72px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23e66f;
}
h1, h2, h3, h4 { margin: 0; font-family: "Space Grotesk", "DM Sans", sans-serif; color: var(--secondary); letter-spacing: -.035em; }
h1 {
  max-width: 620px;
  font-size: clamp(52px, 7vw, 72px);
  line-height: .99;
  font-weight: 700;
}
h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.no-break { white-space: nowrap; }
.hero-copy > p {
  max-width: 610px;
  margin: 24px 0 32px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}
.hero-actions { display: flex; gap: 16px; margin-bottom: 38px; }
.stats { display: flex; gap: 54px; }
.stats strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -.04em;
}
.stats span { color: var(--muted); font-size: 14px; }

.code-card {
  overflow: hidden;
  min-height: 410px;
  border-radius: 10px;
  background: #082947;
  color: #e6f1ff;
  box-shadow: 0 24px 56px rgba(8,41,71,.18);
}
.code-top {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.dot { width: 13px; height: 13px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }
.file { margin-left: 18px; color: #8190a7; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
pre {
  margin: 0;
  padding: 22px 20px 26px;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.72;
}
.comment { color: #7f8da3; }
.pink { color: #ff8fa3; }
.cyan { color: #7dd3fc; }
.code-card .green { color: #9be7c3; }

.features, .security {
  background: var(--alt);
  padding: 92px 0;
}
.pricing { padding: 92px 0; }
.section-head {
  text-align: center;
  margin: 0 auto 66px;
}
.section-head h2, .security h2 {
  font-size: clamp(34px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 700;
}
.section-head p, .security p {
  margin: 18px auto 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}
.feature-grid, .price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card, .price-card, .security-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(10,37,64,.03);
}
.card {
  min-height: 190px;
  padding: 40px 24px 26px;
}
.card i {
  display: block;
  margin-bottom: 30px;
  color: var(--primary);
  font-style: normal;
  font-weight: 700;
}
.card h3, .price-card h3, .security-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.2;
}
.card p, .price-card p {
  margin: 0;
  color: var(--muted);
}

.price-card {
  position: relative;
  padding: 32px;
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 18px 44px rgba(99,91,255,.15);
  transform: translateY(-10px);
}
.price-card > b {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 12px;
}
.price {
  margin-top: 28px;
  color: var(--secondary);
  font-family: "Space Grotesk", sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.price .period {
  color: #8a99a8;
  font-size: .58em;
  font-weight: 500;
  letter-spacing: -.02em;
}
.price .compare {
  margin-left: 18px;
  color: #ff4b55;
  font-size: .64em;
  font-weight: 500;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.price .compare .period {
  color: #8a99a8;
  font-size: .78em;
}
.price-card small { color: var(--muted); }
ul {
  display: grid;
  gap: 12px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}
li { color: var(--secondary); }
li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--primary);
  font-weight: 700;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.certs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 34px;
}
.certs div, .security-card div {
  padding: 20px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--border);
}
.certs strong, .security-card strong { display: block; font-weight: 700; }
.certs span, .security-card span { display: block; color: var(--muted); font-size: 14px; }
.security-card {
  padding: 32px;
}
.security-card div {
  margin-top: 16px;
  padding: 0 0 0 22px;
  border: 0;
  border-left: 3px solid var(--primary);
  border-radius: 0;
}

footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  background: white;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 44px;
}
footer p { margin: 16px 0 0; color: var(--muted); }
footer h4 { margin-bottom: 14px; font-size: 14px; letter-spacing: 0; }
footer a:not(.brand) {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}
.footer-bottom {
  display: flex;
  gap: 24px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.footer-bottom p { margin: 0 auto 0 0; }

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}
.qr-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 27, 48, .46);
  backdrop-filter: blur(8px);
}
.qr-modal-card {
  position: relative;
  width: min(360px, 92vw);
  padding: 24px;
  border: 1px solid rgba(129, 140, 248, .45);
  border-radius: 24px;
  background: linear-gradient(135deg, #eef2ff, #fce7f3 52%, #f3e8ff);
  box-shadow: 0 24px 70px rgba(99, 91, 255, .28);
  text-align: center;
  transform: scale(.94) translateY(8px);
  transition: transform .22s ease;
}
.qr-modal.open .qr-modal-card { transform: scale(1) translateY(0); }
.qr-modal-card p {
  margin: 0 0 16px;
  color: var(--secondary);
  font-weight: 800;
}
.qr-modal-card img {
  display: block;
  width: 100%;
  border-radius: 18px;
  background: white;
  box-shadow: 0 0 22px rgba(129, 140, 248, .28);
}
.qr-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--secondary);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding-top: 88px; }
  .hero-grid, .security-grid, .feature-grid, .price-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  .code-card { min-height: 0; }
  .price-card.featured { transform: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .container, .nav-inner { padding-left: 20px; padding-right: 20px; }
  .navbar, .nav-inner { height: 64px; }
  .nav-actions .ghost { display: none; }
  .brand { font-size: 20px; }
  h1 { font-size: 48px; }
  .hero-copy > p { font-size: 18px; }
  .hero-actions, .stats, .certs, .footer-bottom { flex-direction: column; display: flex; }
  .stats { gap: 18px; }
  .features, .pricing, .security { padding: 68px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  pre { font-size: 12px; overflow-x: auto; white-space: pre; }
}
