/* Zillurl Mobile Term — Terminal Instrument landing
   Tokens aligned with agent/desktop + uiux/design-tokens.css */

/* Self-hosted Latin subsets (see website/fonts/). CJK falls back to system UI. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./fonts/inter-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #070a0f;
  --bg-elevated: #0b1018;
  --surface: #0e141c;
  --surface-2: #121a24;
  --surface-3: #16202c;
  --border: #1e2a38;
  --border-strong: #2b3a4d;
  --text: #e6edf3;
  --text-muted: #8b98a9;
  --text-dim: #5c6b7c;
  --accent: #38e0d0;
  --accent-2: #22d3ee;
  --accent-dim: rgba(56, 224, 208, 0.14);
  --accent-glow: rgba(56, 224, 208, 0.35);
  --danger: #fca5a5;
  --warn: #fbbf24;
  --ok: #4ade80;
  --terminal-bg: #060a10;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1120px;
  --nav-h: 64px;
  --shadow-glow: 0 0 80px rgba(56, 224, 208, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient grid + vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(56, 224, 208, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 224, 208, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 40% at 50% -10%, rgba(56, 224, 208, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 20%, rgba(34, 211, 238, 0.06), transparent 50%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 8px 14px;
  background: var(--accent);
  color: #041016;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.site {
  position: relative;
  z-index: 1;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  background: rgba(7, 10, 15, 0.72);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 10, 15, 0.9);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent-dim), transparent),
    var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(56, 224, 208, 0.08);
}

.brand-name span {
  color: var(--text-muted);
  font-weight: 600;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--surface);
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
  font-family: var(--font-mono);
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--accent-dim);
  color: var(--accent);
}

.lang-toggle button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #041016;
  box-shadow: 0 0 0 1px rgba(56, 224, 208, 0.25), 0 8px 28px rgba(56, 224, 208, 0.18);
}

.btn-primary:hover {
  background: #4febdd;
  box-shadow: 0 0 0 1px rgba(56, 224, 208, 0.35), 0 10px 32px rgba(56, 224, 208, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.btn-lg {
  height: 48px;
  padding: 0 22px;
  font-size: 14px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 48px 0 72px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(56, 224, 208, 0.22);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  margin-bottom: 18px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero h1 .accent {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(56, 224, 208, 0.25);
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--text-dim);
  font-size: 12px;
  font-family: var(--font-mono);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* Terminal mockup */
.terminal-shell {
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-glow), 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.traffic {
  display: flex;
  gap: 6px;
}

.traffic i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.traffic i:nth-child(1) {
  background: #f87171;
}
.traffic i:nth-child(2) {
  background: #fbbf24;
}
.traffic i:nth-child(3) {
  background: #4ade80;
}

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.terminal-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ok);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
}

.terminal-body {
  padding: 16px 18px 20px;
  background: var(--terminal-bg);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  min-height: 260px;
  position: relative;
}

.terminal-body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    transparent 50%,
    rgba(56, 224, 208, 0.015) 50%
  );
  background-size: 100% 4px;
  opacity: 0.6;
}

.t-line {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.t-muted {
  color: var(--text-dim);
}
.t-accent {
  color: var(--accent);
}
.t-ok {
  color: var(--ok);
}
.t-warn {
  color: var(--warn);
}
.t-prompt {
  color: var(--accent-2);
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- Sections ---------- */
section {
  padding: 72px 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 36px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

/* Privacy band */
.privacy {
  padding: 0 0 24px;
}

.privacy-card {
  display: grid;
  gap: 20px;
  padding: 28px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(56, 224, 208, 0.22);
  background:
    linear-gradient(135deg, rgba(56, 224, 208, 0.08), transparent 45%),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.privacy-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.privacy-card p {
  margin: 0;
  color: var(--text-muted);
  max-width: 48rem;
}

.privacy-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-points li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  color: var(--text);
}

.privacy-points li::before {
  content: "›";
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.4;
}

/* Steps */
.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(56, 224, 208, 0.2);
}

.step h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Features */
.features-grid {
  display: grid;
  gap: 14px;
}

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

.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(56, 224, 208, 0.18);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Platforms */
.platforms {
  display: grid;
  gap: 14px;
}

.platform {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.platform .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  margin-bottom: 12px;
}

.platform h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.platform p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* CTA band */
.cta-band {
  padding-top: 24px;
  padding-bottom: 88px;
}

.cta-card {
  text-align: center;
  padding: 48px 28px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(56, 224, 208, 0.12), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-glow);
}

.cta-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

.cta-card p {
  margin: 0 auto 24px;
  max-width: 34rem;
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--text-dim);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}

.footer a {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .nav-links {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }

  .privacy-card {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .step {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platforms {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .eyebrow .dot,
  .cursor {
    animation: none;
  }

  .feature:hover {
    transform: none;
  }
}
