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

:root {
  --bg: #050a08;
  --bg-alt: #0a120e;
  --bg-card: #0f1a13;
  --bg-elevated: #152218;
  --surface: #1a2a1e;
  --surface-hover: #223528;
  --border: #1a2a1e;
  --border-light: #2a4030;
  --text: #e8f0ea;
  --text-secondary: #98b0a0;
  --text-muted: #5a7a62;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-subtle: rgba(16, 185, 129, 0.1);
  --emerald-glow: rgba(16, 185, 129, 0.15);
  --amber: #f59e0b;
  --amber-subtle: rgba(245, 158, 11, 0.1);
  --blue: #3b82f6;
  --blue-subtle: rgba(59, 130, 246, 0.1);
  --teal: #06b6d4;
  --teal-subtle: rgba(6, 182, 212, 0.1);
  --red: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.nav--scrolled {
  background: rgba(5, 10, 8, 0.9);
  backdrop-filter: blur(12px);
  border-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav__logo-icon { width: 28px; height: 28px; }

.nav__logo-sub {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-top: -2px;
}

.nav__links { display: flex; align-items: center; gap: 28px; }

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

.nav__link:hover { color: var(--emerald); }

.nav__cta {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--emerald), #059669);
  color: #fff;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav__cta:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.nav__toggle { display: none; background: none; border: none; color: var(--text-secondary); padding: 4px; }

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero__glow--emerald {
  top: 10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: rgba(16, 185, 129, 0.08);
}

.hero__glow--teal {
  bottom: 0;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(6, 182, 212, 0.06);
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--emerald-subtle);
  color: var(--emerald-bright);
  margin-bottom: 20px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--emerald-bright), var(--emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__actions .btn--ghost { border-color: rgba(16, 185, 129, 0.3); }

.hero__trust {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero__trust-item svg { width: 14px; height: 14px; color: var(--emerald); flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--emerald), #059669);
  color: #fff;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

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

.btn--lg { padding: 14px 32px; font-size: 16px; }

.hero__visual-card {
  padding: 36px 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero__visual-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.flow-node__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-node__icon svg { width: 26px; height: 26px; }

.flow-node__icon--signal { background: var(--emerald-subtle); color: var(--emerald); }
.flow-node__icon--gateway { background: rgba(16, 185, 129, 0.15); color: var(--emerald-bright); }
.flow-node__icon--exchange { background: var(--amber-subtle); color: var(--amber); }

.flow-node__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.flow-arrow { color: var(--text-muted); flex-shrink: 0; }

.hero__visual-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero__visual-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-muted);
  font-family: monospace;
}

.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg); }

.section__eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald);
  margin-bottom: 12px;
}

.section__header { max-width: 600px; margin-bottom: 56px; }

.section__header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section__desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-block { text-align: center; }

.stat-block__value {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-block__value--emerald { color: var(--emerald); }

.stat-block__label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

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

.flow-step {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.flow-step:hover { transform: translateY(-3px); border-color: var(--emerald); }

.flow-step__num {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--emerald-subtle);
  color: var(--emerald-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.flow-step__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-step__icon svg { width: 28px; height: 28px; color: var(--emerald); }

.flow-step__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.flow-step__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 20px;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.2s, border-color 0.2s;
}

.feature-item:hover { transform: translateY(-2px); border-color: var(--emerald); }

.feature-item__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item__icon svg { width: 22px; height: 22px; }

.feature-item__icon--emerald { background: var(--emerald-subtle); color: var(--emerald); }
.feature-item__icon--amber { background: var(--amber-subtle); color: var(--amber); }
.feature-item__icon--blue { background: var(--blue-subtle); color: var(--blue); }
.feature-item__icon--teal { background: var(--teal-subtle); color: var(--teal); }

.feature-item__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-item__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.pipeline-diagram {
  max-width: 700px;
  margin: 0 auto;
}

.pipeline-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.pipeline-step__num {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--emerald-subtle);
  color: var(--emerald-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.pipeline-step__body h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.pipeline-step__body p {
  font-size: 13px;
  color: var(--text-secondary);
}

.pipeline-arrow {
  display: flex;
  justify-content: center;
  padding: 4px 0;
  color: var(--text-muted);
}

.pipeline-arrow svg { width: 18px; height: 18px; }

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

.dash-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
}

.dash-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.dash-card__title {
  font-size: 14px;
  font-weight: 700;
}

.dash-card__badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.dash-card__badge--green { background: var(--emerald-subtle); color: var(--emerald); }
.dash-card__badge--amber { background: var(--amber-subtle); color: var(--amber); }
.dash-card__badge--blue { background: var(--blue-subtle); color: var(--blue); }

.dash-card__body { padding: 16px 20px; }

.dash-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.dash-card__label {
  font-size: 13px;
  color: var(--text-secondary);
}

.dash-card__value {
  font-size: 14px;
  font-weight: 700;
}

.dash-card__value--green { color: var(--emerald); }
.dash-card__value--red { color: var(--red); }

.dash-card__divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

.dash-card__panic {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  background: none;
  border: none;
  opacity: 0.6;
}

.dash-card__testnet {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--emerald);
  font-weight: 600;
}

.dash-card__testnet svg { width: 14px; height: 14px; }

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

.cta-section {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  background: var(--bg-alt);
  text-align: center;
}

.cta-inner { max-width: 600px; margin: 0 auto; position: relative; z-index: 2; }

.cta-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-title-line2 {
  background: linear-gradient(135deg, var(--emerald-bright), var(--emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

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

.cta-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

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

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 32px;
}

.footer__brand { max-width: 280px; }

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer__logo-icon { width: 26px; height: 26px; }

.footer__tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.6;
}

.footer__links { display: flex; gap: 48px; }

.footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--emerald); }

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.fade-in, .fade-left, .fade-right, .fade-up {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in { transform: translateY(24px); }
.fade-left { transform: translateX(-30px); }
.fade-right { transform: translateX(30px); }
.fade-up { transform: translateY(30px); }

.fade-in.visible, .fade-left.visible, .fade-right.visible, .fade-up.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (max-width: 1024px) {
  .hero__layout { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { display: flex; justify-content: center; }
  .steps-flow { grid-template-columns: 1fr; gap: 16px; }
  .dash-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .nav__links--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(5, 10, 8, 0.98);
    backdrop-filter: blur(16px);
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .hero__title { font-size: clamp(32px, 8vw, 44px); }

  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stats-bar { padding: 32px 0; }

  .feature-row { grid-template-columns: 1fr; }

  .section { padding: 64px 0; }

  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__links { flex-wrap: wrap; gap: 32px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 28px; }
  .stats-bar__inner { grid-template-columns: 1fr; }
}
