:root {
  --lapis: #10234a; --night: #0a1733; --saffron: #e3a83b; --saff-ink: #9a6510;
  --turq: #0f8f7e; --pome: #d8563f;
  --bg: #faf8f3; --ink: #0e1b33; --muted: #5b6676; --card: #ffffff;
  --line: #e7e1d4; --soft: #f1ece1;
  --radius: 14px; --maxw: 1120px;
}
[data-theme="dark"] {
  --bg: #0a1733; --ink: #eadfc8; --muted: #9aa6c0; --card: #0e1d3f;
  --line: rgba(227,168,59,.18); --soft: #0d1d40; --saff-ink: #e3a83b; --turq: #45c4b0;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--maxw), 100%); margin: 0 auto; padding: 0 22px; }
.dim { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 10px; z-index: 50; background: var(--lapis); color: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; cursor: pointer; border-radius: 10px; padding: 10px 18px; border: 1px solid transparent; transition: transform .12s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.solid { background: var(--lapis); color: #fff; }
.btn.solid:hover { background: #17315f; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--lapis); }
[data-theme="dark"] .btn.ghost:hover { border-color: var(--saffron); color: var(--saffron); }
.btn.lg { padding: 13px 24px; font-size: 16px; }
.icon-btn { font: inherit; font-size: 18px; background: transparent; border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.icon-btn:hover { border-color: var(--saffron); }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; padding: 12px 22px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 500; }
.brand b { font-weight: 700; color: var(--saff-ink); }
.links { display: flex; gap: 6px; margin-right: auto; }
.links a { padding: 7px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; }
.links a:hover { color: var(--ink); background: var(--soft); }
.tools { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.lang button { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 11px; background: transparent; border: 0; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--saffron); color: var(--night); }
.burger { display: none; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--muted); background: var(--card); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--turq); box-shadow: 0 0 0 3px color-mix(in srgb, var(--turq) 25%, transparent); }
h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.04; letter-spacing: -.02em; margin: 18px 0 14px; font-weight: 700; }
.lead { font-size: 18px; color: var(--muted); max-width: 48ch; margin: 0 0 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: flex; gap: 36px; margin: 38px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.stats dt { font-size: 30px; font-weight: 700; font-family: "JetBrains Mono", monospace; color: var(--saff-ink); }
.stats dd { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

/* terminal mockup */
.term { background: #0b1120; border: 1px solid #1c2740; border-radius: var(--radius); box-shadow: 0 24px 60px -24px rgba(16,35,74,.5); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #0f1830; border-bottom: 1px solid #1c2740; }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #35406080; }
.term-bar span:nth-child(1){ background:#e0605a } .term-bar span:nth-child(2){ background:#e3a83b } .term-bar span:nth-child(3){ background:#45c4b0 }
.term-bar em { margin-left: 8px; color: #6b7690; font-style: normal; font-family: "JetBrains Mono", monospace; font-size: 12.5px; }
.term-body { margin: 0; padding: 18px 18px 22px; font-family: "JetBrains Mono", monospace; font-size: 13.5px; line-height: 1.75; color: #c7d0e4; overflow-x: auto; }
.term-body .g { color: #45c4b0; } .term-body .d { color: #7a8aa8; } .term-body .ok { color: #46e06b; } .term-body .fl { color: #e3a83b; }
.cur { animation: blink 1.1s steps(1) infinite; color: #e3a83b; }
@keyframes blink { 50% { opacity: 0; } }

/* bands */
.band { padding: 70px 0; }
.band.alt { background: var(--soft); }
.band h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: -.01em; margin: 0 0 6px; }
.sub { color: var(--muted); font-size: 16px; margin: 0 0 34px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; transition: transform .14s, box-shadow .14s, border-color .14s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(16,35,74,.35); border-color: color-mix(in srgb, var(--saffron) 55%, var(--line)); }
.tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; background: color-mix(in srgb, var(--saffron) 20%, transparent); color: var(--saff-ink); }
.tag.t2 { background: color-mix(in srgb, var(--turq) 18%, transparent); color: var(--turq); }
.tag.t3 { background: color-mix(in srgb, var(--pome) 16%, transparent); color: var(--pome); }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; flex: 1; }
.card .more { font-weight: 600; color: var(--saff-ink); font-size: 14.5px; }
.card.svc { border-top: 3px solid var(--saffron); }
.card.svc.s2 { border-top-color: var(--turq); } .card.svc.s3 { border-top-color: var(--pome); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: start; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.plan.feat { border-color: var(--saffron); box-shadow: 0 20px 50px -28px rgba(227,168,59,.6); }
.plan .badge { position: absolute; top: 16px; right: 16px; font-size: 11.5px; font-weight: 700; background: var(--saffron); color: var(--night); padding: 3px 10px; border-radius: 999px; }
.plan .pname { font-weight: 600; color: var(--muted); }
.plan .price { font-size: 30px; font-weight: 700; font-family: "JetBrains Mono", monospace; margin: 4px 0 2px; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--muted); font-family: "Space Grotesk"; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.plan li { padding-left: 24px; position: relative; font-size: 14.5px; color: var(--ink); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--turq); font-weight: 700; }
.plan .btn { width: 100%; }
.note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-line { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-line span { color: var(--muted); } .contact-line b { color: var(--saff-ink); }
.contact-line:hover b { text-decoration: underline; }
.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.contact-form input, .contact-form textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form .btn { margin-top: 4px; }
.formhint { font-size: 13px; margin: 0; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 46px 0 26px; background: var(--soft); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.foot-brand .brand { font-size: 17px; }
.foot-brand p { margin: 12px 0 0; max-width: 34ch; font-size: 14px; }
.foot nav h4 { margin: 0 0 12px; font-size: 14px; }
.foot nav a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.foot nav a:hover { color: var(--saff-ink); }
.copy { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }

@media (max-width: 860px) {
  .links, .tools .btn, .tools .lang, .tools #theme { display: none; }
  .nav.open .tools { display: flex; }
  .burger { display: grid; }
  .nav.open { flex-wrap: wrap; }
  .nav.open .links { display: flex; flex-direction: column; width: 100%; order: 3; gap: 2px; }
  .nav.open .tools { display: flex; width: 100%; order: 4; flex-wrap: wrap; }
  .nav.open .tools .lang, .nav.open .tools #theme, .nav.open .tools .btn { display: inline-flex; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .term { order: 2; }
  .contact { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stats { gap: 24px; }
}
@media (max-width: 480px) { .stats { flex-wrap: wrap; } .foot-grid { grid-template-columns: 1fr; } }
