/* === Custom properties =================================================== */
:root {
  /* Palette (extends the locked icon brand) */
  --bg: #000000;
  --bg-elev: #0F0F12;
  --fg: #F5F5F7;
  --fg-dim: #A0A0A8;
  --accent: #FF8A2A;
  --accent-deep: #E04A00;
  --glow: rgba(255, 122, 26, 0.18);

  --border-subtle: #1a1a1c;

  /* Fonts */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Type scale (mobile defaults; desktop scales via media query) */
  --size-hero-mark: 48px;
  --size-hero-tagline: 20px;
  --size-hero-desc: 16px;
  --size-section-heading: 32px;
  --size-feature-headline: 22px;
  --size-feature-body: 15px;
  --size-body: 16px;
  --size-prose-h2: 22px;
  --size-footer: 13px;

  /* Layout */
  --content-max: 1080px;
  --prose-max: 65ch;
}

/* === Reset =============================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; }

/* === Fonts =============================================================== */
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* === Page base =========================================================== */
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent-deep); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

main { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }

/* === Hero ================================================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 40% at 50% 90%, var(--glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 720px;
}
.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22%;
}
.hero-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-hero-mark);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero-tagline {
  font-weight: 500;
  font-size: var(--size-hero-tagline);
  margin: 0;
  color: var(--fg);
}
.hero-description {
  font-size: var(--size-hero-desc);
  margin: 0;
  color: var(--fg-dim);
  max-width: 60ch;
}
.hero-badge {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--accent-deep);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  margin-top: 16px;
  cursor: default;
}

/* === Section heading (shared between features + screenshots) ============= */
.section-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--size-section-heading);
  text-align: center;
  margin: 96px 0 48px;
  letter-spacing: -0.01em;
}

/* === Features =========================================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 96px;
}
.feature { text-align: center; }
.feature-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin: 0 auto 16px;
}
.feature-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--size-feature-headline);
  margin: 0 0 12px;
}
.feature-body {
  font-size: var(--size-feature-body);
  color: var(--fg-dim);
  margin: 0 auto;
  max-width: 50ch;
}

/* === Screenshots ======================================================== */
.screenshots-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.screenshot { margin: 0; text-align: center; }
.screenshot img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(255, 122, 26, 0.15);
}
.screenshot figcaption {
  font-weight: 500;
  font-size: 14px;
  color: var(--fg-dim);
  margin-top: 16px;
}
.screenshot--landscape { margin: 0 0 96px; }
.screenshot--landscape img { max-width: 1000px; margin: 0 auto; }

/* === Privacy/Terms prose ================================================ */
.prose-page {
  background: var(--bg);
}
.prose-header {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px;
}
.prose-header img {
  width: 32px;
  height: 32px;
  border-radius: 22%;
}
.prose {
  max-width: var(--prose-max);
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.prose h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-section-heading);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.prose .last-updated {
  color: var(--fg-dim);
  font-size: 14px;
  margin: 0 0 32px;
}
.prose .draft-notice {
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 48px;
  padding: 16px 20px;
  border: 1px solid var(--accent-deep);
  border-radius: 8px;
  background: rgba(224, 74, 0, 0.06);
  font-size: 15px;
  line-height: 1.5;
}
.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--size-prose-h2);
  margin: 48px 0 16px;
  color: var(--fg);
}
.prose p, .prose ul {
  font-size: var(--size-body);
  line-height: 1.7;
  margin: 0 0 16px;
  color: var(--fg);
}
.prose ul { padding-left: 1.5em; }
.prose li { margin-bottom: 8px; }
.prose strong {
  color: var(--fg);
  font-weight: 600;
}
.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* === Footer ============================================================= */
.page-footer {
  border-top: 1px solid var(--border-subtle);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 32px 24px;
  font-size: var(--size-footer);
  color: var(--fg-dim);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
.page-footer .separator { margin: 0 8px; }
.page-footer a { color: var(--fg-dim); }
.page-footer a:hover, .page-footer a:focus-visible { color: var(--fg); }

/* === Desktop ============================================================ */
@media (min-width: 768px) {
  :root {
    --size-hero-mark: 96px;
    --size-hero-tagline: 28px;
    --size-hero-desc: 18px;
    --size-section-heading: 40px;
    --size-feature-headline: 24px;
    --size-feature-body: 16px;
    --size-body: 17px;
    --size-prose-h2: 24px;
    --size-footer: 14px;
  }

  main, .page-footer, .prose-header { padding-left: 48px; padding-right: 48px; }

  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 64px; }

  .screenshots-row { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .page-footer { flex-direction: row; justify-content: space-between; }
}

/* === Reduced motion ===================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
