/* ============================================================
   Alternativo.ai — Webinar Landing Page
   Terminal / console aesthetic (inspired by agntdata.dev)
   Poppins = voice · JetBrains Mono = terminal chrome
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --panel: #131316;
  --panel-2: #0e0e10;
  --border: #2c2c30;
  --border-2: #44444b;
  --red: #ec3c42;
  --red-soft: rgba(236, 60, 66, 0.14);
  --red-line: rgba(236, 60, 66, 0.55);
  --green: #37be59;
  --text: #ebebeb;
  --muted: #909098;
  --muted-2: #5d5d65;

  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1180px;
  --corner: 13px; /* size of the red L-shaped panel corners */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* faint terminal grid */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
}

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

h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
.accent { color: var(--red); }
strong { color: #fff; font-weight: 600; }

/* mono helpers */
.mono-inline { font-family: var(--mono); color: var(--red); font-size: 0.92em; }
.prompt { font-family: var(--mono); color: var(--red); }

/* status squares */
.sq { display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: middle; }
.sq.green { background: var(--green); box-shadow: 0 0 8px rgba(55, 190, 89, 0.6); }
.sq.red { background: var(--red); box-shadow: 0 0 8px rgba(236, 60, 66, 0.6); }
.sq.gray { background: var(--muted-2); }

/* ---------- Bracket eyebrow tag ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red-line);
  padding: 6px 11px;
  margin-bottom: 22px;
}
.tag::before { content: "["; margin-right: 8px; opacity: 0.7; }
.tag::after  { content: "]"; margin-left: 8px; opacity: 0.7; }

/* ---------- Red L-shaped corner brackets on panels ---------- */
.brackets { position: relative; }
.brackets::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(var(--red), var(--red)) top left / var(--corner) 2px no-repeat,
    linear-gradient(var(--red), var(--red)) top left / 2px var(--corner) no-repeat,
    linear-gradient(var(--red), var(--red)) top right / var(--corner) 2px no-repeat,
    linear-gradient(var(--red), var(--red)) top right / 2px var(--corner) no-repeat,
    linear-gradient(var(--red), var(--red)) bottom left / var(--corner) 2px no-repeat,
    linear-gradient(var(--red), var(--red)) bottom left / 2px var(--corner) no-repeat,
    linear-gradient(var(--red), var(--red)) bottom right / var(--corner) 2px no-repeat,
    linear-gradient(var(--red), var(--red)) bottom right / 2px var(--corner) no-repeat;
}

