/* ============================================================
   5G Network Basics & Internet Access Guide
   Main Stylesheet
   Colors: Dark Gray (#1a1a2e), Blue (#0f4c81 / #1e90ff), White
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --dark:        #0d0d1a;
  --dark-2:      #1a1a2e;
  --dark-3:      #16213e;
  --blue-deep:   #0f4c81;
  --blue-mid:    #1565c0;
  --blue-bright: #1e90ff;
  --blue-light:  #64b5f6;
  --blue-glow:   rgba(30,144,255,0.18);
  --white:       #ffffff;
  --off-white:   #f0f4f8;
  --gray-light:  #b0bec5;
  --gray-mid:    #607d8b;
  --gray-border: #2a2a4a;
  --accent:      #00e5ff;
  --accent2:     #7c4dff;
  --text-main:   #e8eaf6;
  --text-muted:  #90a4ae;
  --card-bg:     #1c1c35;
  --card-hover:  #22224a;
  --radius:      12px;
  --radius-sm:   6px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-blue: 0 4px 24px rgba(30,144,255,0.2);
  --transition:  0.28s ease;
  --font-main:   'Segoe UI', 'Roboto', Arial, sans-serif;
  --font-mono:   'Courier New', Courier, monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--dark);
  color: var(--text-main);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: var(--blue-bright);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--white);
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; color: var(--text-main); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; color: var(--text-main); }

strong { color: var(--white); }

.text-accent  { color: var(--accent); }
.text-blue    { color: var(--blue-bright); }
.text-muted   { color: var(--text-muted); }

/* ---------- Layout Utilities ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 40px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.text-center { text-align: center; }
.mt-sm  { margin-top: 12px; }
.mt-md  { margin-top: 24px; }
.mt-lg  { margin-top: 48px; }
.mb-md  { margin-bottom: 24px; }
.mb-lg  { margin-bottom: 48px; }

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--blue-deep);
  padding: 8px 0;
  font-size: 0.82rem;
  color: var(--blue-light);
  border-bottom: 1px solid var(--gray-border);
}
.top-bar .container { display: flex; justify-content: flex-end; gap: 24px; flex-wrap: wrap; }
.top-bar a { color: var(--blue-light); }
.top-bar a:hover { color: var(--white); }

/* ---------- Navigation ---------- */
.navbar {
  background: var(--dark-2);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
}
.nav-logo .logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--blue-mid), var(--accent));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; color: var(--dark);
}
.nav-logo span.highlight { color: var(--blue-bright); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--gray-light);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--blue-glow);
  color: var(--blue-bright);
}

.nav-dropdown {
  position: relative;
}
.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7rem;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--dark-3);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  min-width: 220px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 1000;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}
.dropdown-menu a:hover { background: var(--blue-glow); color: var(--blue-bright); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--gray-light); border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 40%, var(--dark-2) 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(30,144,255,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,229,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: var(--blue-glow);
  border: 1px solid var(--blue-bright);
  color: var(--blue-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero h1 {
  margin-bottom: 20px;
  max-width: 800px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--blue-bright), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-diagram {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-bright));
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30,144,255,0.4);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--blue-bright);
  color: var(--blue-bright);
}
.btn-outline:hover {
  background: var(--blue-glow);
  transform: translateY(-2px);
  color: var(--blue-bright);
}

