/* ========================================================================
   Ultrawider — landing styles
   Dark theme, amber accent, Inter typography
   ======================================================================== */

:root {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --bg-elev-2: #161616;
  --border: #232323;
  --border-soft: #1d1d1d;
  --text: #f5f5f5;
  --text-dim: #a3a3a3;
  --text-mute: #6b6b6b;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-dim: #b45309;
  --accent-glow: rgba(245, 158, 11, 0.18);
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1180px;
  --max-w-narrow: 760px;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.45);
  --shadow-amber: 0 0 0 1px rgba(245, 158, 11, 0.25), 0 20px 60px rgba(245, 158, 11, 0.12);
  --transition: 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--text); text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.25rem, 4.5vw + 0.5rem, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 2.4vw + 0.8rem, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 0.75em; color: var(--text-dim); }
p:last-child { margin-bottom: 0; }

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

/* ---------- Layout ---------- */

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

.container-narrow { max-width: var(--max-w-narrow); }

.section { padding: 96px 0; }
.section-alt { background: var(--bg-elev); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head h2 { margin-top: 8px; }
.section-sub {
  margin-top: 12px;
  font-size: 1.05rem;
  color: var(--text-dim);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-mark {
  width: 22px;
  height: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 4px 14px rgba(245,158,11,0.35);
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--bg);
  border-radius: 1px;
  clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 65% 100%, 100% 100%, 100% 0);
}
.logo-text { font-size: 1.05rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: #0a0a0a; }

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #1a1207;
  box-shadow: 0 8px 24px rgba(245,158,11,0.28);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(245,158,11,0.36);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-elev-2);
  border-color: #333;
}

/* ---------- Hero ---------- */

.hero {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-copy .eyebrow { margin-bottom: 16px; }

.hero h1 {
  margin: 0 0 20px;
  background: linear-gradient(180deg, #ffffff 0%, #c9c9c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  font-size: 1.125rem;
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.hero-bullets li {
  position: relative;
  padding-left: 22px;
}
.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* ---------- Video frame ---------- */

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-mute);
  background: var(--bg-elev);
  z-index: -1;
}

.video-frame.video-failed video { display: none; }
.video-frame.video-failed .video-fallback { z-index: 1; }

.fallback-bars { display: flex; gap: 8px; }
.fallback-bars .bar {
  width: 6px;
  height: 32px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.5;
  animation: pulse 1.4s ease-in-out infinite;
}
.fallback-bars .bar-2 { animation-delay: 0.15s; }
.fallback-bars .bar-3 { animation-delay: 0.3s; }

@keyframes pulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.3; }
  50%      { transform: scaleY(1);   opacity: 0.9; }
}

.media-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-mute);
}

/* ---------- How it works / Steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.step:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 18px;
  border: 1px solid rgba(245,158,11,0.3);
}

.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.95rem; }

/* S-curve explainer */

.scurve-explainer {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 40px;
}

@media (max-width: 800px) {
  .scurve-explainer { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
}

.scurve-text h3 { margin-bottom: 12px; }

.scurve-visual {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-mute);
}

.scurve-row { display: flex; flex-direction: column; gap: 6px; }
.scurve-label { font-weight: 500; letter-spacing: 0.02em; }

.scurve-box {
  height: 70px;
  border-radius: 8px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.scurve-source {
  width: 60%;
  background:
    linear-gradient(90deg, transparent 0 19%, rgba(245,158,11,0.4) 19% 21%, transparent 21% 100%),
    repeating-linear-gradient(90deg, #1a1a1a 0 10%, #222 10% 20%);
}

.scurve-output {
  width: 100%;
  background: repeating-linear-gradient(90deg, #1a1a1a 0 10%, #222 10% 20%);
}
.scurve-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      transparent 0 8%,
      rgba(245,158,11,0.5) 8% 9%,
      transparent 9% 28%,
      rgba(245,158,11,0.5) 28% 29%,
      transparent 29% 47%,
      rgba(245,158,11,0.5) 47% 48%,
      transparent 48% 52%,
      rgba(245,158,11,0.5) 52% 53%,
      transparent 53% 71%,
      rgba(245,158,11,0.5) 71% 72%,
      transparent 72% 91%,
      rgba(245,158,11,0.5) 91% 92%,
      transparent 92% 100%
    );
}

.scurve-arrow {
  align-self: center;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Secondary demo */

.secondary-demo {
  margin-top: 64px;
  text-align: center;
}
.secondary-demo h3 {
  margin-bottom: 20px;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.video-frame-wide { max-width: 900px; margin: 0 auto; aspect-ratio: 21 / 9; }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 1024px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pricing-grid { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--transition), transform var(--transition);
}
.plan:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.plan-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(245,158,11,0.06) 0%, transparent 50%), var(--bg);
  box-shadow: var(--shadow-amber);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #1a1207;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.plan-head h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.plan-price .price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.plan-price .period {
  font-size: 0.9rem;
  color: var(--text-mute);
}
.plan-save {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.plan-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color var(--transition);
}
.faq-list details[open] { border-color: var(--border); }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform var(--transition);
  line-height: 1;
}
.faq-list details[open] summary::after { content: "−"; }

.faq-list details p {
  margin-top: 12px;
  font-size: 0.95rem;
}
.faq-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.faq-list a:hover { color: var(--accent-hover); }

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

.cta-section { padding: 80px 0 120px; }

.cta-box {
  text-align: center;
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 32px;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 60%);
  pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box h2 { margin-bottom: 12px; }
.cta-box p { margin-bottom: 28px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

.footer-tag {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-mute);
}

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.85rem;
  color: var(--text-mute);
}

/* ========================================================================
   Legal pages
   ======================================================================== */

.legal-page {
  padding: 64px 0 96px;
}

.legal-page .container { max-width: 760px; }

.legal-page h1 {
  font-size: clamp(2rem, 3vw + 0.5rem, 2.75rem);
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-mute);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.4rem;
  margin: 40px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}
.legal-page h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 24px; }

.legal-page h3 {
  font-size: 1.1rem;
  margin: 24px 0 10px;
}

.legal-page p, .legal-page li {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-page ul, .legal-page ol {
  padding-left: 22px;
  margin: 0 0 1em;
}
.legal-page li { margin-bottom: 6px; }

.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-page a:hover { color: var(--accent-hover); }

.legal-page strong { color: var(--text); }
