/* ═══════════════════════════════════════════════════════════════
   NEXT ANTENNAS  |  style.css  (Light Theme)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:        #ffffff;
  --surface:   #f4f6f9;
  --surface2:  #eaecf0;
  --panel:     #ffffff;
  --accent:    #1a4fd6;
  --accent2:   #e84b1a;
  --accent-lt: #e8effe;
  --text:      #111827;
  --text-mid:  #374151;
  --muted:     #6b7280;
  --border:    #d1d5db;
  --border-lt: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ═══════════════════════════════ NAV ═══════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-lt);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.85rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
}
.logo span { color: var(--accent2); }

/* Image logo — nav */
.logo-img {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-image {
  height: 56px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.logo-img:hover .logo-image { opacity: 0.85; }

/* Image logo — footer (slightly smaller) */
.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  opacity: 0.92;
  transition: opacity 0.2s;
}
.footer-logo:hover .footer-logo-img { opacity: 1; }

/* Desktop link list */
.nav-links {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  align-items: center;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.48rem 0.9rem;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li:hover > a { background: var(--accent-lt); color: var(--accent); }
.nav-links > li > a.active { color: var(--accent); font-weight: 600; }

/* Chevron for dropdown parent */
.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.22s;
}
.has-dropdown:hover > a::after { transform: rotate(180deg); }

/* Dropdown panel */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 560px;
  background: #fff;
  border: 1px solid var(--border-lt);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 1.2rem;
  z-index: 300;
}
.has-dropdown:hover .dropdown { display: block; }

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.dropdown-section-label {
  grid-column: 1 / -1;
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.2rem 0.6rem 0.6rem;
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 400;
  transition: background 0.15s, color 0.15s;
}
.dropdown a:hover { background: var(--accent-lt); color: var(--accent); }

.dropdown-icon {
  width: 34px; height: 34px;
  background: var(--surface);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.dropdown-text strong {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text);
}
.dropdown-text span {
  font-size: 0.76rem;
  color: var(--muted);
}

.dropdown-footer {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-lt);
  margin-top: 0.6rem;
  padding-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dropdown-footer a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0;
}
.dropdown-footer a:hover { background: transparent; text-decoration: underline; }

/* ── Calculator dropdown: two-column layout ── */
.dropdown--calculators {
  min-width: 640px;
  left: 50%;
  transform: translateX(-50%);
}

.dropdown-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 1.2rem;
}

.dropdown-col { display: flex; flex-direction: column; gap: 0.2rem; }

.dropdown-col .dropdown-section-label { padding-bottom: 0.4rem; }

/* Push footer outside the grid */
.dropdown--calculators .dropdown-footer {
  grid-column: unset;
  margin-top: 0.8rem;
}

/* Education dropdown width stays at 560px (default) */
.dropdown--education { min-width: 560px; }

/* ── Article page styles ── */
.article-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

/* Main article body */
.article-body { min-width: 0; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.article-category {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  background: #fff4f0;
  border: 1px solid rgba(232,75,26,0.18);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.article-date {
  font-size: 0.84rem;
  color: var(--muted);
}

.article-reading-time {
  font-size: 0.84rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.article-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.article-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-lt);
}

.article-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-lt);
}

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-lt), #dde8ff);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  color: var(--accent);
  border: 2px solid rgba(26,79,214,0.15);
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.author-info span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Article content typography */
.article-content { line-height: 1.85; }

.article-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0.03em;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
}
.article-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

.article-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.7rem;
}

.article-content p {
  color: var(--text-mid);
  margin-bottom: 1.4rem;
  font-size: 1rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.4rem 1.5rem;
  color: var(--text-mid);
}

.article-content li { margin-bottom: 0.5rem; font-size: 1rem; }

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(26,79,214,0.3);
  transition: text-decoration-color 0.18s;
}
.article-content a:hover { text-decoration-color: var(--accent); }

/* Callout / info box */
.article-callout {
  background: var(--accent-lt);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 1.2rem 1.4rem;
  margin: 2rem 0;
}

.article-callout strong {
  display: block;
  font-size: 0.78rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.article-callout p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-mid);
}

/* Key equation box */
.article-equation {
  background: var(--surface);
  border: 1.5px solid var(--border-lt);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
  text-align: center;
  font-family: 'Space Mono', monospace;
}

