/* Presentation page (landing/page.tsx), served by scripts/landing-server.mjs. */
html {
  scroll-behavior: smooth;
  background: #111214;
}
body {
  margin: 0;
}
.landing {
  --lp-bg: #111214;
  --lp-bg-2: #17181b;
  --lp-panel: #1e1f23;
  --lp-line: rgb(255 255 255 / 0.08);
  --lp-text: #f2f3f5;
  --lp-text-2: #b5bac1;
  --lp-muted: #8a8f98;
  --lp-flame: #ff6a3d;
  --lp-flame-2: #f0302d;
  --lp-flame-soft: rgb(255 106 61 / 0.12);
  --lp-gold: #fbbf24;
  --lp-ok: #57f287;
  --lp-radius: 14px;
  min-height: 100dvh;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}
.landing *,
.landing *::before,
.landing *::after {
  box-sizing: border-box;
}
.landing a {
  color: inherit;
  text-decoration: none;
}
.landing h1,
.landing h2,
.landing h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.landing p {
  margin: 0;
}
.landing em {
  font-style: normal;
  background: linear-gradient(90deg, var(--lp-flame), var(--lp-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px);
}
.lp-narrow {
  width: min(820px, 100%);
}

/* ---- navigation */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--lp-line);
  background: rgb(17 18 20 / 0.8);
  backdrop-filter: blur(12px);
}
.lp-nav-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.lp-nav nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  color: var(--lp-text-2);
}
.lp-nav nav a:hover {
  color: var(--lp-text);
}

/* ---- buttons */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.lp-btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}
.lp-btn-primary {
  background: linear-gradient(135deg, var(--lp-flame), var(--lp-flame-2));
  color: #fff !important;
  box-shadow: 0 6px 24px rgb(240 48 45 / 0.3);
}
.lp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgb(240 48 45 / 0.42);
}
.lp-btn-ghost {
  border-color: var(--lp-line);
  background: rgb(255 255 255 / 0.03);
}
.lp-btn-ghost:hover {
  background: rgb(255 255 255 / 0.07);
}
.lp-btn:focus-visible,
.landing summary:focus-visible,
.lp-nav a:focus-visible {
  outline: 2px solid var(--lp-flame);
  outline-offset: 2px;
}

/* ---- hero */
.lp-hero {
  position: relative;
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 80px);
}
.lp-glow {
  position: absolute;
  inset: -200px 0 auto;
  height: 700px;
  background:
    radial-gradient(
      600px 360px at 72% 40%,
      rgb(255 106 61 / 0.16),
      transparent 70%
    ),
    radial-gradient(
      500px 300px at 15% 20%,
      rgb(88 101 242 / 0.12),
      transparent 70%
    );
  pointer-events: none;
}
.lp-hero-in {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.lp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--lp-flame);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lp-hero h1 {
  margin: 16px 0 18px;
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 800;
}
.lp-lead {
  max-width: 560px;
  color: var(--lp-text-2);
  font-size: 18px;
}
.lp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.lp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--lp-text-2);
  font-size: 14px;
}
.lp-badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lp-badges svg {
  color: var(--lp-ok);
}

/* ---- hero illustration */
.lp-mock {
  overflow: hidden;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  background: var(--lp-panel);
  box-shadow:
    0 30px 80px rgb(0 0 0 / 0.55),
    0 0 0 1px rgb(255 106 61 / 0.06);
  transform: perspective(1600px) rotateY(-5deg) rotateX(2deg);
  font-size: 12px;
}
.lp-mock-bar,
.lp-code figcaption {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--lp-line);
  background: #18191c;
  color: var(--lp-muted);
  font-size: 12px;
}
.lp-mock-bar i,
.lp-code figcaption i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3c42;
}
.lp-mock-bar span,
.lp-code figcaption span {
  margin-left: 8px;
}
.lp-mock-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 270px;
}
.lp-mock aside {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 10px 8px;
  border-right: 1px solid var(--lp-line);
  background: #1a1b1e;
}
.lp-mock aside small {
  padding: 2px 6px 4px;
  color: var(--lp-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lp-mock-acc {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 6px;
}
.lp-mock-acc:first-of-type {
  background: rgb(255 255 255 / 0.05);
}
.lp-mock-acc div {
  display: grid;
  line-height: 1.3;
}
.lp-mock-acc span {
  color: var(--lp-muted);
  font-size: 11px;
}
.lp-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.lp-ok {
  background: var(--lp-ok);
}
.lp-move {
  background: #5b8def;
}
.lp-gold {
  background: var(--lp-gold);
}
.lp-mock-map {
  position: relative;
  overflow: hidden;
  background: #22301f url('/map.webp') center / cover;
}
.lp-mock-map > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.lp-route {
  fill: none;
  stroke: var(--lp-gold);
  stroke-dasharray: 2.4 1.6;
  vector-effect: non-scaling-stroke;
  stroke-width: 2.5px;
  animation: lp-march 1.2s linear infinite;
}
@keyframes lp-march {
  to {
    stroke-dashoffset: -4;
  }
}
.lp-me {
  fill: var(--lp-gold);
  stroke: #fff;
  stroke-width: 0.6;
}
.lp-target {
  fill: var(--lp-ok);
  stroke: #fff;
  stroke-width: 0.6;
}
.lp-aggro {
  fill: rgb(240 87 90 / 0.18);
  stroke: rgb(240 87 90 / 0.8);
  stroke-width: 0.4;
}
.lp-chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgb(17 18 20 / 0.82);
  font-size: 11px;
}
.lp-mock-log {
  margin: 0;
  padding: 8px 12px 10px;
  border-top: 1px solid var(--lp-line);
  list-style: none;
  color: var(--lp-text-2);
  font-family: ui-monospace, 'Cascadia Code', Menlo, monospace;
  font-size: 11px;
  line-height: 1.8;
}
.lp-mock-log time {
  margin-right: 8px;
  color: var(--lp-muted);
}

/* ---- stats */
.lp-stats {
  border-block: 1px solid var(--lp-line);
  background: var(--lp-bg-2);
}
.lp-stats-in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.lp-stats-in div {
  display: grid;
  gap: 2px;
  padding: 26px 20px;
  text-align: center;
}
.lp-stats-in div + div {
  border-left: 1px solid var(--lp-line);
}
.lp-stats strong {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lp-stats span {
  color: var(--lp-muted);
  font-size: 14px;
}

/* ---- sections */
.lp-section {
  padding: clamp(64px, 9vw, 104px) 0;
  scroll-margin-top: 64px;
}
.lp-alt {
  background: var(--lp-bg-2);
}
.lp-head {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 44px;
  text-align: center;
}
.lp-head h2,
.lp-access h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
}
.lp-card {
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  background: var(--lp-panel);
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.lp-card:hover {
  border-color: rgb(255 106 61 / 0.35);
}
.lp-card h3 {
  font-size: 18px;
}
.lp-card p {
  color: var(--lp-text-2);
  font-size: 15px;
}
.lp-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--lp-flame-soft);
  color: var(--lp-flame);
}

