:root {
  --bg: #0f0f0f;
  --bg-card: #161616;
  --bg-card-hover: #1e1e1e;
  --fg: #f0f0f0;
  --fg-muted: #888;
  --accent: #b4f23a;
  --accent-dim: rgba(180, 242, 58, 0.1);
  --border: #2a2a2a;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.header-nav {
  display: flex;
  gap: 2rem;
}
.header-nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--fg); }

/* HERO */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  text-align: left;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(180,242,58,0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* FLOW DIAGRAM */
.hero-flow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.flow-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.7rem 1.2rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
}
.flow-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 6px;
}
.flow-arrow {
  color: #333;
  flex-shrink: 0;
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.tagline-sep { color: #333; }

/* STATS */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item {
  padding: 2.5rem 2rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.stat-sub {
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.5;
  max-width: 160px;
  margin: 0 auto;
}
.stat-divider {
  width: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* SECTION LABELS */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* WORKFLOW */
.workflow-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}
.wf-step {
  background: var(--bg);
  padding: 2rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: background 0.2s;
}
.wf-step:hover { background: var(--bg-card); }
.wf-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.wf-content h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.wf-content p {
  font-size: 0.825rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* FEATURES */
.features-section {
  background: var(--bg-card);
  padding: 5rem 2rem;
}
.features-section .section-headline,
.features-section .section-sub {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.features-section .section-headline { padding: 0 2rem; }
.features-section .section-sub { padding: 0 2rem; margin-bottom: 3rem; }
.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}
.feature-card {
  background: var(--bg-card);
  padding: 2rem;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg-card-hover); }
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.6rem;
}
.feature-card p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* PRICING */
.pricing-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: center;
}
.pricing-section .section-headline,
.pricing-section .section-sub {
  text-align: center;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: left;
  margin: 3rem 0 2rem;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  transition: border-color 0.2s;
}
.pricing-card:hover { border-color: #3a3a3a; }
.pricing-card.popular {
  border-color: var(--accent);
  background: #12120a;
}
.popular-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
}
.plan-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.plan-price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.plan-price span {
  font-size: 1rem;
  color: var(--fg-muted);
  font-weight: 400;
}
.plan-tag {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.plan-features li {
  font-size: 0.85rem;
  color: var(--fg-muted);
  padding-left: 1.2rem;
  position: relative;
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.pricing-footer {
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* CLOSING */
.closing-section {
  background: linear-gradient(135deg, #0f0f0f 0%, #0d1300 100%);
  border-top: 1px solid #1f1f00;
  padding: 6rem 2rem;
}
.closing-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.closing-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.closing-inner p {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.closing-inner p:last-child {
  color: var(--fg);
  font-weight: 500;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}
.footer-copy {
  font-size: 0.75rem;
  color: #444;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-divider { display: none; }
  .workflow-steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-flow { gap: 0.6rem; }
  .flow-arrow { display: none; }
  .header-nav { gap: 1rem; }
}

@media (max-width: 600px) {
  .stats-row { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 2.4rem; }
  .site-header { padding: 0; }
  .header-inner { padding: 1rem; }
  .header-nav a { font-size: 0.8rem; }
}

/* PORTAL */
.portal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.portal-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.portal-title {
  text-align: center;
  margin-bottom: 3rem;
}
.portal-title h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.portal-subtitle {
  color: var(--fg-muted);
  font-size: 1rem;
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}
.metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.metric-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.metric-trend {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}
.trend-up {
  color: #22c55e;
  background: rgba(34,197,94,0.1);
}
.trend-down {
  color: #ef4444;
  background: rgba(239,68,68,0.1);
}
.metric-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 60px;
}
.metric-bar {
  flex: 1;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  min-height: 4px;
}
.portal-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.portal-footer a {
  color: var(--accent);
  text-decoration: none;
}
.token-indicator {
  font-size: 0.75rem;
  color: var(--fg-muted);
  background: var(--bg-card);
  padding: 0.25rem 0.6rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border);
}

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

@media (max-width: 600px) {
  .portal-grid { grid-template-columns: 1fr; }
  .portal-main { padding: 2rem 1rem; }
}