.article-equation .eq-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.article-equation .eq-formula {
  font-size: 1.3rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.article-equation .eq-caption {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
}

/* Figure / image placeholder */
.article-figure {
  margin: 2.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--border-lt);
}

.article-figure-placeholder {
  background: linear-gradient(135deg, #eef2ff, #e8effe);
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 2.5rem;
}

.article-figure-placeholder span {
  font-size: 0.85rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.06em;
}

.article-figure figcaption {
  padding: 0.75rem 1.2rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--border-lt);
  font-style: italic;
}

/* Tags at end of article */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-lt);
}

.article-tag {
  background: var(--surface);
  color: var(--text-mid);
  border: 1px solid var(--border-lt);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.article-tag:hover { background: var(--accent-lt); color: var(--accent); border-color: rgba(26,79,214,0.25); }

/* Article sidebar */
.article-sidebar { position: sticky; top: 88px; }

.sidebar-card {
  background: var(--surface);
  border: 1.5px solid var(--border-lt);
  border-radius: 12px;
  padding: 1.4rem;
  margin-bottom: 1.4rem;
}

.sidebar-card h4 {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Table of contents */
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 0.1rem; }

.toc-list a {
  display: block;
  font-size: 0.86rem;
  color: var(--text-mid);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.toc-list a:hover { background: var(--accent-lt); color: var(--accent); border-color: var(--accent); }
.toc-list a.active { color: var(--accent); border-color: var(--accent); font-weight: 600; }

.toc-list li.sub a { padding-left: 1.6rem; font-size: 0.82rem; color: var(--muted); }

/* Related articles sidebar */
.related-list { display: flex; flex-direction: column; gap: 1rem; }

.related-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  padding: 0.7rem;
  border-radius: 8px;
  transition: background 0.15s;
}
.related-item:hover { background: var(--bg); }

.related-item .related-cat {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
}

.related-item strong {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.related-item span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Prev / Next navigation */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-lt);
}

.article-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
  padding: 1.2rem;
  border: 1.5px solid var(--border-lt);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.article-nav a:hover { border-color: rgba(26,79,214,0.3); box-shadow: var(--shadow-sm); }

.article-nav .nav-dir {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-nav strong {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.3;
}

.article-nav .next { text-align: right; }

/* Responsive article */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .dropdown--calculators { min-width: 320px; }
  .dropdown-cols { grid-template-columns: 1fr; }
}

/* CTA nav button */
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.52rem 1.3rem !important;
  border-radius: 7px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 10px rgba(26,79,214,0.28);
  transition: box-shadow 0.2s, transform 0.2s !important;
}
.nav-cta:hover {
  box-shadow: 0 5px 20px rgba(26,79,214,0.38) !important;
  transform: translateY(-1px);
  background: var(--accent) !important;
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border-lt);
  padding: 0.8rem 1.2rem 1.4rem;
  gap: 0.1rem;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 0.8rem;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu a:hover { background: var(--accent-lt); color: var(--accent); }

.mobile-section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.9rem 0.8rem 0.3rem;
}

.mobile-sub a {
  padding-left: 1.8rem;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--muted);
}

.mobile-divider {
  height: 1px;
  background: var(--border-lt);
  margin: 0.5rem 0.8rem;
}

