
/* ===== MANTRA LANGUAGE WEBSITE — STYLE =================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg:       #07070f;
  --surface:  #0f0f1a;
  --surface2: #14142a;
  --surface3: #1a1a35;
  --cyan:     #00d4ff;
  --purple:   #8b5cf6;
  --pink:     #c026d3;
  --green:    #22c55e;
  --yellow:   #fbbf24;
  --red:      #f87171;
  --muted:    #64748b;
  --border:   #1e2040;
  --text:     #e2e8f0;
  --grad:     linear-gradient(135deg, #00d4ff, #8b5cf6, #c026d3);
  --font:     'Inter', system-ui, sans-serif;
  --mono:     'JetBrains Mono', 'Fira Code', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; }
a    { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img  { max-width: 100%; }
code { font-family: var(--mono); }

/* ===== NAV ================================================================ */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
  background: rgba(7,7,15,.88); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 700; font-size: 1.1rem; }
.nav-logo img { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a { color: var(--muted); font-size: .875rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.btn-download {
  padding: .45rem 1.1rem; border-radius: 8px; font-size: .85rem; font-weight: 600;
  background: var(--grad); color: #fff; white-space: nowrap;
  transition: opacity .2s, transform .15s;
}
.btn-download:hover { opacity: .85; transform: translateY(-1px); text-decoration: none; }
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.mobile-menu { display: none; flex-direction: column; gap: .5rem; padding: 1rem 2rem;
  background: var(--surface); border-bottom: 1px solid var(--border); }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text); padding: .4rem 0; border-bottom: 1px solid var(--border); }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ===== HERO =============================================================== */
.hero { position: relative; overflow: hidden; padding: 5rem 2rem 4rem; }
.hero-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(139,92,246,.22) 0%, rgba(0,212,255,.1) 50%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-badge {
  display: inline-block; margin-bottom: 1.25rem;
  padding: .35rem 1rem; border-radius: 20px; font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  border: 1px solid rgba(0,212,255,.35); color: var(--cyan);
  background: rgba(0,212,255,.08);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.1; margin-bottom: 1.25rem; }
.grad { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; padding: .75rem 1.75rem; border-radius: 10px;
  font-weight: 700; font-size: .95rem; background: var(--grad); color: #fff;
  transition: opacity .2s, transform .15s;
}
.btn-primary:hover { opacity: .85; transform: translateY(-2px); text-decoration: none; }
.btn-outline {
  display: inline-block; padding: .75rem 1.75rem; border-radius: 10px;
  font-weight: 600; font-size: .95rem; border: 1px solid var(--border); color: var(--text);
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: var(--cyan); background: rgba(0,212,255,.06); text-decoration: none; }

