:root {
  --bg: #080b12;
  --bg-elev: #0f1522;
  --bg-card: rgba(17, 24, 39, 0.72);
  --border: rgba(148, 163, 184, 0.14);
  --border-hover: rgba(9, 173, 211, 0.45);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --cyan: #09add3;
  --cyan-glow: rgba(9, 173, 211, 0.22);
  --emerald: #10b981;
  --amber: #f59e0b;
  --orange: #f97316;
  --red: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(9, 173, 211, 0.16), transparent 65%),
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(16, 185, 129, 0.08), transparent 60%),
    linear-gradient(to right, rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 11, 18, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  color: #041016;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 0 24px var(--cyan-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.hosting-pill {
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.08);
}

.nav-link.hosting-pill:hover {
  background: rgba(249, 115, 22, 0.18);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-pill.online {
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.status-pill.online .status-dot {
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.status-pill.offline {
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.status-pill.offline .status-dot {
  background: var(--red);
}

/* Hero */
.hero {
  padding: 76px 0 52px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #67e8f9;
  background: rgba(9, 173, 211, 0.1);
  border: 1px solid rgba(9, 173, 211, 0.28);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, #67e8f9 55%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 650px;
  margin: 0 auto 30px;
  font-size: 1.08rem;
  color: var(--text-muted);
}

/* IP Copy Box */
.ip-box-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.ip-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 18px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.ip-code {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #0284c7);
  color: #fff;
  box-shadow: 0 6px 20px rgba(9, 173, 211, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 8px 26px rgba(9, 173, 211, 0.44);
  transform: translateY(-1px);
}

.btn-hosting {
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #fff;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.25);
}

.btn-hosting:hover {
  box-shadow: 0 8px 26px rgba(249, 115, 22, 0.42);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-disabled {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.72;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* Sections & Grids */
.section {
  padding: 42px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.card.card-mc {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.09), rgba(15, 23, 42, 0.86) 55%);
}

.card.card-wow {
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.07), rgba(15, 23, 42, 0.86) 55%);
}

.card.card-hosting {
  border-color: rgba(249, 115, 22, 0.32);
  background: linear-gradient(160deg, rgba(249, 115, 22, 0.1), rgba(15, 23, 42, 0.86) 55%);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}

.badge-soon {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-partner {
  color: #fdba74;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

/* Steps & Rules */
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: #67e8f9;
  background: rgba(9, 173, 211, 0.12);
  border: 1px solid rgba(9, 173, 211, 0.3);
  margin-bottom: 14px;
}

.rule-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.rule-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--cyan);
  font-size: 0.92rem;
  padding-top: 2px;
}

.rule-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.rule-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(9, 173, 211, 0.12);
  border: 1px solid rgba(9, 173, 211, 0.25);
  color: #67e8f9;
}

/* Footer */
.footer {
  margin-top: 64px;
  padding: 28px 0 38px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--text);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: #0f172a;
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #ecfdf5;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    background: rgba(8, 11, 18, 0.96);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Language picker and navbar adjustments */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-picker-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 30px 7px 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.lang-select:hover,
.lang-select:focus {
  border-color: var(--cyan);
  background-color: rgba(255, 255, 255, 0.1);
}

.lang-select option {
  background: #0d121f;
  color: #f1f5f9;
  padding: 8px;
}


/* Calculator Hub Card & Button */
.card-calchub {
  border-color: rgba(59, 130, 246, 0.22);
}

.card-calchub:hover {
  border-color: rgba(59, 130, 246, 0.55);
}

.badge-calchub {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.32);
}

.btn-calchub {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-calchub:hover {
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}