.mobile-cta {
  margin-top: 0.5rem;
  background: var(--accent) !important;
  color: #fff !important;
  text-align: center;
  border-radius: 8px;
  font-weight: 600 !important;
  padding: 0.75rem !important;
}
.mobile-cta:hover { background: #1540b0 !important; }


/* ═══════════════════════════════ HERO ══════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #eef2ff 0%, #ffffff 55%, #fff8f5 100%);
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border-lt) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-lt) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 100%);
  pointer-events: none;
  opacity: 0.55;
}

.hero-layout {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-lt);
  color: var(--accent);
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  border: 1px solid rgba(26,79,214,0.2);
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s forwards;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.25s forwards;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2.4rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.4s forwards;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.55s forwards;
}

.hero-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  opacity: 0;
  animation: fadeUp 0.7s 0.3s forwards;
}

.signal-rings {
  position: relative;
  width: 340px; height: 340px;
  display: flex; align-items: center; justify-content: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(26,79,214,0.16);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0.2);
  animation: pulse-ring 4s ease-out infinite;
}
.ring:nth-child(1) { width: 120px; height: 120px; animation-delay: 0s; }
.ring:nth-child(2) { width: 210px; height: 210px; animation-delay: 1s; }
.ring:nth-child(3) { width: 300px; height: 300px; animation-delay: 2s; }
.ring:nth-child(4) { width: 390px; height: 390px; animation-delay: 3s; }

@keyframes pulse-ring {
  0%   { transform: translate(-50%,-50%) scale(0.2); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1.3); opacity: 0; }
}

.antenna-hero-svg {
  width: 170px;
  position: relative; z-index: 2;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(26,79,214,0.18));
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.93rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(26,79,214,0.28);
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(26,79,214,0.38);
  transform: translateY(-2px); background: #1540b0;
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text-mid);
  border: 1.5px solid var(--border);
  padding: 0.85rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.93rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-lt); }

.btn-primary-inv {
  display: inline-block;
  background: #fff; color: var(--accent);
  border: none; padding: 0.9rem 2.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  border-radius: 8px; text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary-inv:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

.btn-ghost-inv {
  display: inline-block;
  background: transparent; color: rgba(255,255,255,0.9);
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 0.9rem 2.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; font-weight: 500;
  border-radius: 8px; text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost-inv:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }


/* ═══════════════════════════════ STATS ══════════════════════════════ */
.stats { background: var(--accent); }

.stats-grid {
  max-width: 1240px; margin: 0 auto;
  padding: 0 2rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
}

.stat {
  text-align: center;
  padding: 2.8rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat:last-child { border-right: none; }

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.2rem; color: #fff;
  line-height: 1; margin-bottom: 0.4rem;
}
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.75); letter-spacing: 0.03em; }


/* ═══════════════════════════════ FOUNDER BAND ═══════════════════════════════ */
.founder-band {
  background: linear-gradient(135deg, #eef2ff 0%, #fff8f5 100%);
  border-top: 1px solid var(--border-lt);
  border-bottom: 1px solid var(--border-lt);
  padding: 3.5rem 2rem;
}

.founder-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  gap: 2.4rem;
  align-items: flex-start;
}

.founder-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #3b6fe8 100%);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 24px rgba(26,79,214,0.28);
}

.founder-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.45rem;
}

.founder-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.9rem;
  line-height: 1.1;
}

.founder-bio {
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.founder-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.founder-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1.5px solid var(--border-lt);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.founder-pill:hover {
  border-color: rgba(26,79,214,0.3);
  color: var(--accent);
  background: var(--accent-lt);
}

@media (max-width: 640px) {
  .founder-inner { flex-direction: column; gap: 1.4rem; }
  .founder-avatar { width: 64px; height: 64px; font-size: 1.3rem; }
}


/* ═══════════════════════════════ SHARED SECTION ═══════════════════════════════ */
.section { max-width: 1240px; margin: 0 auto; padding: 5.5rem 2rem; }
.section-header { margin-bottom: 3.5rem; }
.surface-section { background: var(--surface); }

.section-tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent2);
  background: #fff4f0; border: 1px solid rgba(232,75,26,0.18);
  padding: 0.25rem 0.8rem; border-radius: 100px; margin-bottom: 1rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.02; letter-spacing: 0.03em;
  color: var(--text); margin-bottom: 0.9rem;
}

.section-sub { color: var(--muted); font-size: 1rem; max-width: 520px; line-height: 1.7; }


/* ═══════════════════════════════ PRODUCTS ═══════════════════════════════ */
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}

.product-card {
  background: var(--panel);
  border: 1.5px solid var(--border-lt);
  border-radius: 12px; padding: 2rem;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  position: relative; overflow: hidden;
}
.product-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-4px);
  border-color: rgba(26,79,214,0.22);
}
.product-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.product-card:hover::after { transform: scaleX(1); }

.product-icon {
  width: 48px; height: 48px;
  background: var(--accent-lt); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; color: var(--accent);
}
.product-icon svg { width: 26px; height: 26px; }

.product-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem; letter-spacing: 0.05em;
  color: var(--text); margin-bottom: 0.5rem;
}
.product-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.65; margin-bottom: 1.2rem; }
.product-freq {
  font-family: 'Space Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.1em; color: var(--accent2); text-transform: uppercase;
  background: #fff4f0; display: inline-block; padding: 0.2rem 0.6rem; border-radius: 4px;
}


