/* n4d4v.com — dark, calm, premium. One stylesheet, no build step. */

:root {
  --bg: #0f0e17;
  --surface: #1e1b2a;
  --surface-raised: #262236;
  --text: #eae6f7;
  --muted: #b8b3c9;
  --gold: #e6be4c;
  --gold-bright: #f2d073;
  --lavender: #c9b8ff;
  --glow: #1b0062;
  --border: rgba(201, 184, 255, 0.14);
  --radius: 26px;
  --radius-sm: 16px;
  --maxw: 1040px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Soft violet glow, top-left. Fixed so it stays put while the page scrolls. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      900px 620px at 4% -8%,
      var(--glow) 0%,
      rgba(27, 0, 98, 0.55) 34%,
      rgba(27, 0, 98, 0) 72%
    ),
    radial-gradient(
      620px 460px at 96% 8%,
      rgba(27, 0, 98, 0.34) 0%,
      rgba(27, 0, 98, 0) 70%
    );
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 6.2vw, 3.5rem);
}

h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--lavender);
  text-decoration-color: rgba(201, 184, 255, 0.45);
  text-underline-offset: 3px;
}

a:hover {
  color: #ded3ff;
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--gold);
  color: #0f0e17;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */

.site-header {
  padding-block: 26px 8px;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.wordmark:hover {
  color: var(--text);
}

.wordmark .dot {
  color: var(--gold);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.98rem;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--gold);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(56px, 12vw, 104px) clamp(40px, 8vw, 72px);
}

.hero h1 {
  max-width: 17ch;
  margin-bottom: 22px;
}

.hero p {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--muted);
  max-width: 46ch;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(28px, 6vw, 44px);
}

.section-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
}

/* ---------- App card ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(26px, 5vw, 40px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 28px;
  align-items: start;
}

.card-icon {
  grid-row: span 2;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: block;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.card-head h3 {
  font-size: clamp(1.5rem, 3.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 500;
  margin: 4px 0 0;
}

.card-body {
  grid-column: 2;
}

.card-body > p {
  color: var(--muted);
  margin-top: 18px;
  max-width: 60ch;
}

.features {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 60ch;
}

.features li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
}

.features li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 30px;
}

.badge-link {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
}

.badge-link img {
  display: block;
  width: auto;
}

.badge-link:hover {
  opacity: 0.88;
}

/* ---------- Screenshots ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.6vw, 26px);
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ---------- Prose (privacy page) ---------- */

.page-head {
  padding-block: clamp(44px, 9vw, 76px) 8px;
}

.page-head p {
  color: var(--muted);
  margin-top: 16px;
}

.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(26px, 5vw, 44px);
  margin-block: 28px clamp(28px, 6vw, 44px);
  max-width: 76ch;
}

.prose h2 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-top: 34px;
  color: var(--gold);
}

/* Only a heading that truly opens the card loses its top margin — the lead
   paragraph must keep its breathing room. */
.prose > :first-child {
  margin-top: 0;
}

.prose p {
  color: var(--muted);
  margin: 12px 0 0;
}

.prose ul {
  color: var(--muted);
  margin: 12px 0 0;
  padding-left: 22px;
}

.prose li {
  margin-top: 6px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.back-link {
  display: inline-block;
  margin-bottom: 8px;
}

/* ---------- 404 ---------- */

.notfound {
  padding-block: clamp(72px, 16vw, 140px) clamp(48px, 10vw, 96px);
}

.notfound h1 {
  max-width: 18ch;
}

.notfound p {
  max-width: 44ch;
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 20px;
}

.button {
  display: inline-block;
  margin-top: 28px;
  background: var(--gold);
  color: #0f0e17;
  font-weight: 600;
  font-family: var(--font-display);
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
}

.button:hover {
  background: var(--gold-bright);
  color: #0f0e17;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: clamp(40px, 8vw, 72px);
  padding-block: 30px 44px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.legal {
  margin: 0;
  color: rgba(184, 179, 201, 0.78);
  font-size: 0.85rem;
  max-width: 60ch;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding-inline: 20px;
  }

  .site-header .wrap {
    justify-content: flex-start;
  }

  .card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .card-icon {
    grid-row: auto;
    width: 76px;
    height: 76px;
    border-radius: 18px;
    margin-bottom: 20px;
  }

  .card-body {
    grid-column: 1;
  }

  .shots {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .hero h1,
  .notfound h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
