/* ========================================
   ReportNarrator — Style System
   Dark theme, modern, agency-grade
   ======================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0B0D11;
  --bg-secondary: #111318;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text-primary: #F0F0F5;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --accent: #7C3AED;
  --accent-hover: #6D28D9;
  --accent-glow: rgba(124, 58, 237, 0.25);
  --rose: #EC4899;
  --rose-glow: rgba(236, 72, 153, 0.2);
  --green: #10B981;
  --amber: #F59E0B;
  --red: #EF4444;
  --font-display: 'Cabinet Grotesk', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono { font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; }

/* ---------- SECTION TYPOGRAPHY ---------- */
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--sm { padding: 8px 16px; font-size: 0.85rem; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px var(--accent-glow), 0 0 60px var(--rose-glow);
  transform: translateY(-1px);
}

.btn--secondary {
  background: rgba(124, 58, 237, 0.12);
  color: var(--accent);
  border: 1px solid rgba(124, 58, 237, 0.25);
}
.btn--secondary:hover {
  background: rgba(124, 58, 237, 0.2);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(11, 13, 17, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

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

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo-icon {
  color: var(--accent);
  font-size: 1.4rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav__links a:not(.btn) {
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav__links a:not(.btn):hover { color: var(--text-primary); }

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--rose-glow) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero__proof {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero visual */
.hero__visual {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  flex: 1;
  min-width: 0;
}

.hero__card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.hero__card-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.hero__card-row:last-child { border-bottom: none; }
.hero__card-row span:first-child { color: var(--text-secondary); }

.hero__arrow {
  font-size: 1.8rem;
  color: var(--accent);
  flex-shrink: 0;
  animation: pulse-arrow 2s ease-in-out infinite;
}

@keyframes pulse-arrow {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(6px); }
}

.hero__card--narrative {
  border-color: rgba(124, 58, 237, 0.2);
  background: rgba(124, 58, 237, 0.05);
}

.hero__card-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-style: italic;
}

/* ---------- PAIN ---------- */
.pain {
  padding: 100px 0;
  text-align: center;
}

.pain__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pain__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: left;
  transition: all var(--transition);
}
.pain__card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.pain__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.pain__card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.pain__card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- HOW IT WORKS ---------- */
.how {
  padding: 100px 0;
  text-align: center;
}

.how__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 56px;
}

.how__step {
  flex: 1;
  max-width: 300px;
  padding: 0 20px;
}

.how__step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 24px var(--accent-glow);
}

.how__step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.how__step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.how__connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--rose));
  margin-top: 23px;
  flex-shrink: 0;
  opacity: 0.4;
}

/* ---------- DEMO PANEL ---------- */
.demo {
  padding: 100px 0;
  text-align: center;
}

.demo__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 16px;
  text-align: left;
}

.demo__input,
.demo__output {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.demo__input-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.demo__input-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.demo__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.demo__optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.demo__field-group {
  margin-bottom: 16px;
}

.demo__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.demo__input-field {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color var(--transition);
  outline: none;
}

.demo__input-field::placeholder {
  color: var(--text-muted);
}

.demo__input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Remove number input spinners */
.demo__input-field[type="number"]::-webkit-inner-spin-button,
.demo__input-field[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.demo__input-field[type="number"] { -moz-appearance: textfield; }

.demo__generate-btn {
  width: 100%;
  margin-top: 8px;
}

/* Output panel */
.demo__output {
  position: relative;
  border-color: rgba(124, 58, 237, 0.15);
}

.demo__output-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
}

.demo__output-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.demo__output-empty p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.demo__output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.demo__output-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.demo__section {
  margin-bottom: 24px;
}

.demo__section h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.demo__section p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.demo__section ul {
  padding-left: 0;
}

.demo__section li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding: 4px 0 4px 20px;
  position: relative;
}

.demo__section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- SOCIAL PROOF ---------- */
.proof {
  padding: 80px 0;
}

.proof__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.proof__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition);
}
.proof__card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.proof__quote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.proof__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proof__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--rose));
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.proof__author strong {
  display: block;
  font-size: 0.88rem;
}

.proof__author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- PRICING ---------- */
.pricing {
  padding: 100px 0;
  text-align: center;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  align-items: start;
}

.pricing__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: left;
  position: relative;
  transition: all var(--transition);
}
.pricing__card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.pricing__card--featured {
  border-color: rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.06);
  box-shadow: 0 0 40px var(--accent-glow);
}
.pricing__card--featured:hover {
  border-color: var(--accent);
}

.pricing__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 16px;
  border-radius: 20px;
}

.pricing__tier {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing__price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 24px;
}

.pricing__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing__features {
  margin-bottom: 28px;
}

.pricing__features li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.pricing__features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.pricing__cta { width: 100%; }

/* ---------- WAITLIST ---------- */
.waitlist {
  padding: 100px 0;
}

.waitlist__inner {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.waitlist__inner::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.waitlist__form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.waitlist__input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}

.waitlist__input::placeholder { color: var(--text-muted); }
.waitlist__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.waitlist__submit { margin-top: 4px; }

.waitlist__note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.waitlist__success {
  color: var(--green);
  font-weight: 600;
}

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

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__links {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.footer__links a:hover { color: var(--text-primary); }

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  margin-top: 16px;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fade-up 0.6s ease-out forwards;
  opacity: 0;
}

.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }

/* ---------- COPY SUCCESS ---------- */
.copy-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--green);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 200;
  animation: slide-up 0.3s ease-out, fade-out 0.3s ease-in 2s forwards;
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-out {
  to { opacity: 0; transform: translateY(-8px); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { justify-content: center; }
  .demo__panel { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__mobile-toggle { display: flex; }

  .nav__links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 13, 17, 0.97);
    backdrop-filter: blur(16px);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
  }

  .hero { padding: 120px 0 60px; }
  .hero__visual { flex-direction: column; gap: 12px; }
  .hero__arrow { transform: rotate(90deg); }

  .pain__grid,
  .proof__grid,
  .pricing__grid { grid-template-columns: 1fr; }

  .how__steps { flex-direction: column; align-items: center; }
  .how__connector {
    width: 2px;
    height: 32px;
    margin: 0;
  }

  .waitlist__inner { padding: 40px 24px; }

  .demo__row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .section-title { font-size: 1.6rem; }
  .hero__card { padding: 16px; }
  .demo__input, .demo__output { padding: 20px; }
  .pricing__card { padding: 28px 20px; }
}
