:root {
  --neon: #00ff9f;
  --neon-dark: #00cc7a;
  --bg: #0a0f0a;
  --surface: #111811;
  --surface-light: #161b22;
  --text: #e6e6e6;
  --text-muted: #a0a0a0;
  --accent: #7cffc b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 255, 159, 0.08);
}

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

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

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

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.1rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.45rem; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1f2520;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.logo {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.logo span {
  color: var(--neon);
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  position: relative;
}

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

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

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--neon);
  font-size: 1.8rem;
  cursor: pointer;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 140%;
  background: radial-gradient(circle, rgba(0,255,159,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4.1rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(0, 255, 159, 0.3);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--neon);
  color: #0a0f0a;
  font-weight: 700;
  padding: 1rem 2.25rem;
  border-radius: 9999px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(0, 255, 159, 0.4);
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 40px rgba(0, 255, 159, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--neon);
  border: 2px solid var(--neon);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--neon);
  color: #0a0f0a;
  box-shadow: 0 0 25px rgba(0, 255, 159, 0.4);
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--neon);
  border-radius: 3px;
}

/* Intro text block */
.intro-text {
  max-width: 820px;
  margin: 0 auto 4rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.intro-text p {
  margin-bottom: 1.6rem;
}

/* Categories */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.category-pill {
  background: var(--surface);
  color: var(--neon);
  padding: 0.55rem 1.35rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid #1f2520;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-pill.active,
.category-pill:hover {
  background: var(--neon);
  color: #0a0f0a;
  border-color: var(--neon);
}

/* Blog Grid + Sidebar */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

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

/* Article Cards */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.article-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #1f2520;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), 
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.card-header {
  padding: 1.35rem 1.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge {
  background: rgba(0, 255, 159, 0.12);
  color: var(--neon);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.card-body {
  padding: 0 1.5rem 1.25rem;
  flex: 1;
}

.card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.card-body .excerpt {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #1f2520;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.read-more {
  color: var(--neon);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease;
}

.read-more:hover {
  gap: 0.6rem;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.85rem;
  margin-bottom: 1.75rem;
  border: 1px solid #1f2520;
}

.sidebar-card h4 {
  font-size: 1.15rem;
  margin-bottom: 1.15rem;
  color: #fff;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #1f2520;
}

.author-bio {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.author-avatar {
  width: 68px;
  height: 68px;
  background: linear-gradient(145deg, var(--neon), #00cc7a);
  border-radius: 9999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #0a0f0a;
  font-weight: 800;
}

.author-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.popular-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid #1f2520;
}

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

.popular-list a {
  color: var(--text);
  font-weight: 500;
  display: block;
  transition: color 0.2s;
}

.popular-list a:hover {
  color: var(--neon);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.newsletter-form input {
  background: #0a0f0a;
  border: 1px solid #2a3228;
  color: var(--text);
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(0,255,159,0.1);
}

.newsletter-form .btn {
  width: 100%;
  justify-content: center;
  padding: 0.95rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 780px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  border: 1px solid #2a3228;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #1f2520;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.75rem;
}

.close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

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

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(85vh - 140px);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.modal-body h3 {
  color: #fff;
  margin: 1.75rem 0 0.75rem;
}

.modal-body p {
  margin-bottom: 1.35rem;
}

/* Contact Page */
.contact-container {
  max-width: 620px;
  margin: 4rem auto;
  padding: 3rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid #1f2520;
}

.contact-container h1 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.contact-container .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #ccc;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: #0a0f0a;
  border: 1px solid #2a3228;
  color: var(--text);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 4px rgba(0, 255, 159, 0.08);
}

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

.address-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #1f2520;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Thank You Page */
.thankyou-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(#0a0f0a, #111811);
}

.thankyou-content {
  max-width: 620px;
}

.thankyou-content h1 {
  font-size: 3.4rem;
  margin-bottom: 1.25rem;
  color: var(--neon);
}

.thankyou-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background: #070b07;
  padding: 4rem 0 2.5rem;
  border-top: 1px solid #1f2520;
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

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

.footer-col h5 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1.35rem;
  letter-spacing: 0.5px;
}

.footer-col p,
.footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-col a {
  display: block;
  margin-bottom: 0.4rem;
}

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid #1f2520;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

.footer-bottom a {
  color: #888;
}

/* Legal Pages */
.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.legal-page h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.legal-page .update {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 0.95rem;
}

.legal-page h2 {
  margin-top: 3rem;
  font-size: 1.55rem;
  color: var(--neon);
}

.legal-page p, .legal-page li {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.legal-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a0f0a;
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid #1f2520;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .hamburger {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.85rem;
  }
  
  .article-grid {
    grid-template-columns: 1fr;
  }
  
  h1 { font-size: 2.6rem; }
}