/* Base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-soft), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(78, 115, 223, 0.04), transparent 40%),
    var(--bg);
  pointer-events: none;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background var(--duration) var(--ease-out), border-color var(--duration), box-shadow var(--duration);
}

.header.is-scrolled {
  background: rgba(246, 245, 242, 0.82);
  backdrop-filter: blur(16px);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand--sm { font-size: 0.95rem; }

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 4px 12px var(--accent-glow);
  flex-shrink: 0;
}

.brand em {
  font-style: normal;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav {
  display: none;
  gap: 1.75rem;
  margin-right: auto;
  margin-left: 1rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav__link:hover { color: var(--text); }

.header__actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.mobile-nav a {
  padding: 0.65rem 0;
  font-weight: 500;
  color: var(--text-secondary);
}

@media (min-width: 900px) {
  .nav, .header__actions { display: flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  color: var(--text);
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

.btn--ghost:hover { background: var(--bg-muted); }

.btn--invert {
  color: var(--accent);
  background: #fff;
}

.btn--invert:hover { background: var(--bg-muted); }

.btn--lg { padding: 0.75rem 1.35rem; font-size: 0.95rem; }

.btn--block { width: 100%; }

.pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pill--soft {
  background: var(--accent-soft);
  color: var(--accent);
}

.pill--warn {
  background: rgba(180, 120, 0, 0.12);
  color: #9a6700;
}

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero { padding: 5rem 0 5.5rem; }
  .hero__grid { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; }
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 32rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero__metrics dt {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 0.25rem;
}

.hero__metrics dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline;
}

.hero__metrics .suffix {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
}

.hero__metrics .metric-text {
  font-size: 1.25rem;
}

/* Preview card */
.preview-card {
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.preview-card__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.85rem 1rem;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}

.preview-card__chrome span:nth-child(1) { background: #ff5f57; }
.preview-card__chrome span:nth-child(2) { background: #febc2e; }
.preview-card__chrome span:nth-child(3) { background: #28c840; }

.preview-card__chrome span:nth-child(-n+3) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview-card__title {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-tertiary);
}

.preview-card__body { padding: 1.25rem; }

.preview-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.preview-kpi {
  padding: 0.85rem 1rem;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.preview-kpi__label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-bottom: 0.2rem;
}

.preview-kpi__value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.preview-kpi__delta {
  font-size: 0.72rem;
  font-weight: 600;
  margin-left: 0.35rem;
}

.preview-kpi__delta.is-up { color: var(--accent); }
.preview-kpi__delta.is-down { color: #b45309; }

.preview-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 88px;
  margin-bottom: 1.25rem;
  padding: 0 0.25rem;
}

.preview-chart .bar {
  flex: 1;
  height: var(--h);
  min-height: 12px;
  border-radius: 6px 6px 2px 2px;
  background: var(--bg-muted);
  animation: bar-grow 1s var(--ease-out) backwards;
}

.preview-chart .bar.is-accent {
  background: linear-gradient(180deg, #6b8ee8, var(--accent));
}

.preview-chart .bar:nth-child(1) { animation-delay: 0.05s; }
.preview-chart .bar:nth-child(2) { animation-delay: 0.1s; }
.preview-chart .bar:nth-child(3) { animation-delay: 0.15s; }
.preview-chart .bar:nth-child(4) { animation-delay: 0.2s; }
.preview-chart .bar:nth-child(5) { animation-delay: 0.25s; }
.preview-chart .bar:nth-child(6) { animation-delay: 0.3s; }
.preview-chart .bar:nth-child(7) { animation-delay: 0.35s; }

@keyframes bar-grow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); }
}

.preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preview-list li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.preview-list .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.preview-list__name {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-list__price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: var(--bg-muted);
  color: var(--text-tertiary);
}

.tag--offer {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Logos strip */
.logos {
  padding: 1.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.logos__label {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* Features */
.features {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
}

.features__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .features__grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Status */
.status-section { padding: 0 0 4rem; }

.status-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (min-width: 700px) {
  .status-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.status-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.status-card__main p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 200px;
}

.status-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.status-list .is-ok .status-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.status-list .is-pending .status-dot {
  background: #d4a012;
  box-shadow: 0 0 0 3px rgba(212, 160, 18, 0.2);
}

.status-list .is-off .status-dot {
  background: #c4c9d1;
}

/* CTA */
.cta { padding: 0 0 5rem; }

.cta__inner {
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--accent) 0%, #0a4f42 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta__inner h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta__inner p {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  opacity: 0.9;
  font-size: 0.98rem;
}

/* Footer */
.footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 600px) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay { transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .preview-chart .bar { animation: none; }
  html { scroll-behavior: auto; }
}
