/* ===========================
   PARETOAI — THEME CSS
   =========================== */

/* Fonts */
:root {
  --bg-primary: #0A0E1A;
  --bg-secondary: #0F1520;
  --bg-card: #121928;
  --bg-card-hover: #171E2E;
  --accent: #E85D04;
  --accent-light: #F76B1C;
  --accent-dim: rgba(232, 93, 4, 0.12);
  --text-primary: #F0F4FF;
  --text-secondary: #8A99B0;
  --text-muted: #5C6A7E;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(232, 93, 4, 0.25);
  --radius: 14px;
  --radius-sm: 8px;
  --section-pad: 96px;
  --container: 1160px;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Grid overlay */
.hero-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,93,4,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,93,4,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 0;
}

.hero-bg-glow {
  position: fixed;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,93,4,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Section labels */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 56px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  max-width: 700px;
}

.hero-headline em {
  color: var(--accent);
  font-style: normal;
}

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

.hero-sub strong {
  color: var(--text-primary);
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 0;
  width: fit-content;
  overflow: hidden;
}

.stat {
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* Process diagram */
.hero-visual {
  width: 100%;
}

.process-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 40px;
  width: fit-content;
}

.diagram-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.step-icon--orange {
  background: var(--accent-dim);
  border-color: var(--border-accent);
  color: var(--accent);
}

.step-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.step-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.diagram-arrow {
  padding: 0 16px;
}

/* ===== PROOF BAR ===== */
.proof {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.proof-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 0;
}

.proof-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 32px;
}

.proof-divider {
  width: 1px;
  height: 56px;
  background: var(--border);
}

.proof-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.proof-val {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.proof-vs {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== METHODOLOGY ===== */
.methodology {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.method-card {
  background: var(--bg-card);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s;
}

.method-card:hover {
  background: var(--bg-card-hover);
}

.method-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--accent-dim);
  line-height: 1;
  letter-spacing: -0.04em;
}

.method-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}

.method-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.method-deliverable {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.deliverable-label {
  color: var(--accent);
  font-weight: 600;
}

.method-price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

/* ===== FEATURES ===== */
.features {
  padding: var(--section-pad) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  background: var(--bg-card);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
}

.feature-card--large {
  grid-row: 1 / 3;
  padding: 40px 36px;
  gap: 20px;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
}

.feature-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== DIFFERENTIATOR ===== */
.diff {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

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

.diff-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.diff-body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.diff-body em {
  color: var(--text-primary);
  font-style: normal;
  font-weight: 500;
}

.diff-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.pillar-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* Pareto ring */
.diff-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pareto-ring {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pareto-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent) 0%,
    var(--accent) 20%,
    rgba(232, 93, 4, 0.12) 20%,
    rgba(232, 93, 4, 0.12) 100%
  );
  mask: radial-gradient(transparent 80px, black 81px);
  -webkit-mask: radial-gradient(transparent 80px, black 81px);
}

.pareto-ring::after {
  content: '';
  position: absolute;
  inset: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.ring-label {
  position: absolute;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
}

.ring-label--80 {
  top: 40px;
  right: 60px;
  font-size: 28px;
  color: var(--accent);
}

.ring-label--20 {
  bottom: 80px;
  left: 50px;
  font-size: 28px;
  color: var(--text-muted);
}

.ring-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.ring-main {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

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

.ring-accent {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

/* ===== PRICING ===== */
.pricing {
  padding: var(--section-pad) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-card--featured {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -1px;
  right: 24px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 0 0 6px 6px;
  letter-spacing: 0.04em;
}

.pricing-tier {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.pricing-range {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing-features li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  font-size: 13px;
  margin-top: 1px;
}

/* ===== CLOSING ===== */
.closing {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.closing-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 8px 18px;
  border-radius: 100px;
}

.closing-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.closing-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

.closing-vision {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
}

.vision-label {
  color: var(--accent);
  font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--bg-secondary);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-meta {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .section-inner,
  .hero-content,
  .proof-inner,
  .nav-inner {
    padding: 0 24px;
  }

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

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

  .feature-card--large {
    grid-column: 1 / -1;
  }

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

  .diff-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .pareto-ring {
    width: 240px;
    height: 240px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 0;
  }

  .stat {
    padding: 20px 40px;
  }

  .stat-divider {
    width: 80%;
    height: 1px;
    margin: 0 auto;
  }

  .proof-inner {
    flex-direction: column;
    gap: 24px;
  }

  .proof-divider {
    width: 100%;
    height: 1px;
  }
}

@media (max-width: 600px) {
  :root {
    --section-pad: 64px;
  }

  .hero-headline {
    font-size: 36px;
  }

  .hero-stats {
    width: 100%;
  }

  .process-diagram {
    flex-direction: column;
    gap: 24px;
    padding: 24px;
  }

  .diagram-arrow {
    transform: rotate(90deg);
    padding: 8px 0;
  }

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

  .nav-tagline {
    display: none;
  }
}
