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

:root {
  --bg: #050816;
  --bg-alt: #080b1e;
  --bg-soft: #0d1024;
  --accent: #42e8c4;
  --accent-soft: rgba(66, 232, 196, 0.15);
  --accent-strong: #19c29e;
  --text: #f9fafb;
  --text-soft: #9ca3af;
  --border-soft: rgba(148, 163, 184, 0.35);
  --danger: #fb7185;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.65);
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at top left, #111827 0, #020617 40%, #020617 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.93), rgba(2, 6, 23, 0.65), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #e5e7eb 0, #111827 38%, #020617 100%);
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #e5e7eb;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--text-soft);
  padding: 0.25rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.18s ease-out;
}

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

.main-nav a:hover::after {
  width: 100%;
}

/* Hero */

.hero {
  padding: 4.5rem 0 3.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 1.2rem;
}

.hero-subtitle {
  margin: 0 0 1.8rem;
  color: var(--text-soft);
  max-width: 32rem;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-xl);
  padding: 1rem 1.1rem 1.2rem;
  background: radial-gradient(circle at top, #1f2933 0, #020617 55%);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
}

.hero-card-header {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.pill {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
}

.pill-green {
  background: #22c55e;
}

.pill-amber {
  background: #fbbf24;
}

.pill-red {
  background: #f97373;
}

.hero-card-body {
  padding: 0.25rem 0.3rem 0.3rem;
}

.hero-metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}

.hero-metric-main {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 0.1rem;
}

.hero-metric-sub {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 0.8rem;
}

.hero-chart {
  background: radial-gradient(circle at top left, var(--accent-soft) 0, #020617 60%);
  border-radius: 1rem;
  padding: 0.75rem 0.75rem 0.6rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--accent);
}

.hero-chart svg {
  width: 100%;
  height: 80px;
}

.hero-caption {
  font-size: 0.75rem;
  color: var(--text-soft);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, background 0.1s ease-out, border-color 0.1s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #020617;
  box-shadow: 0 18px 35px rgba(34, 197, 94, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(34, 197, 94, 0.45);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.9);
}

.btn-large {
  padding-inline: 1.8rem;
  padding-block: 0.9rem;
  font-size: 0.98rem;
}

/* Sections */

.section {
  padding: 3.75rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #030712 100%);
}

.section-header {
  text-align: left;
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.section-header h2 {
  font-size: 1.65rem;
  margin: 0 0 0.5rem;
}

.section-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.96rem;
}

/* Cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.card {
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.17) 0, rgba(15, 23, 42, 1) 40%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
}

.card:nth-child(2) .card-icon {
  background: rgba(59, 130, 246, 0.22);
}

.card:nth-child(2) .card-icon svg {
  stroke: #60a5fa;
  fill: none;
}

.card:nth-child(3) .card-icon {
  background: rgba(244, 114, 182, 0.19);
}

.card:nth-child(3) .card-icon svg {
  stroke: #fb7185;
  fill: none;
}

.card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.card-text {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.7rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.card-list li {
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.25rem;
}

.card-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

/* Steps */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.step {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.2rem 1.3rem 1.35rem;
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.18) 0, #020617 45%);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2rem;
  align-items: flex-start;
}

.about-grid p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.about-grid p + p {
  margin-top: 0.6rem;
}

.about-highlight {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(66, 232, 196, 0.16) 0, #020617 45%);
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 1.2rem 1.3rem;
}

.about-title {
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.about-highlight ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* CTA */

.section-cta {
  background: radial-gradient(circle at top, #022c22 0, #020617 45%, #020617 100%);
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cta-inner h2 {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
}

.cta-inner p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.9rem 0 2rem;
  background: #020617;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1.3rem;
}

.footer-logo .logo-mark {
  width: 1.8rem;
  height: 1.8rem;
  font-size: 1rem;
}

.footer-text {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  font-size: 0.86rem;
}

.footer-links a {
  color: var(--text-soft);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  padding-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Terms page */

.terms-body {
  background: radial-gradient(circle at top left, #020617 0, #020617 40%, #000 100%);
}

.terms-container {
  max-width: 760px;
}

.terms-container h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.terms-container h2 {
  font-size: 1.05rem;
  margin-top: 1.7rem;
  margin-bottom: 0.45rem;
}

.terms-container p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.terms-container strong {
  color: #e5e7eb;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.75rem;
  }

  .hero-visual {
    justify-content: flex-start;
  }

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

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

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 640px) {
  .nav-container {
    gap: 1rem;
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .cards-grid,
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    align-items: flex-start;
  }
}
