/* CRACKED! landing page. Colours from the app's master vault theme. */
:root {
  --bg-top: #12100f;
  --bg-bottom: #040404;
  --steel: #232120;
  --steel-light: #524f4c;
  --accent: #edc261;
  --accent-deep: #8c6624;
  --ink: #f5db9e;
  --glow: #ffcc6b;
  --text: #ece7df;
  --muted: #a39d94;
  --line: rgba(237, 194, 97, 0.18);
  --card: rgba(255, 255, 255, 0.035);
  --display: "Playfair Display", "Didot", "Bodoni 72", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom) 70%) fixed, var(--bg-bottom);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fine horizontal brushing, as on the app's vault background. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--glow); }

img, video { display: block; max-width: 100%; }

main, .site-footer, .topbar, .hero { position: relative; z-index: 1; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--gutter);
  background: rgba(10, 9, 8, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; }
.brand img { border-radius: 8px; }
.topbar-links { display: flex; align-items: center; gap: 18px; font-size: 0.92rem; }
.topbar-links a { color: var(--muted); }
.topbar-links a:hover { color: var(--text); }
.topbar-links .topbar-cta {
  color: #1a1206;
  background: linear-gradient(180deg, #f8d684, var(--accent));
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 600;
}
.topbar-links .topbar-cta:hover { color: #1a1206; filter: brightness(1.06); }

/* Hero */
.hero {
  min-height: min(100svh, 920px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 48px var(--gutter) 72px;
}
.dial-ring {
  position: absolute;
  width: min(1100px, 160vw);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(var(--turn, 0deg));
  opacity: 0.9;
  pointer-events: none;
}
.dial-ring .tick { stroke: rgba(255,255,255,0.14); stroke-width: 2; }
.dial-ring .tick-major { stroke: rgba(255,255,255,0.32); stroke-width: 4; }
.dial-ring .tick-gold { stroke: var(--accent); stroke-width: 6; filter: drop-shadow(0 0 10px rgba(255,204,107,0.8)); }
.dial-ring .rim { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 2; }
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 35%, rgba(237,194,97,0.12), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(24px, 6vw, 80px);
}
.kicker, .eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fbe3a6 0%, var(--accent) 48%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 30px rgba(237,194,97,0.25));
}
.wordmark-sm { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.1; }
.hero-lede {
  max-width: 34rem;
  margin: 24px 0 32px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
}
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.store-badge { display: inline-block; transition: transform 0.2s ease; }
.store-badge:hover { transform: translateY(-2px); }
.text-link { color: var(--muted); font-size: 0.95rem; }
.hero-device { display: flex; justify-content: center; }

/* Device frame */
.phone {
  position: relative;
  width: min(300px, 70vw);
  aspect-ratio: 886 / 1920;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(145deg, #3a3633, #121110 45%, #2a2725);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 30px 80px rgba(0,0,0,0.7),
    0 0 90px rgba(237,194,97,0.12);
}
.phone video, .phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 37px;
  background: #000;
}
.phone-sm { width: 100%; aspect-ratio: 1206 / 2622; padding: 7px; border-radius: 34px; }
.phone-sm img { border-radius: 28px; }

/* Sections */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 128px) var(--gutter);
}
.section h2 {
  margin: 0 0 40px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  color: var(--ink);
}
.section > p { color: var(--muted); line-height: 1.6; }
.fine { font-size: 0.88rem; color: var(--muted); }

/* How it plays */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  padding: 28px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
}
.step-num { font-family: var(--display); font-size: 2.6rem; color: var(--accent); opacity: 0.55; }
.step h3, .feature h3 { margin: 8px 0 8px; font-size: 1.2rem; color: var(--text); }
.step p, .feature p { margin: 0; color: var(--muted); line-height: 1.55; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.shot { margin: 0; }
.shot figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 0.92rem; }

/* iPhone Duo */
.duo {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.duo-screen {
  max-width: 440px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(145deg, #3a3633, #121110 45%, #2a2725);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 30px 80px rgba(0,0,0,0.7), 0 0 90px rgba(237,194,97,0.1);
}
.duo-screen img { width: 100%; border-radius: 26px; }
.duo-copy p { color: var(--muted); line-height: 1.6; }
.duo-copy h2 { margin-bottom: 20px; }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  padding: 24px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.feature:hover { border-color: var(--line); transform: translateY(-3px); }

/* Modes teaser */
.modes-lede { margin: -24px 0 32px; }
.mode-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,0.07); }
.mode {
  display: grid;
  grid-template-columns: 14rem 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mode-name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.mode-tag { color: var(--muted); }
.soon {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

/* Closing */
.closing { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.closing h2 { margin: 0; }

/* Footer */
.site-footer {
  padding: 40px var(--gutter) 56px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.site-footer a { color: var(--muted); margin: 0 6px; }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 16px 0 0; }

/* Reveal on scroll (only when JS runs and motion is welcome) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .store-badge, .feature { transition: none; }
  .dial-ring { transform: translate(-50%, -50%); }
}

/* Tablet */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .duo { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 8px;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 min(60vw, 260px); scroll-snap-align: center; }
  .mode { grid-template-columns: 1fr auto; }
  .mode-tag { grid-column: 1 / -1; grid-row: 2; }
}

/* Phone */
@media (max-width: 600px) {
  .topbar-links a:not(.topbar-cta) { display: none; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .dial-ring { opacity: 0.4; }
  .phone { width: min(260px, 68vw); border-radius: 40px; }
  .phone video { border-radius: 32px; }
}
