: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;
}

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: #f0f2f5; /* Light gray for professionalism */
  z-index: 9999; /* Ensure it's on top */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

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

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(88, 166, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@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;
}

/* Enhanced Styles */
.section-alt {
  background: #161b22;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.process,
.pricing,
.testimonials,
.faq {
  padding: 80px 20px;
  text-align: center;
}

.process h2,
.pricing h2,
.testimonials h2,
.faq h2 {
  font-size: 2.25rem;
  margin-bottom: 50px;
  color: var(--text-primary);
}

/* Process Steps */
.process-steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.step {
  flex: 1;
  min-width: 250px;
  max-width: 280px;
}
.step-icon {
  width: 60px;
  height: 60px;
  background: var(--glass-bg);
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 0 15px rgba(88, 166, 255, 0.2);
}
.step h3 {
  color: var(--text-primary);
  margin-bottom: 15px;
  font-size: 1.25rem;
}
.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Pricing */
.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.pricing-card {
  background: #161b22; /* Fallback */
  background: linear-gradient(
    180deg,
    rgba(22, 27, 34, 0.8) 0%,
    rgba(13, 17, 23, 1) 100%
  );
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 40px 30px;
  flex: 1;
  min-width: 300px; /* Slightly wider */
  max-width: 380px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s,
    border-color 0.3s;
}
.pricing-card.featured {
  border-color: var(--accent);
  transform: scale(1.05);
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.pricing-card:hover {
  transform: translateY(-10px);
}
.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}
.pricing-card h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 15px;
}
.price {
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 30px;
}
.price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}
.features-list {
  list-style: none;
  text-align: left;
  margin-bottom: 30px;
  flex-grow: 1; /* Pushes button down */
}
.features-list li {
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid rgba(48, 54, 61, 0.5);
}
.features-list li:last-child {
  border-bottom: none;
}
.features-list li::before {
  content: "✓";
  color: var(--accent);
  margin-right: 10px;
  font-weight: bold;
}

/* Testimonials */
.testimonial-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}
.testimonial-item {
  background: var(--glass-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  flex: 1;
  min-width: 300px;
  text-align: left;
}
.testimonial-item p {
  color: #d0d7de;
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.6;
}
.author {
  color: var(--accent);
  font-weight: 600;
  text-align: right;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}
.faq-item {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--glass-border);
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-item h3 {
  color: var(--text-primary);
  margin-bottom: 10px;
  font-size: 1.15rem;
}
.faq-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* News Section */
.news {
  padding: 80px 20px;
  text-align: center;
  background: #0d1117;
}

.news h2 {
  font-size: 2.25rem;
  margin-bottom: 50px;
  color: var(--text-primary);
}

.news-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.news-item {
  background: #161b22;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 30px;
  flex: 1;
  min-width: 300px;
  text-align: left;
  transition: transform 0.3s, border-color 0.3s;
}

.news-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.news-item span {
  font-size: 0.85rem;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.news-item h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.news-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
