:root {
  --bg: #05070f;
  --bg-elevated: #0a0e1a;
  --surface: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.08);
  --text: #e8ecf4;
  --text-muted: #8b95a8;
  --accent: #5eead4;
  --accent-2: #818cf8;
  --accent-3: #c084fc;
  --green: #34d399;
  --amber: #fbbf24;
  --radius: 16px;
  --font: 'Inter', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
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;
}

/* Ambient */
.bg-ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(94,234,212,0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(129,140,248,0.1), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(192,132,252,0.08), transparent);
}
.bg-noise {
  position: absolute; inset: 0; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Glass */
.glass {
  background: rgba(10,14,26,0.65);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px;
  background: linear-gradient(135deg, #5eead4, #2dd4bf);
  color: #042f2e; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 0 0 0 rgba(94,234,212,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -6px rgba(94,234,212,0.45);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 12px;
  background: transparent; color: var(--text);
  border: 1px solid var(--border); font-weight: 500;
  transition: all 0.25s ease;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }
.btn-ghost {
  background: transparent; border: 1px solid transparent; color: var(--text-muted);
  padding: 8px 14px; border-radius: 8px; font-size: 14px; cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 16px; width: 100%; justify-content: center; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0; transition: all 0.3s;
}
.nav.scrolled {
  background: rgba(5,7,15,0.8); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px rgba(94,234,212,0.35);
}
.logo-text { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.logo-text span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* HERO */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; max-width: 1280px; margin: 0 auto;
  padding: 120px 24px 80px; gap: 40px;
}
.hero-left { max-width: 540px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(94,234,212,0.08); border: 1px solid rgba(94,234,212,0.2);
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent);
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent); animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; } 50% { opacity: 0.4; }
}
.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 600; line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(120deg, #5eead4 0%, #818cf8 45%, #c084fc 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradient-shift 6s ease infinite;
}
@keyframes gradient-shift {
  0%,100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
.hero-sub { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 36px; max-width: 440px; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 40px; }
.stat-value { display: block; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* Globe */
.hero-right { position: relative; height: 560px; }
.globe-wrap { position: relative; width: 100%; height: 100%; }
#globeViz { width: 100%; height: 100%; }
.float-label {
  position: absolute; padding: 6px 12px; border-radius: 8px;
  background: rgba(10,14,26,0.75); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted); backdrop-filter: blur(8px);
  pointer-events: none; opacity: 0; animation: float-in 8s ease-in-out infinite;
}
.fl-1 { top: 12%; left: 8%; animation-delay: 0s; }
.fl-2 { top: 22%; right: 6%; animation-delay: 1.5s; }
.fl-3 { bottom: 28%; left: 4%; animation-delay: 3s; }
.fl-4 { top: 48%; right: 2%; animation-delay: 2s; color: var(--green); }
.fl-5 { bottom: 18%; right: 12%; animation-delay: 4s; color: var(--accent); }
.fl-6 { bottom: 8%; left: 18%; animation-delay: 5.5s; color: var(--accent-2); }
@keyframes float-in {
  0%,15% { opacity: 0; transform: translateY(8px); }
  25%,70% { opacity: 1; transform: translateY(0); }
  85%,100% { opacity: 0; transform: translateY(-6px); }
}

/* Create card */
.create-section { max-width: 640px; margin: -40px auto 120px; padding: 0 24px; position: relative; z-index: 10; }
.create-card { padding: 36px; }
.create-header h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 6px; }
.create-header p { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.input-row { display: flex; gap: 12px; margin-bottom: 20px; }
.input-group { flex: 1; }
.input-group input {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text); font-size: 16px; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-group input:focus {
  outline: none; border-color: rgba(94,234,212,0.5);
  box-shadow: 0 0 0 3px rgba(94,234,212,0.12);
}
.select-wrap { position: relative; min-width: 140px; }
.select-wrap select {
  width: 100%; padding: 14px 36px 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text); font-size: 15px; appearance: none; cursor: pointer;
}
.select-chevron { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-muted); }
.preview-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px; border-radius: 12px; background: rgba(255,255,255,0.02);
  margin-bottom: 24px;
}
.preview-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.preview-domain { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.preview-dot { color: var(--text-muted); }
.avail-status { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.avail-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.avail-status.checking .avail-dot { background: var(--amber); animation: pulse-dot 1s infinite; }
.avail-status.available .avail-dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.price-amount { font-size: 1.75rem; font-weight: 600; }
.price-period { color: var(--text-muted); font-size: 14px; }

/* Sections common */
.section-header { text-align: center; max-width: 560px; margin: 0 auto 64px; }
.section-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); }

/* How it works */
.how-section { padding: 100px 24px; max-width: 1000px; margin: 0 auto; }
.journey { position: relative; }
.journey-track { position: absolute; left: 28px; top: 0; bottom: 0; width: 2px; }
.journey-line {
  width: 100%; height: 0%; background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  border-radius: 2px; transition: height 1.2s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 0 12px rgba(94,234,212,0.4);
}
.steps { display: flex; flex-direction: column; gap: 48px; }
.step {
  display: flex; gap: 28px; opacity: 0; transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.22,1,0.36,1);
}
.step.visible { opacity: 1; transform: translateY(0); }
.step-num {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; color: var(--accent);
  background: rgba(94,234,212,0.08); border: 1px solid rgba(94,234,212,0.2);
}
.step-content h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step-content p { color: var(--text-muted); font-size: 15px; max-width: 420px; }