/* ---------- Section Headers ---------- */
.section-header { margin-bottom: 52px; }
.section-header.text-center { text-align: center; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; }
.section-header.text-center p { margin: 0 auto; }
.divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--blue-bright), var(--accent));
  border-radius: 4px;
  margin-top: 16px;
}
.divider.center { margin: 16px auto 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.card:hover {
  background: var(--card-hover);
  border-color: rgba(30,144,255,0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.icon-blue  { background: rgba(30,144,255,0.15); }
.icon-cyan  { background: rgba(0,229,255,0.12); }
.icon-purple{ background: rgba(124,77,255,0.12); }
.icon-green { background: rgba(0,230,118,0.12); }

.card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.card p { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- Feature Grid ---------- */
.feature-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.feature-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--blue-glow);
  border: 1px solid rgba(30,144,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.feature-text h4 { margin-bottom: 6px; font-size: 1rem; }
.feature-text p { font-size: 0.88rem; color: var(--text-muted); }

/* ---------- Diagram / Infographic SVG Wrapper ---------- */
.diagram-wrap {
  background: var(--card-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 36px 24px;
  margin: 40px 0;
  overflow: hidden;
}
.diagram-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Stat Boxes ---------- */
.stats-bar {
  background: var(--dark-3);
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  padding: 40px 0;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--blue-bright), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Timeline / Steps ---------- */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: '';
  position: absolute; left: 14px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-mid), var(--accent));
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--blue-bright);
  border: 2px solid var(--dark);
  box-shadow: 0 0 0 3px rgba(30,144,255,0.3);
}
.timeline-item h4 { margin-bottom: 6px; color: var(--blue-bright); }
.timeline-item p { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- Accordion / FAQ ---------- */
.accordion-item {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.accordion-item:hover { border-color: rgba(30,144,255,0.35); }
.accordion-header {
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  font-weight: 600;
  font-size: 0.97rem;
}
.accordion-header .acc-arrow {
  font-size: 0.8rem;
  color: var(--blue-bright);
  transition: transform var(--transition);
}
.accordion-item.open .acc-arrow { transform: rotate(180deg); }
.accordion-body {
  display: none;
  padding: 18px 22px;
  background: var(--dark-3);
  font-size: 0.92rem;
  color: var(--text-muted);
  border-top: 1px solid var(--gray-border);
  line-height: 1.7;
}
.accordion-item.open .accordion-body { display: block; }

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
  margin: 28px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
thead th {
  background: var(--blue-deep);
  color: var(--white);
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
}
tbody tr { border-bottom: 1px solid var(--gray-border); }
tbody tr:last-child { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--dark-3); }
tbody td { padding: 13px 18px; color: var(--text-muted); }
.td-highlight { color: var(--blue-bright); font-weight: 600; }

/* ---------- Info Box / Callout ---------- */
.callout {
  padding: 20px 22px;
  border-radius: var(--radius);
  border-left: 4px solid;
  margin: 28px 0;
}
.callout-blue {
  background: rgba(30,144,255,0.08);
  border-color: var(--blue-bright);
}
.callout-cyan {
  background: rgba(0,229,255,0.07);
  border-color: var(--accent);
}
.callout-purple {
  background: rgba(124,77,255,0.07);
  border-color: var(--accent2);
}
.callout-title {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--white);
}
.callout p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ---------- Blog Cards ---------- */
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30,144,255,0.3);
  box-shadow: var(--shadow-blue);
}
.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--dark-3), var(--dark-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.blog-card-img::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30,144,255,0.15), rgba(0,229,255,0.08));
}
.blog-card-body { padding: 22px; }
.blog-tag {
  display: inline-block;
  background: var(--blue-glow);
  color: var(--blue-bright);
  border: 1px solid rgba(30,144,255,0.3);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.blog-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card-body p {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.blog-meta {
  font-size: 0.8rem;
  color: var(--gray-mid);
  display: flex;
  gap: 14px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 18px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--gray-border);
}
.breadcrumb a { color: var(--blue-bright); }
.breadcrumb span { margin: 0 8px; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
  padding: 60px 0;
  border-bottom: 1px solid var(--gray-border);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; top: -40%; right: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(30,144,255,0.1) 0%, transparent 65%);
}
.page-hero-badge {
  display: inline-block;
  background: var(--blue-glow);
  border: 1px solid rgba(30,144,255,0.4);
  color: var(--blue-bright);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 0;
}

