:root {
  --bg: #0b0b0e;
  --bg-deep: #070709;
  --surface: rgba(16, 16, 20, 0.92);
  --surface-strong: rgba(13, 13, 16, 0.97);
  --surface-soft: rgba(16, 16, 20, 0.72);
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.26);
  --text: #f4f7fb;
  --text-muted: #bcc7d6;
  --text-soft: #8f9eb0;
  --accent: #9ab4cf;
  --accent-soft: rgba(154, 180, 207, 0.16);
  --accent-strong: #3b82f6;
  --accent-ink: #ffffff;
  --warm: #d9a15f;
  --shadow: 0 24px 52px rgba(0, 0, 0, 0.52);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background: linear-gradient(180deg, #111114 0%, var(--bg) 46%, var(--bg-deep) 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: transparent;
}

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

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(12, 12, 15, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand img {
  width: 108px;
  height: auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topnav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 0;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background 160ms ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
  outline: none;
}

.topnav a:hover::after,
.topnav a:focus-visible::after {
  background: var(--line-strong);
}

.topnav .nav-signin,
.topnav .nav-primary {
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
}

.topnav .nav-signin {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.topnav .nav-signin::after {
  display: none;
}

.topnav .nav-primary {
  color: var(--accent-ink);
  background: var(--accent-strong);
  border-color: rgba(255, 255, 255, 0.04);
}

.topnav .nav-primary::after {
  display: none;
}

.topnav .nav-primary:hover,
.topnav .nav-primary:focus-visible {
  background: #2563eb;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.hero-preview,
.section-card,
.feature-card,
.cta-block {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-preview {
  border-radius: var(--radius-xl);
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  padding: 44px 40px;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line-strong);
}

.hero h1,
.section-head h2,
.cta-block h2 {
  margin: 0;
  font-family: "Inter", "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 650;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.94;
}

.hero-text {
  max-width: 37rem;
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary {
  color: var(--accent-ink);
  background: var(--accent-strong);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #2563eb;
}

.btn-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}

.hero-preview {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background: var(--surface-strong);
}

.hero-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 20%);
  pointer-events: none;
}

.preview-shell {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 24px;
  background: rgba(10, 10, 13, 0.96);
}

.preview-topbar,
.preview-footer,
.section-head,
.cta-block,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-user {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-label,
.card-label,
.feed-kicker,
.preview-chip,
.preview-pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.preview-label {
  color: var(--text-soft);
}

.preview-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.preview-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}

.preview-tabs {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 18px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.preview-tab {
  position: relative;
  padding: 0 0 10px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.preview-tab.active {
  color: var(--text);
}

.preview-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.preview-card {
  padding: 15px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.preview-card .preview-label {
  margin-bottom: 8px;
}

.preview-value {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.05em;
}

.preview-change {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-soft);
}

.preview-change strong {
  color: var(--text);
  font-weight: 600;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.85fr);
  gap: 12px;
  margin-top: 12px;
}

.preview-chart,
.preview-feed,
.feature-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
}

.preview-chart,
.preview-feed {
  min-height: 240px;
}

.preview-chart-head,
.preview-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.preview-subtle,
.feed-item p,
.section-head p,
.feature-card p,
.cta-block p,
.footer-copy {
  color: var(--text-muted);
}

.preview-subtle {
  font-size: 12px;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 8px;
  height: 162px;
}

.trend-bar {
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.82), rgba(188, 199, 214, 0.1));
}

.trend-overlay {
  position: relative;
  margin-top: 14px;
  height: 34px;
}

.trend-overlay svg {
  width: 100%;
  height: 100%;
}

.feed-list {
  display: grid;
  gap: 10px;
}

.feed-item {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.feed-kicker,
.card-label,
.preview-chip {
  color: var(--text-soft);
}

.feed-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.58;
}

.preview-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.preview-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preview-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.preview-chip.warm {
  color: var(--warm);
}

.section-card {
  padding: 32px 30px;
  margin-bottom: 24px;
  border-radius: var(--radius-xl);
}

.section-head {
  align-items: end;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
}

.section-head p {
  max-width: 38rem;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card-label {
  display: inline-flex;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.feature-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.cta-block {
  padding: 30px;
  margin-top: 24px;
  border-radius: var(--radius-xl);
}

.cta-block h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.98;
}

.cta-block p {
  max-width: 35rem;
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer {
  padding: 6px 4px 0;
}

.footer-copy {
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  padding-bottom: 4px;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: transparent;
  transition: background 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  outline: none;
}

.footer-links a:hover::after,
.footer-links a:focus-visible::after {
  background: var(--line-strong);
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 700ms ease forwards;
}

.fade-up.delay-1 {
  animation-delay: 120ms;
}

.fade-up.delay-2 {
  animation-delay: 220ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .preview-metrics,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-layout,
  .cta-block {
    grid-template-columns: 1fr;
  }

  .cta-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .topbar,
  .section-head,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar {
    position: static;
  }

  .topnav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-copy,
  .hero-preview,
  .section-card,
  .cta-block {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .preview-metrics,
  .preview-layout,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .preview-chart,
  .preview-feed {
    min-height: 0;
  }
}