/* ===== CODE WINDOW ======================================================== */
.code-window { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.code-titlebar {
  display: flex; align-items: center; gap: .5rem;
  padding: .65rem 1rem; background: var(--surface2); border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #f87171; } .dot-y { background: #fbbf24; } .dot-g { background: #22c55e; }
.code-filename { margin-left: .5rem; font-size: .8rem; color: var(--muted); font-family: var(--mono); }
.code-body {
  padding: 1.5rem 1.75rem; font-family: var(--mono); font-size: .83rem; line-height: 1.75;
  white-space: pre; overflow-x: auto; color: #cbd5e1; tab-size: 4;
}

/* ===== SYNTAX HIGHLIGHTING ================================================ */
.code-body .k   { color: #00d4ff; font-weight: 600; }
.code-body .t   { color: #c084fc; }
.code-body .s   { color: #34d399; }
.code-body .n   { color: #fbbf24; }
.code-body .c   { color: #64748b; font-style: italic; }
.code-body .fn  { color: #f0abfc; }
.code-body .dec { color: #fb923c; }
.code-body .arr { color: #94a3b8; }

/* ===== SECTIONS =========================================================== */
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: .75rem; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 1rem; }
.section-sub   { font-size: 1.05rem; color: var(--muted); max-width: 640px; }
section { padding: 5rem 2rem; }
.showcase-bg { background: var(--surface); }

/* ===== FEATURE CARDS ====================================================== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 2rem 1.75rem; transition: border-color .25s, transform .2s;
}
.feature-card:hover { border-color: rgba(139,92,246,.55); transform: translateY(-3px); }
.feature-icon  { font-size: 2rem; margin-bottom: 1rem; }
.feature-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.feature-desc  { color: var(--muted); font-size: .92rem; line-height: 1.6; }

/* ===== PACKAGE CARDS ====================================================== */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.pkg-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.5rem; transition: border-color .2s;
}
.pkg-card:hover { border-color: var(--purple); }
.pkg-card h4 { font-family: var(--mono); font-size: .95rem; color: var(--cyan); margin-bottom: .5rem; }
.pkg-card p  { color: var(--muted); font-size: .88rem; margin-bottom: .85rem; }
.pkg-classes { display: flex; flex-wrap: wrap; gap: .4rem; }
.pkg-classes span {
  font-family: var(--mono); font-size: .75rem; padding: .2rem .55rem;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 5px; color: #c084fc;
}

/* ===== TABS =============================================================== */
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tab {
  padding: .5rem 1.1rem; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); font-size: .85rem; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.tab:hover, .tab.active { background: rgba(139,92,246,.18); border-color: var(--purple); color: var(--text); }

/* ===== STATS BAR ========================================================== */
.stats-bar { background: var(--surface2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2.5rem 2rem; }
.stats-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; text-align: center; }
.stat-num   { font-size: 1.6rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: .8rem; color: var(--muted); margin-top: .25rem; }

/* ===== INSTALL BLOCK ====================================================== */
.install-block {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 2rem 2.25rem; margin-top: 3rem;
}
.install-block h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.install-block p  { color: var(--muted); margin-bottom: 1.5rem; font-size: .95rem; }

/* ===== EXAMPLES PAGE ====================================================== */
.examples-hero { text-align: center; padding: 5rem 2rem 3rem; }
.examples-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin: 1rem 0; }
.examples-grid { display: flex; flex-direction: column; gap: 2.5rem; }
.example-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.example-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.example-header h3 { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.example-header p  { color: var(--muted); font-size: .85rem; }
.example-body { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) { .example-body { grid-template-columns: 1fr; } }
.example-code  { padding: 1.5rem; font-family: var(--mono); font-size: .8rem; line-height: 1.75; white-space: pre; overflow-x: auto; color: #cbd5e1; }
.example-output {
  padding: 1.5rem; border-left: 1px solid var(--border);
  background: #020208; font-family: var(--mono); font-size: .8rem; line-height: 1.75;
  color: var(--green); white-space: pre;
}
.example-output-label { color: var(--muted); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .75rem; }

/* ===== DOWNLOAD PAGE ====================================================== */
.dl-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 2.5rem 2rem; text-align: center; transition: border-color .2s, transform .2s; }
.dl-card:hover { border-color: var(--purple); transform: translateY(-4px); }
.dl-icon { display: flex; align-items: center; justify-content: center; height: 64px; margin-bottom: 1.25rem; font-size: 3rem; }
.dl-os-icon { width: 64px; height: 64px; object-fit: contain; display: block; }
.dl-title { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.dl-sub   { color: var(--muted); font-size: .88rem; margin-bottom: 1.5rem; }
.dl-cmd   {
  font-family: var(--mono); font-size: .78rem; color: var(--muted);
  background: var(--surface2); border: 1px solid var(--border);
  padding: .5rem .75rem; border-radius: 6px; margin-top: .75rem; word-break: break-all;
}

/* ===== BACK TO TOP ======================================================== */
.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  color: var(--muted);
  text-decoration: none;
  padding: .3rem .65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface2);
  transition: all .2s ease;
}
.back-to-top-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  text-decoration: none;
  background: var(--surface3);
}

.floating-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--surface2);
  color: var(--cyan);
  border: 1px solid var(--border);
  padding: .6rem 1.1rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all .25s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
.floating-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.floating-back-to-top:hover {
  background: var(--surface3);
  border-color: var(--cyan);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.25);
}

/* ===== MANTRA.TOML BLOCK ================================================== */
.toml-block { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem 1.5rem; margin-top: 1rem; }
.toml-block .section-key { color: var(--cyan); }
.toml-block .toml-key    { color: #f0abfc; }
.toml-block .toml-val    { color: var(--green); }
.toml-block .toml-com    { color: var(--muted); font-style: italic; }

/* ===== FOOTER ============================================================= */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 4rem 2rem 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--muted); font-size: .88rem; margin-top: 1rem; line-height: 1.7; }
.footer-col h4  { font-size: .85rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text); }
.footer-col ul  { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col li a { color: var(--muted); font-size: .88rem; transition: color .2s; }
.footer-col li a:hover { color: var(--cyan); text-decoration: none; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--cyan); }


/* ===== ARCHITECTURE DIAGRAM =============================================== */
.arch-section { padding: 5rem 2rem; background: var(--surface); }

.pipeline-wrapper {
  overflow-x: auto;
  padding: 2.5rem 0 1.5rem;
}

.pipeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 900px;
  position: relative;
}

.pipe-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

.pipe-box {
  border-radius: 12px;
  padding: 1rem 1.1rem;
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 148px;
}

.pipe-box-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}

