/* Shadowbit Pre-Launch Teaser - Clean Dark Ember Direction
   Disciplined, editorial, high-contrast dark aesthetic */

:root {
  --stage: #0e0d12;
  --raised: #18171c;
  --card: #1f1e25;
  --ink: #f7f5f3;
  --ink-muted: #a9a7b0;
  --ink-faint: #6c6a75;
  --border: #292832;
  --border-focus: #fe8b38;
  --brand: #f46b37;
  --brand-orange: #fe8b38;
  --brand-red: #e6332e;
  --brand-gradient: linear-gradient(135deg, #fe8b38 0%, #f46b37 50%, #e6332e 100%);
  --shadow-slab: 16px 16px 0 #5b1a20;
  --wrap: min(1200px, 100% - 40px);
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--stage);
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}
body {
  background: var(--stage);
  color: var(--ink);
  font: 400 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input { font-family: inherit; -webkit-tap-highlight-color: transparent; }

.wrap { width: var(--wrap); margin-inline: auto; }
.hp { position: absolute; left: -9999px; }

/* Sticky Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 13, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img { width: 132px; height: auto; }
.header-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #18171c;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: filter 0.15s, transform 0.15s;
}
.header-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Hero Section */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 10vw, 128px);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 480px;
  background: radial-gradient(circle, rgba(244, 107, 55, 0.16) 0%, rgba(230, 51, 46, 0.06) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-orange);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(254, 139, 56, 0.12);
  border: 1px solid rgba(254, 139, 56, 0.28);
  margin-bottom: 24px;
}
.hero-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 0 8px var(--brand-orange);
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 70px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.hero h1 span.grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 32px;
  max-width: 32em;
}

/* Waitlist Form Component */
.waitlist-form {
  max-width: 500px;
}
.form-row {
  display: flex;
  gap: 10px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 1px var(--border-focus);
}
.form-row input[type=email] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--ink);
  font: 500 16px var(--font-sans);
  padding: 10px 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-row input[type=email]::placeholder { color: var(--ink-faint); }
.btn-submit {
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  background: var(--brand-gradient);
  color: #18171c;
  font: 600 14px var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s, transform 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.btn-submit:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: progress; }

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-muted);
  cursor: pointer;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
.consent-label input {
  margin-top: 1px;
  accent-color: var(--brand-orange);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}
