/* auzui product landing — dark-mode-first, self-contained (no external fonts/CDNs) */
:root {
  --bg: #0a0d12;
  --surface: #11151d;
  --surface-subtle: #161c27;
  --ink: #e6e9ee;
  --muted: #8b97a8;
  --hairline: #1f2733;
  --accent: #5fd0ff;
  --accent-2: #7c8cff;
  --accent-dim: rgba(95, 208, 255, 0.14);
  --green: #3ecf9a;
  --amber: #f5a83c;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --max: 1120px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

code {
  font-family: var(--mono);
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 13, 18, 0.82);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

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

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0a0d12;
}

.btn-primary:hover {
  filter: brightness(1.08);
  text-decoration: none;
  color: #0a0d12;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}

.btn-ghost:hover {
  border-color: var(--muted);
  text-decoration: none;
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 20% auto -10%;
  height: 420px;
  background:
    radial-gradient(closest-side, rgba(95, 208, 255, 0.14), transparent 70%),
    radial-gradient(closest-side, rgba(124, 140, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(95, 208, 255, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  max-width: 16ch;
  font-weight: 800;
  background: linear-gradient(120deg, var(--ink), var(--accent) 60%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
}

.notice {
  margin-top: 1.4rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(245, 168, 60, 0.28);
  background: rgba(245, 168, 60, 0.08);
  color: #f0d9a8;
  font-size: 0.92rem;
  max-width: 52ch;
}

/* ── Sections ────────────────────────────────────────────── */
section {
  padding: 3.5rem 0;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

/* ── Features ────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
}

.feature .icon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature code {
  font-size: 0.85em;
  color: var(--accent);
}

/* ── Screenshots ─────────────────────────────────────────── */
.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.shot {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  background: var(--surface-subtle);
}

.shot figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
}

.shot-wide {
  grid-column: 1 / -1;
}

/* ── Deploy / code block ─────────────────────────────────── */
.code-block {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 1.5rem;
}

.code-block code {
  font-family: var(--mono);
  white-space: pre;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chip {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-subtle);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

/* ── CTA band ────────────────────────────────────────────── */
.cta {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(95, 208, 255, 0.14), transparent 55%),
    var(--surface);
  border-block: 1px solid var(--hairline);
  padding: 3rem 0;
  text-align: center;
}

.cta h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.cta p {
  margin: 0 auto 1.25rem;
  color: var(--muted);
  max-width: 42ch;
}

.cta .btn-row {
  justify-content: center;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--hairline);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-links a:hover {
  color: var(--ink);
}

.legal {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.5;
  max-width: 75ch;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

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

  .shot-wide {
    grid-column: auto;
  }

  .hero {
    padding-top: 3rem;
  }
}

/* Per-screenshot light/dark switch — one on each shot, all kept in sync.
   Sits as a compact overlay in the top-right corner of the image. */
.shot-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0.82;
  transition: opacity 0.12s ease;
}
.shot:hover .shot-toggle,
.shot-toggle:focus-within {
  opacity: 1;
}
.shot-toggle button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  transition: color 0.12s ease, background 0.12s ease;
}
.shot-toggle button:hover {
  color: var(--ink);
}
.shot-toggle button.is-active {
  color: #0a0d12;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}
