:root {
  --bg-color: #0d1117;
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --accent: #58a6ff;
  --glass-bg: rgba(22, 27, 34, 0.8);
  --glass-border: rgba(48, 54, 61, 1);
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#safe-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  background: var(--bg-color);
  color: var(--text-primary);
  padding: 0;
  z-index: 1;
  filter: blur(8px);
  transition: filter 0.5s ease;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: -0.5px;
}
nav a {
  margin-left: 25px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}
nav a:hover {
  color: var(--accent);
}

.hero {
  text-align: center;
  padding: 100px 20px;
  background: radial-gradient(circle at top, #161b22 0%, #0d1117 100%);
  margin-bottom: 0;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #fff, #58a6ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 30px;
}

.cta-group {
  display: flex;
  gap: 15px;
  justify-content: center;
}
button {
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
button.primary {
  background: var(--accent);
  color: #fff;
}
button.primary:hover {
  background: #4091f7;
  transform: translateY(-2px);
}
button.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
button.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.features,
.stats {
  display: flex;
  gap: 30px;
  justify-content: center;
  padding: 60px 50px;
  flex-wrap: wrap;
  background: #0d1117;
}
.card {
  background: #161b22;
  padding: 40px;
  border-radius: 12px;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}
.stats {
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.stat-item {
  text-align: center;
  min-width: 200px;
}
.stat-item strong {
  display: block;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 5px;
}
.stat-item span {
  color: var(--text-secondary);
  font-size: 1rem;
}

.card h3 {
  color: var(--text-primary);
  margin-bottom: 15px;
  font-size: 1.25rem;
}
.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.about {
  max-width: 900px;
  margin: 80px auto;
  text-align: center;
  padding: 0 20px;
}
.about h2 {
  font-size: 2.25rem;
  margin-bottom: 25px;
}
.about p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.1rem;
}

.contact {
  background: #161b22;
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}
.contact h2 {
  color: var(--text-primary);
  margin-bottom: 50px;
  font-size: 2rem;
}
.contact-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}
.contact-item {
  text-align: left;
}
.contact-item strong {
  display: block;
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.2rem;
}
.contact-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

footer {
  text-align: center;
  padding: 50px 20px;
  background: #0d1117;
  border-top: 1px solid var(--glass-border);
}
.footer-links {
  margin-bottom: 20px;
}
.footer-links a {
  margin: 0 15px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--accent);
}
footer p {
  color: #555;
  font-size: 0.85rem;
}

.gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (prefers-color-scheme: dark) {
  .gate-overlay {
    background: #1a1a1a;
  }
}

.gate-box {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  width: auto;
  max-width: 100%;
}

.gate-box h2 {
  margin-bottom: 10px;
  color: #333;
}
.gate-box p {
  margin-bottom: 20px;
  color: #666;
  font-size: 0.9rem;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, #1a1a1a 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: -1;
  opacity: 0.5;
}

.gate-container {
  background: transparent;
  border: none;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: none;
  position: relative;
}
