/* Kaimi landing — kaimi.sh
   Dark-tech SaaS theme. No external dependencies. */

:root {
  /* Neutrals — slate biased toward the teal accent */
  --ground: #0A0E14;
  --ground-2: #0C1119;
  --surface: #121821;
  --surface-2: #161E29;
  --border: #1E2734;
  --border-bright: #2A3645;
  --text: #E6EDF3;
  --text-dim: #93A1B2;
  --text-faint: #5E6E80;

  /* Accent */
  --accent: #38E1C6;
  --accent-deep: #16A98F;
  --accent-glow: rgba(56, 225, 198, 0.14);

  /* Semantic (monitoring) */
  --ok: #3FB950;
  --warn: #E3A008;
  --crit: #F85149;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1140px;
  --r: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(56,225,198,0.10), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(56,225,198,0.05), transparent 55%),
    var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); line-height: 1.08; }
h3 { font-size: 1.18rem; letter-spacing: -0.01em; }
p { margin: 0; }

.lede { font-size: 1.18rem; color: var(--text-dim); max-width: 60ch; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 0.98rem;
  padding: 13px 22px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
  font-family: var(--sans);
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: #04231D; }
.btn-primary:hover { transform: translateY(-1px); background: #4cf0d4; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-bright); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10,14,20,0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--mono); font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; gap: 9px; letter-spacing: -0.01em; }
.brand .dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); animation: statusCycle 30s infinite; }
.brand .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); z-index: -1; animation: statusPulse 2.4s ease-out infinite, statusCycle 30s infinite; }
@keyframes statusPulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  80%, 100% { transform: scale(3.4); opacity: 0; }
}
@keyframes statusCycle {
  0%, 28%   { background: var(--ok);   box-shadow: 0 0 12px var(--ok); }
  33%, 61%  { background: var(--warn); box-shadow: 0 0 12px var(--warn); }
  66%, 94%  { background: var(--crit); box-shadow: 0 0 12px var(--crit); }
  99%, 100% { background: var(--ok);   box-shadow: 0 0 12px var(--ok); }
}
.brand .sh { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 0.95rem; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { font-family: var(--mono); font-size: 12.5px; color: var(--text-faint); margin-top: 18px; }
.hero-note b { color: var(--text-dim); font-weight: 500; }

/* Escalation demo card */
.demo {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-bright);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.03);
}
.demo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.demo-title { font-family: var(--mono); font-size: 12px; color: var(--text-dim); letter-spacing: 0.05em; }
.pill { font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 600; letter-spacing: 0.04em; }
.pill-crit { color: var(--crit); background: rgba(248,81,73,0.12); border: 1px solid rgba(248,81,73,0.3); }