/* two ways */
.lp-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.lp-duo-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 30px;
}
.lp-duo-card h3 {
  font-size: 22px;
}
.lp-duo-card ul {
  display: grid;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.lp-duo-card li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
}
.lp-duo-card li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--lp-flame), var(--lp-gold));
}

/* features */
.lp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.lp-feature {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
}
.lp-feature:hover {
  transform: translateY(-2px);
}

/* routines */
.lp-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.lp-split .lp-head {
  justify-items: start;
  margin-bottom: 20px;
  text-align: left;
}
.lp-checks {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--lp-text-2);
  font-size: 15px;
}
.lp-checks li {
  display: flex;
  gap: 10px;
}
.lp-checks svg {
  flex: none;
  margin-top: 4px;
  color: var(--lp-flame);
}
.lp-code {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  background: #0d0e10;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.45);
}
.lp-code pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  color: #d4d7dd;
  font-family: ui-monospace, 'Cascadia Code', Menlo, monospace;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre;
}

/* steps */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-steps li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px 24px;
}
.lp-step-n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lp-flame), var(--lp-flame-2));
  font-weight: 800;
}

/* access */
.lp-access {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(
      500px 200px at 0% 0%,
      rgb(255 106 61 / 0.14),
      transparent 70%
    ),
    var(--lp-panel);
}
.lp-access > div {
  display: grid;
  gap: 12px;
  max-width: 620px;
}

/* faq */
.lp-faq {
  display: grid;
  gap: 10px;
}
.lp-faq details {
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  background: var(--lp-panel);
}
.lp-faq details[open] {
  border-color: rgb(255 106 61 / 0.3);
}
.lp-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.lp-faq summary::-webkit-details-marker {
  display: none;
}
.lp-faq summary::after {
  content: '+';
  color: var(--lp-flame);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s;
}
.lp-faq details[open] summary::after {
  transform: rotate(45deg);
}
.lp-faq details p {
  padding: 0 22px 20px;
  color: var(--lp-text-2);
  font-size: 15px;
}

/* footer */
.lp-footer {
  padding: 36px 0;
  border-top: 1px solid var(--lp-line);
  color: var(--lp-muted);
  font-size: 13px;
}
.lp-footer-in {
  display: flex;
  align-items: center;
  gap: 24px;
}
.lp-footer-in .lp-brand {
  color: var(--lp-text);
}
.lp-footer-in p {
  flex: 1;
}
.lp-footer-in > a:last-child:hover {
  color: var(--lp-text);
}

/* ---- small screens */
@media (max-width: 960px) {
  .lp-hero-in,
  .lp-split {
    grid-template-columns: 1fr;
  }
  .lp-mock {
    transform: none;
  }
  .lp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lp-nav nav {
    display: none;
  }
  .lp-nav-in > .lp-btn {
    margin-left: auto;
  }
}
@media (max-width: 680px) {
  .lp-stats-in {
    grid-template-columns: repeat(2, 1fr);
  }
  .lp-stats-in div:nth-child(3) {
    border-left: 0;
  }
  .lp-stats-in div:nth-child(n + 3) {
    border-top: 1px solid var(--lp-line);
  }
  .lp-duo,
  .lp-grid,
  .lp-steps {
    grid-template-columns: 1fr;
  }
  .lp-access,
  .lp-footer-in {
    flex-direction: column;
    align-items: flex-start;
  }
  .lp-mock-body {
    grid-template-columns: 1fr;
  }
  .lp-mock aside {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .lp-route {
    animation: none;
  }
  .lp-btn,
  .lp-card {
    transition: none;
  }
}