/* Network */
.network-section { padding: 100px 24px; max-width: 1100px; margin: 0 auto; }
.network-viz {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.parent-node { text-align: center; }
.parent-core {
  display: inline-block; padding: 16px 28px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(94,234,212,0.15), rgba(129,140,248,0.12));
  border: 1px solid rgba(94,234,212,0.25); font-weight: 600; font-size: 1.1rem;
  margin-bottom: 28px; position: relative;
  box-shadow: 0 0 30px rgba(94,234,212,0.15);
}
.sub-nodes { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.sub-node {
  padding: 8px 16px; border-radius: 8px; font-size: 13px; color: var(--text-muted);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  opacity: 0; transform: translateY(12px) scale(0.96);
  transition: all 0.5s cubic-bezier(0.22,1,0.36,1);
  transition-delay: calc(var(--i) * 0.08s);
}
.parent-node.visible .sub-node { opacity: 1; transform: translateY(0) scale(1); }

/* Pricing */
.pricing-section { padding: 100px 24px; }
.pricing-card {
  max-width: 420px; margin: 0 auto; padding: 48px 40px; position: relative;
  overflow: hidden; transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s;
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.6), 0 0 40px rgba(94,234,212,0.12);
}
.pricing-glow {
  position: absolute; inset: -50%; 
  background: radial-gradient(circle at 50% 0%, rgba(94,234,212,0.15), transparent 55%);
  pointer-events: none; opacity: 0.7; transition: opacity 0.4s;
}
.pricing-card:hover .pricing-glow { opacity: 1; }
.pricing-badge {
  position: absolute; top: 20px; right: 20px;
  padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 600;
  background: rgba(94,234,212,0.15); color: var(--accent);
}
.pricing-amount { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.pricing-amount .currency { font-size: 1.5rem; color: var(--text-muted); }
.pricing-amount .number { font-size: 4rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.pricing-amount .period { font-size: 1rem; color: var(--text-muted); }
.pricing-desc { color: var(--text-muted); margin-bottom: 32px; font-size: 14px; }
.pricing-features { list-style: none; margin-bottom: 36px; }
.pricing-features li {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pricing-features li svg { color: var(--accent); flex-shrink: 0; }

/* Dashboard */
.dashboard-section { padding: 100px 24px 120px; max-width: 900px; margin: 0 auto; }
.dashboard-frame { overflow: hidden; }
.dash-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; border-bottom: 1px solid var(--border);
}
.dash-tabs { display: flex; gap: 4px; }
.dash-tab {
  padding: 8px 16px; border-radius: 8px; background: transparent;
  border: none; color: var(--text-muted); font-size: 13px; cursor: pointer;
}
.dash-tab.active { background: rgba(255,255,255,0.06); color: var(--text); }
.status-pill { font-size: 12px; color: var(--green); }
.dash-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.domain-card {
  padding: 20px; border-radius: 12px; background: rgba(255,255,255,0.02);
  border: 1px solid var(--border); transition: border-color 0.25s;
}
.domain-card:hover { border-color: rgba(255,255,255,0.12); }
.dc-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.dc-name { font-weight: 600; font-size: 1.05rem; }
.dc-statuses { display: flex; flex-wrap: wrap; gap: 8px; }
.status-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
}
.status-tag.green { background: rgba(52,211,153,0.1); color: var(--green); }
.status-tag.amber { background: rgba(251,191,36,0.1); color: var(--amber); }
.pulse {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: pulse-dot 2s infinite;
}
.dc-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 16px; }
.meta-label { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.meta-value { font-size: 14px; }
.dc-actions { display: flex; gap: 8px; }
.mini-network {
  margin-top: 8px; padding: 20px; border-radius: 12px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
}
.mn-title { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.mn-viz { height: 80px; position: relative; overflow: hidden; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 64px 24px 32px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 16px; max-width: 280px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h4 { font-size: 13px; margin-bottom: 16px; color: var(--text); }
.footer-links a { display: block; color: var(--text-muted); text-decoration: none; font-size: 14px; margin-bottom: 10px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }

/* Toast */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 14px 20px; border-radius: 12px; background: rgba(10,14,26,0.9);
  border: 1px solid var(--border); backdrop-filter: blur(12px);
  font-size: 14px; transform: translateX(120%); opacity: 0;
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
}
.toast.show { transform: translateX(0); opacity: 1; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .gradient-text { animation: none; }
  .float-label { animation: none; opacity: 0.7; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-left { max-width: 100%; margin: 0 auto; }
  .hero-ctas, .hero-stats { justify-content: center; }
  .hero-right { height: 380px; order: -1; }
  .nav-links { display: none; }
  .network-viz { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr; }
  }
