/* Mantra62 malimarches.com — Varian E + Holographic UI */

:root {
  --bg: #0a1628;
  --bg-panel: #0d1f3c;
  --blue-deep: #1a237e;
  --blue: #1565c0;
  --gold: #ffd700;
  --gold-warm: #ffb300;
  --red: #c62828;
  --cyan: #26c6da;
  --magenta: #e040fb;
  --purple: #7b1fa2;
  --text: #eef3ff;
  --muted: #94a8c9;
  --holo: linear-gradient(135deg, #ffd700, #26c6da, #e040fb, #7b1fa2, #ffd700);
  --container: 1000px;
  --bottom-nav: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: var(--bottom-nav);
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 40% at 50% 0%, rgba(21, 101, 192, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 90% 70%, rgba(224, 64, 251, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--blue-deep) 100%);
  pointer-events: none;
}

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

a { color: var(--gold); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--gold-warm); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
}

.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* SVG icons */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  color: currentColor;
}

.ico--sm { width: 1em; height: 1em; }
.ico--lg { width: 1.35rem; height: 1.35rem; }
.ico--btn { width: 0.95em; height: 0.95em; }

/* Holographic border card */
.holo-card {
  position: relative;
  background: var(--bg-panel);
  border-radius: 12px;
  overflow: hidden;
}

.holo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 12px;
  background: var(--holo);
  background-size: 300% 300%;
  animation: holo-shift 8s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes holo-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Desktop header */
.site-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 400;
  background: rgba(10, 22, 40, 0.92);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  backdrop-filter: blur(8px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 58px;
}

.brand-mark img {
  height: 30px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.header-nav {
  display: flex;
  gap: 0.15rem;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-nav a:hover { color: var(--cyan); }

.header-cta {
  display: flex;
  gap: 0.4rem;
}

@media (min-width: 900px) {
  .site-header { display: block; }
  body { padding-bottom: 0; }
}

/* Mobile top strip */
.mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: rgba(10, 22, 40, 0.95);
  border-bottom: 1px solid rgba(255, 215, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 350;
}

.mobile-top img {
  height: 26px;
  width: auto;
  max-width: 130px;
}

.mobile-top-cta {
  display: flex;
  gap: 0.35rem;
}

@media (min-width: 900px) {
  .mobile-top { display: none; }
}

/* Bottom nav — variant E */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  min-height: var(--bottom-nav);
  background: rgba(10, 22, 40, 0.97);
  border-top: 1px solid rgba(38, 198, 218, 0.25);
  backdrop-filter: blur(10px);
  padding: 0.25rem 0.5rem env(safe-area-inset-bottom, 0);
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.2rem;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 72px;
}

.bottom-nav a .ico { width: 1.2rem; height: 1.2rem; }

.bottom-nav a.active,
.bottom-nav a:hover {
  color: var(--gold);
}

.bottom-nav a.active .ico { color: var(--cyan); }

@media (min-width: 900px) {
  .bottom-nav { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform 0.1s, box-shadow 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn-holo {
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold), var(--gold-warm));
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.btn-holo:hover { color: var(--bg); box-shadow: 0 0 28px rgba(255, 215, 0, 0.45); }

.btn-outline {
  color: var(--cyan);
  background: transparent;
  border: 1px solid rgba(38, 198, 218, 0.45);
}

.btn-outline:hover { border-color: var(--magenta); color: var(--magenta); }

.btn-lg { padding: 0.7rem 1.5rem; font-size: 0.75rem; }

/* Cyber hero — variant E */
.cyber-hero {
  padding: 1.75rem 0 2rem;
}

.hero-intro {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(198, 40, 40, 0.35);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 50px;
}

.cyber-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
}

.cyber-hero h1 a { color: var(--gold); }

.hero-lead {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.cyber-banner {
  max-width: 460px;
  margin-inline: auto;
  padding: 6px;
}

.cyber-banner img {
  border-radius: 8px;
  width: 100%;
}

/* Chip row */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(21, 101, 192, 0.25);
  border: 1px solid rgba(38, 198, 218, 0.2);
  border-radius: 50px;
}

.chip .ico { color: var(--gold); }

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 800;
}

.prose-panel {
  padding: 1.5rem;
  max-width: 40rem;
  margin-inline: auto;
}

.prose-panel p { margin: 0 0 0.9rem; color: var(--muted); }

.article-panel {
  padding: 1.5rem;
  max-width: 42rem;
  margin-inline: auto;
}

.article-panel h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.2rem 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.article-panel h3 .ico { color: var(--gold); }

.article-panel p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.article-note {
  margin-top: 1rem !important;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Alternating benefit rows — variant E */
.alt-benefits { display: flex; flex-direction: column; gap: 0.75rem; }

.alt-row {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.4rem;
}

.alt-row:nth-child(odd) { text-align: left; }
.alt-row:nth-child(even) { text-align: right; }

.alt-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(21, 101, 192, 0.3);
}

.alt-icon .ico { width: 1.5rem; height: 1.5rem; color: var(--gold); }

.alt-row:nth-child(even) .alt-icon { margin-left: auto; }

.alt-row h3 {
  margin: 0 0 0.3rem;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.alt-row p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (min-width: 640px) {
  .alt-row {
    grid-template-columns: auto 1fr;
    max-width: 85%;
  }

  .alt-row:nth-child(even) {
    grid-template-columns: 1fr auto;
    margin-left: auto;
    text-align: right;
  }

  .alt-row:nth-child(even) .alt-body { order: 1; }
  .alt-row:nth-child(even) .alt-icon { order: 2; margin-left: 0; }
}

/* FAQ */
.faq-list { max-width: 40rem; margin-inline: auto; }

.faq-item {
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-q-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-q-text .ico { color: var(--cyan); }

.faq-toggle .ico { width: 1.15rem; height: 1.15rem; color: var(--magenta); }
.faq-item.open .faq-toggle .ico { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-a-inner {
  padding: 0 1rem 0.9rem;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(38, 198, 218, 0.2);
  background: rgba(10, 22, 40, 0.9);
  padding: 2rem 0 1.25rem;
  margin-top: 0.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  height: 26px;
  width: auto;
  margin-bottom: 0.45rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 20rem;
}

.footer-nav h4 {
  margin: 0 0 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-nav ul { list-style: none; margin: 0; padding: 0; }

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .holo-card::before { animation: none; }
  .faq-a { transition: none; }
}
