:root {
  --bg-main: #0e1217;
  --bg-secondary: #151b22;
  --text-main: #e6e9ee;
  --text-muted: #9aa4b2;
  --accent: #4c7dff;
  --border: #2a313b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ===========================
   Progressive Blur Background
   =========================== */

.background {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px at 20% 10%, #1a2230, transparent 60%),
    radial-gradient(700px at 80% 30%, #1d2636, transparent 65%),
    radial-gradient(600px at 50% 80%, #141b28, transparent 70%),
    var(--bg-main);
}

.background::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  mask-image: radial-gradient(
    circle at center,
    rgba(0,0,0,0) 35%,
    rgba(0,0,0,0.4) 60%,
    rgba(0,0,0,1) 100%
  );
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(14px);
  opacity: 0.35;
}

/* =========================== */

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: rgba(15, 20, 28, 0.75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.logo img {
  width: 28px;
  height: 28px;
}

nav {
  display: flex;
  gap: 10px;
}

.nav-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.nav-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
}

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.hero-content {
  max-width: 640px;
  background: rgba(14, 18, 23, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.hero p {
  line-height: 1.6;
  margin-bottom: 14px;
}

.muted {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-box {
  background: rgba(21, 27, 34, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  width: 100%;
  max-width: 360px;
}

.modal-box h2 {
  margin-top: 0;
}

label {
  display: block;
  margin-bottom: 12px;
}

input {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #0f141c;
  color: var(--text-main);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-actions button {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
}

.modal-actions .primary {
  background: var(--accent);
  border-color: var(--accent);
}

/* Responsive */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-content {
    padding: 20px;
  }
}
