:root {
  --neon-red: #ff1744;
  --neon-cyan: #00f5ff;
  --bg-deep: #0a0a0a;
  --bg-card: #111111;
  --text-primary: #f8f8f8;
  --text-secondary: #a8a8a8;
  --border-glow: rgba(255, 23, 68, 0.3);
}

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

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

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

a:hover {
  color: var(--neon-red);
}

/* Neon effects */
.neon-text {
  text-shadow: 
    0 0 5px var(--neon-red),
    0 0 10px var(--neon-red),
    0 0 20px var(--neon-cyan);
}

.neon-button {
  background: transparent;
  border: 2px solid var(--neon-red);
  color: var(--neon-red);
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.neon-button:hover {
  background: var(--neon-red);
  color: #fff;
  box-shadow: 
    0 0 15px var(--neon-red),
    0 0 30px var(--neon-cyan);
  transform: translateY(-2px);
}

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

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glow);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--neon-red);
  text-shadow: 0 0 15px var(--neon-red);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-red);
  transition: width 0.4s ease;
}

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

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

.hamburger span {
  width: 28px;
  height: 2px;
  background: var(--neon-red);
  transition: 0.3s;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a12 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(255, 23, 68, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0, 245, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  max-width: 820px;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(52px, 8vw, 92px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.hero p {
  font-size: 22px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 40px;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--neon-red), var(--neon-cyan));
}

/* Intro text */
.intro-text {
  max-width: 860px;
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: 80px;
}

.intro-text p {
  margin-bottom: 28px;
}

/* Magazine grid */
.magazine-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(255, 23, 68, 0.15);
}

.featured-image-placeholder {
  height: 420px;
  background: linear-gradient(45deg, #1a1a1a, #2a0f1a);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-image-placeholder::after {
  content: '✦';
  font-size: 120px;
  color: rgba(255, 23, 68, 0.2);
  text-shadow: 0 0 60px var(--neon-red);
}

.featured-content {
  padding: 42px;
}

.featured-content .category {
  display: inline-block;
  background: rgba(255, 23, 68, 0.1);
  color: var(--neon-red);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.featured-content h3 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 20px;
}

/* Article cards - Masonry feel */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid #222;
  border-radius: 14px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.article-card:hover {
  border-color: var(--neon-red);
  box-shadow: 0 0 0 1px var(--neon-red);
  transform: translateY(-6px);
}

.article-card .category {
  font-size: 12px;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.article-card h4 {
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 18px;
  flex-grow: 1;
}

.article-card .excerpt {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.65;
  margin-bottom: 28px;
  flex-grow: 1;
}

.article-card .read-more {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--neon-red);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.article-card .read-more:hover {
  gap: 14px;
}

/* Sidebar */
.sidebar {
  background: var(--bg-card);
  border: 1px solid #222;
  border-radius: 16px;
  padding: 36px;
  height: fit-content;
  position: sticky;
  top: 120px;
}

.sidebar h4 {
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--neon-red);
}

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

.category-list li {
  padding: 14px 0;
  border-bottom: 1px solid #222;
  font-size: 15px;
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list a {
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.category-list a:hover {
  color: var(--neon-red);
  padding-left: 8px;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-deep);
  max-width: 820px;
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--neon-red);
  box-shadow: 0 0 80px rgba(255, 23, 68, 0.3);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  padding: 32px 40px 20px;
  border-bottom: 1px solid #222;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-header h2 {
  font-size: 28px;
  max-width: 85%;
}

.close-modal {
  font-size: 42px;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--neon-red);
}

.modal-body {
  padding: 40px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.modal-body p {
  margin-bottom: 22px;
}

/* Footer */
footer {
  background: #050505;
  border-top: 1px solid #222;
  padding: 80px 40px 40px;
  margin-top: 100px;
}

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

.footer-col h5 {
  color: var(--neon-red);
  margin-bottom: 22px;
  font-size: 15px;
  letter-spacing: 1px;
}

.footer-col p, .footer-col a {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-bottom: 10px;
  display: block;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #222;
  font-size: 13px;
}

.legal-links a {
  color: #666;
}

.legal-links a:hover {
  color: var(--neon-red);
}

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

.form-group {
  margin-bottom: 26px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 16px;
  transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon-red);
  box-shadow: 0 0 0 3px rgba(255, 23, 68, 0.1);
}

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

/* Responsive */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .magazine-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .section {
    padding: 70px 24px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 48px;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
}