/* ═══════════════════════════════ FEATURES ═══════════════════════════════ */
.features-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}

.feature-visual {
  position: relative; height: 400px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f0f4ff, #f8faff);
  border-radius: 20px; border: 1.5px solid var(--border-lt); overflow: hidden;
}
.feature-visual::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border-lt) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-lt) 1px, transparent 1px);
  background-size: 30px 30px; opacity: 0.5;
}

.feature-list { display: flex; flex-direction: column; gap: 1.8rem; }

.feature-item { display: flex; gap: 1.1rem; align-items: flex-start; }

.feature-dot {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--accent-lt);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--accent); font-size: 1.05rem;
}

.feature-item h3 { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.feature-item p { color: var(--muted); font-size: 0.87rem; line-height: 1.65; }


/* ═══════════════════════════════ CTA BAND ═══════════════════════════════ */
.cta-band {
  background: linear-gradient(135deg, #1a4fd6 0%, #0e38b1 100%);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: -60%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.cta-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 5.5rem 2rem; text-align: center; position: relative;
}
.cta-inner h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.04em; line-height: 1;
  color: #fff; margin-bottom: 1rem;
}
.cta-inner p { color: rgba(255,255,255,0.75); margin-bottom: 2.4rem; font-size: 1.05rem; }


/* ═══════════════════════════════ FOOTER ═══════════════════════════════ */
footer { background: #0f1623; color: rgba(255,255,255,0.65); }

.footer-main {
  max-width: 1240px; margin: 0 auto;
  padding: 4.5rem 2rem 3rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}

.footer-brand .logo { display: block; margin-bottom: 1rem; color: #fff; }
.footer-brand .logo span { color: var(--accent2); }
.footer-brand p { font-size: 0.87rem; line-height: 1.65; max-width: 270px; }

.footer-col h4 {
  font-family: 'Space Mono', monospace; font-size: 0.6rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.87rem; transition: color 0.18s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 1240px; margin: 0 auto;
  padding: 1.4rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

.footer-signal {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Space Mono', monospace; font-size: 0.64rem;
  color: rgba(255,255,255,0.4);
}
.signal-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }


/* ═══════════════════════════════ PAGE HERO (inner pages) ═══════════════════════════════ */
.page-hero {
  padding: 9rem 2rem 5rem;
  background: linear-gradient(150deg, #eef2ff 0%, #ffffff 60%);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border-lt);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border-lt) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-lt) 1px, transparent 1px);
  background-size: 60px 60px; opacity: 0.45;
}
.page-hero-inner { max-width: 1240px; margin: 0 auto; position: relative; }
.page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: 0.03em; line-height: 1.0;
  color: var(--text); margin-bottom: 1rem;
}
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero p { color: var(--muted); font-size: 1.05rem; max-width: 540px; line-height: 1.7; }


/* ═══════════════════════════════ ABOUT PAGE ═══════════════════════════════ */
.about-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}

.about-intro-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.05; letter-spacing: 0.03em;
  color: var(--text); margin-bottom: 1.2rem;
}
.about-intro-text p { color: var(--muted); line-height: 1.75; margin-bottom: 1rem; }

.about-visual {
  background: linear-gradient(135deg, #eef2ff, #e8effe);
  border-radius: 18px; border: 1.5px solid var(--border-lt);
  height: 380px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.about-visual::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border-lt) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-lt) 1px, transparent 1px);
  background-size: 28px 28px; opacity: 0.5;
}

/* Timeline */
.timeline { position: relative; padding-left: 2.2rem; display: flex; flex-direction: column; gap: 2.5rem; }
.timeline::before {
  content: ''; position: absolute;
  left: 0; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2));
  border-radius: 2px;
}
.timeline-item { position: relative; }
.timeline-dot {
  position: absolute; left: -2.55rem; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(26,79,214,0.2);
}
.timeline-year {
  font-family: 'Space Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; margin-bottom: 0.3rem;
}
.timeline-title { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.timeline-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* Values */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.value-card {
  background: #fff; border: 1.5px solid var(--border-lt);
  border-radius: 12px; padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.value-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--accent-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1rem;
}
.value-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.value-card p { font-size: 0.86rem; color: var(--muted); line-height: 1.65; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.team-card {
  background: #fff; border: 1.5px solid var(--border-lt);
  border-radius: 12px; padding: 1.8rem 1.5rem; text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.team-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-lt), #dde8ff);
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem;
  color: var(--accent); border: 2px solid rgba(26,79,214,0.15);
}
.team-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.team-card .role {
  font-family: 'Space Mono', monospace; font-size: 0.6rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.6rem;
}
.team-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }


