/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg2: #0f0f1a;
  --bg3: #141420;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --purple-glow: rgba(124,58,237,0.3);
  --white: #ffffff;
  --grey: #94a3b8;
  --grey2: #475569;
  --border: rgba(255,255,255,0.07);
  --radius: 14px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-right: auto;
}

.nav-links a {
  color: var(--grey);
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 0 24px var(--purple-glow);
}
.btn-primary:hover {
  background: #6d28d9;
  box-shadow: 0 0 32px rgba(124,58,237,0.5);
  transform: translateY(-1px);
}

.btn-nav {
  background: var(--purple);
  color: var(--white);
  font-size: 13px;
  padding: 8px 16px;
}
.btn-nav:hover { background: #6d28d9; }

.btn-ghost {
  background: transparent;
  color: var(--grey);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--white); border-color: var(--grey2); }

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 12px;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  padding: 120px 24px 80px;
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 60px;
}

.hero-inner {
  flex: 1;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--purple-light);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.gradient {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--grey);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 20px; font-weight: 700; color: var(--white); }
.stat-label { font-size: 12px; color: var(--grey); }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* ── BROWSER MOCK ── */
.hero-visual { flex: 1; min-width: 0; }

.browser-mock {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.1);
}

.browser-bar {
  background: var(--bg3);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.browser-dots { display: flex; gap: 6px; }
.browser-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--grey2);
}
.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #22c55e; }

.browser-url {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--grey);
  flex: 1;
}

.browser-body { padding: 20px; }

.mock-servers-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.rohop-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.rohop-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-light);
}

.rohop-select {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  font-size: 12px;
  padding: 4px 8px;
  flex: 1;
  cursor: pointer;
}

.rohop-go {
  background: var(--purple);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.rohop-status {
  font-size: 11px;
  color: #22c55e;
  font-weight: 600;
  white-space: nowrap;
}

.mock-server-list { display: flex; flex-direction: column; gap: 8px; }

.mock-server {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

.mock-server-ping {
  font-size: 11px;
  font-weight: 700;
  min-width: 40px;
}
.mock-server-ping.good { color: #22c55e; }
.mock-server-ping.ok { color: #f59e0b; }
.mock-server-ping.bad { color: #ef4444; }

.mock-server-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.mock-server-bar div {
  height: 100%;
  background: var(--purple);
  border-radius: 3px;
}

.mock-server-count {
  font-size: 11px;
  color: var(--grey);
  min-width: 44px;
  text-align: right;
}

/* ── SECTIONS SHARED ── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 16px;
}

.section-inner h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 60px;
}

/* ── FEATURES ── */
.features { background: var(--bg2); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(124,58,237,0.3);
  transform: translateY(-2px);
}

.feature-icon { font-size: 28px; margin-bottom: 16px; }

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p { color: var(--grey); font-size: 14px; line-height: 1.7; }

/* ── HOW IT WORKS ── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.step { flex: 1; }

.step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-light);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p { color: var(--grey); font-size: 14px; line-height: 1.7; }

.step-arrow {
  font-size: 24px;
  color: var(--grey2);
  padding-top: 48px;
  flex-shrink: 0;
}

/* ── INSTALL CTA ── */
.install { background: var(--bg2); }

.install-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.install-logo {
  filter: drop-shadow(0 0 20px var(--purple-glow));
}

.install-inner h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 0;
}

.install-inner p { color: var(--grey); font-size: 18px; }

.install-note { font-size: 13px; color: var(--grey2); margin-top: -8px; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 24px;
  margin-right: auto;
}

.footer-links a { color: var(--grey); font-size: 14px; }
.footer-links a:hover { color: var(--white); }

.footer-copy { font-size: 13px; color: var(--grey2); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding-top: 100px;
    gap: 40px;
  }
  .nav-links { display: none; }
  .steps { flex-direction: column; }
  .step-arrow { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .footer-inner { flex-direction: column; gap: 16px; }
  .footer-links { margin-right: 0; }
}
