*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, p { margin: 0; font-weight: 400; }

body.cream { background: var(--cream); color: var(--text); min-height: 100vh; position: relative; overflow-x: hidden; }
body.photo { background: #1A1A1D; color: var(--white); min-height: 100vh; position: relative; overflow-x: hidden; }

.glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
  background: var(--warm-glow);
}
.glow-bl { width: 60vw; height: 60vw; left: -10vw; bottom: -15vw; opacity: 0.4; }
.glow-tr { width: 45vw; height: 45vw; right: -8vw; top: -10vw; opacity: 0.3; }

.photo-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.50) 42%, rgba(0,0,0,.78) 100%),
    url("/assets/img/hero.jpg") center / cover no-repeat,
    #2a221c;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(var(--content-max), calc(100% - 40px));
  margin: 0 auto;
}
.text-wrap { width: min(var(--text-max), 100%); }

/* Type */
.display {
  font-size: 40px;
  line-height: 44px;
  letter-spacing: -0.5px;
  color: var(--text);
  text-wrap: pretty;
}
.photo .display { color: #FFFFFF; }
.title {
  font-size: 32px;
  line-height: 38px;
  letter-spacing: -0.3px;
  color: var(--text);
  text-wrap: pretty;
}
.photo .title { color: #FFFFFF; }
.body {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-soft);
}
.photo .body { color: rgba(255, 255, 255, 0.82); }
.eyebrow {
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-soft);
}
.photo .eyebrow { color: #FFFFFF; }
.caption {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-soft);
}
.photo .caption { color: rgba(255, 255, 255, 0.78); }
.link {
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  text-decoration: underline;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.photo .link { color: #FFFFFF; }

/* Nav */
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--page-margin) 0;
  max-width: var(--content-max);
  margin: 0 auto;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.photo .brand { color: #FFFFFF; }
.brand svg { width: 28px; height: 28px; }
.brand-name { font-size: 16px; letter-spacing: -0.2px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-soft);
}
.photo .nav-links a { color: rgba(255, 255, 255, 0.78); }
.nav-links a:hover { color: var(--text); }
.photo .nav-links a:hover { color: #FFFFFF; }
@media (max-width: 640px) {
  .nav-links .hide-sm { display: none; }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  min-width: 240px;
  padding: 0 28px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--ink);
  background-image: linear-gradient(180deg, #2A2A2F, #1C1C20);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 320ms var(--ease), filter 320ms var(--ease);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: scale(0.98); filter: brightness(0.94); }
.btn-primary:disabled { opacity: 0.4; cursor: default; }
.btn-primary.full { width: 100%; min-width: 0; }
@media (max-width: 640px) {
  .btn-primary { width: 100%; min-width: 0; }
}

.btn-photo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  min-width: 240px;
  padding: 0 28px;
  border: none;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  color: #222226;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 320ms var(--ease);
}
.btn-photo:active { transform: scale(0.98); }
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  min-width: 240px;
  padding: 0 28px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  background: var(--glass);
  backdrop-filter: blur(24px);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
@media (max-width: 640px) {
  .btn-photo, .btn-glass { width: 100%; min-width: 0; }
}

/* Layout blocks */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px var(--page-margin) 80px;
  max-width: 720px;
  margin: 0 auto;
}
.hero .eyebrow { margin-bottom: 8px; }
.hero .display { margin-bottom: 16px; }
.hero .body { max-width: 520px; margin: 0 auto; }
.hero .actions { margin-top: 64px; display: flex; flex-direction: column; align-items: center; gap: 16px; width: min(100%, 400px); }
.hero-photo {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px var(--page-margin) 56px;
}
.hero-photo .copy { text-align: center; margin-top: 12vh; }
.hero-photo .copy .eyebrow { margin-bottom: 8px; }
.hero-photo .copy .display { margin-bottom: 16px; }
.hero-photo .actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(100%, 400px);
  margin: 0 auto;
}
.or-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  color: var(--white-muted);
  font-size: 12px;
}
.or-row::before, .or-row::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--divider);
}

.content {
  position: relative;
  z-index: 1;
  padding: 48px var(--page-margin) 96px;
  max-width: var(--content-max);
  margin: 0 auto;
}
.content-head { max-width: var(--text-max); margin-bottom: 48px; }
.content-head .eyebrow { margin-bottom: 8px; }
.content-head .title { margin-bottom: 16px; }
.prose {
  max-width: var(--text-max);
}
.prose p { color: var(--text-soft); margin-bottom: 16px; }
.prose h2 {
  font-size: 32px;
  line-height: 38px;
  letter-spacing: -0.3px;
  color: var(--text);
  margin: 40px 0 16px;
}
.prose ol, .prose ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text-soft);
}
.prose li { margin-bottom: 8px; }
.prose a { text-decoration: underline; }

.card {
  background: rgba(255,255,255,0.45);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 24px;
}

.stack { display: flex; flex-direction: column; gap: 16px; max-width: var(--text-max); }
.related { margin-top: 48px; max-width: var(--text-max); }
.related a {
  display: block;
  padding: 16px 0;
  color: var(--text);
  border-bottom: 1px solid rgba(34,34,38,0.08);
}
.cta-end { margin-top: 64px; max-width: var(--text-max); }

footer.site {
  position: relative;
  z-index: 1;
  padding: 48px var(--page-margin) 56px;
  max-width: var(--content-max);
  margin: 0 auto;
}
footer.site .row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
footer.site a { color: var(--text-soft); font-size: 12px; }
.photo footer.site a { color: var(--white-muted); }

.index-list { max-width: var(--text-max); }
.index-list a {
  display: block;
  padding: 14px 0;
  color: var(--text);
  border-bottom: 1px solid rgba(34,34,38,0.08);
  font-size: 16px;
  line-height: 24px;
}
.index-list a span { display: block; color: var(--text-soft); font-size: 14px; margin-top: 4px; }

.join-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.join-form input[type="email"] {
  height: 56px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(24px);
  color: var(--white);
  padding: 0 24px;
  outline: none;
}
.join-form input::placeholder { color: var(--white-muted); }
body.cream .join-form input[type="email"] {
  background: #fff;
  border: 1px solid rgba(34,34,38,0.12);
  color: var(--text);
  backdrop-filter: none;
}
body.cream .join-form input::placeholder { color: var(--text-soft); }
.join-msg { min-height: 20px; font-size: 14px; }
.join-msg.ok { color: var(--success); }
.join-msg.err { color: var(--error); }

.celebrate { text-align: center; padding: 48px var(--page-margin) 96px; }
.celebrate .badge {
  width: 180px;
  margin: 24px auto 72px;
  filter: drop-shadow(var(--badge-shadow));
  animation: badge-in 700ms var(--ease) both;
}
@keyframes badge-in {
  from { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.04); }
  to { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .celebrate .badge { animation: none; }
  .btn-primary, .btn-photo { transition: none; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.status-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(94,143,106,0.5);
  animation: pulse 2.4s var(--ease) infinite;
  display: inline-block;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(94,143,106,0); }
}

.device-card {
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 28px 24px;
  background: rgba(255,255,255,0.5);
  max-width: 400px;
}
.device-card .label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-soft); font-weight: 500; }
.device-card .stat { font-size: 32px; line-height: 38px; letter-spacing: -0.3px; color: var(--text); margin: 8px 0 16px; }
.device-card p { color: var(--text-soft); }