.alert-card {
  background: var(--ground-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 14px 12px; margin-bottom: 14px;
}
.alert-top { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.sev-stripe { width: 4px; align-self: stretch; border-radius: 4px; background: var(--crit); }
.alert-meta { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.alert-title { font-weight: 600; font-size: 0.98rem; }
.alert-sub { color: var(--text-dim); font-size: 0.86rem; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center;
  padding: 9px 4px; position: relative;
  opacity: 0.34; transition: opacity .4s ease;
}
.step.active { opacity: 1; }
.step::before {
  content: ""; position: absolute; left: 12px; top: 26px; bottom: -9px; width: 2px;
  background: var(--border);
}
.step:last-child::before { display: none; }
.step.done::before { background: var(--accent-deep); }
.node {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--border-bright); background: var(--surface);
  font-size: 13px; z-index: 1;
}
.step.active .node { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.step.done .node { border-color: var(--accent-deep); background: rgba(22,169,143,0.18); }
.step-label { font-size: 0.92rem; font-weight: 500; }
.step-who { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.step-time { font-family: var(--mono); font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.step.active .step-time { color: var(--accent); }

/* ---------- Trust strip ---------- */
.trust { padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-inner { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: center; }
.trust-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
.trust-logo { font-weight: 600; color: var(--text-dim); font-size: 0.98rem; letter-spacing: -0.01em; opacity: 0.85; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.sec-head { max-width: 62ch; margin-bottom: 48px; }
.sec-head p { color: var(--text-dim); margin-top: 14px; font-size: 1.1rem; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 24px; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.card .ic { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-glow); margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 0.96rem; }
.card .tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); display: block; margin-bottom: 12px; }

/* Split / dashboard mock */
.split { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.checklist { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.checklist .row { display: flex; gap: 13px; align-items: flex-start; }
.checklist .ck { color: var(--accent); flex: none; margin-top: 2px; }
.checklist .row b { font-weight: 600; }
.checklist .row span { color: var(--text-dim); font-size: 0.96rem; }

/* Mock dashboard panel */
.panel {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-bright); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 30px 80px -36px rgba(0,0,0,0.8);
}
.panel-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--ground-2); }
.panel-bar .tl { display: flex; gap: 6px; }
.panel-bar .tl i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-bright); display: block; }
.panel-bar .pt { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); margin-left: 6px; }
.panel-body { padding: 16px; }
.kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--ground-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.kpi .n { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.kpi .l { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.kpi .n.ok { color: var(--ok); } .kpi .n.warn { color: var(--warn); } .kpi .n.crit { color: var(--crit); }

table.tix { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
table.tix th { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); font-weight: 500; }
table.tix td { padding: 10px; border-bottom: 1px solid var(--border); color: var(--text-dim); }
table.tix td.id { font-family: var(--mono); color: var(--text); font-size: 0.8rem; }
table.tix tr:last-child td { border-bottom: none; }
.badge { font-family: var(--mono); font-size: 10px; padding: 2px 8px; border-radius: 999px; font-weight: 600; letter-spacing: 0.03em; white-space: nowrap; }
.b-crit { color: var(--crit); background: rgba(248,81,73,0.12); }
.b-warn { color: var(--warn); background: rgba(227,160,8,0.12); }
.b-ok { color: var(--ok); background: rgba(63,185,80,0.12); }
.chan { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }

/* Advantages */
.adv { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 900px) { .adv { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .adv { grid-template-columns: 1fr; } }
.adv .card { padding: 20px; }
.adv .ic { width: 32px; height: 32px; }

/* Pricing */
.price-toggle { display: inline-flex; align-items: center; gap: 14px; margin-top: 22px; font-family: var(--mono); font-size: 13px; color: var(--text-dim); }
.switch { position: relative; width: 52px; height: 28px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-bright); cursor: pointer; transition: background .2s; padding: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); transition: transform .2s ease; }
.switch[aria-checked="true"] { background: var(--accent-glow); }
.switch[aria-checked="true"]::after { transform: translateX(24px); }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.save-pill { font-size: 11px; color: var(--accent); background: var(--accent-glow); border: 1px solid rgba(56,225,198,0.3); padding: 3px 9px; border-radius: 999px; }

.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 44px; align-items: start; }
@media (max-width: 880px) { .plans { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 60px -30px var(--accent-glow); position: relative; }
.plan.featured .ribbon { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--accent); color: #04231D; padding: 4px 12px; border-radius: 999px; font-weight: 700; }
.plan .pname { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.plan .pdesc { color: var(--text-dim); font-size: 0.92rem; min-height: 42px; }
.plan .pamount { display: flex; align-items: baseline; gap: 6px; }
.plan .pamount .cur { font-size: 1.1rem; color: var(--text-dim); }
.plan .pamount .num { font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.plan .pamount .per { font-size: 0.9rem; color: var(--text-faint); }
.plan .pbill { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); min-height: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 0.93rem; color: var(--text-dim); align-items: flex-start; }
.plan li .ck { color: var(--accent); flex: none; }
.plan .btn { justify-content: center; width: 100%; }

/* CTA band */
.cta-band { background: linear-gradient(180deg, var(--surface), var(--ground-2)); border: 1px solid var(--border-bright); border-radius: 20px; padding: 56px; text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--text-dim); max-width: 52ch; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-band .hero-cta { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 24px; font-size: 0.9rem; color: var(--text-dim); }
.foot-links a:hover { color: var(--text); }
.foot-copy { font-family: var(--mono); font-size: 12px; color: var(--text-faint); }

/* ---------- Flat icons ---------- */
.icn { display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card .ic .icn, .adv .ic .icn { width: 20px; height: 20px; stroke: var(--accent); }
.node .icn { width: 14px; height: 14px; stroke: currentColor; }
.chan .icn { width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; stroke: var(--text-faint); }

@media (prefers-reduced-motion: reduce) {
  .step, .switch::after, .btn { transition: none; }
  .brand .dot { animation: none; background: var(--ok); box-shadow: 0 0 12px var(--ok); }
  .brand .dot::after { animation: none; opacity: 0; }
}
