:root {
  --bg: #0b1220;
  --bg-card: #141f33;
  --bg-elevated: #1a2740;
  --text: #e8eef7;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --accent-glow: #60a5fa;
  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;
  --border: rgba(148, 163, 184, 0.18);
  --radius: 14px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(11, 18, 32, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-select {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.pricing-footnote {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: #fff;
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(59, 130, 246, 0.45);
}

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

.btn-ghost:hover {
  background: var(--bg-elevated);
}

/* Hero */
.hero {
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.22), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-glow);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(90deg, #93c5fd, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero-card h3 {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.alert-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.alert-row:last-child {
  border-bottom: none;
}

.alert-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.alert-dot.critical { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.alert-dot.high { background: var(--warning); }
.alert-dot.ok { background: var(--success); }

.alert-row strong {
  display: block;
  font-size: 0.92rem;
}

.alert-row span {
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-mock-charts {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.hero-mock-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.hero-mock-sparkline svg {
  width: 100%;
  height: 48px;
  display: block;
}

.hero-mock-bars {
  display: flex;
  gap: 0.35rem;
  align-items: flex-end;
  height: 52px;
}

.hero-mock-bar {
  flex: 1 1 0;
  height: var(--w);
  min-height: 12%;
  border-radius: 6px 6px 2px 2px;
  background: var(--c);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.85);
}

.hero-mock-topic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
}

.hero-mock-topic span {
  color: var(--muted);
}

.hero-mock-topic i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  max-width: 100%;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-label {
  color: var(--accent-glow);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 2.5rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-glow);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 1rem;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Audience */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}

.audience-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.audience-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.benefit {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
}

.benefit-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.benefit h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.benefit p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(59, 130, 246, 0.5);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.12), var(--bg-card));
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2), 0 20px 50px rgba(59, 130, 246, 0.12);
  transform: scale(1.02);
}

.price-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.price-card .tagline {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  flex: 1;
}

.price-features li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 1.35rem;
  position: relative;
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.price-card .btn {
  width: 100%;
}

/* CTA band */
.cta-band {
  padding: 4rem 0 5rem;
}

.cta-inner {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.cta-inner h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-inner p {
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

/* Responsive */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

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

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

  .price-card.featured {
    transform: none;
  }

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

@media (max-width: 600px) {
  .header-inner .btn-ghost.nav-login-alt {
    display: none;
  }
}

/* Trial digest */
.trial-modal[hidden] {
  display: none !important;
}

.trial-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.trial-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.trial-modal-panel {
  position: relative;
  width: min(28rem, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.trial-modal-panel h2 {
  margin-top: 0;
}

.trial-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 1rem 0;
}

.trial-field input {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.trial-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.trial-form-error {
  color: var(--danger);
  font-size: 0.9rem;
  margin: 0;
}

body.trial-modal-open {
  overflow: hidden;
}

.hero-digest-result h3 {
  margin-top: 0;
  font-size: 1rem;
}

.trial-meta,
.trial-mentions-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.35rem 0;
}

.trial-cached-notice {
  font-size: 0.85rem;
  color: var(--warning);
  margin: 0.5rem 0;
  padding: 0.5rem 0.65rem;
  background: rgba(234, 179, 8, 0.12);
  border-radius: 8px;
}

.trial-summary {
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0.75rem 0;
  max-height: 14rem;
  overflow-y: auto;
}

.trial-urgent-title {
  font-size: 0.9rem;
  margin: 1rem 0 0.5rem;
  color: var(--muted);
}

.trial-cta {
  margin-top: 1.25rem;
  padding: 1.1rem 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: linear-gradient(
    145deg,
    rgba(59, 130, 246, 0.14) 0%,
    rgba(30, 41, 59, 0.55) 100%
  );
  text-align: center;
}

.trial-cta-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.trial-cta-lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.trial-cta-btn {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
}
