/* ================================================================
   Relay — Apple-style Landing Page
   Reference: apple.com product pages
   ================================================================ */

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

:root {
  --white: #ffffff;
  --black: #1d1d1f;
  --gray-1: #f5f5f7;
  --gray-2: #e8e8ed;
  --gray-3: #86868b;
  --gray-4: #6e6e73;
  --gray-5: #515154;
  --accent: #2563eb;   /* Relay blue — deeper, distinct from Apple's #0071e3 */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  --max-w: 1200px;
  --narrow-w: 680px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--narrow-w); margin: 0 auto; padding: 0 24px; }

/* ─── REVEAL ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── NAV ──────────────────────────────────────── */
#nav {
  position: fixed;
  inset: 0 0 auto;
  height: 52px;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  text-decoration: none;
}
.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.nav-cta:hover { opacity: 0.75; }

/* ─── BUTTONS ──────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn-primary:hover { background: #3b82f6; transform: scale(1.01); }
.btn-primary:active { transform: scale(0.99); }

.btn-text {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.btn-text:hover { opacity: 0.7; }

/* ─── HERO ─────────────────────────────────────── */
.hero {
  padding: 120px 24px 0;
  text-align: center;
  background: var(--white);
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.hero-h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.03;
  color: var(--black);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 400;
  color: var(--gray-4);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-img-wrap {
  max-width: 960px;
  margin: 0 auto;
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── STATEMENT ────────────────────────────────── */
.statement {
  padding: 120px 0;
  background: var(--black);
}
.statement-text {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: rgba(255,255,255,0.7);
  text-align: center;
}
.statement-accent { color: var(--white); }

/* ─── FEATURE SHOT ─────────────────────────────── */
.feature-shot {
  background: var(--black);
  padding: 0 0 120px;
}
.feature-shot-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  text-align: center;
}
.feature-shot-inner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}
.feature-shot-caption {
  margin-top: 24px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
}

/* ─── TRIAD ────────────────────────────────────── */
.triad {
  padding: 120px 0;
  background: var(--gray-1);
}
.triad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-2);
  border: 1px solid var(--gray-2);
  border-radius: 20px;
  overflow: hidden;
}
.triad-item {
  background: var(--gray-1);
  padding: 56px 40px;
  text-align: center;
}
.triad-num {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--black);
  line-height: 1;
  margin-bottom: 12px;
}
.triad-label {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 10px;
}
.triad-body {
  font-size: 14px;
  color: var(--gray-4);
  line-height: 1.65;
  max-width: 220px;
  margin: 0 auto;
}

/* ─── MODELS ───────────────────────────────────── */
.models {
  padding: 120px 0;
  background: var(--white);
}
.models-header {
  text-align: center;
  margin-bottom: 64px;
}
.models-header h2 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--black);
}
.models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.model-card {
  background: var(--gray-1);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}
.model-card:hover { transform: scale(1.01); }
.model-img-zone {
  background: var(--white);
  padding: 48px 40px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.model-img-zone-pro { background: #1d1d1f; }
.model-img-zone img {
  max-width: 90%;
  max-height: 260px;
  object-fit: contain;
  display: block;
  transition: transform 0.5s var(--ease);
}
.model-card:hover .model-img-zone img { transform: scale(1.03); }

.model-info { padding: 32px 36px 40px; }
.model-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 4px;
}
.model-price {
  font-size: 20px;
  font-weight: 500;
  color: var(--gray-4);
  margin-bottom: 6px;
}
.model-compat {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 20px;
}
.model-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.model-specs span {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-5);
  background: var(--white);
  border: 1px solid var(--gray-2);
  padding: 4px 12px;
  border-radius: 100px;
}
.model-colors { display: flex; gap: 8px; }
.dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.1);
  transition: transform 0.15s ease;
  cursor: default;
}
.dot:hover { transform: scale(1.15); }
.dot-silver { background: #c9c9c9; }
.dot-sg { background: #6e6e73; }
.dot-starlight { background: #e4d9c2; }
.dot-midnight { background: #1d2340; }
.dot-spblack { background: #1c1c1e; }

/* ─── WAITLIST ─────────────────────────────────── */
.waitlist {
  padding: 120px 0;
  background: var(--gray-1);
  text-align: center;
}
.waitlist-h2 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--black);
  margin-bottom: 16px;
}
.waitlist-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--gray-4);
  margin-bottom: 40px;
  line-height: 1.6;
}
.wl-form { max-width: 480px; margin: 0 auto; }
.wl-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.wl-input {
  flex: 1;
  height: 50px;
  padding: 0 18px;
  font-family: var(--font);
  font-size: 15px;
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: 980px;
  outline: none;
  color: var(--black);
  min-width: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wl-input::placeholder { color: var(--gray-3); }
.wl-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.wl-btn { height: 50px; }
.wl-note { font-size: 12px; color: var(--gray-3); }
.wl-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #1a7f37;
  margin-top: 20px;
}

/* ─── FOOTER ───────────────────────────────────── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--gray-2);
  background: var(--gray-1);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-wordmark { font-size: 16px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 13px;
  color: var(--gray-4);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--black); }
.footer-copy { font-size: 12px; color: var(--gray-3); }

/* ─── RESPONSIVE ───────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding-top: 96px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .triad-grid { grid-template-columns: 1fr; }
  .triad-num { font-size: 56px; }
  .models-grid { grid-template-columns: 1fr; }
  .model-img-zone { min-height: 260px; }
  .wl-row { flex-direction: column; }
  .wl-btn { width: 100%; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 40px; }
  .triad-item { padding: 40px 24px; }
  .model-info { padding: 24px 24px 32px; }
}