.pipe-box-name {
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: .3rem;
}

.pipe-box-desc {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.4;
}

.pipe-arrow-h {
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.1rem;
  padding-top: 38px;  /* align with box centers */
}

/* colour themes per stage */
.stage-source   { background: rgba(0,212,255,.1);  border: 1px solid rgba(0,212,255,.45); }
.stage-source   .pipe-box-label { color: var(--cyan); }
.stage-source   .pipe-box-name  { color: var(--cyan); }

.stage-compiler { background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.4); }
.stage-compiler .pipe-box-label { color: #c084fc; }
.stage-compiler .pipe-box-name  { color: #c084fc; }

.stage-split {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  flex: 1;
  padding-top: 0;
}

.stage-vm     { background: rgba(34,197,94,.1);  border: 1px solid rgba(34,197,94,.35); }
.stage-vm     .pipe-box-label { color: var(--green); }
.stage-vm     .pipe-box-name  { color: var(--green); }

.stage-native { background: rgba(251,191,36,.1);  border: 1px solid rgba(251,191,36,.35); }
.stage-native .pipe-box-label { color: var(--yellow); }
.stage-native .pipe-box-name  { color: var(--yellow); }

.pipe-emit-label {
  font-size: .68rem;
  color: var(--muted);
  font-family: var(--mono);
  margin: 0 .5rem;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

/* vertical split wrapper */
.pipe-fork {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  max-width: 340px;
}

.pipe-fork-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== PIPELINE STEPS (numbered explainer) ================================= */
.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.pipe-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.pipe-step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; color: #fff;
}

.pipe-step h4  { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.pipe-step p   { font-size: .83rem; color: var(--muted); line-height: 1.55; }
.pipe-step code { color: var(--cyan); font-family: var(--mono); font-size: .78rem; }

/* ===== COMMUNITY SECTION ================================================== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.community-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color .2s, transform .2s;
  text-align: center;
}
.community-card:hover { border-color: var(--purple); transform: translateY(-3px); }
.community-card .cc-icon { font-size: 2.25rem; margin-bottom: .85rem; }
.community-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.community-card p  { font-size: .88rem; color: var(--muted); margin-bottom: 1.1rem; }

/* ===== COMPARISON TABLES & ARCHITECTURE CARDS ============================ */
.comp-table-wrapper {
  overflow-x: auto;
  margin: 2.5rem 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  text-align: left;
}
.comp-table th {
  background: var(--surface2);
  color: var(--text);
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.comp-table td {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: #cbd5e1;
  line-height: 1.6;
}
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr:hover td { background: rgba(139,92,246,.04); }
.comp-table .feat-name { font-weight: 600; color: var(--cyan); }
.comp-table .rust-col { color: #f97316; font-weight: 500; }
.comp-table .cpp-col { color: #60a5fa; font-weight: 500; }
.verdict-box {
  background: linear-gradient(135deg, rgba(0,212,255,.08), rgba(139,92,246,.12));
  border: 1px solid rgba(139,92,246,.35);
  border-radius: 14px;
  padding: 2.25rem 2rem;
  margin-top: 2.5rem;
}
.verdict-box h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 1rem; color: #fff; }
.verdict-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.verdict-card { background: rgba(7,7,15,.6); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; }
.verdict-card h4 { color: var(--cyan); font-size: 1rem; margin-bottom: .4rem; }
.verdict-card p { font-size: .88rem; color: var(--muted); line-height: 1.55; }

/* ===== ABOUT PAGE & BRANDING ============================================== */
.about-logo-card {
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.18) 0%, rgba(15, 15, 26, 0.95) 70%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 20px;
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(139, 92, 246, 0.15);
  margin: 2.5rem auto 3.5rem;
  max-width: 860px;
}
.about-full-logo {
  max-width: 100%;
  width: 520px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.7));
  transition: transform .3s ease;
}
.about-full-logo:hover {
  transform: scale(1.02);
}
.company-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 2rem 0;
  position: relative;
}
.license-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin: 2rem 0;
}
.license-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.license-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}
.license-badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 1rem;
  align-self: flex-start;
}
.license-badge.mit {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.license-badge.gpl {
  background: rgba(0, 212, 255, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
}
.license-pre {
  background: #05050b;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.65;
  color: #cbd5e1;
  max-height: 460px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== COPY CODE BUTTON VISIBILITY (DARK & LIGHT) ========================== */
.example-header .btn-outline,
.btn-copy,
button[onclick*="copyCode"] {
  background: rgba(0, 212, 255, 0.12) !important;
  border: 1px solid rgba(0, 212, 255, 0.5) !important;
  color: #38bdf8 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: .4rem !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: all .2s ease !important;
}
.example-header .btn-outline:hover,
.btn-copy:hover,
button[onclick*="copyCode"]:hover {
  background: rgba(0, 212, 255, 0.25) !important;
  border-color: #00d4ff !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.35);
}

/* ===== THEME TOGGLE BUTTON ================================================ */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all .2s ease;
  user-select: none;
  flex-shrink: 0;
  line-height: 1;
}
.theme-toggle-btn:hover {
  border-color: var(--cyan);
  background: var(--surface3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.mobile-theme-toggle {
  display: flex;
  width: 100%;
  height: auto;
  padding: .75rem 1rem;
  justify-content: flex-start;
  gap: .75rem;
  font-size: .95rem;
  font-weight: 600;
  margin-top: .75rem;
  border-radius: 8px;
}

/* ===== LIGHT MODE STYLES ([data-theme="light"]) =========================== */
[data-theme="light"] {
  --bg:       #f8fafc;
  --surface:  #ffffff;
  --surface2: #f1f5f9;
  --surface3: #e2e8f0;
  --cyan:     #0284c7;
  --purple:   #7c3aed;
  --pink:     #c026d3;
  --green:    #16a34a;
  --yellow:   #d97706;
  --red:      #dc2626;
  --muted:    #64748b;
  --border:   #cbd5e1;
  --text:     #0f172a;
}

[data-theme="light"] nav {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .nav-logo {
  color: #0f172a;
}

[data-theme="light"] .nav-links a {
  color: #334155;
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
  color: #0284c7;
}

[data-theme="light"] .hero-glow {
  opacity: 0.35;
}

[data-theme="light"] .hero-badge {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.25);
}

[data-theme="light"] .hero-sub {
  color: #475569;
}

[data-theme="light"] .btn-outline {
  border-color: #cbd5e1;
  color: #1e293b;
  background: #ffffff;
}

[data-theme="light"] .btn-outline:hover {
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
}

[data-theme="light"] .code-window {
  background: #0f172a;
  border-color: #cbd5e1;
}

[data-theme="light"] .code-titlebar {
  background: #1e293b;
  border-bottom-color: #334155;
  color: #94a3b8;
}

[data-theme="light"] .example-card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .example-header {
  background: #ffffff;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .example-header h3 {
  color: #0f172a;
}

[data-theme="light"] .example-header p {
  color: #64748b;
}

[data-theme="light"] .example-code {
  background: #0f172a;
  color: #e2e8f0;
}

[data-theme="light"] .example-output {
  background: #090d16;
}

[data-theme="light"] .example-header .btn-outline,
[data-theme="light"] .btn-copy,
[data-theme="light"] button[onclick*="copyCode"] {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

[data-theme="light"] .example-header .btn-outline:hover,
[data-theme="light"] .btn-copy:hover,
[data-theme="light"] button[onclick*="copyCode"]:hover {
  background: #0369a1 !important;
  border-color: #0369a1 !important;
  color: #ffffff !important;
}

[data-theme="light"] .feature-card,
[data-theme="light"] .dl-card,
[data-theme="light"] .install-block,
[data-theme="light"] .pkg-card,
[data-theme="light"] .company-card,
[data-theme="light"] .license-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .feature-title,
[data-theme="light"] .dl-title {
  color: #0f172a;
}

[data-theme="light"] .feature-desc,
[data-theme="light"] .dl-sub {
  color: #475569;
}

[data-theme="light"] .dl-cmd {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .stats-bar {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .mobile-menu {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .mobile-menu a {
  color: #0f172a;
}

[data-theme="light"] footer {
  background: #f1f5f9;
  border-top-color: #e2e8f0;
}

[data-theme="light"] .footer-brand p,
[data-theme="light"] .footer-col ul li a,
[data-theme="light"] .footer-bottom {
  color: #475569;
}

[data-theme="light"] .footer-col h4 {
  color: #0f172a;
}

[data-theme="light"] .back-to-top-btn,
[data-theme="light"] .floating-back-to-top {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0284c7;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .about-logo-card {
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1) 0%, rgba(241, 245, 249, 0.95) 70%);
  border-color: #cbd5e1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* ===== VERSION DOWNLOAD MATRIX & RELEASE ARCHIVE ======================== */
.version-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  transition: border-color .2s;
}
.version-box.latest {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.05);
}
.version-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.version-title-group {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
}
.version-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.version-tag {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.version-tag.latest {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.version-tag.prev {
  background: rgba(148, 163, 184, 0.15);
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.version-meta {
  font-size: .85rem;
  color: var(--muted);
}
.version-notes {
  margin-bottom: 1.5rem;
  font-size: .92rem;
  line-height: 1.6;
  color: #cbd5e1;
}
.version-notes ul {
  margin: .5rem 0 0 1.25rem;
  padding: 0;
}
.version-notes li {
  margin-bottom: .3rem;
}
.dl-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .95rem;
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s;
}
.dl-btn-sm:hover {
  background: var(--cyan);
  color: #0d0d0d;
}
.checksum-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .85rem 1rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted);
  overflow-x: auto;
  margin-top: 1rem;
}

[data-theme="light"] .version-box {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .version-box.latest {
  border-color: #0284c7;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08);
}
[data-theme="light"] .version-title {
  color: #0f172a;
}
[data-theme="light"] .version-notes {
  color: #334155;
}
[data-theme="light"] .checksum-box {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}
[data-theme="light"] .dl-btn-sm {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  border-color: #0284c7;
}
[data-theme="light"] .dl-btn-sm:hover {
  background: #0284c7;
  color: #ffffff;
}
[data-theme="light"] .comp-table th {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}
[data-theme="light"] .comp-table td {
  color: #334155;
  border-color: #e2e8f0;
}
[data-theme="light"] .comp-table tr:hover td {
  background: #f8fafc;
}



