/* Nexeltra — Premium Industrial Corporate Site */

:root {
  --accent: #e02424;
  --accent-glow: rgba(224, 36, 36, 0.35);
  --accent-soft: rgba(224, 36, 36, 0.12);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 80px;
}

[data-theme="dark"] {
  --bg: #06080f;
  --bg-elevated: #0c1019;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f2f8;
  --text-muted: #8b93a8;
  --glass: rgba(12, 16, 25, 0.72);
  --hero-gradient: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(224, 36, 36, 0.15), transparent 60%);
  --grid-color: rgba(255, 255, 255, 0.03);
  --logo-fill: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --border: rgba(10, 14, 23, 0.08);
  --text: #0a0e17;
  --text-muted: #5c6478;
  --glass: rgba(255, 255, 255, 0.78);
  --hero-gradient: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(224, 36, 36, 0.08), transparent 60%);
  --grid-color: rgba(10, 14, 23, 0.04);
  --logo-fill: #0a0e17;
  --shadow: 0 24px 80px rgba(10, 14, 23, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
body.loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: min(1200px, 92vw); margin-inline: auto; }

/* Loader */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { text-align: center; }
.loader__mark { width: 80px; height: 80px; margin: 0 auto 1rem; }
.loader__text {
  font-family: var(--font-display);
  font-weight: 800; letter-spacing: 0.35em;
  font-size: 0.85rem; color: var(--text);
}
.loader__bar {
  width: 120px; height: 2px; background: rgba(255,255,255,0.1);
  margin: 1.25rem auto 0; border-radius: 2px; overflow: hidden;
}
.loader__bar span {
  display: block; height: 100%; width: 0;
  background: var(--accent);
  animation: loadBar 1.4s ease forwards;
}
@keyframes loadBar { to { width: 100%; } }

/* Logo — HTML wordmark in nav (always shows full NEXELTRA) */
.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 10;
  line-height: 1;
  gap: 0.15rem;
  overflow: visible;
}
.wordmark {
  text-decoration: none;
}
.wordmark__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text);
  white-space: nowrap;
}
.wordmark__x {
  height: 26px;
  width: auto;
  flex-shrink: 0;
  margin: 0 0.1rem;
}

.logo-svg { height: 26px; width: auto; }
.logo-svg--footer { height: 24px; width: auto; max-width: 100%; margin-bottom: 0.75rem; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 800; font-size: 76px;
  fill: var(--logo-fill);
  letter-spacing: 1px;
}

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  overflow: visible;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 1rem;
  overflow: visible;
}
.nav__logo { flex-shrink: 0; z-index: 10; }
.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 10;
}
.nav__toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); transition: var(--transition);
}
.nav__panel {
  display: flex; align-items: center; gap: 0.5rem;
}
.nav__list {
  display: flex; align-items: center; gap: 0.25rem; list-style: none;
}
.nav__link {
  display: flex; align-items: center; gap: 4px;
  padding: 0.5rem 0.85rem; border-radius: 10px;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
  background: none; border: none; cursor: pointer;
}
.nav__link:hover, .nav__link.active { color: var(--text); background: var(--accent-soft); }
.nav__link--cta {
  background: var(--accent) !important; color: #fff !important;
  margin-left: 0.5rem;
}
.nav__link--cta:hover { filter: brightness(1.1); }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-card);
  cursor: pointer; display: grid; place-items: center;
  margin-left: 0.75rem; position: relative;
}
.theme-toggle__icon { font-size: 1rem; position: absolute; transition: var(--transition); }
[data-theme="dark"] .theme-toggle__icon--sun { opacity: 1; transform: rotate(0); }
[data-theme="dark"] .theme-toggle__icon--moon { opacity: 0; transform: rotate(90deg); }
[data-theme="light"] .theme-toggle__icon--sun { opacity: 0; transform: rotate(-90deg); }
[data-theme="light"] .theme-toggle__icon--moon { opacity: 1; transform: rotate(0); }

/* Mega menu — click to open/close (no sticky hover) */
.nav__item--mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 4px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(640px, 90vw);
  padding: 1.25rem;
  background: var(--glass);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 100;
}
/* Invisible bridge so cursor can move into menu without closing */
.nav__item--mega::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 16px;
  display: none;
}
.nav__item--mega.open::after { display: block; }
.nav__item--mega.open .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem;
}
.mega__item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 0.85rem 1rem; border-radius: 12px;
  transition: background var(--transition), transform 0.2s ease;
}
.mega__item:hover { background: var(--accent-soft); transform: translateX(4px); }
.mega__item--wide { grid-column: 1 / -1; }
.mega__icon { font-size: 1.25rem; margin-bottom: 0.25rem; }
.mega__item strong { font-size: 0.9rem; font-weight: 600; }
.mega__item small { font-size: 0.75rem; color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.75rem; border-radius: 12px;
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow var(--transition), filter var(--transition);
  border: none; cursor: pointer;
}
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--full { width: 100%; }

