/* Landing v3 — Ethereal Glass. Premium dark command-center surface for KIABO.
   All visual "magic" lives here (hand-written, no Tailwind rebuild needed). */

:root {
  --land-bg: #07090b;
  --land-ink: #f4f6f5;
  --land-muted: #9aa3a0;
  --land-faint: #6b7370;
  --land-line: rgba(255, 255, 255, 0.08);
  --land-line-soft: rgba(255, 255, 255, 0.05);
  --land-green: #25d366;
  --land-green-deep: #00a884;
  --land-glass: rgba(255, 255, 255, 0.035);
  /* ponytail: display = system stack, tightened tracking carries the premium look; no web font */
  --land-display: var(--font-sans, system-ui), -apple-system, "Segoe UI", sans-serif;
  --ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);
}

body.landing-v2 {
  position: relative;
  min-height: 100dvh;
  color: var(--land-ink);
  font-family: var(--font-sans, system-ui), sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(40rem 32rem at 14% -8%, rgba(37, 211, 102, 0.16), transparent 70%),
    radial-gradient(36rem 30rem at 92% 4%, rgba(0, 168, 132, 0.14), transparent 72%),
    radial-gradient(48rem 48rem at 50% 120%, rgba(37, 211, 102, 0.08), transparent 70%),
    var(--land-bg);
}

/* Fixed film-grain overlay (perf-safe: fixed + pointer-events none) */
body.landing-v2::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

.landing-v2 * { box-sizing: border-box; }
.landing-v2 a { text-decoration: none; }
.landing-v2 main,
.landing-v2 header,
.landing-v2 footer { position: relative; z-index: 2; }

/* Display type */
.land-display {
  font-family: var(--land-display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

/* Eyebrow tag — microscopic pill */
.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--land-line);
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
  background: var(--land-glass);
  color: var(--land-green);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.landing-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--land-green);
  box-shadow: 0 0 10px 1px var(--land-green);
}

/* ---- Floating glass nav ---- */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: 1.1rem;
  background: transparent;
}
.landing-nav .nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  max-width: 70rem;
  padding: 0.6rem 0.7rem 0.6rem 1.1rem;
  border: 1px solid var(--land-line);
  border-radius: 999px;
  background: rgba(12, 15, 14, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 50px -30px rgba(0, 0, 0, 0.9);
}
.landing-nav .nav-links {
  display: none;
  gap: 1.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--land-muted);
}
.landing-nav .nav-links a { transition: color 0.4s var(--ease-fluid); }
.landing-nav .nav-links a:hover { color: var(--land-ink); }
@media (min-width: 880px) { .landing-nav .nav-links { display: flex; } }

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--land-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--land-ink);
}
.landing-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.7rem;
  font-family: var(--land-display);
  font-weight: 700;
  color: #07120c;
  background: linear-gradient(140deg, var(--land-green), var(--land-green-deep));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 0 24px -4px rgba(37, 211, 102, 0.6);
}

