:root {
  --bg-color: #0f172a;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent: #38bdf8;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --gradient: linear-gradient(135deg, #38bdf8, #818cf8);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  background-image: radial-gradient(circle at top right, rgba(56, 189, 248, 0.15), transparent 400px),
                    radial-gradient(circle at bottom left, rgba(129, 140, 248, 0.1), transparent 400px);
  background-attachment: fixed;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #7dd3fc;
}

/* Header & Nav */
header {
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-primary);
  font-weight: 500;
}

nav a:hover {
  color: var(--accent);
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 5%;
}

.hero {
  text-align: center;
  padding: 4rem 0;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Cards (Glassmorphism) */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--gradient);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: opacity 0.3s;
}

.btn:hover {
  opacity: 0.9;
  color: #fff;
}

/* Text heavy sections (for AdSense approval) */
.article-section {
  margin-top: 5rem;
}

.article-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

.article-section h3 {
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
  color: var(--accent);
}

.article-section p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Footer */
footer {
  margin-top: 5rem;
  padding: 3rem 5%;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

footer a {
  margin: 0 10px;
}

/* Ad Placement Placeholder */
.ad-container {
  margin: 3rem 0;
  text-align: center;
  min-height: 100px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
    display: none; /* simple mobile nav override */
  }
  .hero h1 {
    font-size: 2.5rem;
  }
}
