/**
 * Cerynix — marketing landing
 * Copyright (c) 2026 Andrejs Sevcenko. All rights reserved.
 * Proprietary and confidential.
 * SPDX-License-Identifier: LicenseRef-Cerynix-Proprietary
 *
 * Scaffold styling. On-brand with the product design tokens (see
 * apps/web/src/styles/globals.css). Intended to be refined/replaced to match
 * the incoming visual design — structure and copy are production-ready.
 */

:root {
  --bg: #020817;
  --surface: #0f172a;
  --surface-2: #111c2f;
  --border: rgba(148, 163, 184, 0.16);
  --fg: #f8fafc;
  --muted: #94a3b8;
  --primary: #2563eb;
  --accent: #a78bfa;
  --brand-from: #22d3ee;
  --brand-to: #8b5cf6;
  --ok: #22c55e;
  --radius: 16px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 620px at 16% -8%, rgb(45 140 255 / 0.14), transparent 62%),
    radial-gradient(900px 500px at 92% 4%, rgb(167 139 250 / 0.1), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

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

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #22d3ee, #2563eb, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- header ---- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgb(8 11 20 / 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand .tag {
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}

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

.nav-links a:hover {
  color: var(--fg);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgb(45 140 255 / 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -8px rgb(45 140 255 / 0.8);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--fg);
  background: rgb(255 255 255 / 0.02);
}

.btn-ghost:hover {
  border-color: var(--primary);
}

/* ---- sections ---- */
section {
  padding-block: 88px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 800;
}

h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 800;
}

.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 32px;
}

/* ---- hero ---- */
.hero {
  padding-top: 76px;
  text-align: center;
}

