@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Theme Variables ─────────────────────────────────────────── */

:root {
  --bg: #f6f6f7;
  --bg-section: rgba(235, 235, 239, 0.5);
  --surface: rgba(228, 228, 233, 0.5);
  --surface-solid: #e4e4e9;
  --code-bg: #ffffff;
  --code-header: rgba(228, 228, 233, 0.8);
  --text-bright: #3c3c43;
  --text-primary: #3c3c43;
  --text-secondary: #67676c;
  --text-muted: #929295;
  --border: rgba(146, 146, 149, 0.15);
  --border-medium: rgba(146, 146, 149, 0.25);
  --overlay-glow: rgba(59, 130, 246, 0.06);
  --overlay-brand: rgba(99, 102, 241, 0.04);
  --card-shadow: rgba(0, 0, 0, 0.06);
  --card-shadow-hover: rgba(0, 0, 0, 0.1);
  --code-text: #3c3c43;
  --check-color: #18794e;
  --positive-color: #18794e;
  --badge-bg: rgba(99, 102, 241, 0.08);
  --badge-border: rgba(99, 102, 241, 0.15);
  --badge-text: #3451b2;
  --kw: #6f42c1;
  --fn: #3451b2;
  --st: #18794e;
  --cm: #929295;
  --ty: #915930;
  --op: #67676c;
  --nu: #b8272c;
  --dc: #915930;
}

.dark {
  --bg: #1b1b1f;
  --bg-section: rgba(32, 33, 39, 0.5);
  --surface: rgba(50, 54, 63, 0.5);
  --surface-solid: #32363f;
  --code-bg: #202127;
  --code-header: rgba(50, 54, 63, 0.8);
  --text-bright: #dfdfd6;
  --text-primary: #dfdfd6;
  --text-secondary: #98989f;
  --text-muted: #6a6a71;
  --border: rgba(152, 152, 159, 0.1);
  --border-medium: rgba(152, 152, 159, 0.15);
  --overlay-glow: rgba(59, 130, 246, 0.12);
  --overlay-brand: rgba(99, 102, 241, 0.08);
  --card-shadow: rgba(0, 0, 0, 0.2);
  --card-shadow-hover: rgba(0, 0, 0, 0.3);
  --code-text: #dfdfd6;
  --check-color: #3dd68c;
  --positive-color: #3dd68c;
  --badge-bg: rgba(99, 102, 241, 0.1);
  --badge-border: rgba(99, 102, 241, 0.2);
  --badge-text: #a8b1ff;
  --kw: #c084fc;
  --fn: #60a5fa;
  --st: #3dd68c;
  --cm: #6a6a71;
  --ty: #fbbf24;
  --op: #98989f;
  --nu: #f472b6;
  --dc: #fb923c;
}

/* ── Reset & Base ────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ── Container ───────────────────────────────────────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Animations ──────────────────────────────────────────────── */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.7s ease-out forwards;
}

.fade-in-up.delay-1 { animation-delay: 0.1s; }
.fade-in-up.delay-2 { animation-delay: 0.2s; }
.fade-in-up.delay-3 { animation-delay: 0.3s; }
.fade-in-up.delay-4 { animation-delay: 0.4s; }

/* ── Navbar ──────────────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.nav-user:hover {
  background: var(--surface);
}

.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.nav-avatar-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
}

.nav-username {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.btn-ghost {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  color: var(--text-bright);
  background: var(--surface);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  background: var(--surface);
}

/* ── Theme Toggle ───────────────────────────────────────────── */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
  color: var(--text-bright);
  background: var(--surface);
  border-color: var(--border-medium);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon { display: none; }
.dark .theme-toggle .icon-sun { display: block; }
.dark .theme-toggle .icon-moon { display: none; }
:root:not(.dark) .theme-toggle .icon-sun { display: none; }
:root:not(.dark) .theme-toggle .icon-moon { display: block; }

/* ── Mobile Menu Toggle ──────────────────────────────────────── */

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: background 0.2s;
}

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
  padding: 160px 0 60px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--overlay-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--badge-text);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--text-bright);
  margin-bottom: 20px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 span {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.hero-actions .btn-primary {
  padding: 14px 28px;
  font-size: 16px;
}

.hero-actions .btn-secondary {
  padding: 12px 24px;
  font-size: 15px;
}

/* ── Trust Bar ───────────────────────────────────────────────── */

.trust-bar {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.trust-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.5px;
}

.trust-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--border-medium);
}

/* ── Section Headings ────────────────────────────────────────── */

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--badge-text);
  margin-bottom: 12px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-bright);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ── Features ────────────────────────────────────────────────── */

.features {
  padding: 64px 0;
}

.features .container > .section-label,
.features .container > .section-title,
.features .container > .section-subtitle {
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--card-shadow-hover);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid var(--badge-border);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Marketplace Preview ─────────────────────────────────────── */

.marketplace-preview {
  padding: 64px 0;
  background: var(--bg-section);
}

.marketplace-preview .container > .section-label,
.marketplace-preview .container > .section-title,
.marketplace-preview .container > .section-subtitle {
  text-align: center;
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.marketplace-card {
  padding: 28px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}

.marketplace-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
}

.marketplace-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.marketplace-card-header h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-bright);
}

.marketplace-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--badge-text);
  background: var(--badge-bg);
  border-radius: 12px;
}

.marketplace-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.marketplace-metrics {
  display: flex;
  gap: 20px;
}

.marketplace-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
}

.metric-value.positive {
  color: var(--positive-color);
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
}

.marketplace-single {
  display: flex;
  justify-content: center;
}

.marketplace-single .marketplace-card {
  max-width: 420px;
  width: 100%;
}

