@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg: hsl(220, 20%, 7%);
  --fg: hsl(210, 20%, 92%);
  --card: hsl(220, 18%, 10%);
  --primary: hsl(190, 100%, 50%);
  --primary-fg: hsl(220, 20%, 7%);
  --secondary: hsl(220, 15%, 16%);
  --muted: hsl(215, 15%, 55%);
  --border: hsl(220, 15%, 18%);
  --accent: hsl(280, 80%, 60%);
  --radius: 0.75rem;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 768px; margin: 0 auto; padding: 0 2rem; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: hsla(220, 20%, 7%, 0.8);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem; max-width: 1400px; margin: 0 auto;
}
.logo { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1.25rem; letter-spacing: 0.1em; }
.logo-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav a {
  font-family: 'Rajdhani', sans-serif; font-size: 0.875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted);
  transition: color 0.2s;
}
.nav a:hover { color: var(--primary); }
.mobile-toggle { display: none; background: none; border: none; color: var(--fg); font-size: 1.5rem; cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--bg); padding: 1rem 2rem; }
.mobile-nav a { display: block; padding: 0.5rem 0; font-family: 'Rajdhani', sans-serif; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; position: absolute; top: 0; left: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), hsla(220,20%,7%,0.8), transparent); }
.hero-content { position: relative; padding: 5rem 2rem; max-width: 1400px; margin: 0 auto; }
.hero-label { font-family: 'Rajdhani', sans-serif; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3em; color: var(--primary); }
.hero-title { font-family: 'Orbitron', sans-serif; font-size: 2rem; font-weight: 700; line-height: 1.2; margin-top: 1rem; max-width: 768px; }
.hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-shadow: none;
}
.hero-desc { margin-top: 1rem; color: var(--muted); max-width: 560px; font-size: 1.05rem; }

/* Section heading */
.section-heading {
  font-family: 'Orbitron', sans-serif; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.3em; color: var(--primary); margin-bottom: 1.5rem;
}

/* Cards grid */
.cards-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover { border-color: hsla(190, 100%, 50%, 0.3); box-shadow: 0 0 20px hsla(190, 100%, 50%, 0.15); }
.card-img { aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.25rem; }
.card-category {
  display: inline-block; background: hsla(190, 100%, 50%, 0.1); color: var(--primary);
  font-family: 'Rajdhani', sans-serif; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; padding: 0.125rem 0.5rem; border-radius: 0.25rem;
}
.card-title {
  font-family: 'Orbitron', sans-serif; font-size: 0.875rem; font-weight: 600;
  line-height: 1.4; margin-top: 0.5rem; color: var(--fg); transition: color 0.2s;
}
.card:hover .card-title { color: var(--primary); }
.card-excerpt { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: 1rem; font-size: 0.75rem; color: var(--muted); display: flex; gap: 0.75rem; }

/* Featured */
.featured-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s;
}
.featured-card:hover { border-color: hsla(190, 100%, 50%, 0.3); box-shadow: 0 0 20px hsla(190, 100%, 50%, 0.15); }
@media (min-width: 768px) { .featured-card { display: flex; } }
.featured-img { aspect-ratio: 16/9; overflow: hidden; }
@media (min-width: 768px) { .featured-img { width: 50%; aspect-ratio: auto; } }
.featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.featured-card:hover .featured-img img { transform: scale(1.05); }
.featured-body { padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 768px) { .featured-body { width: 50%; padding: 2.5rem; } }
.featured-title { font-family: 'Orbitron', sans-serif; font-size: 1.25rem; font-weight: 700; margin-top: 0.75rem; transition: color 0.2s; }
.featured-card:hover .featured-title { color: var(--primary); }

/* Newsletter */
.newsletter { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 2rem; text-align: center; }
.newsletter h2 { font-family: 'Orbitron', sans-serif; font-size: 1.25rem; font-weight: 700; }
.newsletter p { color: var(--muted); margin-top: 0.5rem; max-width: 32rem; margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 32rem; margin: 1.5rem auto 0; }
@media (min-width: 640px) { .newsletter-form { flex-direction: row; } }
.newsletter-input {
  flex: 1; padding: 0.625rem 1rem; border: 1px solid var(--border);
  background: var(--secondary); color: var(--fg); border-radius: 0.5rem;
  font-size: 0.875rem; outline: none;
}
.newsletter-input:focus { border-color: var(--primary); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--primary-fg); border: none; border-radius: 0.5rem;
  padding: 0.625rem 1.5rem; font-family: 'Rajdhani', sans-serif;
  font-size: 0.875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; cursor: pointer; transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--card); }
.footer-inner { padding: 3rem 2rem; max-width: 1400px; margin: 0 auto; display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: repeat(4, 1fr); } }
.footer h4 { font-family: 'Orbitron', sans-serif; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--primary); margin-bottom: 0.75rem; }
.footer a, .footer p { font-size: 0.875rem; color: var(--muted); display: block; line-height: 1.8; }
.footer a:hover { color: var(--fg); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.5rem 2rem; text-align: center; font-size: 0.75rem; color: var(--muted); max-width: 1400px; margin: 0 auto; }

/* Article page */
.article-hero { position: relative; aspect-ratio: 21/9; overflow: hidden; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.article-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), hsla(220,20%,7%,0.7), transparent); }
.article-content { padding: 2.5rem 0; }
.article-content h1 { font-family: 'Orbitron', sans-serif; font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-top: 0.75rem; }
@media (min-width: 768px) { .article-content h1 { font-size: 2rem; } }
.article-meta { margin-top: 1rem; font-size: 0.875rem; color: var(--muted); display: flex; gap: 0.75rem; }
.prose { margin-top: 2rem; color: var(--muted); line-height: 1.8; }
.prose h2 { font-family: 'Orbitron', sans-serif; font-size: 1.125rem; font-weight: 600; color: var(--fg); margin: 2rem 0 0.75rem; }
.prose h3 { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 600; color: var(--fg); margin: 1.5rem 0 0.5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin-bottom: 1rem; padding-left: 1.25rem; list-style: disc; }
.prose li { margin-bottom: 0.25rem; }
.prose strong { color: var(--fg); }
.prose a { color: var(--primary); }
.prose a:hover { text-decoration: underline; }

/* Legal pages */
.legal-section { margin-bottom: 1.5rem; }
.legal-section h2 { font-family: 'Orbitron', sans-serif; font-size: 1.125rem; font-weight: 600; color: var(--fg); margin-bottom: 0.5rem; }
.legal-section p, .legal-section li { font-size: 0.875rem; color: var(--muted); line-height: 1.8; }
.legal-section ul { padding-left: 1.25rem; list-style: disc; margin-top: 0.5rem; }
.legal-section a { color: var(--primary); }
.legal-section a:hover { text-decoration: underline; }

/* Contact form */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; color: var(--muted); margin-bottom: 0.25rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.625rem 1rem; border: 1px solid var(--border);
  background: var(--secondary); color: var(--fg); border-radius: 0.5rem;
  font-size: 0.875rem; font-family: inherit; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }

.info-card { border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.info-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.info-card .label { font-weight: 600; color: var(--fg); }
.info-card a { color: var(--primary); }

/* Responsive */
@media (max-width: 767px) {
  .nav { display: none; }
  .mobile-toggle { display: block; }
  .hero-title { font-size: 1.5rem; }
  .hero-content { padding: 3rem 1rem; }
}