/* Hero */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--hero-gradient);
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}
.hero__orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  animation: float 12s ease-in-out infinite;
}
.hero__orb--1 { width: 400px; height: 400px; background: rgba(224,36,36,0.12); top: -10%; right: -5%; }
.hero__orb--2 { width: 300px; height: 300px; background: rgba(59,130,246,0.08); bottom: 10%; left: -5%; animation-delay: -4s; }
.hero__orb--3 { width: 200px; height: 200px; background: rgba(224,36,36,0.08); top: 40%; left: 30%; animation-delay: -8s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding-top: 1rem;
}
.hero__content,
.hero__content * {
  opacity: 1 !important;
  visibility: visible !important;
}
.hero__badge,
.hero__line,
.hero__desc,
.hero__actions,
.hero__stats {
  opacity: 1;
  transform: none;
}
.hero__badge {
  display: inline-block;
  padding: 0.4rem 1rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--border); background: var(--glass);
  backdrop-filter: blur(12px); margin-bottom: 1.5rem;
  color: var(--accent);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero__line { display: block; }
.hero__line--accent {
  background: linear-gradient(135deg, var(--text) 40%, var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__desc {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 580px; margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.5rem; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
}
.stat__num {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 800; color: var(--accent);
  line-height: 1;
}
.stat__suffix { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.stat__label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Sections */
.section { padding: 6rem 0; position: relative; }
.section__label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section__title em { font-style: normal; color: var(--accent); }
.section__text { color: var(--text-muted); max-width: 560px; margin-bottom: 1rem; }
.section__text--center { margin-inline: auto; text-align: center; }
.section__head { text-align: center; margin-bottom: 3rem; }
.section__head .section__text { margin-inline: auto; }

.reveal { opacity: 0; transform: translateY(32px); }

/* Hero content always visible — never wait for scroll */
.hero__badge,
.hero__line,
.hero__desc,
.hero__actions,
.hero__stats {
  opacity: 1;
  transform: none;
}

/* Glass card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.3s ease, border-color var(--transition), box-shadow var(--transition);
}
.glass-card:hover {
  border-color: rgba(224, 36, 36, 0.25);
  box-shadow: 0 16px 48px var(--accent-glow);
}

/* About */
.about { background: var(--bg-elevated); }
.about__grid { display: grid; gap: 1rem; max-width: 800px; }
.about__cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem; margin-top: 2rem;
}
.about__cards h3 { font-family: var(--font-display); margin-bottom: 0.5rem; font-size: 1.1rem; }
.about__cards p { font-size: 0.9rem; color: var(--text-muted); }

/* Services */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.service-card {
  position: relative; overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.35s ease, border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(224, 36, 36, 0.3);
  box-shadow: 0 20px 60px var(--accent-glow);
}
.service-card.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 60px var(--accent-glow);
}
.service-card--featured { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .service-card--featured {
    display: grid; grid-template-columns: auto 1fr auto;
    align-items: center; gap: 2rem;
  }
}
.service-card__glow {
  position: absolute; top: -50%; right: -50%; width: 100%; height: 100%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  opacity: 0; transition: opacity 0.4s ease;
}
.service-card:hover .service-card__glow { opacity: 1; }
.service-card__icon {
  width: 48px; height: 48px; color: var(--accent); margin-bottom: 1.25rem;
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-family: var(--font-display); font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.service-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.service-card__link {
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  transition: gap 0.2s ease;
}
.service-card__link:hover { text-decoration: underline; }

/* Industries */
.industries { background: var(--bg-elevated); }
.industries__grid {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
}
.industry-pill {
  padding: 0.65rem 1.35rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-card);
  font-size: 0.9rem; font-weight: 500;
  transition: transform 0.25s ease, border-color var(--transition), background var(--transition);
  cursor: default;
}
.industry-pill:hover {
  transform: scale(1.05);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Projects */
.projects { background: var(--bg-elevated); }
.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .projects__grid { grid-template-columns: repeat(3, 1fr); }
}
.project-card {
  opacity: 1;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-card);
  transition: transform 0.35s ease, box-shadow var(--transition);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card__visual {
  height: 180px; position: relative; overflow: hidden;
}
.project-card__visual--1 {
  background: linear-gradient(135deg, #1a1f2e 0%, #e02424 100%);
}
.project-card__visual--2 {
  background: linear-gradient(135deg, #0f172a 0%, #3b82f6 100%);
}
.project-card__visual--3 {
  background: linear-gradient(135deg, #1a1f2e 0%, #10b981 100%);
}
.project-card__body { padding: 1.5rem; }
.project-card__tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; display: block;
}
.project-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.5rem; }
.project-card p { font-size: 0.88rem; color: var(--text-muted); }

/* Team */
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin-inline: auto;
}
.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.3s ease, border-color var(--transition), box-shadow var(--transition);
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 36, 36, 0.3);
  box-shadow: 0 16px 48px var(--accent-glow);
}
.team-card__avatar {
  width: 72px; height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #8b0000);
  border: 2px solid var(--border);
}
.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.team-card__role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.team-card__bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Why */
.why__grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .why__grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
}
.why-item {
  display: flex; gap: 1.25rem; padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.why-item__num {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--accent); opacity: 0.6; flex-shrink: 0;
}
.why-item h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 0.35rem; }
.why-item p { font-size: 0.9rem; color: var(--text-muted); }