/* ═══════════════════════════════ FEATURED CALCULATORS (index) ═══════════════════════════════ */
.feat-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.feat-calc-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

/* Cards inside the right column — remove flex:1 stretch on small screens */
.feat-calc-col > a {
  flex: 1;
}

/* ═══════════════════════════════ RESPONSIVE ═══════════════════════════════ */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-visual { display: none; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .feat-calc-grid { grid-template-columns: 1fr; }
  .feat-calc-col > a { flex: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.15); }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .features-layout { grid-template-columns: 1fr; }
  .feature-visual { height: 260px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .about-intro { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .dropdown { min-width: 320px; }
  .dropdown-grid { grid-template-columns: 1fr; }
  /* Microstrip calculator */
  .results-grid { grid-template-columns: 1fr 1fr; }
}


@media (max-width: 640px) {
  .feat-calc-grid { grid-template-columns: 1fr; }
  .feat-calc-col  { gap: 1rem; }
  .feat-calc-col > a { flex: none; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .stat:last-child { border-bottom: none; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  /* Microstrip calculator */
  .results-grid { grid-template-columns: 1fr 1fr; }
}


/* ═══════════════════════════════ MICROSTRIP CALCULATOR ═══════════════════════════════ */
/*
   Two-tone palette:  dark slate surfaces  +  bright accent highlights
   All tokens scoped to --mc-* so they never bleed into other pages.
*/
.calc-wrap {
  --mc-dark:        #1e2535;      /* card / section backgrounds     */
  --mc-dark2:       #252d40;      /* inset / input backgrounds      */
  --mc-dark3:       #2e3850;      /* hover / diagram background     */
  --mc-border:      #3a4560;      /* borders                        */
  --mc-border-lt:   #4a5570;      /* lighter dividers               */
  --mc-text:        #e8eaf0;      /* primary text                   */
  --mc-text-mid:    #b0b8d0;      /* secondary text                 */
  --mc-muted:       #7a849a;      /* placeholder / hint text        */
  --mc-accent:      #4f8ef7;      /* blue highlight (narrow)        */
  --mc-accent-lt:   rgba(79,142,247,0.12);
  --mc-orange:      #f97316;      /* orange highlight (wide)        */
  --mc-orange-lt:   rgba(249,115,22,0.12);
  --mc-green:       #22c55e;      /* wavelength results             */

  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--mc-dark);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

.mc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ── Cards ── */
.mc-card {
  background: var(--mc-dark2);
  border: 1px solid var(--mc-border);
  border-radius: 12px;
  padding: 1.75rem;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.mc-card-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mc-muted);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mc-card-title::after { content: ''; flex: 1; height: 1px; background: var(--mc-border); }

.mc-full { grid-column: 1 / -1; }

.mc-field { margin-bottom: 1rem; }
.mc-field:last-child { margin-bottom: 0; }

.mc-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.84rem;
  color: var(--mc-text-mid);
  margin-bottom: 6px;
  font-weight: 500;
}
.mc-label .sym {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--mc-accent);
  font-weight: 700;
}

/* ── Inputs ── */
.mc-input {
  width: 100%;
  background: var(--mc-dark);
  border: 1px solid var(--mc-border);
  border-radius: 8px;
  color: var(--mc-text);
  font-family: 'Space Mono', monospace;
  font-size: 0.95rem;
  padding: 0.6rem 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: textfield;
  -moz-appearance: textfield;
}
.mc-input::-webkit-inner-spin-button,
.mc-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.mc-input:focus {
  border-color: var(--mc-accent);
  box-shadow: 0 0 0 3px var(--mc-accent-lt);
}

.mc-select {
  width: 100%;
  background: var(--mc-dark);
  border: 1px dashed var(--mc-border);
  border-radius: 8px;
  color: var(--mc-text-mid);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  padding: 0.6rem 0.9rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.mc-select:focus { border-color: var(--mc-accent); color: var(--mc-text); }

/* ── Reference chart ── */
.chart-card {
  background: var(--mc-dark2);
  border: 1px solid var(--mc-border);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.chart-instruction {
  font-size: 0.86rem;
  color: var(--mc-text-mid);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  padding: 0.8rem 1rem;
  background: var(--mc-accent-lt);
  border-left: 3px solid var(--mc-accent);
  border-radius: 0 8px 8px 0;
}
.chart-instruction strong { color: var(--mc-text); font-weight: 600; }
.chart-img-wrap { border-radius: 8px; overflow: hidden; border: 1px solid var(--mc-border); }
.chart-img-wrap img { max-width: 100%; display: block; }

/* ── Regime selector ── */
.regime-card { grid-column: 1 / -1; }
.regime-card.selected-narrow {
  border-color: var(--mc-accent);
  box-shadow: 0 0 0 3px var(--mc-accent-lt);
}
.regime-card.selected-wide {
  border-color: var(--mc-orange);
  box-shadow: 0 0 0 3px var(--mc-orange-lt);
}

.regime-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mc-muted);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.regime-label::after { content: ''; flex: 1; height: 1px; background: var(--mc-border); }
.regime-label .req-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mc-orange);
  animation: mc-pulse 2s infinite;
  display: inline-block;
  margin-right: 2px;
}
@keyframes mc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.65); }
}

