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

:root {
  --bg: #0a0a0f;
  --bg-alt: #0f1118;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ececf1;
  --text-muted: #8e8ea0;
  --text-dim: #6b6b7b;
  --terra-blue: #3b82f6;
  --terra-green: #22c55e;
  --terra-glow: rgba(59, 130, 246, 0.35);
  --sol-orange: #f97316;
  --luna-gray: #94a3b8;
  --accent: #10a37f;
  --accent-hover: #0d8a6a;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg-stars {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 90%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 10% 60%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.3) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-title {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-x {
  font-size: 1rem !important;
  font-weight: 700 !important;
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 0.9375rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(16, 163, 127, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 10, 15, 0.7) 0%, rgba(10, 10, 15, 0.85) 50%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 40%, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px 100px;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 28px;
  box-shadow: 0 0 60px var(--terra-glow), 0 0 120px rgba(59, 130, 246, 0.15);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-badge {
  /* display: inline-block; */
  width: 300px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.text-terra {
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terra-blue);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Family Grid */
.family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.family-card {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.family-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.family-card.featured {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.06);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.1);
}

.family-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  background: var(--terra-blue);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
}

.family-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1;
}

.family-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.family-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.family-tier {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.family-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.family-price {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dim);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.family-sol { border-top: 3px solid var(--sol-orange); }
.family-terra { border-top: 3px solid var(--terra-blue); }
.family-luna { border-top: 3px solid var(--luna-gray); }

/* Detail Grid */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.detail-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.detail-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: var(--bg-card-hover);
}

.detail-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 10px;
  margin-bottom: 18px;
  color: var(--terra-blue);
}

.detail-icon svg {
  width: 22px;
  height: 22px;
}

.detail-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.detail-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Compare Block */
.compare-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.compare-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.compare-text p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

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

.compare-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.compare-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--terra-green);
  border-radius: 50%;
}

.link-arrow {
  color: var(--terra-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.link-arrow:hover {
  color: #93c5fd;
}

.compare-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.compare-banner {
  width: 100%;
  display: block;
}

.compare-highlight {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.compare-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.compare-highlight strong {
  display: block;
  font-size: 0.9375rem;
}

.compare-highlight span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Pricing Table */
.pricing-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.pricing-table th,
.pricing-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.pricing-table th {
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.pricing-table td {
  color: var(--text-muted);
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-highlight {
  background: rgba(59, 130, 246, 0.08) !important;
}

.pricing-highlight td {
  color: var(--text) !important;
}

.model-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.model-sol { background: var(--sol-orange); }
.model-terra { background: var(--terra-blue); }
.model-luna { background: var(--luna-gray); }

.pricing-note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* Token Section */
.token-section {
  padding-bottom: 100px;
}

.token-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.token-bg {
  position: absolute;
  inset: 0;
}

.token-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.token-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.92) 0%, rgba(10, 10, 15, 0.85) 100%);
}

.token-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 64px 32px;
  max-width: 640px;
  margin: 0 auto;
}

.token-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 0 40px var(--terra-glow);
}

.token-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.token-desc {
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contract-box {
  margin-bottom: 32px;
  text-align: left;
}

.contract-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.contract-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contract-row code {
  flex: 1;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.8125rem;
  color: var(--text-muted);
  word-break: break-all;
  line-height: 1.5;
}

.btn-copy {
  flex-shrink: 0;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8125rem;
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-copy svg {
  width: 16px;
  height: 16px;
}

.btn-copy.copied {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: var(--terra-green);
}

.hidden {
  display: none !important;
}

.btn-copy .icon-copy,
.btn-copy .icon-check {
  display: inline-block;
  vertical-align: middle;
}

.btn-copy.copied .icon-copy { display: none; }
.btn-copy.copied .icon-check { display: inline-block; }

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

/* Timeline */
.timeline {
  max-width: 640px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item.done .timeline-dot {
  background: var(--terra-green);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.timeline-item.active .timeline-dot {
  background: var(--terra-blue);
  box-shadow: 0 0 12px var(--terra-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 12px var(--terra-glow); }
  50% { box-shadow: 0 0 24px rgba(59, 130, 246, 0.6); }
}

.timeline-dot {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--border-strong);
  margin-top: 4px;
}

.timeline-content time {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.timeline-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}

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

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 960px) {
  .family-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .compare-block {
    grid-template-columns: 1fr;
  }

  .compare-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    background: rgba(10, 10, 15, 0.97);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links .btn {
    margin-top: 12px;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .stat {
    padding: 0;
  }

  .contract-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-copy {
    width: 100%;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 12px 16px;
    font-size: 0.8125rem;
  }
}
