/* ==========================================================================
   The Domain Conference — styles
   ========================================================================== */

:root {
  /* Palette */
  --bg: #0a0b0f;
  --bg-alt: #0e1016;
  --surface: #14161e;
  --surface-2: #191c26;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f4f2ea;
  --text-dim: rgba(244, 242, 234, 0.68);
  --text-dimmer: rgba(244, 242, 234, 0.45);

  --gold: #d9a35c;
  --gold-soft: rgba(217, 163, 92, 0.14);
  --blue: #6f8cff;
  --blue-soft: rgba(111, 140, 255, 0.14);

  --gradient-meet: linear-gradient(90deg, var(--gold), var(--blue));

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #14161e;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Shared layout ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.section {
  padding: clamp(72px, 10vw, 128px) 24px;
}
.section--alt { background: var(--bg-alt); }

.section__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.section__inner--narrow { max-width: 760px; }
.section__inner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.section__title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  max-width: 18ch;
  margin-bottom: 20px;
}

.section__lead {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 62ch;
  margin-bottom: 8px;
}

.section__head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 48px;
}
.section__head-row .section__title { margin-bottom: 0; }

.badge {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gold);
  color: #171208;
}
.btn--primary:hover { background: #e7b06a; }

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
  width: 100%;
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

.btn--sm { padding: 10px 18px; font-size: 0.86rem; }
.btn--lg { padding: 16px 30px; font-size: 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 24px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), padding 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 11, 15, 0.86);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
  padding: 12px 24px;
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo-img {
  height: 40px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
}

.nav__links {
  display: flex;
  gap: 30px;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.nav__links a { transition: color 0.2s var(--ease); position: relative; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gradient-meet);
  border-radius: 2px;
}

.nav__actions { display: flex; align-items: center; gap: 14px; }

.nav__cta-mobile { display: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  margin: 0 7px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 140px 24px 64px;
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  inset: 0;
  background-image: url("../assets/puro-matrix-hero.jpg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
  opacity: 1;
  z-index: -2;
}

.hero__field {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 22% 20%, var(--gold-soft), transparent 60%),
    radial-gradient(55% 45% at 82% 30%, var(--blue-soft), transparent 60%),
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  mask-image: radial-gradient(80% 70% at 50% 30%, black, transparent 90%);
  opacity: 0.7;
  z-index: 0;
}

/* ---------- Reel ---------- */
.reel {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}
.reel__video {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #000;
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.pillar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: var(--surface);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pillar:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.pillar--mid { background: var(--surface-2); }
.pillar__index {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}
.pillar h3 { font-size: 1.25rem; margin-bottom: 10px; }
.pillar p { color: var(--text-dim); font-size: 0.96rem; }

/* ---------- Days ---------- */
.days {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.day {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.day::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}
.day--mid::before { background: var(--gradient-meet); }
.days .day:last-child::before { background: var(--blue); }

.day__head { margin-bottom: 14px; }
.day__num {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 6px;
}
.day__title { font-size: 1.3rem; }
.day__desc { color: var(--text-dim); font-size: 0.96rem; margin-bottom: 20px; }
.day__list { display: flex; flex-direction: column; gap: 10px; }
.day__list li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}
.day__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ---------- Audience ---------- */
.audience {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 48px;
}
.audience__card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  background: var(--surface);
}
.audience__card--business { border-top: 3px solid var(--gold); }
.audience__card--ai { border-top: 3px solid var(--blue); }
.audience__tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.audience__card--business .audience__tag { background: var(--gold-soft); color: var(--gold); }
.audience__card--ai .audience__tag { background: var(--blue-soft); color: var(--blue); }
.audience__card h3 { font-size: 1rem; margin: 22px 0 12px; }
.audience__card h3:first-of-type { margin-top: 0; }
.audience__card ul { display: flex; flex-direction: column; gap: 10px; }
.audience__card li {
  font-size: 0.92rem;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}
.audience__card li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
}

.audience__meet {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-dimmer);
  justify-self: center;
}

/* ---------- Speakers ---------- */
.speakers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.speaker-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  background: var(--surface);
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.speaker-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.speaker-card__avatar {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
}
.speaker-card[data-type="business"] .speaker-card__avatar { color: var(--gold); }
.speaker-card[data-type="ai"] .speaker-card__avatar { color: var(--blue); }
.speaker-card__name { font-size: 1rem; margin-bottom: 4px; }
.speaker-card__role { font-size: 0.82rem; color: var(--text-dimmer); margin-bottom: 14px; }
.speaker-card__tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
}
.speaker-card--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-style: dashed;
}
.speaker-card__avatar--plus { font-size: 1.6rem; color: var(--text-dimmer); }
.speaker-card__link { font-size: 0.84rem; color: var(--gold); margin-top: 4px; }

/* ---------- Venue ---------- */
.venue__map {
  height: 320px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  background:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px),
    var(--surface);
  background-size: 32px 32px, 32px 32px, auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-dimmer);
  font-size: 0.92rem;
  padding: 24px;
}

/* ---------- Tiers ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.tier {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.tier--featured {
  border-color: var(--gold);
  background: var(--surface-2);
  transform: scale(1.02);
}
.tier__ribbon {
  position: absolute;
  top: -12px; left: 30px;
  background: var(--gold);
  color: #171208;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.tier__name { font-size: 1.1rem; margin-bottom: 10px; }
.tier__price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  margin-bottom: 24px;
}
.tier__price span { font-family: var(--font-body); font-size: 0.9rem; color: var(--text-dimmer); }
.tier__list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex-grow: 1; }
.tier__list li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}
.tier__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ---------- FAQ / Accordion ---------- */
.accordion { margin-top: 40px; border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 500;
  text-align: left;
  padding: 22px 4px;
  cursor: pointer;
}
.accordion__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(45deg);
  color: var(--gold);
  border-color: var(--gold);
}
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.accordion__panel p {
  padding: 0 4px 22px;
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 68ch;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 24px 24px;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__brand .nav__logo-img { height: 56px; align-self: flex-start; }
.footer__brand p { color: var(--text-dimmer); font-size: 0.88rem; max-width: 30ch; }

.footer__form label { font-size: 0.85rem; color: var(--text-dim); display: block; margin-bottom: 10px; }
.footer__form-row { display: flex; gap: 10px; }
.footer__form-row input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.footer__form-row input:focus { outline: none; border-color: var(--gold); }
.footer__form-note { font-size: 0.82rem; color: var(--gold); margin-top: 10px; min-height: 1.2em; }

.footer__links { display: contents; }
.footer__links > div { display: flex; flex-direction: column; gap: 12px; }
.footer__links h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 6px;
}
.footer__links a { font-size: 0.9rem; color: var(--text-dim); transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--gold); }

.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dimmer);
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--gold); color: var(--gold); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__actions .btn--primary:not(.nav__cta-mobile) { display: none; }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10, 11, 15, 0.98);
    backdrop-filter: blur(10px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open .nav__links .nav__cta-mobile {
    display: inline-flex;
    margin-top: 8px;
  }

  .pillars, .days { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .audience__meet { transform: rotate(90deg); margin: 0 auto; }
  .speakers { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; }
  .tier--featured { transform: none; }
  .section__inner--split { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 560px) {
  .hero { padding-top: 120px; }
  .speakers { grid-template-columns: 1fr 1fr; }
}
