:root {
  --paper: #FAFAF7;
  --card: #FFFFFF;
  --ink: #14161F;
  --muted: #5B5E6B;
  --line: #E4E4DE;
  --signal: #3B5BFF;
  --signal-dark: #2A3FCC;
  --signal-soft: #E8ECFF;
  --lime: #C6F432;
  --lime-soft: #EFF9C9;
  --lime-ink: #4A5A00;
  --radius: 14px;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }

.lead { font-size: 19px; color: var(--muted); max-width: 560px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--signal-dark); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #D4FA55; }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: var(--card); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.logo img { width: 34px; height: 34px; }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.header .btn { padding: 10px 16px; font-size: 15px; }

/* Hero */
.hero { padding: 88px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; font-size: clamp(32px, 4.6vw, 52px); }
.hero .lead { margin-bottom: 30px; }
.hero h1 mark { background: linear-gradient(transparent 62%, var(--lime) 62%); color: inherit; padding: 0 2px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 15px; color: var(--muted); margin-top: 18px; max-width: 500px; }

.code-card {
  background: var(--ink);
  color: #E6E8F0;
  border-radius: 18px;
  padding: 22px 24px 26px;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 14px;
  line-height: 1.75;
  font-variant-ligatures: none;
  overflow-x: auto;
}
.code-card > div { white-space: pre; }
.code-dots { display: flex; gap: 6px; margin-bottom: 18px; }
.code-dots span { width: 10px; height: 10px; border-radius: 50%; background: #3A3D4A; }
.code-card .c { color: #7E8296; }
.code-card .k { color: #8FA3FF; }
.code-card .n { color: var(--lime); }
.code-card .out { margin-top: 14px; padding-top: 14px; border-top: 1px solid #2A2D38; color: var(--lime); }

.board { background: var(--ink); border-radius: 18px; padding: 14px 12px; }
.board svg { display: block; width: 100%; height: auto; }

.code-strip { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; margin-top: 64px; }
.code-strip h3 { font-size: 22px; margin-bottom: 10px; }
.code-strip p { color: var(--muted); }
.code-strip .code-card { max-width: 560px; }

/* Sections */
.section { padding: 80px 0; }
.section h2 { margin-bottom: 32px; }
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sub { color: var(--muted); margin: -18px 0 28px; }
.sub.small { font-size: 15px; margin: 18px 0 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* About */
.about { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; }
.about img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.prose { max-width: 640px; }
.prose h2 { margin-bottom: 20px; }
.prose p + p { margin-top: 14px; }

/* Directions */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row h3 { font-size: 22px; }
.row > div { max-width: 640px; }
.row ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 16px; }
.row li { padding: 2px 0; }
.row li b { color: var(--ink); font-weight: 700; }

/* Q&A */
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; margin: 0; max-width: 960px; }
.qa dt { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.qa dd { margin: 0; color: var(--muted); }

/* Reviews */
.reviews { columns: 3; column-gap: 20px; }
.review { margin: 0 0 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); break-inside: avoid; }
.review blockquote { margin: 0; font-size: 16px; }
.review blockquote p + p { margin-top: 10px; }
.review figcaption { margin-top: 16px; font-size: 15px; font-weight: 700; }

/* Prices */
.table-wrap { overflow-x: auto; }
.price-table { width: 100%; max-width: 760px; border-collapse: collapse; }
.price-table th, .price-table td { padding: 16px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.price-table thead th { font-size: 14px; font-weight: 600; color: var(--muted); }
.price-table th:first-child { text-align: left; padding-left: 0; }
.price-table tbody th { font-size: 18px; font-weight: 700; }
.price-table tbody th small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); }
.price-table td { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.price-table td.none { color: #B5B6BD; font-weight: 500; }

/* CTA */
.cta-block { background: var(--ink); color: #fff; border-radius: 24px; padding: 56px; }
.cta-block h2 { max-width: 620px; }
.cta-block p { color: #B9BCC9; margin-top: 14px; font-size: 18px; max-width: 560px; }
.cta-block p a { color: #fff; }
.cta-block .btn { margin-top: 28px; }

/* Footer */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); margin-top: 80px; }
.footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer h3 { font-size: 15px; margin-bottom: 12px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--signal); }
.footer ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.footer li { padding: 3px 0; }
.footer .legal { grid-column: 1 / -1; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px; margin-top: 8px; }
.footer .logo { margin-bottom: 14px; }
.footer .muted { color: var(--muted); font-size: 15px; }

/* Responsive */
@media (max-width: 1040px) {
  .nav { display: none; }
  .hero .wrap, .about, .code-strip { grid-template-columns: 1fr; }
  .code-strip { gap: 24px; margin-top: 48px; }
  .hero { padding: 56px 0 48px; }
  .about { gap: 28px; }
  .about img { max-width: 200px; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .reviews { columns: 2; }
  .cta-block { padding: 40px 28px; }
  .footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .qa { grid-template-columns: 1fr; }
  .reviews { columns: 1; }
  .logo { font-size: 18px; }
  .logo img { width: 30px; height: 30px; }
  .header .btn { padding: 9px 12px; font-size: 14px; }
  .price-table th, .price-table td { padding: 14px 0 14px 10px; }
  .price-table tbody th { white-space: normal; }
  .price-table tbody th small { font-size: 13px; }
  .price-table td { font-size: 16px; }
  .price-table tbody th { font-size: 16px; }
  .code-card { font-size: 13px; padding: 18px; }
}