.hero .lead {
  margin-inline: auto;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.note {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---- pills / frameworks ---- */
.pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

.pill {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 14px;
}

.pill span {
  color: var(--muted);
  font-weight: 500;
}

/* ---- feature grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.card:hover {
  border-color: rgb(45 140 255 / 0.55);
  transform: translateY(-2px);
}

.card h3 {
  margin: 14px 0 8px;
  font-size: 18px;
}

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

.ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgb(45 140 255 / 0.12);
  border: 1px solid rgb(45 140 255 / 0.25);
  font-size: 20px;
}

/* ---- steps ---- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #22d3ee, #2563eb, #8b5cf6);
  color: #05121f;
}

/* ---- security band ---- */
.band {
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(700px 300px at 100% 0%, rgb(167 139 250 / 0.12), transparent 60%),
    var(--surface);
  padding: 44px;
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px 28px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 15px;
}

.checks li::before {
  content: "✓";
  color: var(--ok);
  font-weight: 800;
  margin-top: 1px;
}

.checks li b {
  color: var(--fg);
  font-weight: 600;
}

/* ---- final CTA ---- */
.final {
  text-align: center;
}

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding-block: 40px;
  color: var(--muted);
  font-size: 14px;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.disclaimer {
  margin-top: 18px;
  font-size: 12.5px;
  max-width: 78ch;
  line-height: 1.5;
}

/* ---- hero readiness beam ---- */
.hero { text-align: left; padding-top: 60px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.hero-copy .lead { margin: 0 0 32px; }
.hero-copy .cta-row,
.hero-copy .pills { justify-content: flex-start; }
.hero-beam {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
}
.ring {
  width: 288px;
  height: 288px;
  border-radius: 50%;
  background: conic-gradient(#22d3ee 0turn, #2563eb 0.55turn, #8b5cf6 0.78turn, rgba(148, 163, 184, 0.14) 0.78turn);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px -10px rgba(37, 99, 235, 0.5);
}
.ring-inner {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #0b1220;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}
.ring-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.ring-pct { font-size: 56px; font-weight: 800; line-height: 1; }
.ring-grade { font-size: 13px; color: var(--ok); font-weight: 600; }
.kpi-float {
  position: absolute;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(8, 13, 26, 0.92));
  border-radius: 14px;
  padding: 12px 15px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  min-width: 150px;
}
.kpi-float .k-label { font-size: 11px; color: var(--muted); }
.kpi-float .k-val { font-size: 22px; font-weight: 800; }
.kpi-float .k-sub { font-size: 11px; }
.kpi-tl { top: 6px; left: -10px; }
.kpi-br { bottom: 30px; right: -14px; }
.kpi-bl { bottom: 64px; left: -18px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-beam { min-height: 300px; }
  .kpi-float { display: none; }
  .ring { width: 220px; height: 220px; }
  .ring-inner { width: 168px; height: 168px; }
  .ring-pct { font-size: 42px; }
}
/* ---- pricing ---- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
  align-items: start;
}
.tier {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tier-pop {
  border-color: rgb(37 99 235 / 0.6);
  box-shadow: 0 0 0 1px rgb(37 99 235 / 0.3), 0 24px 60px -28px rgb(37 99 235 / 0.6);
  position: relative;
}
.tier-badge {
  position: absolute;
  top: -11px;
  left: 26px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
}
.brand-gradient { background: linear-gradient(135deg, #22d3ee, #2563eb, #8b5cf6); }
.tier h3 { font-size: 20px; margin: 0; }
.tier .t-tag { color: var(--muted); font-size: 13px; margin: -6px 0 0; }
.tier .t-price { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.tier .t-price small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.tier ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.tier li { display: flex; gap: 9px; font-size: 13.5px; color: var(--fg); }
.tier li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.tier li.muted { color: var(--muted); }
.tier li.muted::before { content: "—"; color: var(--muted); }
.tier .btn { margin-top: auto; width: 100%; justify-content: center; }

.cmp-wrap { margin-top: 48px; overflow-x: auto; }
.cmp {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13.5px;
}
.cmp th, .cmp td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--border); }
.cmp th:first-child, .cmp td:first-child { text-align: left; color: var(--fg); font-weight: 500; }
.cmp thead th { font-size: 14px; font-weight: 700; }
.cmp thead th span { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.cmp .yes { color: var(--ok); font-weight: 700; }
.cmp .no { color: var(--muted); }
.cmp tbody tr:hover { background: rgb(255 255 255 / 0.02); }
.cmp td.lim { font-family: var(--font); color: var(--muted); }

.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.faq .q { border: 1px solid var(--border); border-radius: 14px; padding: 20px; background: var(--surface); }
.faq .q h4 { margin: 0 0 8px; font-size: 15px; }
.faq .q p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---- product screenshots ---- */
.shots { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
.shot {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: 0 30px 70px -30px rgb(0 0 0 / 0.7);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.shot-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); font-family: var(--font); }
.shot-body { padding: 20px; }

/* ---- stats band ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  padding: 36px;
  margin-top: 40px;
}
.stats .s-val {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #22d3ee, #2563eb, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats .s-lab { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ---- numeric + inline charts ---- */
.num { font-variant-numeric: tabular-nums; }

.dbar { display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.dbar-l { width: 150px; flex: 0 0 auto; color: var(--muted); }
.dbar-t {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.07);
  overflow: hidden;
  display: block;
}
.dbar-t > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #22d3ee, #2563eb);
}
.dbar-v { width: 40px; flex: 0 0 auto; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: 0 0 auto; }
.legend b { color: var(--fg); font-variant-numeric: tabular-nums; }

/* ---- AURA showcase ---- */
.aura-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-top: 8px; }
.aura-chat {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 30px 70px -34px rgb(0 0 0 / 0.7);
}
.aura-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.aura-dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, #22d3ee, #8b5cf6); box-shadow: 0 0 12px rgb(34 211 238 / 0.7); flex: 0 0 auto; }
.bubble { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; }
.bubble.me { align-self: flex-end; background: linear-gradient(135deg, #2563eb, #8b5cf6); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: rgb(255 255 255 / 0.05); border: 1px solid var(--border); color: var(--fg); border-bottom-left-radius: 4px; }

/* ---- board-report light sheet ---- */
.rep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-top: 8px; }
.sheet {
  background: #f7f9fc;
  color: #0f172a;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.8);
  border: 1px solid rgb(0 0 0 / 0.06);
  font-size: 13px;
}
.sheet-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #e2e8f0; }
.sheet-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #0f172a; }
.sheet-brand::before {
  content: "C";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #22d3ee, #8b5cf6);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.sheet-meta { color: #64748b; font-size: 12px; }
.sheet-h { font-weight: 700; margin: 14px 0 10px; font-size: 14px; }
.sheet-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.sheet-kpis > div { background: #eef2f8; border-radius: 10px; padding: 10px 12px; }
.sk-v { font-size: 22px; font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; }
.sk-l { font-size: 11px; color: #64748b; }
.sheet-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sheet-tbl th { text-align: left; color: #64748b; font-weight: 600; padding: 6px 4px; border-bottom: 1px solid #e2e8f0; }
.sheet-tbl td { padding: 7px 4px; border-bottom: 1px solid #eef2f8; color: #0f172a; font-variant-numeric: tabular-nums; }
.sheet-tbl th:last-child, .sheet-tbl td:last-child { text-align: right; }
.sheet-tbl .up { color: #16a34a; }
.sheet-tbl .dn { color: #dc2626; }
.sheet-foot { margin-top: 12px; font-size: 10.5px; color: #94a3b8; text-align: right; }

/* ---- legal / prose pages ---- */
.legal { max-width: 820px; margin: 0 auto; }
.legal-banner {
  border: 1px solid rgb(245 158 11 / 0.45);
  background: rgb(245 158 11 / 0.09);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg);
  margin: 6px 0 30px;
}
.legal .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal h3 { font-size: 15.5px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--muted); font-size: 14.5px; line-height: 1.72; }
.legal ul { padding-left: 20px; display: grid; gap: 7px; margin: 10px 0; }
.legal a { color: var(--brand-from); }
.legal .toc { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 4px 0 8px; font-size: 13.5px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--fg); }

@media (max-width: 860px) {
  .aura-grid { grid-template-columns: 1fr; gap: 28px; }
  .rep-grid { grid-template-columns: 1fr; gap: 28px; }
  .price-grid { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 24px; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  section {
    padding-block: 64px;
  }
  .band {
    padding: 28px;
  }
}
