:root {
  --bg: #08111e;
  --bg-2: #0d1828;
  --panel: #101f33;
  --panel-2: #14263d;
  --text: #ebe5dc;
  --muted: #b9c7d8;
  --muted-2: #8ea6bf;
  --line: rgba(244, 191, 74, 0.18);
  --gold: #f0ae2a;
  --gold-2: #ffd37a;
  --red: #d65b5b;
  --green: #92d48b;
  --shadow: 0 20px 60px rgba(0, 0, 0, .28);
  --radius: 22px;
  --max: 1380px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #07101d;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(240, 174, 42, .08) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(121, 192, 255, .05) 0%, transparent 40%),
    linear-gradient(180deg, #07101d 0%, #0a1321 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.7;
}


a {
  color: var(--gold-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff2c9;
}

/* Breadcrumbs */
.breadcrumb {
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.breadcrumb ol {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 12px;
  flex-wrap: wrap;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-2);
}
.breadcrumb li:not(:last-child)::after {
  content: '\f054';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.7rem;
  opacity: 0.4;
}
.breadcrumb a {
  color: var(--gold);
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--gold-2);
}

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

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

.page-shell {
  padding: 24px 0 56px;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 31, 51, .95), rgba(10, 19, 33, .98));
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 24px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--gold), var(--gold-2), var(--gold));
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  font-size: .88rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.eyebrow a {
  color: var(--gold);
  text-decoration: none;
  transition: color .2s ease;
}

.eyebrow a:hover {
  color: #fff2c9;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.eyebrow .venue-info {
  display: block;
  color: var(--muted-2);
  font-size: .82rem;
  letter-spacing: .08em;
  margin-top: 6px;
  line-height: 1.5;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: .92;
  margin: 0 0 10px;
  letter-spacing: -.03em;
}

h1 .accent {
  color: var(--gold);
}

.subtitle {
  font-size: clamp(1rem, 2.1vw, 1.33rem);
  color: var(--muted);
  max-width: 66ch;
  margin: 0 0 18px;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  margin: 36px 0 0;
}

.author {
  display: block;
  border-left: 2px solid rgba(240, 174, 42, .4);
  padding-left: 16px;
  transition: transform .2s ease;
}

.author:hover {
  transform: translateX(4px);
}

.author strong {
  display: block;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 2px;
}

.author span {
  display: block;
  color: var(--muted-2);
  font-size: .94rem;
  font-style: italic;
}

.hero-actions {
  display: grid;
  gap: 12px;
  align-content: start;
}

.action-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

.action-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #fff;
}

.action-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .95rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #0b1220;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  text-decoration: none;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  box-shadow: 0 10px 30px rgba(240, 174, 42, .18);
}

.btn:hover {
  transform: translateY(-1px);
  color: #09121f;
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.hero-note {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: .84rem;
}

.section {
  background: linear-gradient(180deg, rgba(13, 24, 40, .93), rgba(11, 20, 33, .96));
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "IBM Plex Mono", monospace;
  color: var(--gold);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.section-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.lead-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.08;
  margin: 0 0 10px;
}

.lead-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.75;
}



.footer-note {
  text-align: center;
  margin-top: 100px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.quote {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 0 18px 18px 0;
  background: rgba(240, 174, 42, .08);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.15rem, 2.3vw, 1.65rem);
  line-height: 1.45;
  color: var(--gold-2);
}

.stat-grid,
.failure-grid,
.two-col,
.field-grid,
.reference-grid {
  display: grid;
  gap: 18px;
}

.stat-grid {
  grid-template-columns: 1fr;
}

.failure-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-col {
  grid-template-columns: 1fr 1fr;
}

.field-grid {
  grid-template-columns: 1fr;
}

.reference-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 18px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius);
  padding: 20px;
}

.figure-title,
.card h3,
.panel-title {
  margin: 0 0 16px;
  font-size: 1.42rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
}

.bars {
  display: grid;
  gap: 24px;
}

.bar-group {
  background: rgba(255, 255, 255, .018);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 18px;
  padding: 16px 18px;
}

.bar-label {
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted-2);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, .08);
}

.bar-row {
  display: grid;
  grid-template-columns: 80px 1fr 100px;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  transition: transform .2s ease;
}

.bar-row:hover {
  transform: translateY(-2px);
}

.bar-row:last-child {
  margin-bottom: 0;
}

.lang-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
}

.lang-label.bn {
  color: var(--gold);
}