.regime-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── Regime buttons ── */
.regime-btn {
  position: relative;
  background: var(--mc-dark);
  border: 1px solid var(--mc-border);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
.regime-btn:hover {
  border-color: var(--mc-border-lt);
  background: var(--mc-dark3);
}
.regime-btn.active-narrow {
  border-color: var(--mc-accent);
  background: var(--mc-accent-lt);
  box-shadow: 0 0 0 3px var(--mc-accent-lt);
}
.regime-btn.active-wide {
  border-color: var(--mc-orange);
  background: var(--mc-orange-lt);
  box-shadow: 0 0 0 3px var(--mc-orange-lt);
}

.regime-check {
  position: absolute; top: 12px; right: 14px;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--mc-border-lt);
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  background: var(--mc-dark2);
}
.active-narrow .regime-check { background: var(--mc-accent);  border-color: var(--mc-accent); }
.active-wide   .regime-check { background: var(--mc-orange);  border-color: var(--mc-orange); }
.regime-check::after {
  content: ''; width: 5px; height: 9px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px); display: none;
}
.active-narrow .regime-check::after,
.active-wide   .regime-check::after { display: block; }

.regime-tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}
.tag-narrow { background: var(--mc-accent-lt);  color: var(--mc-accent); border: 1px solid var(--mc-accent); }
.tag-wide   { background: var(--mc-orange-lt);  color: var(--mc-orange); border: 1px solid var(--mc-orange); }

.regime-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.92rem; font-weight: 700;
  color: var(--mc-text); margin-bottom: 0.4rem;
}
.regime-desc { font-size: 0.82rem; color: var(--mc-text-mid); line-height: 1.6; }

.regime-formula {
  margin-top: 0.75rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem; color: var(--mc-muted);
  background: var(--mc-dark3);
  border: 1px solid var(--mc-border);
  border-radius: 6px;
  padding: 0.55rem 0.8rem; line-height: 1.75;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.active-narrow .regime-formula { border-color: var(--mc-accent); color: var(--mc-accent); background: var(--mc-dark); }
.active-wide   .regime-formula { border-color: var(--mc-orange); color: var(--mc-orange); background: var(--mc-dark); }

.regime-hint {
  margin-top: 1rem; font-size: 0.82rem; color: var(--mc-text-mid);
  display: flex; align-items: center; gap: 7px;
  opacity: 0; transition: opacity 0.3s;
}
.regime-hint.visible { opacity: 1; }
.regime-hint-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mc-accent); flex-shrink: 0; }
.regime-hint.wide .regime-hint-dot { background: var(--mc-orange); }