.marketplace-cta {
  text-align: center;
}

/* ── How It Works ────────────────────────────────────────────── */

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

.how-it-works .container > .section-label,
.how-it-works .container > .section-title,
.how-it-works .container > .section-subtitle {
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ── For Developers ──────────────────────────────────────────── */

.developers {
  padding: 64px 0;
  background: var(--bg-section);
}

.dev-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.dev-text .section-title {
  margin-bottom: 16px;
}

.dev-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.dev-features {
  list-style: none;
  margin-bottom: 32px;
}

.dev-features li {
  font-size: 15px;
  color: var(--text-primary);
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dev-features li::before {
  content: '\2713';
  color: var(--check-color);
  font-weight: 700;
  flex-shrink: 0;
}

.dev-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dev-code {
  display: flex;
  justify-content: flex-end;
}

/* ── Code Preview ────────────────────────────────────────────── */

.code-preview {
  max-width: 520px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--code-bg);
  border: 1px solid var(--border-medium);
  box-shadow: 0 24px 64px var(--card-shadow-hover);
  text-align: left;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--code-header);
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #eab308; }
.code-dot.green { background: #22c55e; }

.code-filename {
  margin-left: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.code-block {
  padding: 20px;
  overflow-x: auto;
}

.code-block pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--code-text);
  white-space: pre;
  tab-size: 2;
}

/* Syntax highlighting */
.kw { color: var(--kw); }
.fn { color: var(--fn); }
.st { color: var(--st); }
.cm { color: var(--cm); }
.ty { color: var(--ty); }
.op { color: var(--op); }
.nu { color: var(--nu); }
.dc { color: var(--dc); }

/* ── Install ─────────────────────────────────────────────────── */

.install {
  padding: 48px 0;
}

.install .container > .section-label,
.install .container > .section-title,
.install .container > .section-subtitle {
  text-align: center;
}

.install-terminal {
  max-width: 600px;
  margin: 0 auto 32px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--code-bg);
  border: 1px solid var(--border-medium);
  box-shadow: 0 16px 48px var(--card-shadow-hover);
}

.install-command {
  padding: 20px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: var(--text-primary);
  user-select: all;
  -webkit-user-select: all;
  cursor: text;
}

.install-command .prompt {
  color: var(--check-color);
  user-select: none;
  -webkit-user-select: none;
}

.install-platforms {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.install-manual {
  text-align: center;
  font-size: 14px;
}

.install-manual a {
  color: var(--badge-text);
  transition: color 0.2s;
}

.install-manual a:hover {
  opacity: 0.8;
}

/* ── Pricing ─────────────────────────────────────────────────── */

.pricing {
  padding: 64px 0;
  background: var(--bg-section);
}

.pricing .container > .section-label,
.pricing .container > .section-title,
.pricing .container > .section-subtitle {
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-single {
  grid-template-columns: 1fr;
  max-width: 400px;
  margin: 0 auto;
}

.pricing-card {
  padding: 32px 24px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}

.pricing-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
}

.pricing-card.popular {
  border-color: rgba(99, 102, 241, 0.5);
  background: var(--surface-solid);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  border-radius: 20px;
}

.pricing-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.pricing-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-features li::before {
  content: '\2713';
  color: var(--check-color);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
  width: 100%;
  justify-content: center;
}

.pricing-card.coming-soon {
  opacity: 0.5;
  pointer-events: none;
}

.coming-soon-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--surface-solid);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  white-space: nowrap;
}

.btn-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ── Exchanges ───────────────────────────────────────────────── */

.exchanges {
  padding: 64px 0;
}

.exchanges .container > .section-label,
.exchanges .container > .section-title,
.exchanges .container > .section-subtitle {
  text-align: center;
}

.exchanges .section-title {
  margin-bottom: 16px;
}

.exchange-logos {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 36px;
  flex-wrap: wrap;
}

.exchange-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
  transition: opacity 0.3s;
  width: 90px;
}

.exchange-item:hover {
  opacity: 1;
}

.exchange-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-bright);
}

.exchange-item span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.exchange-item.exchange-active {
  opacity: 1;
}

.exchange-item.exchange-upcoming {
  opacity: 0.35;
}

.exchange-item.exchange-upcoming:hover {
  opacity: 0.5;
}

.exchange-upcoming .exchange-icon span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.exchange-soon {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── CTA Section ─────────────────────────────────────────────── */

.cta-section {
  padding: 64px 0;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--overlay-brand) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .section-title {
  margin-bottom: 16px;
}

.cta-section .section-subtitle {
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.cta-actions .btn-primary {
  padding: 14px 28px;
  font-size: 16px;
}

/* ── Footer ──────────────────────────────────────────────────── */

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

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

.footer-left p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* ── Scroll Animation Observer ───────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .marketplace-grid:not(.marketplace-single) {
    grid-template-columns: repeat(2, 1fr);
  }

  .marketplace-grid:not(.marketplace-single) .marketplace-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

  .dev-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .dev-code {
    justify-content: center;
  }
}

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

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 120px 0 40px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .trust-items {
    flex-wrap: wrap;
    gap: 24px;
  }

  .trust-divider {
    display: none;
  }

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

  .marketplace-grid:not(.marketplace-single) {
    grid-template-columns: 1fr;
  }

  .marketplace-grid:not(.marketplace-single) .marketplace-card:last-child {
    max-width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .steps::before {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .section-title {
    font-size: 30px;
  }

  .exchange-logos {
    gap: 32px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .code-block pre {
    font-size: 12px;
  }

  .marketplace-metrics {
    flex-direction: column;
    gap: 12px;
  }
}
