/* Nocticas — nocturnal observatory. Dark, refined, developer-grade. */
:root {
  --bg: #07090f;
  --bg-2: #0a0d18;
  --panel: #0e1220;
  --panel-2: #121829;
  --border: rgba(142, 164, 214, 0.12);
  --border-strong: rgba(142, 164, 214, 0.24);
  --text: #e9edf8;
  --muted: #95a1bf;
  --faint: #616d89;
  --accent: #8bb4ff;     /* moonlight blue */
  --accent-2: #93f0e0;   /* teal glow */
  --accent-ink: #06121f;
  --radius: 16px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* --- atmosphere: moon glow + starfield + grain --- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(139, 180, 255, 0.16), transparent 60%),
    radial-gradient(700px 500px at 12% 8%, rgba(147, 240, 224, 0.07), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
}
body::after { /* grain */
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.stars span {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: #cdd8f5; opacity: 0.5; animation: twinkle 4s var(--ease) infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.7; } }

a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); opacity: 0.6; }

h1, h2, h3 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; color: #f4f7ff; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 11px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.25s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px rgba(139, 180, 255, 0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(139, 180, 255, 0.4); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }

/* --- nav --- */
nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); background: rgba(7, 9, 15, 0.6);
  border-bottom: 1px solid var(--border);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* --- hero --- */
.hero { padding: 92px 0 80px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 22px 0 0; }
.hero h1 .serif { font-family: "Bricolage Grotesque", serif; font-style: italic; font-weight: 500; color: var(--accent); }
.hero p.sub { font-size: 19px; color: var(--muted); margin: 22px 0 32px; max-width: 30em; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .note { margin-top: 22px; font-size: 14px; color: var(--faint); }

/* verdict card visual */
.verdict {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.verdict .bar { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; }
.verdict .dot { width: 11px; height: 11px; border-radius: 50%; background: #2a3145; }
.verdict .obj { font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.verdict .obj b { color: var(--text); font-weight: 500; }
.step-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 7px 0; color: var(--muted); border-top: 1px solid var(--border); }
.step-row .ck { color: var(--accent-2); font-weight: 700; }
.verdict .pass {
  margin-top: 16px; padding: 12px 14px; border-radius: 10px;
  background: rgba(147, 240, 224, 0.08); border: 1px solid rgba(147, 240, 224, 0.2);
  display: flex; align-items: center; justify-content: space-between; font-size: 14px;
}
.verdict .pass b { color: var(--accent-2); }
.verdict .pass .cost { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--faint); }

/* --- generic section --- */
section.block { padding: 84px 0; }
.section-head { max-width: 38em; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 16px 0 0; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 18px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; position: relative; transition: border-color 0.3s, transform 0.3s var(--ease);
}
.step:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.step .num { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { font-size: 19px; margin: 12px 0 8px; }
.step p { font-size: 15px; color: var(--muted); }
.code {
  margin-top: 18px; background: #06080f; border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 15px; font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: #b9c6e8;
  overflow-x: auto; line-height: 1.7;
}
.code .k { color: var(--accent); } .code .s { color: var(--accent-2); } .code .c { color: var(--faint); }

/* features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  background: linear-gradient(180deg, rgba(18, 24, 41, 0.6), rgba(14, 18, 32, 0.3));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: border-color 0.3s, background 0.3s;
}
.feat:hover { border-color: var(--border-strong); background: linear-gradient(180deg, rgba(18, 24, 41, 0.9), rgba(14, 18, 32, 0.5)); }
.feat .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(139, 180, 255, 0.1); border: 1px solid rgba(139, 180, 255, 0.18); margin-bottom: 16px; }
.feat .ic svg { width: 21px; height: 21px; stroke: var(--accent); }
.feat h3 { font-size: 18px; margin-bottom: 8px; }
.feat p { font-size: 14.5px; color: var(--muted); }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
}
.price.featured { border-color: var(--accent); box-shadow: 0 0 60px rgba(139, 180, 255, 0.12); position: relative; }
.price.featured::before { content: "Most popular"; position: absolute; top: -11px; left: 26px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 20px; font-family: "JetBrains Mono", monospace; letter-spacing: 0.04em; }
.price .name { font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: 18px; }
.price .amt { font-family: "Bricolage Grotesque", sans-serif; font-size: 40px; font-weight: 700; margin: 12px 0 2px; color: #fff; }
.price .amt span { font-size: 16px; color: var(--faint); font-weight: 400; }
.price ul { list-style: none; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 11px; }
.price li { font-size: 14.5px; color: var(--muted); display: flex; gap: 10px; }
.price li::before { content: "✓"; color: var(--accent-2); font-weight: 700; }
.price .btn { width: 100%; justify-content: center; margin-top: auto; }

/* cta band */
.cta-band { text-align: center; padding: 70px 0; }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); }
.cta-band p { color: var(--muted); margin: 14px auto 28px; max-width: 32em; font-size: 18px; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 54px 0 40px; margin-top: 40px; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; align-items: flex-start; }
.foot-brand { max-width: 24em; }
.foot-brand p { color: var(--muted); font-size: 14.5px; margin-top: 12px; }
.foot-links { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 14px; font-family: "JetBrains Mono", monospace; font-weight: 500; }
.foot-col a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 9px; transition: color 0.2s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--faint); font-size: 13.5px; }

/* reveal on load */
.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.9s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* legal pages */
.legal { padding: 60px 0 80px; max-width: 720px; }
.legal h1 { font-size: 38px; margin-bottom: 8px; }
.legal .upd { color: var(--faint); font-family: "JetBrains Mono", monospace; font-size: 13px; margin-bottom: 36px; }
.legal h2 { font-size: 21px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; }
.legal ul { margin-left: 20px; }
.legal a { color: var(--accent); }

@media (max-width: 860px) {
  .hero-grid, .steps, .feat-grid, .price-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 50px; }
  .nav-links { display: none; }
  section.block { padding: 60px 0; }
  .verdict { order: -1; }
}