/* Tech */
.tech { background: var(--bg-elevated); }
.tech__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.tech__tags span {
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color var(--transition), background var(--transition), transform 0.2s ease;
}
.tech__tags span:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}
.tech__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.tech-card h4 { font-family: var(--font-display); margin-bottom: 0.35rem; }
.tech-card p { font-size: 0.85rem; color: var(--text-muted); }

/* Testimonials */
.testimonials__slider { position: relative; }
.testimonial-track {
  display: flex; gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial {
  flex: 0 0 min(100%, 480px); scroll-snap-align: start;
}
.testimonial p {
  font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.25rem;
  font-style: italic; color: var(--text-muted);
}
.testimonial footer strong { display: block; font-size: 0.95rem; }
.testimonial footer span { font-size: 0.8rem; color: var(--text-muted); }
.testimonials__dots {
  display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem;
}
.testimonials__dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; background: var(--border); cursor: pointer;
  transition: background var(--transition), transform 0.2s ease;
}
.testimonials__dots button.active { background: var(--accent); transform: scale(1.3); }

/* Contact */
.contact__grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
}
.contact__info { list-style: none; margin-top: 2rem; }
.contact__info li { margin-bottom: 1rem; }
.contact__info strong { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.2rem; }
.contact__info a { color: var(--accent); font-weight: 500; }
.contact__info a:hover { text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
.contact-form label { display: flex; flex-direction: column; gap: 0.35rem; }
.contact-form label span { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.85rem 1rem; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-note { text-align: center; color: var(--accent); font-weight: 600; font-size: 0.9rem; }

/* Footer */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem; padding-bottom: 3rem;
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
.footer__brand p { font-size: 0.85rem; color: var(--text-muted); max-width: 260px; }
.footer h4 { font-family: var(--font-display); font-size: 0.85rem; margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer a { font-size: 0.85rem; color: var(--text-muted); transition: color var(--transition); }
.footer a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  padding: 1.5rem 0; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-muted);
}

/* Mobile nav */
@media (max-width: 960px) {
  .nav__toggle { display: flex; }
  .nav__panel {
    position: fixed; inset: 0; top: 0;
    flex-direction: column; justify-content: center;
    background: var(--bg);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--transition), visibility var(--transition);
    padding: 2rem;
  }
  .nav__panel.open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; width: 100%; }
  .nav__link { padding: 1rem; font-size: 1.1rem; justify-content: center; }
  .nav__link--cta { margin: 0.5rem 0 0; }
  .mega {
    position: static; transform: none; width: 100%;
    opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none; border: none; background: transparent;
    padding: 0.5rem 0 0; display: none;
  }
  .nav__item--mega.open .mega { display: block; }
  .nav__item--mega::after { display: none !important; }
  .mega__grid { grid-template-columns: 1fr; }
  .theme-toggle { margin: 1.5rem auto 0; }
  .nav__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

@media (max-width: 480px) {
  .wordmark__text { font-size: 0.95rem; }
  .wordmark__x { height: 22px; }
  .nav__link { padding: 0.5rem 0.6rem; font-size: 0.82rem; }
}
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
