/* ============================================================
   Rodosto.AI Landing Page — CSS
   Mobile-first, dark mode, system fonts, zero dependencies
   ============================================================ */

/* ── Custom Properties ── */
:root {
  --brand: #1EA4FF;
  --brand-light: #60C6FF;
  --brand-glow: rgba(30, 164, 255, .15);

  --bg: #F8F9FC;
  --bg-alt: #EFF2F7;
  --surface: #FFFFFF;
  --border: rgba(0, 0, 0, .08);

  --text: #0F172A;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  --success: #16A34A;
  --error: #DC2626;
  --warning: #D97706;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.08);

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;

  --header-h: 64px;
  --section-py: 80px;
}

/* ── Dark Mode ── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0E17;
    --bg-alt: #0F1724;
    --surface: #131B2E;
    --border: rgba(255, 255, 255, .08);

    --text: #EAF2FF;
    --text-muted: #8EA2C0;

    --shadow: 0 1px 3px rgba(0,0,0,.2), 0 4px 12px rgba(0,0,0,.15);
    --shadow-lg: 0 4px 24px rgba(0,0,0,.3);
  }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus {
  top: 8px;
}

/* ── Container ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow {
  max-width: 780px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  box-shadow: 0 0 20px var(--brand-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-alt);
  border-color: var(--text-muted);
}


/* ════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo-icon {
  color: var(--brand);
  font-size: 18px;
}
.logo-accent {
  color: var(--brand);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  margin-left: 8px;
  flex-shrink: 0;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s ease;
}
.mobile-menu-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.is-active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
.hero {
  padding: 80px 0 60px;
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero visual — mock card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .4;
  pointer-events: none;
}
.hero-orb-1 {
  width: 300px; height: 300px;
  background: var(--brand);
  top: -20px; right: -40px;
}
.hero-orb-2 {
  width: 200px; height: 200px;
  background: #764ba2;
  bottom: 0; left: 20px;
}

.hero-card-mock {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-lg);
  width: 300px;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.mock-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.mock-dot--green { background: var(--success); }
.mock-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.mock-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.mock-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.mock-label {
  font-size: 13px;
  color: var(--text-muted);
}
.mock-delta {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: auto;
}
.mock-delta.positive {
  color: var(--success);
  background: rgba(22, 163, 74, .1);
}

.mock-sparkline {
  display: flex;
  justify-content: center;
}
.mock-sparkline svg {
  display: block;
}


/* ════════════════════════════════════════════
   SECTIONS (shared)
   ════════════════════════════════════════════ */
.section {
  padding: var(--section-py) 0;
}
.section--alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}


/* ════════════════════════════════════════════
   FEATURES
   ════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 14px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ════════════════════════════════════════════
   AGENTS
   ════════════════════════════════════════════ */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.agent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.agent-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.agent-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.agent-icon {
  font-size: 28px;
  line-height: 1;
}

/* Badges */
.badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 6px;
}
.badge--reporter {
  background: rgba(30, 164, 255, .1);
  color: var(--brand);
}
.badge--creator {
  background: rgba(22, 163, 74, .1);
  color: var(--success);
}

.agent-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.agent-card > p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
}

.agent-features {
  margin-bottom: 16px;
}
.agent-features li {
  font-size: 13px;
  color: var(--text);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}
.agent-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 12px;
}

.agent-platform {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}


/* ════════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
}

.step-number {
  width: 52px; height: 52px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px var(--brand-glow);
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ════════════════════════════════════════════
   PRICING
   ════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card--highlight {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), 0 8px 32px var(--brand-glow);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.price-header {
  margin-bottom: 20px;
}
.price-header h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.price-tagline {
  font-size: 14px;
  color: var(--text-muted);
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 4px;
}
.price-currency {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 600;
}
.price-value {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.price-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 4px;
}

.price-yearly {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.price-features {
  margin-bottom: 24px;
  flex: 1;
}
.price-features li {
  font-size: 14px;
  color: var(--text);
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
}
.price-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}


/* ════════════════════════════════════════════
   FAQ
   ════════════════════════════════════════════ */
.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform .2s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 24px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ════════════════════════════════════════════
   CTA SECTION
   ════════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, var(--brand) 0%, #764ba2 100%);
  color: #fff;
}
.cta-section h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-section p {
  color: rgba(255,255,255,.85);
}
.cta-section .btn-primary {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
}
.cta-section .btn-primary:hover {
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 24px rgba(255,255,255,.3);
}


/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 280px;
}

.footer-nav h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-nav li {
  margin-bottom: 8px;
}
.footer-nav a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}
.footer-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}


/* ════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
   ════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ════════════════════════════════════════════
   RESPONSIVE — Tablet (768px)
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .agents-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .agents-grid .agent-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    justify-self: center;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 56px;
  }

  /* Nav */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }
  .nav-links.nav-open {
    display: flex;
  }
  .nav-cta { display: none; }
  .mobile-menu-btn { display: flex; margin-left: auto; }

  /* Hero */
  .hero { padding: 48px 0 40px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-visual { min-height: 240px; }
  .hero-card-mock { width: 260px; }
  .hero-actions { justify-content: center; }
  .hero-content { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-note { text-align: center; }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Agents */
  .agents-grid {
    grid-template-columns: 1fr;
  }
  .agents-grid .agent-card:last-child {
    max-width: none;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-sub { font-size: 16px; }
  .mock-value { font-size: 28px; }
  .price-value { font-size: 40px; }

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


/* ════════════════════════════════════════════
   REDUCED MOTION
   ════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feature-card:hover,
  .agent-card:hover { transform: none; }
  .mobile-menu-btn span { transition: none; }
}

