/* Monopigi — shared stylesheet */

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

:root {
  --navy:  #0F172A;
  --navy2: #1E293B;
  --white: #FFFFFF;
  --gold:  #F59E0B;
  --gold2: #D97706;
  --slate: #64748B;
  --slate2:#94A3B8;
  --light: #F8FAFC;
  --border:#E2E8F0;
  --green: #10B981;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

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

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
}
.logo span { color: var(--gold); }

nav { display: flex; align-items: center; gap: 32px; }

nav a {
  color: var(--slate2);
  font-size: .9rem;
  font-weight: 500;
  transition: color .15s;
}
nav a:hover { color: var(--white); }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  font-size: .8rem;
  color: var(--slate2) !important;
  transition: border-color .15s, color .15s;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold) !important; }

/* ── Hero ── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 100px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(245,158,11,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  color: var(--navy);
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  max-width: 580px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  color: var(--slate2);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: .95rem;
  border-radius: var(--radius);
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius);
  transition: border-color .15s, background .15s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.05); }

/* ── Section base ── */
section { padding: 80px 0; }
section:nth-child(even) { background: var(--light); }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 560px;
  line-height: 1.65;
}

/* ── Problem section ── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.problem-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.problem-card .icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.problem-card h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.problem-card p {
  font-size: .88rem;
  color: var(--slate);
  line-height: 1.55;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.feature-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(245,158,11,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: .875rem;
  color: var(--slate);
  line-height: 1.6;
}

/* ── Code block ── */
.code-demo {
  margin-top: 52px;
  background: var(--navy);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.code-demo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.code-demo-header span {
  font-size: .78rem;
  color: var(--slate2);
  font-family: monospace;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #FF5F57; }
.dot-y { background: #FEBC2E; }
.dot-g { background: #28C840; }

.code-demo pre {
  padding: 24px;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: .82rem;
  line-height: 1.7;
  color: #CBD5E1;
  overflow-x: auto;
}
.code-demo pre .c { color: #64748B; }
.code-demo pre .k { color: #93C5FD; }
.code-demo pre .s { color: #86EFAC; }
.code-demo pre .n { color: var(--gold); }

/* ── Data sources table ── */
.sources-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
  font-size: .9rem;
}
.sources-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate);
  border-bottom: 2px solid var(--border);
}
.sources-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.sources-table tr:last-child td { border-bottom: none; }
.sources-table tr:hover td { background: rgba(245,158,11,.03); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-active { background: rgba(16,185,129,.1); color: #059669; }
.badge-planned { background: rgba(245,158,11,.1); color: var(--gold2); }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 52px;
  align-items: start;
}

.pricing-card {
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 20px 48px rgba(245,158,11,.12);
}

.featured-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
}

.pricing-tier {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price sup { font-size: 1rem; font-weight: 600; vertical-align: super; }
.pricing-period { font-size: .85rem; color: var(--slate); margin-bottom: 24px; }

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: .88rem;
  color: var(--navy2);
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.btn-cta {
  display: block;
  width: 100%;
  padding: 13px;
  text-align: center;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-cta-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-cta-primary:hover { background: var(--gold2); }

.btn-cta-outline {
  border: 1.5px solid var(--border);
  color: var(--navy);
}
.btn-cta-outline:hover { border-color: var(--navy2); background: var(--light); }

.btn-cta-disabled {
  background: var(--border);
  color: var(--slate);
  cursor: not-allowed;
  pointer-events: none;
}

.coming-soon-note {
  text-align: center;
  margin-top: 32px;
  font-size: .9rem;
  color: var(--slate);
  font-weight: 500;
}

/* ── CTA banner ── */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.cta-banner p {
  color: var(--slate2);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* ── Footer ── */
footer {
  background: var(--navy);
  color: var(--slate2);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-tagline {
  font-size: .85rem;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: .85rem;
  color: var(--slate2);
  transition: color .15s;
}
.footer-links a:hover { color: var(--white); }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { gap: 20px; }
  nav .nav-links { display: none; }
  .hero { padding: 64px 0 72px; }
  section { padding: 56px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