/* ── Locked / unlocked ── */
.locked   { pointer-events: none; opacity: 0.25; filter: blur(1.5px); transition: opacity 0.4s, filter 0.4s; user-select: none; }
.unlocked { pointer-events: auto; opacity: 1;    filter: none;        transition: opacity 0.4s, filter 0.4s; }

/* ── Diagram ── */
.diagram-wrap {
  background: var(--mc-dark3);
  border: 1px solid var(--mc-border);
  border-radius: 8px;
  padding: 1rem; overflow: hidden;
}

/* ── Result metrics ── */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.metric {
  background: var(--mc-dark);
  border: 1px solid var(--mc-border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  position: relative; overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.metric:hover { border-color: var(--mc-border-lt); box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
.metric::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--metric-bar, var(--mc-accent));
}
.metric.blue  { --metric-bar: var(--mc-accent); }
.metric.amber { --metric-bar: var(--mc-orange); }

.metric-lbl {
  font-family: 'Space Mono', monospace;
  font-size: 0.56rem; color: var(--mc-muted);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.5rem;
}
.metric-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem; color: var(--mc-text);
  line-height: 1; letter-spacing: 0.03em;
}
.metric-unit { font-size: 0.7rem; color: var(--mc-muted); margin-top: 0.25rem; }

.metric-green { --metric-bar: var(--mc-green); }
.metric-green .metric-val { color: var(--mc-green); }

/* ── Frequency row ── */
.freq-row {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1.4rem; padding-top: 1.4rem;
  border-top: 1px solid var(--mc-border);
  flex-wrap: wrap;
}
.freq-row label { font-size: 0.84rem; color: var(--mc-text-mid); white-space: nowrap; margin: 0; font-weight: 500; }
.freq-row .mc-input { width: 130px; flex-shrink: 0; }
.freq-note {
  flex: 1; font-size: 0.75rem; color: var(--mc-muted);
  line-height: 1.65; font-family: 'Space Mono', monospace;
}

/* ── Warning ── */
.warn {
  display: none; align-items: center; gap: 8px;
  font-size: 0.84rem; color: #fde68a;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: 8px; padding: 0.7rem 1rem; margin-top: 1rem;
}
.warn.visible { display: flex; }

/* ── Method reference ── */
.method-box { font-size: 0.86rem; color: var(--mc-text-mid); line-height: 1.8; }
.method-box p { margin-bottom: 0; }
.method-box p + p { margin-top: 0.75rem; }
.method-box code {
  font-family: 'Space Mono', monospace;
  font-size: 0.76rem; color: var(--mc-accent);
  background: var(--mc-accent-lt); padding: 1px 6px;
  border-radius: 4px; border: 1px solid var(--mc-accent);
}
.method-box strong { color: var(--mc-text); font-weight: 600; }
.method-box em { color: var(--mc-text-mid); }

/* ── Preset buttons ── */
.preset-btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem; padding: 0.4rem 0.85rem;
  background: var(--mc-dark);
  border: 1px solid var(--mc-border-lt);
  border-radius: 6px; color: var(--mc-text-mid);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.preset-btn:hover {
  border-color: var(--mc-accent);
  color: var(--mc-accent);
  background: var(--mc-accent-lt);
}

.calc-footer-note {
  text-align: center; font-size: 0.7rem;
  color: var(--mc-muted); margin-top: 2rem;
  font-family: 'Space Mono', monospace; letter-spacing: 0.08em;
}


/* ── Microstrip calculator responsive ── */
@media (max-width: 768px) {
  .regime-options { grid-template-columns: 1fr; }
  .mc-layout      { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .results-grid   { grid-template-columns: 1fr 1fr; }
  .calc-wrap      { padding: 1rem; border-radius: 10px; }
  .mc-card        { padding: 1.1rem; }
}


/* ═══════════════════════════════ BREADCRUMB ═══════════════════════════════ */
.breadcrumb {
  padding: 0.6rem 2rem;
  margin-top: 68px; /* clears the fixed navbar */
  background: var(--surface);
  border-bottom: 1px solid var(--border-lt);
  font-size: 0.78rem;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
}

.breadcrumb-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s;
}
.breadcrumb a:hover { color: var(--accent); }

.breadcrumb-sep {
  color: var(--border);
  font-size: 0.7rem;
}

.breadcrumb-current {
  color: var(--text-mid);
  font-weight: 500;
}