/* ---------- Content Area ---------- */
.content-area h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 16px;
}
.content-area h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--blue-bright);
  font-size: 1.2rem;
}
.content-area p { margin-bottom: 1.1rem; }
.content-area ul { margin-bottom: 1.1rem; }
.content-area li { margin-bottom: 0.5rem; color: var(--text-muted); }
.content-area li strong { color: var(--white); }

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky;
  top: 88px;
}
.sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 22px;
}
.sidebar-card h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--blue-bright);
  border-bottom: 1px solid var(--gray-border);
  padding-bottom: 10px;
}
.sidebar-links { list-style: none; padding: 0; }
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}
.sidebar-links a::before {
  content: '→';
  color: var(--blue-bright);
  font-size: 0.8rem;
}
.sidebar-links a:hover { color: var(--blue-bright); }

/* ---------- Disclaimer Banner ---------- */
.disclaimer-banner {
  background: rgba(15, 76, 129, 0.2);
  border: 1px solid rgba(30,144,255,0.25);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 32px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.disclaimer-banner .disc-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.disclaimer-banner strong { color: var(--blue-light); }

/* ---------- Footer ---------- */
footer {
  background: var(--dark-2);
  border-top: 1px solid var(--gray-border);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--gray-border);
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 14px 0 20px;
  max-width: 280px;
}
.footer-contact-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px;
}
.footer-contact-item span.icon { font-size: 1rem; }

.footer-col h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--blue-bright); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--gray-mid);
}
.footer-disc {
  font-size: 0.8rem;
  color: var(--gray-mid);
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--gray-border);
  padding: 14px 0;
  text-align: center;
  line-height: 1.6;
}

/* ---------- Tag Chips ---------- */
.tag-chip {
  display: inline-block;
  background: var(--blue-glow);
  border: 1px solid rgba(30,144,255,0.25);
  color: var(--blue-light);
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 50px;
  margin: 3px;
  font-weight: 500;
}

/* ---------- Speed Meter Visual ---------- */
.speed-bar-wrap { margin: 8px 0; }
.speed-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.speed-bar {
  height: 10px;
  background: var(--dark-3);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gray-border);
}
.speed-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--blue-mid), var(--blue-bright));
  transition: width 1.2s ease;
}

/* ---------- Coverage Zone Visual ---------- */
.coverage-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.coverage-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.coverage-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}

/* ---------- Network Generation Boxes ---------- */
.gen-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 28px 0;
}
.gen-box {
  background: var(--card-bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  transition: all var(--transition);
}
.gen-box.active {
  border-color: var(--blue-bright);
  background: rgba(30,144,255,0.08);
  box-shadow: 0 0 20px rgba(30,144,255,0.15);
}
.gen-box .gen-label {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 6px;
}
.gen-box.active .gen-label { color: var(--blue-bright); }
.gen-box .gen-name { font-size: 0.72rem; color: var(--gray-mid); }
.gen-box.active .gen-name { color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gen-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .gen-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--dark-2);
    padding: 16px;
    border-bottom: 1px solid var(--gray-border);
    z-index: 999;
    gap: 6px;
  }
  .hamburger { display: flex; }
  .dropdown-menu { position: static; border: none; background: var(--dark); }
  .hero { padding: 60px 0 50px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .content-with-sidebar { flex-direction: column; }
  .sidebar { position: static; }
}

@media (max-width: 480px) {
  .gen-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-bar .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30,144,255,0.3); }
  50%       { box-shadow: 0 0 0 10px rgba(30,144,255,0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.fade-in-up { animation: fadeInUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ---------- Scroll Progress Bar ---------- */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-bright), var(--accent));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ---------- Back to Top ---------- */
#back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 44px; height: 44px;
  background: var(--blue-mid);
  color: var(--white);
  border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-blue);
  transition: all var(--transition);
  z-index: 1000;
}
#back-to-top:hover {
  background: var(--blue-bright);
  transform: translateY(-3px);
}
#back-to-top.visible { display: flex; }

/* ---------- Active Nav Highlight ---------- */
.nav-current { color: var(--blue-bright) !important; }

/* ---------- Print ---------- */
@media print {
  .navbar, .top-bar, footer, #back-to-top, #progress-bar { display: none; }
  body { background: white; color: black; }
}