/* ---- Buttons: island + button-in-button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 999px;
  padding: 0.7rem 0.8rem 0.7rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.5s var(--ease-fluid), background 0.5s var(--ease-fluid), border-color 0.5s var(--ease-fluid);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  color: #06130b;
  background: linear-gradient(140deg, var(--land-green), var(--land-green-deep));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 14px 40px -18px rgba(37, 211, 102, 0.8);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  color: var(--land-ink);
  border: 1px solid var(--land-line);
  background: var(--land-glass);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); }
.btn-sm { padding: 0.5rem 0.55rem 0.5rem 1rem; font-size: 0.82rem; }
.btn .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  transition: transform 0.5s var(--ease-fluid);
}
.btn-ghost .btn-icon { background: rgba(255, 255, 255, 0.1); }
.btn:hover .btn-icon { transform: translate(2px, -2px) scale(1.06); }

/* ---- Double-bezel cards (outer shell + inner core) ---- */
.bezel {
  border-radius: 1.9rem;
  padding: 0.4rem;
  background: var(--land-glass);
  border: 1px solid var(--land-line-soft);
}
.bezel > .core {
  border-radius: 1.5rem;
  border: 1px solid var(--land-line);
  background: rgba(16, 19, 18, 0.7);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

/* ---- Hero ---- */
.landing-hero { position: relative; overflow: hidden; }
.land-h1 {
  font-size: clamp(2.7rem, 8.5vw, 5.7rem);
}
.land-h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
.land-lead {
  color: var(--land-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Console card */
.landing-console { padding: 1.5rem; }
.landing-console .console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--land-line);
}
.console-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  background: rgba(37, 211, 102, 0.12);
  color: var(--land-green);
  font-size: 0.72rem;
  font-weight: 700;
}
.console-live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--land-green);
  box-shadow: 0 0 10px 1px var(--land-green);
  animation: pulse 2s var(--ease-fluid) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.landing-metric {
  border: 1px solid var(--land-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem 1.1rem;
  transition: border-color 0.5s var(--ease-fluid), background 0.5s var(--ease-fluid);
}
.landing-metric:hover { border-color: rgba(37, 211, 102, 0.4); background: rgba(37, 211, 102, 0.04); }
.landing-metric span {
  display: block;
  color: var(--land-faint);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.landing-metric strong {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--land-display);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.landing-metric small { display: block; margin-top: 0.4rem; color: var(--land-muted); font-size: 0.84rem; }

.console-hint {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1rem;
  border: 1px solid var(--land-line);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 1rem 1.1rem;
}
.console-hint p.t { color: var(--land-ink); font-size: 0.9rem; font-weight: 700; }
.console-hint p.d { margin-top: 0.35rem; color: var(--land-muted); font-size: 0.88rem; line-height: 1.55; }
.console-tag {
  flex-shrink: 0;
  border-radius: 0.6rem;
  padding: 0.25rem 0.6rem;
  background: rgba(37, 211, 102, 0.14);
  color: var(--land-green);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Logo / proof strip */
.proof-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem 2.4rem;
  color: var(--land-faint);
  font-size: 0.82rem;
  font-weight: 600;
}
.proof-strip b { color: var(--land-ink); font-family: var(--land-display); font-weight: 600; }

/* ---- News / feature / system cards ---- */
.landing-news-card,
.landing-feature-card,
.landing-system-card {
  position: relative;
  border: 1px solid var(--land-line);
  border-radius: 1.5rem;
  background:
    linear-gradient(180deg, rgba(37, 211, 102, 0.06), transparent 60%),
    rgba(16, 19, 18, 0.6);
  padding: 1.5rem;
  overflow: hidden;
  transition: transform 0.6s var(--ease-fluid), border-color 0.6s var(--ease-fluid);
}
.landing-news-card:hover,
.landing-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 211, 102, 0.35);
}
.landing-news-card span {
  font-family: var(--land-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--land-green);
  letter-spacing: 0;
}
.landing-news-card h3,
.landing-feature-card h3,
.landing-system-card h3 {
  margin-top: 0.7rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.landing-news-card p,
.landing-feature-card p,
.landing-system-card p {
  margin-top: 0.6rem;
  color: var(--land-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ---- Simulator ---- */
.landing-sim-form,
.landing-sim-result {
  border: 1px solid var(--land-line);
  border-radius: 1.5rem;
  background: rgba(16, 19, 18, 0.6);
  padding: 1.5rem;
}
.landing-sim-form { display: grid; gap: 1rem; align-content: start; }
.landing-sim-form label { display: grid; gap: 0.45rem; }
.landing-sim-form span {
  color: var(--land-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.landing-sim-form input {
  width: 100%;
  border: 1px solid var(--land-line);
  border-radius: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  color: var(--land-ink);
  padding: 0.8rem 0.95rem;
  font: inherit;
  font-weight: 700;
  transition: border-color 0.4s var(--ease-fluid), box-shadow 0.4s var(--ease-fluid);
}
.landing-sim-form input:focus {
  border-color: var(--land-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
}
.sim-best {
  border-radius: 1.25rem;
  padding: 1.4rem;
  color: #06130b;
  background: linear-gradient(150deg, var(--land-green), var(--land-green-deep));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
.sim-best .k { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; }
.sim-best h3 { margin-top: 0.7rem; font-family: var(--land-display); font-size: 2rem; font-weight: 600; }
.sim-best .price { margin-top: 0.6rem; font-family: var(--land-display); font-size: 2.6rem; font-weight: 600; letter-spacing: -0.03em; }
.sim-best .detail { margin-top: 0.6rem; font-size: 0.9rem; line-height: 1.5; opacity: 0.85; }
.sim-table-wrap { border: 1px solid var(--land-line); border-radius: 1.25rem; overflow: hidden; }
.sim-table-wrap table { width: 100%; text-align: left; font-size: 0.88rem; border-collapse: collapse; }
.sim-table-wrap thead { background: rgba(255, 255, 255, 0.03); }
.sim-table-wrap th {
  padding: 0.85rem 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--land-faint);
}
.sim-table-wrap td { padding: 0.85rem 1rem; border-top: 1px solid var(--land-line-soft); color: var(--land-muted); }
.sim-table-wrap td.lbl { color: var(--land-ink); font-weight: 700; }
.sim-table-wrap tr.featured { background: rgba(37, 211, 102, 0.08); }
.sim-table-wrap tr.featured td { color: var(--land-ink); }
.sim-pos { color: var(--land-green); }

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  filter: blur(8px);
  transition: opacity 0.9s var(--ease-fluid), transform 0.9s var(--ease-fluid), filter 0.9s var(--ease-fluid);
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .console-live::before { animation: none; }
}

/* ---- Section divider sheen ---- */
.land-section-line {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--land-line), transparent);
}
