/* ═══════════════════════════════════════════════════════════════════════════
 * PYROX Landing Page — landing.css
 * Styles specific to the public-facing pitch/landing page.
 * Imports shared tokens from style.css
 * ═══════════════════════════════════════════════════════════════════════════ */

/* ── Landing Body — scrollable (unlike app which is overflow:hidden) ──── */
.landing-body {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
}

/* ── Shared Layout ─────────────────────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 80px 0;
  position: relative;
}

section + section {
  border-top: 1px solid var(--border);
}

/* ── Section Labels ────────────────────────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-label .accent {
  color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * HERO — Centered, typography-forward
 * ═══════════════════════════════════════════════════════════════════════════ */
.hero {
  padding: 140px 0 100px;
  border-top: none;
}

.hero + section {
  border-top: 1px solid var(--border);
}

.hero-container {
  max-width: 720px;
}

.hero-content {
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-dim);
  border: 1px solid rgba(232, 160, 32, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero h2 {
  font-size: 52px;
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}

.hero h2 .mono {
  font-family: var(--font-mono);
  color: var(--primary);
  text-shadow: 0 0 40px var(--primary-glow);
}

.hero-tagline {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline em {
  font-style: normal;
  color: var(--primary);
}

/* Hero CTA row */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #000;
  background: var(--primary);
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: filter 0.1s ease-out, transform 0.1s ease-out, box-shadow 0.15s ease-out;
}

.btn-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px var(--primary-glow);
}

.btn-cta:active {
  transform: translateY(0);
}

/* Watch Demo button */
.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-bright);
  padding: 13px 28px;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.15s ease-out;
}

.btn-demo:hover {
  color: var(--text-bright);
  border-color: var(--text);
  background: var(--surface);
}

.demo-play {
  font-size: 11px;
  color: var(--primary);
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  display: block;
  text-align: center;
}

.hero-meta strong {
  color: var(--text);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * HOW IT WORKS — 3-column steps + inline scoring
 * ═══════════════════════════════════════════════════════════════════════════ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.how-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.15s ease-out, background 0.15s ease-out;
}

.how-step:hover {
  border-color: var(--border-bright);
  background: var(--surface-elevated);
}

.how-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.how-icon.amber { background: var(--primary-dim); }
.how-icon.green { background: var(--success-dim); }
.how-icon.blue  { background: var(--info-dim); }

.how-step h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.how-step p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.how-step .highlight {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-bright);
}

/* Inline scoring examples */
.scoring-inline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}

.score-row + .score-row {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.score-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.score-row.correct .score-dot   { background: var(--success); }
.score-row.partial .score-dot   { background: var(--primary); }
.score-row.incorrect .score-dot { background: var(--danger); }

.score-quote {
  flex: 1;
  color: var(--text-bright);
  font-style: italic;
}

.score-ref {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  flex-shrink: 0;
  text-align: right;
  min-width: 100px;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * PARTNERSHIP CTA
 * ═══════════════════════════════════════════════════════════════════════════ */
.partnership-cta {
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: 14px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.partnership-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 50% 80% at 0% 50%, var(--primary-dim) 0%, transparent 70%);
  pointer-events: none;
}

.partnership-text { position: relative; z-index: 1; }
.partnership-text h3 { font-size: 22px; font-weight: 700; color: var(--text-bright); margin-bottom: 8px; }
.partnership-text p { font-size: 14px; color: var(--text); line-height: 1.6; max-width: 480px; }
.partnership-action { position: relative; z-index: 1; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
 * FOOTER
 * ═══════════════════════════════════════════════════════════════════════════ */
.page-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.footer-brand-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.1em;
}

.footer-brand span { font-size: 12px; color: var(--text-dim); }

.footer-links { display: flex; align-items: center; gap: 24px; }

.footer-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.1s;
  padding: 12px 0;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * VIDEO MODAL
 * ═══════════════════════════════════════════════════════════════════════════ */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 9, 15, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

.video-overlay.visible { opacity: 1; pointer-events: auto; }

.video-modal {
  width: 90vw;
  max-width: 960px;
  position: relative;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease-out;
}

.video-overlay.visible .video-modal {
  transform: translateY(0) scale(1);
}

.video-close {
  position: absolute;
  top: -44px;
  right: 0;
  font-size: 18px;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  transition: color 0.1s;
  z-index: 2;
}

.video-close:hover { color: var(--text-bright); }

.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-bright);
  background: var(--surface);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * CONTACT OVERLAY
 * ═══════════════════════════════════════════════════════════════════════════ */
.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 9, 15, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}

.contact-overlay.visible { opacity: 1; pointer-events: auto; }

.contact-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 40px;
  max-width: 560px;
  width: calc(100% - 40px);
  text-align: center;
  transform: translateY(12px);
  transition: transform 0.2s ease-out;
}

.contact-overlay.visible .contact-card { transform: translateY(0); }
.contact-card h3 { font-size: 18px; font-weight: 700; color: var(--text-bright); margin-bottom: 8px; }
.contact-card .contact-subtext { font-size: 13px; color: var(--text-dim); margin-bottom: 24px; }

.contact-email-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.contact-email-row .email-text {
  flex: 1;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
}

.contact-copy-btn {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #000;
  background: var(--primary);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter 0.1s, transform 0.1s;
}

.contact-copy-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.contact-copy-btn:active { transform: translateY(0); }

.contact-dismiss {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.1s;
}

.contact-dismiss:hover { color: var(--text); }

/* ── Landing Toast ─────────────────────────────────────────────────────── */
.landing-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-elevated);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--primary);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.landing-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * RESPONSIVE
 * ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  section { padding: 56px 0; }
  .hero { padding: 100px 0 64px; }
  .hero h2 { font-size: 36px; }
  .hero-tagline { font-size: 17px; }
  .how-grid { grid-template-columns: 1fr; }
  .partnership-cta { flex-direction: column; text-align: center; padding: 32px 24px; }
  .partnership-text p { max-width: none; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn-cta,
  .hero-actions .btn-demo { width: 100%; justify-content: center; }
  .score-ref { min-width: 80px; font-size: 11px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .video-modal { width: 95vw; }
}

@media (max-width: 480px) {
  .hero h2 { font-size: 28px; }
  .score-row { flex-wrap: wrap; }
  .score-ref { text-align: left; min-width: auto; width: 100%; margin-top: 4px; }
  .contact-card { padding: 28px 20px; width: calc(100% - 32px); }
  .contact-email-row { flex-direction: column; gap: 10px; }
  .contact-copy-btn { width: 100%; }
}