.track {
  height: 32px;
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.fill {
  height: 100%;
  border-radius: 999px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fill.en {
  background: linear-gradient(90deg, #4b5e78, #6b84a5);
}

.fill.bn {
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  box-shadow: 0 0 15px rgba(240, 174, 42, .3);
}

.bar-val {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
}

.bar-val.en {
  color: var(--muted-2);
}

.bar-val.bn {
  color: var(--gold-2);
}

.hero-stat {
  margin-top: 24px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(240, 174, 42, .4);
  background: rgba(240, 174, 42, .08);
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1;
  color: var(--gold);
  margin-bottom: 8px;
}

.hero-stat span {
  display: block;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
  max-width: 50ch;
  margin: 0 auto;
}

.info-btn {
  font-size: .45em;
  vertical-align: middle;
  opacity: .6;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
  display: inline-flex;
  padding: 4px;
}

.info-btn:hover {
  opacity: 1;
  transform: scale(1.15);
  color: var(--gold);
}

.info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.info-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.info-popover {
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: 24px;
  padding: 32px;
  max-width: 600px;
  position: relative;
  transform: scale(.95);
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}

.info-overlay.active .info-popover {
  transform: scale(1);
}

.popover-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "IBM Plex Mono", monospace;
  color: var(--gold);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}

.popover-body {
  font-family: "IBM Plex Mono", monospace;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
}

.close-popover {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted-2);
  font-size: 1.5rem;
  cursor: pointer;
}

.close-popover:hover {
  color: #fff;
}

.caption {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: .86rem;
}

.cog-box {
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .3s ease, border-color .3s ease;
}

.cog-box:hover {
  transform: translateY(-4px) scale(1.005);
  border-color: rgba(255, 255, 255, .15);
}

.cog-box.native {
  background: rgba(146, 212, 139, .05);
  border-color: rgba(146, 212, 139, .15);
}

.cog-box.foreign {
  background: rgba(214, 91, 91, .06);
  border-color: rgba(214, 91, 91, .15);
}

.micro {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.native .micro {
  color: var(--green);
}

.foreign .micro {
  color: #ff8f8f;
}

.brain {
  font-size: 2.8rem;
  margin-bottom: 6px;
  line-height: 1;
}

.cog-box p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.45;
}

.load-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
}

.load-bar.programming {
  background: linear-gradient(135deg, #027a7a, #1259b6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .1);
}

.load-bar.language {
  background: linear-gradient(135deg, #d65b5b, #7a2a2a);
  color: white;
  border: 1px solid rgba(255, 255, 255, .1);
}

.load-bar.empty {
  background: rgba(146, 212, 139, .1);
  color: var(--green);
  border: 1px dashed rgba(146, 212, 139, .5);
  box-shadow: none;
  font-size: .78rem;
  font-weight: 600;
}

.failure-card {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .018));
  border: 1px solid rgba(255, 255, 255, .07);
  height: 100%;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.failure-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, .15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, .3);
}

.failure-card .icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.failure-card .stat {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--gold);
  margin-bottom: 8px;
}

.failure-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.failure-card p,
.field-card li,
.reference-item {
  margin: 0;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.6;
}

.cite {
  margin-top: 14px;
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted-2);
  font-size: .82rem;
  line-height: 1.7;
}

.core {
  border: 1px solid rgba(240, 174, 42, .28);
  background: rgba(240, 174, 42, .06);
  border-radius: 24px;
  padding: 24px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.18rem, 2.5vw, 1.62rem);
  line-height: 1.6;
}

.core .hl {
  color: var(--gold);
  font-weight: 800;
}

.core .hl2 {
  color: var(--gold-2);
  font-weight: 800;
}

.field-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 12px;
}

.field-card li::marker {
  color: var(--gold);
}

.references-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 18px;
}

.references-note {
  color: var(--muted-2);
  font-size: .92rem;
}

.reference-item {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}

.reference-item::marker {
  color: var(--gold);
}

.reference-item strong {
  display: block;
  color: #fff;
  margin-bottom: 2px;
  font-size: .95rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 32px;
  color: var(--muted-2);
  font-size: .95rem;
}

.foot-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.socials {
  display: flex;
  gap: 20px;
}

.socials a {
  color: var(--muted-2);
  font-size: 1.35rem;
  transition: color .2s ease, transform .2s ease;
  text-decoration: none;
}

.socials a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .foot-flex {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 1024px) {

  .hero-grid,
  .stat-grid,
  .failure-grid,
  .two-col,
  .field-grid,
  .reference-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 24px 22px;
  }

  .section {
    padding: 24px 22px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 14px 0 36px;
  }

  .container {
    width: min(calc(100% - 1rem), var(--max));
  }

  .hero,
  .section {
    border-radius: 24px;
  }

  .bar-row {
    grid-template-columns: 64px 1fr;
    gap: 8px;
  }

  .bar-row strong {
    font-size: .84rem;
  }

  .btn {
    width: 100%;
  }

  .button-row {
    display: grid;
  }
}

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #08111e;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.3rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4), 0 0 0 1px rgba(240, 174, 42, .2);
  opacity: 0;
  visibility: hidden;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(240, 174, 42, .25);
  color: #000;
}

@media (max-width: 640px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
  }
}

.bibtex {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  color: var(--muted);
  overflow-x: auto;
  white-space: pre;
}

/* Copy button hover cursor */
.copy-btn {
  cursor: pointer;
}

/* Inline copy confirmation */
.copy-status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--muted-2);
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Visible success message */
.copy-status.show {
  opacity: 1;
  color: var(--green);
}

/* Optional subtle hover polish */
.copy-btn:hover {
  transform: translateY(-1px);
}