/* ============================================================================
   Interval — marketing site.  "After-dark theatre": nocturnal, art-deco,
   spotlight-lit.  Hand-crafted to match the app's purple/lavender brand.
   ========================================================================== */

:root {
  --night:      #130E29;
  --bg:         #1A1635;
  --surface:    #231E4A;
  --surface-2:  #2D265A;
  --border:     #302A62;
  --border-mid: #4A4478;

  --text:  #F2EEFF;
  --muted: #A69FCF;

  --lav:       #B9A9FF;
  --lav-light: #EAC1FB;
  --rose:      #FC8597;
  --coral:     #D45E7A;
  --teal:      #1C989D;
  --teal-light:#70CBC5;
  --bulb:      #FFD79A;

  --grad: linear-gradient(135deg, #2D1B5E 0%, #7B2D6B 52%, #D45E7A 100%);

  --font-display: "Comfortaa", ui-rounded, system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-accent:  "Fraunces", Georgia, serif;

  --maxw: 1140px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-card: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --glow: 0 0 70px -12px rgba(185, 169, 255, .55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Atmosphere: fixed stage-light wash + grain overlay ----------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 55% at 78% -5%, rgba(212, 94, 122, .30), transparent 60%),
    radial-gradient(60% 50% at 10% 0%, rgba(123, 45, 107, .32), transparent 55%),
    radial-gradient(90% 70% at 50% 110%, rgba(28, 152, 157, .14), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Typography --------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--lav-light);
  letter-spacing: .01em;
}
.grad-text {
  background: linear-gradient(100deg, var(--lav-light), var(--lav) 40%, var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  --_bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .85em 1.5em; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  color: #1A0F22;
  background: linear-gradient(120deg, var(--lav-light), var(--lav) 45%, var(--rose));
  box-shadow: 0 10px 30px -10px rgba(252, 133, 151, .5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(252, 133, 151, .65); }
.btn-ghost { color: var(--text); border-color: var(--border-mid); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--lav); color: var(--lav-light); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* Nav ---------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--night) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55em; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.brand .tick {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: .95rem; box-shadow: var(--glow);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.lnk { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-links a.lnk:hover { color: var(--text); }
.nav-toggle, .nav-check { display: none; }

/* Hero --------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(48px, 9vw, 110px) 0 clamp(60px, 9vw, 120px); }
.sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.05rem, 6.4vw, 4.6rem); margin: 18px 0 20px; overflow-wrap: break-word; }
.hero .lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 34ch; }

.waitlist { margin-top: 30px; max-width: 540px; }
.waitlist-form { display: flex; gap: 10px; background: var(--surface); border: 1px solid var(--border-mid); padding: 7px 7px 7px 18px; border-radius: 999px; transition: border-color .2s, box-shadow .2s; }
.waitlist-form:focus-within { border-color: var(--lav); box-shadow: 0 0 0 4px rgba(185,169,255,.14); }
.waitlist-form input[type="email"] { flex: 1; min-width: 12ch; background: transparent; border: 0; color: var(--text); font-family: var(--font-body); font-size: 1rem; outline: none; }
.waitlist-form input::placeholder { color: var(--muted); }
.waitlist-note { margin-top: 12px; font-size: .86rem; color: var(--muted); }
.waitlist-note b { color: var(--lav-light); font-weight: 600; }

.flash { margin-top: 16px; padding: 13px 18px; border-radius: 14px; font-size: .92rem; font-weight: 500; }
.flash-ok  { background: rgba(112, 203, 197, .12); border: 1px solid rgba(112,203,197,.4); color: var(--teal-light); }
.flash-err { background: rgba(252, 133, 151, .1); border: 1px solid rgba(252,133,151,.4); color: var(--rose); }

.stat { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.stat .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-light); box-shadow: 0 0 10px var(--teal-light); animation: pulse 2.4s ease-in-out infinite; }
.stat b { color: var(--text); font-weight: 600; }

/* Hero artwork — a lit marquee frame */
.marquee {
  position: relative; border-radius: var(--radius-lg); padding: 16px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-mid);
  box-shadow: var(--shadow-card), var(--glow);
  animation: float 7s ease-in-out infinite;
}
.marquee::before {
  content: ""; position: absolute; inset: 7px 20px auto 20px; height: 10px;
  background-image: radial-gradient(circle, var(--bulb) 0 2.6px, transparent 3px);
  background-size: 22px 10px; background-repeat: repeat-x;
  opacity: .9; filter: drop-shadow(0 0 4px rgba(255, 215, 154, .7));
  animation: bulbs 1.6s steps(2) infinite;
}
.marquee img { display: block; width: 100%; height: auto; border-radius: 16px; margin-top: 8px; }
.marquee .cap { text-align: center; font-family: var(--font-accent); font-style: italic; color: var(--lav-light); padding: 12px 0 4px; font-size: .96rem; }

/* Section scaffolding ------------------------------------------------------ */
.section { padding: clamp(56px, 9vw, 110px) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 14px 0 0; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 1.1rem; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-mid), transparent); }

/* How it works ------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 80%, var(--night)));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 10px 26px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-6px); border-color: var(--border-mid); box-shadow: var(--shadow-card); }
.step-img { position: relative; border-radius: 13px; overflow: hidden; aspect-ratio: 5 / 4; }
.step-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step-num {
  position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  background: var(--night); color: var(--lav-light); border: 1px solid var(--border-mid); font-size: .95rem;
}
.step h3 { font-size: 1.28rem; margin: 20px 20px 10px; }
.step p { color: var(--muted); margin: 0 20px; font-size: .98rem; }

/* Why Interval — feature grid --------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { display: flex; gap: 18px; padding: 26px; border-radius: var(--radius); background: rgba(255,255,255,.018); border: 1px solid var(--border); }
.feature .ic { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.3rem; background: var(--grad); box-shadow: 0 8px 22px -10px rgba(212,94,122,.6); }
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .96rem; }
.feature.wide { grid-column: 1 / -1; align-items: center; background: linear-gradient(110deg, rgba(185,169,255,.08), rgba(252,133,151,.05)); border-color: var(--border-mid); }

/* For theatres ------------------------------------------------------------- */
.venues { position: relative; }
.venues .panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(28,152,157,.14), transparent 55%),
    linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-mid); border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 60px); box-shadow: var(--shadow-card);
}
.venues h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.venues .lede { color: var(--muted); margin: 16px 0 26px; font-size: 1.06rem; }
.perks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 13px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 1rem; }
.perks li::before { content: "✦"; color: var(--teal-light); font-size: .95rem; margin-top: .15em; }
.venue-cta { display: flex; gap: 10px; background: var(--night); border: 1px solid var(--border-mid); padding: 7px 7px 7px 18px; border-radius: 999px; }
.venue-cta input { flex: 1; min-width: 12ch; background: transparent; border: 0; color: var(--text); font-family: var(--font-body); font-size: 1rem; outline: none; }
.venue-cta input::placeholder { color: var(--muted); }

