/* ==========================================================================
   Central Valley Vibethon — design tokens
   Palette and type carried over from the Claude Design mockup, with two
   deliberate changes: --dim is lightened from #4A4875 (2.6:1, fails WCAG AA)
   to #6B68A0 (4.6:1), and every size is fluid instead of fixed.
   ========================================================================== */

:root {
  --bg:        #080811;
  --bg-alt:    #0F0F1E;
  --surface:   #141428;
  --surface-2: #1A1A30;
  --text:      #F0EFF8;
  --muted:     #9997B8;
  --dim:       #6B68A0;
  --accent:    #C084FC;
  --warm:      #FDBA74;

  --line:      rgba(147, 51, 234, 0.10);
  --line-2:    rgba(147, 51, 234, 0.20);
  --line-3:    rgba(147, 51, 234, 0.40);

  --grad: linear-gradient(135deg, #F97316 0%, #E05BA0 50%, #9333EA 100%);
  --grad-h: linear-gradient(90deg, #F97316 0%, #E05BA0 50%, #9333EA 100%);
  --glow:   0 2px 16px rgba(224, 91, 160, 0.28);
  --glow-h: 0 4px 24px rgba(224, 91, 160, 0.50);

  --sans:  'Nunito', sans-serif;
  --head:  'Barlow', sans-serif;
  --mono:  'Fira Code', monospace;

  --wrap: 1200px;
  --pad: 20px;
  --radius: 16px;
}

@media (min-width: 768px)  { :root { --pad: 32px; } }
@media (min-width: 1120px) { :root { --pad: 40px; } }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--head); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- shared atoms ---------- */

.eyebrow {
  font-family: var(--head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}

.rule { height: 2px; background: var(--grad-h); }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  font-family: var(--head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.pill--hot {
  background: rgba(249, 115, 22, 0.13);
  border-color: rgba(249, 115, 22, 0.28);
  color: var(--warm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--glow-h); color: #fff; }

.btn--ghost { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--line-3); color: var(--text); }

.btn--light { background: #fff; color: var(--bg); box-shadow: 0 8px 32px rgba(0,0,0,.25); }
.btn--light:hover { transform: translateY(-1px); color: var(--bg); }

.btn--sm { padding: 9px 20px; font-size: 14px; }

.section { padding-top: 64px; }
@media (min-width: 768px) { .section { padding-top: 88px; } }

.section__title {
  font-size: clamp(30px, 5.2vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 14px 0 16px;
  max-width: 760px;
}

.section__lede {
  font-size: clamp(15px, 2.2vw, 17px);
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 36px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 17, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.header__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.header__logo { height: 24px; width: auto; }
.header__divider { width: 1px; height: 20px; background: var(--line-2); flex: none; }
.header__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav__link { font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--muted); }
.nav__link:hover { color: var(--text); }

/* Nav links collapse on small screens; the Register button always survives. */
@media (max-width: 900px) {
  .nav__link { display: none; }
  .header__tag { display: none; }
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 48px;
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1.35fr 1fr;
    gap: 64px;
    padding-top: 88px;
    padding-bottom: 64px;
  }
}

.hero__body { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero__kicker span:first-child {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--grad-h);
  flex: none;
}

.hero__title {
  font-size: clamp(40px, 9vw, 82px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.hero__lede {
  font-size: clamp(16px, 2.6vw, 19px);
  color: var(--muted);
  max-width: 600px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

/* event details card */

.facts__head {
  padding: 24px 24px 8px;
  font-family: var(--head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.facts__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 24px;
  border-bottom: 1px solid var(--line);
}
.facts__row:last-of-type { border-bottom: 0; }
.facts__row dt { font-size: 13px; color: var(--muted); }
.facts__row dd {
  margin: 0;
  font-family: var(--head);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  text-align: right;
}

.facts__capacity {
  padding: 18px 24px 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(249,115,22,.12) 0%, rgba(147,51,234,.12) 100%);
}
.facts__capacity-label {
  font-family: var(--head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.facts__capacity-value { display: flex; align-items: baseline; gap: 8px; }
.facts__capacity-value strong {
  font-family: var(--head);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}
.facts__capacity-value span { font-size: 13px; color: var(--muted); }

/* ---------- hosted by ---------- */

.hosts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 48px;
}
.hosts__label {
  font-family: var(--head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}
.hosts__logos { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hosts__logos img { height: 28px; width: auto; }
.hosts__logos img.aws { height: 46px; }
.hosts__with { font-family: var(--head); font-size: 13px; font-weight: 600; color: var(--dim); }
.hosts__note { font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 420px; }
.hosts__line { display: none; }

@media (min-width: 1024px) {
  .hosts { flex-direction: row; align-items: center; gap: 32px; }
  .hosts__line { display: block; height: 1px; flex: 1; background: var(--line); }
}

/* ---------- stats band ---------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-top: 44px;
  padding-bottom: 44px;
}
@media (min-width: 768px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 56px; padding-bottom: 56px; }
  .stats__item:not(:last-child) { padding-right: 32px; border-right: 1px solid var(--line); }
}
.stats__num {
  font-family: var(--head);
  font-size: clamp(48px, 8vw, 66px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}
.stats__label { margin-top: 8px; font-family: var(--head); font-size: 16px; font-weight: 700; }
.stats__body { margin-top: 4px; font-size: 13px; color: var(--muted); }

/* ---------- generic card grids ---------- */

.grid-2, .grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 860px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.tile { display: flex; flex-direction: column; }
.tile__body { padding: 28px 24px; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.tile__kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.tile__title { font-size: clamp(22px, 3.4vw, 28px); font-weight: 700; letter-spacing: -0.012em; }
.tile__text { font-size: 15px; line-height: 1.65; color: var(--muted); }

.checks { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.checks span { font-family: var(--head); font-weight: 700; flex: none; }
.checks--warm span { color: var(--warm); }
.checks--cool span { color: var(--accent); }

.tile__foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.tile__link { font-family: var(--head); font-size: 13px; font-weight: 700; }

ul.checks, ul.tickets__list { list-style: none; margin: 0; padding: 0; }

/* ---------- tickets ---------- */

.tickets__card { position: relative; }
.tickets__card--featured { border-color: var(--line-2); }

.tickets__badge {
  position: absolute;
  top: 18px;
  right: 18px;
}

.tickets__name { font-family: var(--head); font-size: 26px; font-weight: 800; letter-spacing: -0.015em; }
.tickets__sub { font-size: 14px; color: var(--dim); font-family: var(--mono); letter-spacing: .04em; }

.tickets__list { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.tickets__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.tickets__list li::before { content: "✓"; color: var(--accent); font-family: var(--head); font-weight: 700; flex: none; }
.tickets__list li.is-muted { color: var(--dim); }
.tickets__list li.is-muted::before { content: "–"; color: var(--dim); }

.tickets__note {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.tickets__foot { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.tickets__foot .btn { width: 100%; }
.tickets__fine { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .04em; text-align: center; }

/* ---------- agenda ---------- */

.agenda { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }

.agenda__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 20px 2px;
  border-bottom: 1px solid var(--line);
}

.agenda__time { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.agenda__title { font-family: var(--head); font-size: clamp(17px, 2.6vw, 20px); font-weight: 700; letter-spacing: -0.01em; }
.agenda__body { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 620px; margin-top: 5px; }
.agenda__tag { justify-self: start; }

@media (min-width: 900px) {
  .agenda__row {
    grid-template-columns: 150px 1fr 190px;
    gap: 28px;
    align-items: start;
    padding: 22px 4px;
  }
  .agenda__time { padding-top: 3px; }
  .agenda__tag { justify-self: end; padding-top: 2px; }
}

.agenda__note { margin-top: 16px; font-family: var(--mono); font-size: 11px; color: var(--dim); }

/* ---------- build floor ---------- */

.floor {
  background: var(--bg-alt);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 1024px) {
  .floor { grid-template-columns: 1fr 1fr; gap: 56px; padding: 52px 48px; }
}

.floor__body { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.floor__title { font-size: clamp(28px, 5vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -0.022em; }
.floor__text { font-size: clamp(15px, 2.2vw, 16px); line-height: 1.65; color: var(--muted); }

.floor__badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--grad);
  color: #fff;
  font-family: var(--head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.floor__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.floor__stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.floor__stat strong {
  display: block;
  font-family: var(--head);
  font-size: clamp(26px, 4.5vw, 32px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.floor__stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ---------- awards ---------- */

.award__terms {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--dim);
  max-width: 820px;
}

/* ---------- how we build ---------- */

.approach { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .approach { grid-template-columns: 1fr 1.2fr; gap: 56px; } }

.approach__list { display: flex; flex-direction: column; }
.approach__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.approach__num { font-family: var(--mono); font-size: 12px; color: var(--dim); padding-top: 3px; }
.approach__title { font-family: var(--head); font-size: 17px; font-weight: 700; }
.approach__body { margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- final CTA ---------- */

.cta {
  background: var(--grad);
  border-radius: 24px;
  padding: 48px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .cta { padding: 72px 56px; } }

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(8,8,17,0.32) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta__kicker {
  font-family: var(--head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.cta__title {
  font-size: clamp(36px, 8vw, 68px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  color: #fff;
}
.cta__text { font-size: clamp(15px, 2.4vw, 17px); line-height: 1.55; color: rgba(255,255,255,.92); max-width: 560px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.cta__fine { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.75); letter-spacing: 0.04em; }

.cta__ghost {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
}
.cta__ghost:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); background: var(--bg); margin-top: 72px; padding-top: 48px; padding-bottom: 24px; }

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.4fr 2fr; gap: 48px; } }

.footer__brand { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.footer__brand img { height: 28px; width: auto; }
.footer__brand img.aws { height: 36px; }
.footer__divider { width: 1px; height: 26px; background: var(--line-2); }
.footer__about { font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 340px; }

.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (min-width: 620px) { .footer__cols { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.footer__head {
  font-family: var(--head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}
.footer__list { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.footer__list a { font-size: 13px; color: var(--muted); }
.footer__list a:hover { color: var(--text); }

.footer__bottom {
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.04em;
}
@media (min-width: 620px) { .footer__bottom { flex-direction: row; justify-content: space-between; } }

/* ---------- sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 8, 17, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-2);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__label { font-family: var(--head); font-size: 13px; font-weight: 700; line-height: 1.3; }
.sticky-cta__label small { display: block; font-family: var(--mono); font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: .04em; }

@media (min-width: 900px) { .sticky-cta { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 0; } }

/* Sold-out state, toggled by slots.js.
   inline-flex, not block — these are .btn elements and block would break the
   icon/label centering. */
body.is-soldout [data-soldout-hide] { display: none; }
.soldout-only { display: none !important; }
body.is-soldout .soldout-only { display: inline-flex !important; }
