:root {
  color-scheme: light dark;
  --background: #f5f3ee;
  --surface: rgba(255, 255, 255, 0.78);
  --text: #171714;
  --muted: #65645d;
  --accent: #db4f2f;
  --accent-strong: #a92f18;
  --border: rgba(23, 23, 20, 0.12);
  --shadow: 0 24px 80px rgba(56, 45, 29, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(239, 137, 92, 0.2), transparent 34rem),
    radial-gradient(circle at 90% 20%, rgba(222, 192, 102, 0.18), transparent 30rem),
    var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: var(--accent-strong); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
}

.brand { color: var(--text); font-size: 1.25rem; font-weight: 800; text-decoration: none; letter-spacing: -0.04em; }
nav { display: flex; flex-wrap: wrap; gap: 1rem; }
nav a { color: var(--muted); font-weight: 650; text-decoration: none; }

main { padding: 4rem 0 6rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr); gap: 3rem; align-items: center; min-height: 66vh; }
.eyebrow { color: var(--accent-strong); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2 { line-height: 1.08; letter-spacing: -0.045em; }
h1 { max-width: 14ch; margin: 0.5rem 0 1.25rem; font-size: clamp(3rem, 8vw, 7rem); }
h2 { margin-top: 0; font-size: clamp(1.8rem, 4vw, 3rem); }
.lede { max-width: 40rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.65rem 1.1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 750; text-decoration: none; }
.button.primary { border-color: var(--accent); background: var(--accent); color: white; }

.device-card, .card, .prose {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.device-card { padding: 2rem; transform: rotate(2deg); }
.story { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.story:last-child { border-bottom: 0; }
.story strong, .story span { display: block; }
.story span { margin-top: 0.25rem; color: var(--muted); font-size: 0.9rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 4rem 0; }
.card { padding: 1.5rem; box-shadow: none; }
.card p { color: var(--muted); }

.prose { max-width: 780px; margin: 0 auto; padding: clamp(1.5rem, 5vw, 4rem); }
.prose h1 { max-width: none; font-size: clamp(2.5rem, 7vw, 5rem); }
.prose h2 { margin-top: 2.5rem; font-size: 1.55rem; letter-spacing: -0.025em; }
.meta, .note { color: var(--muted); }
.note { padding: 1rem 1.2rem; border-left: 4px solid var(--accent); background: rgba(219, 79, 47, 0.08); }

footer { padding: 2rem 0 3rem; border-top: 1px solid var(--border); color: var(--muted); }
footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

@media (max-width: 760px) {
  header { align-items: flex-start; flex-direction: column; }
  main { padding-top: 2rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .device-card { transform: none; }
  .grid { grid-template-columns: 1fr; }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --background: #161613;
    --surface: rgba(34, 33, 29, 0.8);
    --text: #f4f1e9;
    --muted: #b7b3a8;
    --accent: #f06c4e;
    --accent-strong: #ff9178;
    --border: rgba(244, 241, 233, 0.14);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  }
}
