:root {
  --bg: #0B0E1A;
  --surface: #141B2E;
  --surface-light: #1E2744;
  --text: #E8F4FF;
  --text-muted: #A5B4C8;
  --accent-cyan: #00F0FF;
  --accent-magenta: #FF4DFF;
  --accent-lime: #7CFF00;
  --neon-glow: 0 0 10px rgba(0, 240, 255, 0.5),
               0 0 20px rgba(255, 77, 255, 0.3);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--accent-magenta);
  text-shadow: 0 0 8px var(--accent-cyan);
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -1px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: var(--neon-glow);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-lime));
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--text);
  transition: 0.3s;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at 50% 30%, rgba(0,240,255,0.08) 0%, transparent 70%);
  padding: 2rem;
  text-align: center;
}

.hero-content {
  max-width: 820px;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 40px rgba(0, 240, 255, 0.6);
}

.hero p {
  font-size: 1.35rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 3.2rem;
  background: transparent;
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.4s cubic-bezier(0.23, 1.0, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: 0.6s;
}

.cta-button:hover {
  background: var(--accent-cyan);
  color: var(--bg);
  box-shadow: var(--neon-glow);
  transform: translateY(-3px);
}

.cta-button:hover::before {
  left: 250%;
}

/* Main Layout - Magazine Style */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3.5rem;
}

@media (max-width: 1024px) {
  .main-container {
    grid-template-columns: 1fr;
  }
}

/* Featured Article */
.featured {
  background: var(--surface);
  border-radius: 24px;
  padding: 3.5rem;
  border: 1px solid rgba(0, 240, 255, 0.1);
  margin-bottom: 3rem;
  position: relative;
}

.featured::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 4px;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-magenta), var(--accent-lime));
  border-radius: 24px 24px 0 0;
}

.featured h2 {
  font-size: 2.4rem;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.featured p {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Article Grid - Magazine Cards */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.article-card:hover {
  transform: translateY(-12px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4),
              0 0 30px rgba(0, 240, 255, 0.15);
}

.article-card h3 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-card .excerpt {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--accent-lime);
}

.read-more::after {
  content: '→';
  transition: transform 0.3s ease;
}

.article-card:hover .read-more::after {
  transform: translateX(6px);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
  color: var(--accent-cyan);
}

.topic-list {
  list-style: none;
}

.topic-list li {
  margin-bottom: 0.75rem;
}

.topic-list a {
  display: block;
  padding: 0.85rem 1.25rem;
  background: var(--surface-light);
  border-radius: 12px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.topic-list a:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--accent-cyan);
  padding-left: 1.6rem;
}

/* Footer */
footer {
  background: #05070F;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 6rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-links a {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.disclaimer {
  font-size: 0.8rem;
  color: #64748B;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

/* Form Styles */
form {
  max-width: 620px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.75rem;
}

label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
}

input, textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.1);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: var(--neon-glow);
}

.submit-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.7);
}

/* Article Page */
.article-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.article-page h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.article-meta {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.85;
}

.article-content h2 {
  margin: 3rem 0 1.25rem;
  font-size: 1.85rem;
  color: var(--accent-lime);
}

.article-content p {
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(0,240,255,0.2);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .hamburger {
    display: flex;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
}

/* Neon accents */
.neon-text {
  text-shadow: 0 0 10px var(--accent-cyan),
               0 0 20px var(--accent-magenta);
}

.glass {
  background: rgba(20, 27, 46, 0.85);
  backdrop-filter: blur(20px);
}