:root {
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --text: #16161f;
  --text-muted: #55566b;
  --border: #e7e7f0;
  --accent-1: #6366f1;
  --accent-2: #a855f7;
  --accent-contrast: #ffffff;
  --shadow: 0 1px 2px rgba(16, 16, 30, 0.04), 0 8px 24px rgba(16, 16, 30, 0.06);
  --radius: 16px;
  --max-width: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b12;
    --bg-soft: #131320;
    --text: #f2f2f7;
    --text-muted: #a3a3b8;
    --border: #23232f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.site-nav a {
  font-size: 0.94rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

.header-cta {
  white-space: nowrap;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -6px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  background: var(--bg-soft);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent-1);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent-1);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 96px;
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-1);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  font-weight: 800;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
}

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

.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  width: 900px;
  height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.22), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* Section titles */

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 56px;
}

/* Features */

.features {
  padding: 96px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* How it works */

.how-it-works {
  padding: 96px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.step {
  text-align: center;
  padding: 0 12px;
}

.step-number {
  width: 40px;
  height: 40px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}

.step h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

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

/* Marketplaces */

.marketplaces {
  padding: 72px 0 96px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marketplace-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 0;
  margin: 0;
}

.marketplace-list li {
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

/* Contact */

.contact {
  padding: 96px 0;
  text-align: center;
}

.contact-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.contact-inner p {
  color: var(--text-muted);
  margin: 0 0 28px;
  font-size: 1.05rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer-copy {
  width: 100%;
  order: 3;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 8px 0 0;
}

@media (min-width: 720px) {
  .footer-copy {
    width: auto;
    order: 0;
    margin: 0;
  }
}

/* Responsive nav */

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }
}

/* Simple legal pages */

.legal {
  padding: 72px 0 96px;
  max-width: 760px;
}

.legal h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 36px;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 4px;
}