.panel { background: var(--panel); border: 1px solid var(--border); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--red);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
/* bracketed outline button (agnt primary CTA style) */
.btn-bracket {
  background: transparent;
  color: var(--red);
  padding: 13px 22px;
}
.btn-bracket::before { content: "[ "; }
.btn-bracket::after  { content: " ]"; }
.btn-bracket:hover { background: var(--red); color: #0a0a0b; box-shadow: 0 0 22px rgba(236, 60, 66, 0.4); }
/* solid button */
.btn-solid {
  background: var(--red);
  color: #0a0a0b;
  padding: 15px 26px;
  box-shadow: 0 0 0 rgba(236, 60, 66, 0.5);
}
.btn-solid:hover { background: #ff4a50; box-shadow: 0 0 26px rgba(236, 60, 66, 0.5); transform: translateY(-1px); }
.btn-header { padding: 10px 16px; font-size: 12px; }
.btn-block { width: 100%; margin-top: 4px; }
.btn-lg { font-size: 15px; padding: 16px 30px; }

/* big, obvious primary CTA — with a gentle attention pulse */
.btn-huge {
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 700;
  padding: 24px 64px;
  letter-spacing: 0.07em;
  animation: cta-pulse 2.8s ease-in-out infinite;
}
.btn-huge.btn-bracket:hover { box-shadow: 0 0 40px rgba(236, 60, 66, 0.55); }
.btn-huge.btn-solid:hover {
  box-shadow: 0 0 54px rgba(236, 60, 66, 0.65);
  transform: translateY(-2px) scale(1.02);
}
/* pulsing halo ring — draws the eye without moving the button */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(236, 60, 66, 0.5), 0 0 22px rgba(236, 60, 66, 0.28); }
  70%      { box-shadow: 0 0 0 16px rgba(236, 60, 66, 0), 0 0 44px rgba(236, 60, 66, 0.45); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-huge { animation: none; box-shadow: 0 0 28px rgba(236, 60, 66, 0.22); }
}

.btn-spinner {
  width: 16px; height: 16px;
  border: 2.5px solid rgba(10, 10, 11, 0.35);
  border-top-color: #0a0a0b;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.6; }
.btn.is-loading { pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}
.brand {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.brand-prompt { color: var(--red); font-weight: 700; }
.brand-dot { color: var(--red); }
.brand-caret {
  display: inline-block;
  width: 9px; height: 17px;
  background: var(--red);
  margin-left: 4px;
  transform: translateY(2px);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* countdown */
.countdown { display: flex; align-items: center; gap: 7px; font-family: var(--mono); }
.cd-live {
  display: inline-flex; align-items: center;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-right: 6px;
}
.cd-block { display: flex; flex-direction: column; align-items: center; min-width: 34px; }
.cd-num { font-size: 20px; font-weight: 700; line-height: 1; color: #fff; }
.cd-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-top: 3px; }
.cd-sep { font-size: 16px; color: var(--red); transform: translateY(-5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 78px 0 88px;
  background:
    radial-gradient(1000px 560px at 50% -4%, rgba(236, 60, 66, 0.16), transparent 62%),
    radial-gradient(700px 420px at 50% 108%, rgba(236, 60, 66, 0.05), transparent 58%);
}

/* centered hero variant (no image) */
.hero-centered { max-width: 840px; margin: 0 auto; text-align: center; }
.hero-centered .hero-sub { margin-left: auto; margin-right: auto; }
.hero-centered .hero-meta { justify-content: center; }
.hero-centered .hero-cta { margin-top: 34px; margin-bottom: 26px; }
.hero-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
  align-items: center;
}
/* left image insert */
.hero-visual { position: relative; }
.hero-image-placeholder {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #17171b, #0e0e10);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--muted-2); text-align: center; font-family: var(--mono); font-size: 13px;
}
.hero-image-placeholder span { color: var(--muted); }
.hero-image-placeholder small { font-size: 11px; }

.hero-copy h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.hero-with { font-size: clamp(18px, 2.2vw, 23px); color: var(--muted); font-weight: 500; margin: 0 0 22px; }
.hero-with strong { color: #fff; font-weight: 600; }
.hero-lede { font-size: clamp(19px, 2.2vw, 24px); color: var(--muted); font-weight: 500; margin: 0 0 22px; }
.hero-sub { color: var(--muted); font-size: 17px; margin: 0 0 24px; max-width: 600px; }
.hero-date {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
  background: var(--red-soft);
  border: 1px solid var(--red-line);
  padding: 9px 15px;
  margin: 0 0 26px;
}
.hero-date strong { color: #fff; font-weight: 600; }
.hero-cta { margin-bottom: 22px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 20px;
  list-style: none; padding: 0; margin: 0;
  font-family: var(--mono); font-size: 13px; color: var(--muted-2);
}

/* ---------- Terminal panel (form) ---------- */
.panel-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em;
  background: var(--panel-2);
}
.panel-bar-title { display: inline-flex; align-items: center; color: var(--text); text-transform: uppercase; }
.panel-bar-meta { color: var(--green); text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.1em; }
.panel-body { padding: 22px; }
.hero-panel .panel { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }

.form-title { font-family: var(--mono); font-size: 15px; font-weight: 500; margin-bottom: 18px; color: #fff; text-transform: lowercase; letter-spacing: 0.02em; }
.panel.flash { animation: flash 1.1s ease; }
@keyframes flash {
  0%, 100% { box-shadow: 0 30px 80px rgba(0,0,0,.55); }
  30% { box-shadow: 0 0 0 2px var(--red), 0 30px 80px rgba(0,0,0,.55); }
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: lowercase;
}
.optional { color: var(--muted-2); }
.field input {
  width: 100%;
  padding: 12px 13px;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.field input.invalid { border-color: var(--red); background: rgba(236, 60, 66, 0.06); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-container:not(:empty) { margin: 4px 0 14px; }

.form-note { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }
.form-message { font-family: var(--mono); font-size: 13px; margin: 12px 0 0; display: none; }
.form-message.show { display: block; }
.form-message.success { color: var(--green); }
.form-message.error { color: var(--red); }

/* ---------- Generic section ---------- */
.section { padding: 92px 0; border-top: 1px solid var(--border); }
.section-title {
  font-size: clamp(27px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 46px;
  max-width: 900px;
}

/* ---------- Learn grid ---------- */
.learn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.learn-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 26px 26px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.learn-card:hover { border-color: var(--red-line); transform: translateY(-3px); }
.learn-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.learn-tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red); border: 1px solid var(--red-line); padding: 3px 8px;
}
.learn-num { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--border-2); }
.learn-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.learn-card p { color: var(--muted); margin: 0 0 20px; font-size: 15.5px; flex-grow: 1; }
.learn-foot {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--muted-2);
  border-top: 1px dashed var(--border-2); padding-top: 14px; text-transform: uppercase;
}

/* ---------- Fit (for you / not for you) ---------- */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fit-col { padding: 32px; }
.fit-yes { background: linear-gradient(180deg, rgba(236, 60, 66, 0.06), transparent 60%), var(--panel); }
.fit-title {
  font-family: var(--mono); font-size: 15px; font-weight: 500; margin-bottom: 22px;
  text-transform: lowercase; letter-spacing: 0.02em; display: flex; align-items: center;
}
.fit-list { list-style: none; padding: 0; margin: 0; }
.fit-list li { position: relative; padding-left: 30px; margin-bottom: 15px; color: var(--text); font-size: 16px; }
.fit-list li::before { position: absolute; left: 0; top: 0; font-family: var(--mono); font-weight: 700; }
.fit-yes .fit-list li::before { content: "+"; color: var(--green); font-size: 18px; }
.fit-no .fit-list li::before { content: "-"; color: var(--muted-2); font-size: 18px; }

/* ---------- Host ---------- */
.host-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: start; }
.host-photo {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 130px);
  max-height: 760px;
}
/* host photos: a vertical strip that loops so the column stays filled
   alongside the bio text, however long the text runs */
.host-marquee {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #0e0e10;
}
.host-track {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  animation: host-scroll 75s linear infinite;
  will-change: transform;
}
/* the track holds two identical sets; shifting up by exactly one set
   (half the track, minus half a gap) makes the loop seamless */
@keyframes host-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(-50% - 7px)); }
}
.host-marquee:hover .host-track { animation-play-state: paused; }
.host-img { display: block; width: 100%; height: auto; }
/* soften where the strip runs off the top and bottom edges */
.host-marquee::before,
.host-marquee::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 54px;
  pointer-events: none;
  z-index: 1;
}
.host-marquee::before { top: 0; background: linear-gradient(#131316, transparent); }
.host-marquee::after { bottom: 0; background: linear-gradient(transparent, #131316); }
@media (prefers-reduced-motion: reduce) {
  .host-track { animation: none; }
}

.host-copy h2 { font-size: clamp(27px, 3.4vw, 38px); font-weight: 700; margin-bottom: 8px; letter-spacing: -0.03em; }
.host-role { font-family: var(--mono); color: var(--red); font-size: 14px; margin: 0 0 22px; }
.host-copy p { color: var(--muted); margin: 0 0 16px; }
.host-list { margin: 0 0 20px; padding-left: 0; list-style: none; }
.host-list li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--text); }
.host-list li::before { content: "→"; position: absolute; left: 0; color: var(--red); font-family: var(--mono); font-weight: 700; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-panel {
  padding: 56px 32px;
  text-align: center;
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(236, 60, 66, 0.12), transparent 60%),
    var(--panel);
}
.final-panel .tag { margin-bottom: 20px; }
.final-title { font-size: clamp(28px, 4.2vw, 46px); font-weight: 700; margin-bottom: 16px; letter-spacing: -0.03em; }
.final-date {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); color: var(--muted); font-size: 15px; margin: 0 0 30px;
}
.final-note { font-family: var(--mono); font-size: 12px; color: var(--muted-2); margin: 22px 0 0; letter-spacing: 0.06em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 60px; }
.footer-brand { font-family: var(--mono); font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 18px; }
.footer-brand .brand-dot { color: var(--red); }
.legal { font-size: 12.5px; color: var(--muted-2); line-height: 1.7; max-width: 920px; margin: 0 0 16px; }
.legal strong { color: var(--muted); font-weight: 600; }
.copyright { font-family: var(--mono); font-size: 12px; color: var(--muted-2); margin: 0; }

/* ---------- Top banner ---------- */
.topbanner {
  background: var(--red);
  color: #0a0a0b;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 16px;
}

/* ---------- Modal (opt-in popup) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 7, 0.78);
  backdrop-filter: blur(4px);
  animation: modal-fade 0.2s ease;
}
.modal-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  animation: modal-pop 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}
.modal-close:hover { color: var(--red); }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { order: 2; max-width: 360px; }
  .hero-copy { order: 1; }
  .host-grid { grid-template-columns: 1fr; gap: 26px; }
  .host-photo { position: static; max-width: 360px; height: 460px; }
  .fit-grid { grid-template-columns: 1fr; }
  .learn-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; padding: 12px 0; gap: 12px; min-height: 0; }
  .countdown { order: 3; width: 100%; justify-content: flex-start; }
  .section { padding: 64px 0; }
  .hero { padding: 44px 0 56px; }
  body { font-size: 16px; }
  .topbanner { font-size: 11px; letter-spacing: 0.1em; }
}
@media (max-width: 440px) {
  .cd-block { min-width: 30px; }
  .cd-num { font-size: 18px; }
  .hero-meta { gap: 12px; }
}
