:root {
  --bg: #0b0d12;
  --bg-soft: #11141b;
  --surface: #ffffff;
  --surface-alt: #f6f7f9;
  --ink: #0b0d12;
  --ink-soft: #4a5161;
  --ink-mute: #7a8194;
  --line: #e6e8ee;
  --line-soft: #eef0f4;
  --brand: #2D45C7;
  --brand-deep: #1E3494;
  --brand-tint: #eef1fc;
  --brand-tint-border: #d8def6;
  --highlight: #E5234C;
  --highlight-deep: #b81a3c;
  --accent: #25d366;
  --accent-deep: #128c4d;
  --warn: #b45309;
  --err: #b91c1c;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 13, 18, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(11, 13, 18, 0.18);
  --shadow-lg: 0 28px 70px -24px rgba(11, 13, 18, 0.32);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f0fdf4;
  color: var(--accent-deep);
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.nav-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 88px;
  overflow: hidden;
  background:
    radial-gradient(800px 400px at 85% -10%, rgba(45, 69, 199, 0.10), transparent 60%),
    radial-gradient(700px 360px at 10% 110%, rgba(229, 35, 76, 0.08), transparent 60%),
    var(--surface);
}
.hero-intro {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 10px;
  background: var(--brand-tint);
  color: var(--brand-deep);
  border: 1px solid var(--brand-tint-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.eyebrow-emoji {
  font-size: 15px;
  line-height: 1;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--ink);
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--highlight);
}
.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto;
}
.lede strong { color: var(--ink); font-weight: 600; }

/* ---------- Event card (Luma-style) ---------- */
.event-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
}
.event-cover {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--brand-tint);
}
.event-cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.event-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.event-title {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 700;
}
.event-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 12px;
}
.event-meta li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.event-meta-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-size: 15px;
}
.event-meta-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.event-meta-sub {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 1px;
}

.event-about {
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  margin-bottom: 22px;
  flex: 1;
}
.event-about-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 10px;
}
.event-about p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.event-about p:last-child { margin-bottom: 0; }
.event-audience strong { color: var(--ink); font-weight: 600; }

.event-actions {
  display: grid;
  gap: 10px;
}
.event-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 11px;
  text-decoration: none;
  transition: transform 0.05s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.event-cta-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  box-shadow: 0 8px 20px -8px rgba(45, 69, 199, 0.6);
}
.event-cta-primary:hover {
  box-shadow: 0 12px 26px -8px rgba(45, 69, 199, 0.7);
}
.event-cta-primary:active { transform: translateY(1px); }
.event-cta-secondary {
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
}
.event-cta-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------- Form card ---------- */
.form-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
}
.form-cover {
  position: relative;
  aspect-ratio: 16 / 7;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(45, 69, 199, 0.08) 0%, transparent 55%),
    radial-gradient(120% 100% at 100% 100%, rgba(229, 35, 76, 0.08) 0%, transparent 55%),
    var(--brand-tint);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
}
.form-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 35%, rgba(45, 69, 199, 0.10) 0, transparent 2px),
    radial-gradient(circle at 75% 65%, rgba(229, 35, 76, 0.10) 0, transparent 2px),
    radial-gradient(circle at 50% 85%, rgba(45, 69, 199, 0.08) 0, transparent 2px);
  background-size: 90px 90px, 120px 120px, 100px 100px;
  pointer-events: none;
  opacity: 0.7;
}
.form-cover-logo {
  position: relative;
  z-index: 1;
  height: 42px;
  width: auto;
  display: block;
}
.form-cover-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid var(--brand-tint-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--brand-deep);
  box-shadow: 0 4px 12px -4px rgba(45, 69, 199, 0.2);
}
.form-body {
  padding: 28px;
}
.form-card h2 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 8px 0 8px;
  font-weight: 700;
}
.card-sub {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0 0 22px;
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field .hint { color: var(--ink-mute); font-weight: 400; }
.field input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.field input::placeholder { color: var(--ink-mute); }
.field input:hover {
  border-color: #d4d7e0;
}
.field input:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}
.field input.invalid {
  border-color: var(--err);
  background: #fef2f2;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.6);
  transition: transform 0.05s, box-shadow 0.2s, opacity 0.2s;
}
.cta:hover {
  box-shadow: 0 12px 26px -8px rgba(79, 70, 229, 0.7);
}
.cta:active { transform: translateY(1px); }
.cta:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.cta.loading .cta-label::after {
  content: "…";
}
.cta-arrow {
  transition: transform 0.2s;
}
.cta:hover .cta-arrow { transform: translateX(3px); }

.fineprint {
  font-size: 12px;
  color: var(--ink-mute);
  margin: 14px 0 0;
  line-height: 1.5;
}

.status {
  margin-top: 14px;
  font-size: 14px;
  padding: 0;
  min-height: 0;
  transition: all 0.2s;
}
.status.show {
  padding: 12px 14px;
  border-radius: 10px;
}
.status.success {
  background: #ecfdf5;
  color: var(--accent-deep);
  border: 1px solid #bbf7d0;
}
.status.error {
  background: #fef2f2;
  color: var(--err);
  border: 1px solid #fecaca;
}

/* ---------- How it works ---------- */
.how {
  padding: 88px 0;
  background: var(--surface-alt);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
  text-align: center;
  font-weight: 700;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--brand);
  margin-bottom: 8px;
}
.step h3 {
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.step p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */
.faq { padding: 88px 0; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.faq details {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: background 0.15s;
}
.faq details[open] {
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--ink-mute);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  content: "−";
  color: var(--brand);
}
.faq p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
  background: var(--surface-alt);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--ink-mute);
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo {
  height: 24px;
  width: auto;
  opacity: 0.75;
}
.footer a {
  color: var(--ink-soft);
  text-decoration: none;
}
.footer a:hover { color: var(--brand); }
.footer .sep { margin: 0 10px; }

.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-mute);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.powered-by:hover {
  border-color: var(--brand-tint-border);
  color: var(--ink-soft);
}
.powered-by-label {
  font-weight: 500;
}
.powered-by-logo {
  height: 22px;
  width: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.powered-by-name {
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-intro { margin-bottom: 36px; }
  .event-cover { aspect-ratio: 16 / 8; }
  .steps { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .form-body { padding: 24px 20px; }
  .form-cover-logo { height: 36px; }
  .event-body { padding: 22px 20px 24px; }
  .event-title { font-size: 21px; }
  .footer-inner { flex-direction: column; gap: 14px; text-align: center; }
  .footer-left { flex-direction: column; gap: 8px; }
}