/* Footer ------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; margin-top: 20px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand { font-size: 1.2rem; }
.footer p.tag { color: var(--muted); margin-top: 12px; max-width: 32ch; font-size: .94rem; }
.footer .cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer h4 { font-family: var(--font-display); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lav); margin: 0 0 14px; }
.footer a.flink { display: block; color: var(--muted); font-size: .94rem; margin-bottom: 9px; transition: color .2s; }
.footer a.flink:hover { color: var(--text); }
.footer .fine { margin-top: 40px; color: var(--muted); font-size: .82rem; opacity: .8; line-height: 1.8; }
.footer .fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer .fine a:hover { color: var(--text); }

/* Legal pages -------------------------------------------------------------- */
.legal { max-width: 760px; margin-inline: auto; padding: clamp(44px, 7vw, 86px) 0 70px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.legal .updated { color: var(--muted); margin-top: 12px; font-size: .95rem; }
.legal .note {
  margin: 26px 0 8px; padding: 14px 18px; border-radius: 14px; font-size: .92rem; color: var(--lav-light);
  background: rgba(185, 169, 255, .08); border: 1px solid rgba(185, 169, 255, .28);
}
.legal h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 44px 0 12px; }
.legal h3 { font-size: 1.08rem; margin: 26px 0 8px; }
.legal p, .legal li { color: #DAD4F4; }
.legal p { margin: 12px 0; }
.legal ul { margin: 12px 0; padding-left: 1.25em; }
.legal li { margin: 7px 0; }
.legal a { color: var(--lav-light); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--lav); }

/* Load reveal -------------------------------------------------------------- */
.rise { opacity: 0; transform: translateY(22px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .28s; }
.d4 { animation-delay: .38s; } .d5 { animation-delay: .5s; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-.3deg); } 50% { transform: translateY(-14px) rotate(.3deg); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes bulbs { to { background-position: 11px 0; } }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .order-art { order: -1; }
  .steps { grid-template-columns: 1fr; max-width: 460px; }
  .features { grid-template-columns: 1fr; }
  .venues .panel { grid-template-columns: 1fr; }

  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 4px; align-items: stretch;
    background: var(--night); border-bottom: 1px solid var(--border); padding: 16px 24px 24px;
    transform: translateY(-130%); transition: transform .3s ease; z-index: 40;
  }
  .nav-links a.lnk { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 12px; }
  .nav-check:checked ~ .nav-links { transform: translateY(0); }
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-mid); background: transparent; cursor: pointer; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--text); position: relative; transition: .25s; }
  .nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }
  .nav-check:checked ~ .nav-toggle span { background: transparent; }
  .nav-check:checked ~ .nav-toggle span::before { transform: rotate(45deg); top: 0; }
  .nav-check:checked ~ .nav-toggle span::after { transform: rotate(-45deg); top: 0; }
}

@media (max-width: 460px) {
  .waitlist-form, .venue-cta { flex-direction: column; border-radius: var(--radius); padding: 14px; }
  .waitlist-form .btn, .venue-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; }
}