.consent-label a {
  color: var(--brand-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-status {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 12px;
  line-height: 1.5;
  min-height: 1.4em;
}
.form-status a {
  color: var(--brand-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-status a:hover {
  filter: brightness(1.15);
}
.form-status.is-error { color: #ff8fa3; }
.form-status.is-success { color: #5fd38f; }

/* Hero Media Slab */
.hero-media-wrap {
  position: relative;
}
.hero-media-slab {
  border-radius: 24px;
  overflow: hidden;
  background: var(--raised);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-slab);
}
.hero-media-slab img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Philosophy / Story Section */
.story-section {
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid var(--border);
  background: #0b0a0e;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.story-card {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
}
.story-card-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-orange);
  margin-bottom: 20px;
}
.story-card h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.3;
}
.story-card p {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Reveal Section: Mystery Under Cloth */
.reveal-section {
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid var(--border);
}
.reveal-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.reveal-media-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-slab);
}
.reveal-media-frame img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.reveal-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-orange);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.reveal-copy h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.reveal-copy p {
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}
.reveal-video-row {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
}
.reveal-video-row .clip {
  width: 160px;
  aspect-ratio: 16/6;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.reveal-video-row video { width: 100%; height: 100%; object-fit: cover; }
.reveal-video-row span { font-size: 13px; color: var(--ink-faint); }

/* Dusk Section: The Desk */
.dusk-section {
  padding: clamp(64px, 9vw, 120px) 0 0;
  border-top: 1px solid var(--border);
}
.dusk-banner {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/8;
  margin-bottom: 40px;
}
.dusk-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.dusk-copy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.dusk-copy-grid h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.dusk-copy-grid p {
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Final Waitlist Section */
.final-section {
  padding: clamp(80px, 11vw, 140px) 0 clamp(96px, 12vw, 160px);
}
.final-card {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-slab);
}
.final-card h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.final-card p {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 80px;
  font-size: 13px;
  color: var(--ink-muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .story-grid { grid-template-columns: 1fr; gap: 20px; }
  .reveal-grid { grid-template-columns: 1fr; gap: 40px; }
  .dusk-copy-grid { grid-template-columns: 1fr; gap: 24px; }
  .final-card { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  :root {
    --wrap: min(1200px, 100% - 32px);
    --shadow-slab: 8px 8px 0 #5b1a20;
  }

  .header-inner {
    height: 62px;
  }
  .logo img {
    width: 118px;
  }
  .header-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .hero {
    padding: 36px 0 52px;
  }
  .hero-glow {
    width: 100%;
    max-width: 360px;
    height: 320px;
    filter: blur(50px);
  }
  .hero h1 {
    font-size: clamp(30px, 8.5vw, 44px);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
  }
  .hero-lede {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 24px;
  }

  /* Waitlist Form on mobile */
  .waitlist-form {
    max-width: 100%;
  }
  .form-row {
    flex-direction: column;
    padding: 8px;
    gap: 8px;
    border-radius: 14px;
  }
  .form-row input[type=email] {
    font-size: 16px; /* Strict 16px prevents iOS Safari auto-zoom */
    padding: 10px 12px;
    width: 100%;
  }
  .btn-submit {
    width: 100%;
    padding: 13px 20px;
    font-size: 14px;
    border-radius: 10px;
  }

  /* Cards & Media */
  .hero-media-slab,
  .reveal-media-frame {
    border-radius: 18px;
  }

  .story-section,
  .reveal-section,
  .dusk-section {
    padding: 52px 0;
  }

  .story-card {
    padding: 24px 20px;
    border-radius: 16px;
  }
  .story-card h2 {
    font-size: 20px;
  }

  .reveal-copy h2 {
    font-size: clamp(28px, 7.5vw, 38px);
  }
  .reveal-copy p {
    font-size: 16px;
    margin-bottom: 22px;
  }
  .reveal-video-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
  }
  .reveal-video-row .clip {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 16/7;
  }

  .dusk-banner {
    aspect-ratio: 16/10;
    border-radius: 18px;
    margin-bottom: 24px;
  }
  .dusk-copy-grid h2 {
    font-size: clamp(26px, 7vw, 36px);
  }
  .dusk-copy-grid p {
    font-size: 16px;
  }

  .final-section {
    padding: 52px 0 72px;
  }
  .final-card {
    padding: 32px 20px;
    border-radius: 20px;
    gap: 28px;
  }
  .final-card h2 {
    font-size: clamp(28px, 7.5vw, 38px);
  }
  .final-card p {
    font-size: 15px;
  }

  footer {
    padding: 32px 0 calc(36px + env(safe-area-inset-bottom, 0px));
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-links {
    gap: 14px 20px;
  }
}

@media (max-width: 380px) {
  :root {
    --wrap: min(1200px, 100% - 24px);
    --shadow-slab: 6px 6px 0 #5b1a20;
  }
  .header-inner {
    height: 56px;
  }
  .logo img {
    width: 108px;
  }
  .header-btn {
    padding: 7px 13px;
    font-size: 11.5px;
  }
  .hero-tag {
    font-size: 12px;
    padding: 5px 12px;
  }
  .final-card {
    padding: 24px 16px;
  }
}

/* Legal & Editorial Prose Layout */
.prose-stage {
  padding: clamp(64px, 8vw, 100px) 0 clamp(80px, 10vw, 140px);
}
.prose-container {
  max-width: 780px;
  margin: 0 auto;
}
.prose-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 16px;
}
.prose-title {
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.prose-updated {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.prose-content h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 16px;
}
.prose-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 12px;
}
.prose-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 20px;
}
.prose-content ul, .prose-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
  color: var(--ink-muted);
}
.prose-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}
.prose-content a {
  color: var(--brand-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose-content a:hover {
  filter: brightness(1.15);
}
.prose-content dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px 24px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0 32px;
}
.prose-content dt {
  font-weight: 600;
  color: var(--ink);
}
.prose-content dd {
  color: var(--ink-muted);
}
.prose-card {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  margin: 28px 0;
}
@media (max-width: 600px) {
  .prose-stage {
    padding: 36px 0 60px;
  }
  .prose-title {
    font-size: clamp(28px, 7.5vw, 38px);
  }
  .prose-content dl {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 16px;
  }
  .prose-content dt {
    margin-top: 14px;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--brand-orange);
    text-transform: uppercase;
  }
  .prose-content dt:first-child {
    margin-top: 0;
  }
  .prose-card {
    padding: 20px 16px;
    border-radius: 14px;
  }
}
