/* ============================================================
   BrailleBridge — Showcase Website
   Light, professional, serif-led editorial design system
   ============================================================ */

:root {
  /* Palette — light premium (skill: architecture/interior + brand gold/navy) */
  --paper: #FBFAF7;          /* page background — warm ivory */
  --paper-deep: #F4F1EA;     /* alt section background */
  --surface: #FFFFFF;        /* cards */
  --ink: #17181C;            /* primary text — near-black */
  --ink-soft: #45464E;       /* secondary text */
  --muted: #6B6C76;          /* tertiary text — ≥4.5:1 on paper */
  --line: #E7E2D8;           /* hairlines */
  --line-soft: #EFEBE2;
  --gold: #A16207;           /* accent — WCAG-safe on paper */
  --gold-deep: #7C4D05;
  --gold-soft: #C49A4A;      /* decorative gold */
  --gold-tint: #F5EBD6;      /* gold wash */
  --navy: #0F111A;           /* dark sections */
  --navy-soft: #1A1D29;
  --blue: #1E40AF;
  --green: #0E7490;
  --red: #B3261E;
  --shadow-sm: 0 1px 2px rgba(23, 24, 28, 0.05), 0 1px 8px rgba(23, 24, 28, 0.04);
  --shadow-md: 0 2px 6px rgba(23, 24, 28, 0.05), 0 8px 28px rgba(23, 24, 28, 0.07);
  --shadow-lg: 0 4px 12px rgba(23, 24, 28, 0.06), 0 24px 64px rgba(23, 24, 28, 0.10);

  /* Type */
  --serif: 'Playfair Display', 'Noto Serif Bengali', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
  --bangla: 'Noto Serif Bengali', var(--serif);

  --container: 1180px;
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.3s var(--ease);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gold-tint); color: var(--gold-deep); }

img, svg { display: block; }
a { color: var(--gold-deep); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D8D2C6; border-radius: 6px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-soft); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #FFFDF8;
  box-shadow: 0 2px 4px rgba(124, 77, 5, 0.25), 0 10px 26px rgba(124, 77, 5, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(124, 77, 5, 0.28), 0 16px 36px rgba(124, 77, 5, 0.28); color: #FFFDF8; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-deep); background: rgba(196, 154, 74, 0.05); }

.btn-light {
  background: #FFFDF8;
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), 0 14px 34px rgba(0, 0, 0, 0.22);
}
.btn-light:hover { transform: translateY(-2px); color: var(--gold-deep); box-shadow: 0 4px 10px rgba(0,0,0,0.22), 0 20px 44px rgba(0,0,0,0.26); }

.btn-sm { padding: 10px 20px; font-size: 13.5px; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.site-nav.scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(251, 250, 247, 0.94);
  box-shadow: 0 1px 12px rgba(23, 24, 28, 0.05);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 5px;
  padding: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 2px 6px rgba(15,17,26,0.3);
}
.brand-mark i { border-radius: 50%; background: var(--gold-soft); transition: transform 0.4s var(--ease); }
.brand:hover .brand-mark i:nth-child(1) { transform: translateY(-1px); }
.brand-mark i:nth-child(2) { background: rgba(196, 154, 74, 0.35); }
.brand-mark i:nth-child(3) { background: rgba(196, 154, 74, 0.55); }
.brand-mark i:nth-child(4) { background: rgba(196, 154, 74, 0.75); }

.brand-word {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand-word em { font-style: italic; color: var(--gold); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 5px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(1200px 520px at 85% -10%, rgba(196, 154, 74, 0.14) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(30, 64, 175, 0.05) 0%, transparent 55%);
}
.hero-grain {
  position: absolute; inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(23, 24, 28, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 40%, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 90%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 34px; height: 1.5px;
  background: linear-gradient(to right, var(--gold), transparent);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 26px;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-deep) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.08em;
}

.hero-lede {
  font-size: 17.5px;
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: 36px;
}
.hero-lede strong { color: var(--ink); font-weight: 600; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 640px;
}
.hero-stats .stat {
  padding: 18px 16px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.hero-stats .stat:hover {
  transform: translateY(-4px);
  border-color: var(--gold-tint);
  box-shadow: var(--shadow-sm);
}
.hero-stats dt {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.hero-stats .num { font-variant-numeric: tabular-nums; }
.hero-stats .suffix { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--gold-deep); }
.hero-stats dd { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.4; }

/* ---- Hero device illustration ---- */
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }

.device {
  position: relative;
  width: min(360px, 100%);
  background: linear-gradient(160deg, #FFFFFF 0%, #F7F4EC 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.9);
  animation: floaty 7s ease-in-out infinite;
  z-index: 2;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-0.6deg); }
}

.device-glow {
  position: absolute;
  inset: -14%;
  background: radial-gradient(circle at 50% 45%, rgba(196, 154, 74, 0.22), transparent 65%);
  filter: blur(24px);
  z-index: -1;
}

.device-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.device-leds { display: flex; gap: 8px; }
.led { width: 13px; height: 13px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 3px rgba(0,0,0,0.04); }
.led-red { background: radial-gradient(circle at 35% 30%, #FF8A80, var(--red) 70%); }
.led-green { background: radial-gradient(circle at 35% 30%, #6FE0B0, #12805C 70%); }
.led-dim { background: #E3DED2; }
.device-chip {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  background: var(--paper-deep);
  border: 1px solid var(--line-soft);
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.device-cell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 34px;
  justify-content: center;
  padding: 30px 34px;
  background: linear-gradient(160deg, var(--navy) 0%, #191C29 100%);
  border-radius: 20px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5), 0 6px 18px rgba(15,17,26,0.28);
  margin-bottom: 20px;
}
.hero-dot {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(150deg, #2A2E40, #1E2231);
  box-shadow: 0 4px 0 rgba(0,0,0,0.45), inset 0 1px 1px rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.35);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.hero-dot.on { background: radial-gradient(circle at 40% 32%, #E9CB8B, var(--gold) 72%); box-shadow: 0 2px 0 rgba(0,0,0,0.45), 0 0 22px rgba(196,154,74,0.55); color: rgba(23,24,28,0.75); }

.device-keys { display: flex; gap: 12px; margin-bottom: 18px; }
.key {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  padding: 9px 8px;
  border-radius: 10px;
  background: #EFEBE2;
  border: 1px solid var(--line);
  color: var(--muted);
}
.key-gold { background: var(--gold-tint); border-color: var(--gold-soft); color: var(--gold-deep); }

.device-footer { display: flex; align-items: center; justify-content: space-between; }
.badge {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  background: var(--gold-tint);
  border: 1px solid var(--gold-soft);
  padding: 4px 12px;
  border-radius: 999px;
}
.device-footer .dots { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.device-footer .output {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  min-width: 44px;
  text-align: center;
  line-height: 1;
}

.device-captions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 26px;
}
.device-caption {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 13.5px;
  font-style: italic;
  font-weight: 500;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.device-caption:hover { transform: translateY(-2px); border-color: var(--gold-soft); box-shadow: var(--shadow-md); }
.cap-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); flex-shrink: 0; }

.hero-scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-scroll svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ============================================================
   QUOTE BAND — curved marquee
   ============================================================ */
.quote-band {
  background: linear-gradient(135deg, var(--navy) 0%, #171A26 55%, #1E1C2E 100%);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.quote-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 340px at 15% 50%, rgba(196, 154, 74, 0.10) 0%, transparent 60%),
    radial-gradient(700px 300px at 85% 45%, rgba(30, 64, 175, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

.curved-loop {
  position: relative;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  touch-action: pan-y;
}
.curved-loop:active { cursor: grabbing; }

.curved-loop-svg {
  display: block;
  width: 100%;
  aspect-ratio: 1440 / 200;
  overflow: visible;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.6vw, 3.5rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}
.curved-text { fill: url(#curveGrad); }
.curved-measure {
  font: inherit;
  white-space: pre;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 108px 0; }
.section-alt { background: var(--paper-deep); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 18px;
}
.section-title em { font-style: italic; font-weight: 500; color: var(--gold-deep); }
.section-lede { font-size: 17px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 56px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--gold-soft), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-tint); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--gold-tint);
  border: 1px solid rgba(196, 154, 74, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.35s var(--ease), background 0.3s ease;
}
.card:hover .card-icon { transform: rotate(-6deg) scale(1.05); background: #F2E4C6; }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.card h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Flow row ---------- */
.flow-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
}
.flow-node { flex: 1; min-width: 240px; }
.flow-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  padding: 3px 10px;
  background: var(--paper-deep);
  border-radius: 999px;
  border: 1px solid var(--line-soft);
}
.flow-node-accent .flow-kicker { color: var(--gold-deep); background: var(--gold-tint); border-color: var(--gold-soft); }
.flow-text { font-family: var(--serif); font-size: 18px; font-style: italic; color: var(--ink-soft); }
.flow-arrow { width: 40px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Architecture ---------- */
.arch {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  margin-bottom: 48px;
}
.arch-stage { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }

.arch-node {
  text-align: center;
  padding: 26px 24px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: var(--paper);
  min-width: 220px;
  flex: 1;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.arch-node:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--gold-tint); }

.arch-student { border-top: 3px solid var(--blue); }
.arch-esp { border-top: 3px solid var(--gold); }
.arch-out { border-top: 3px solid var(--green); flex: 1; min-width: 240px; }

.arch-icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-tint);
}
.arch-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--gold-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.arch-node h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.arch-node p { font-size: 13.5px; color: var(--ink-soft); max-width: 30ch; margin: 0 auto 12px; }
.arch-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-deep);
  border: 1px solid var(--line-soft);
  padding: 4px 12px;
  border-radius: 999px;
}

.arch-line { width: 90px; height: 24px; fill: none; stroke: var(--gold-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.arch-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.arch-branch { position: relative; }
.branch-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.branch-label svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arch-branch + .arch-branch::before {
  content: '';
  position: absolute;
  top: 10px; left: -12px;
  width: 1px; height: calc(100% - 20px);
  background: var(--line);
}

/* ---------- How list ---------- */
.how-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.how-item {
  position: relative;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.how-num {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold-soft);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}
.how-item p { font-size: 14px; color: var(--ink-soft); }
.how-item p strong { display: block; font-family: var(--serif); font-size: 16.5px; color: var(--ink); margin-bottom: 4px; }

/* ============================================================
   FEATURE LIST (Innovation)
   ============================================================ */
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 60px; }
.feature { padding: 8px 6px; }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gold-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.3s var(--ease);
}
.feature:hover .feature-icon { transform: rotate(-6deg); }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h4, .feature .feature-title { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 340px; }
.tbl caption {
  text-align: left;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
}
.tbl th {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 11px 20px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.tbl td { padding: 11px 20px; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background 0.2s ease; }
.tbl tbody tr:hover { background: rgba(196, 154, 74, 0.05); }
.tbl td:first-child { font-weight: 600; color: var(--ink); }
.tbl .tbl-highlight { background: var(--gold-tint); }
.tbl .tbl-highlight td { color: var(--ink); }
.tbl .tbl-highlight:hover { background: #F2E4C6; }
.mono { font-family: var(--mono); font-size: 12.5px; color: var(--gold-deep) !important; font-weight: 500 !important; letter-spacing: 0.02em; }
.bn, .bn-tbl td.bn { font-family: var(--bangla); font-size: 17px; }

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 30px; }
.spec-grid .table-wrap { min-width: 0; }

/* ---------- LED note ---------- */
.led-note {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.led-note p { font-size: 14px; color: var(--ink-soft); flex: 1; min-width: 260px; }
.led-note p strong { color: var(--ink); }
.led-sample { display: flex; gap: 6px; }

/* ============================================================
   FIRMWARE
   ============================================================ */
.firmware-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 56px; }

.code-card {
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.06);
}
.code-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.code-dots { display: flex; gap: 6px; }
.code-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.code-name { font-family: var(--mono); font-size: 12.5px; color: rgba(255,255,255,0.7); }
.code-lang {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  border: 1px solid rgba(196,154,74,0.35);
  padding: 3px 9px;
  border-radius: 999px;
}
.code-card pre {
  padding: 22px 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: #E8E6E0;
}
.code-card code { font-family: var(--mono); }
.c-kw { color: #C8A96A; }
.c-num { color: #8FB9A8; }
.c-bool { color: #8FB9A8; }
.code-card .c-kw { font-weight: 500; }

.firmware-copy { display: flex; flex-direction: column; gap: 22px; }
.firmware-point { display: flex; gap: 18px; align-items: flex-start; }
.fw-num {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-soft);
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-tint);
}
.firmware-point h4 { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.firmware-point p { font-size: 14.5px; color: var(--ink-soft); }
code.mono { background: var(--paper-deep); border: 1px solid var(--line-soft); padding: 1px 7px; border-radius: 6px; font-size: 12.5px; }

/* ---------- Pipeline ---------- */
.pipeline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}
.pipe {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border: 1px solid var(--line-soft);
  padding: 9px 16px;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.pipe:hover { border-color: var(--gold-soft); color: var(--gold-deep); }
.pipe-gold { background: var(--gold-tint); border-color: var(--gold-soft); color: var(--gold-deep); }
.pipeline svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ============================================================
   DEMO
   ============================================================ */
.section-demo {
  background:
    radial-gradient(1000px 460px at 15% 0%, rgba(196, 154, 74, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, #F6F2E9 100%);
}

.demo-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto;
}

.demo-cell-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.demo-cell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  padding: 34px 38px;
  background: linear-gradient(160deg, var(--navy) 0%, #181B28 100%);
  border-radius: 18px;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.55), 0 10px 26px rgba(15,17,26,0.3);
  margin-bottom: 26px;
}
.demo-dot {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(150deg, #2B2F42, #1F2333);
  box-shadow: 0 5px 0 rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.4);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.demo-dot:hover { transform: translateY(-3px); box-shadow: 0 8px 0 rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.15); }
.demo-dot:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,0.5); }
.demo-dot[aria-pressed="true"] {
  background: radial-gradient(circle at 40% 32%, #F0D69A, var(--gold) 74%);
  box-shadow: 0 2px 0 rgba(0,0,0,0.45), 0 0 26px rgba(196,154,74,0.6);
  color: rgba(23,24,28,0.8);
  transform: translateY(3px);
}
.demo-dot:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; }
.demo-dot.pop { animation: dotPop 0.35s var(--ease); }
@keyframes dotPop {
  0% { transform: translateY(3px) scale(1); }
  35% { transform: translateY(3px) scale(1.18); }
  100% { transform: translateY(3px) scale(1); }
}

.demo-controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.toggle-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s var(--ease);
}
.toggle-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toggle-btn:hover { border-color: var(--gold-soft); color: var(--gold-deep); }
.toggle-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border-color: transparent;
  color: #FFFDF8;
  box-shadow: 0 2px 8px rgba(124, 77, 5, 0.3);
}
.toggle-group { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.toggle-group .toggle-btn { border: none; border-radius: 0; }
.toggle-group .toggle-btn.active { background: var(--navy); color: #F3EFE4; }
.toggle-shift.active, .toggle-shift[aria-pressed="true"] { background: var(--gold-tint); border-color: var(--gold-soft); color: var(--gold-deep); }
.toggle-space, .toggle-clear { border-radius: 999px; }

.demo-leds { display: flex; gap: 10px; position: absolute; top: 22px; right: 24px; }
.demo-leds .led.on { box-shadow: 0 0 0 4px rgba(0,0,0,0.05), 0 0 14px rgba(196,154,74,0.5); }

.demo-readout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.readout-char {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  background:
    radial-gradient(600px 200px at 50% 120%, rgba(196, 154, 74, 0.12), transparent 70%),
    var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  margin-bottom: 20px;
}
.readout-big {
  font-family: var(--serif);
  font-size: 96px;
  line-height: 1;
  font-weight: 700;
  color: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s ease;
}
.readout-big.flash { animation: charIn 0.35s var(--ease); }
@keyframes charIn {
  0% { opacity: 0; transform: scale(0.7) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.readout-char.bangla .readout-big { font-family: var(--bangla); }

.readout-meta { display: flex; flex-direction: column; margin-bottom: 18px; }
.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px dashed var(--line);
}
.meta-row:last-child { border-bottom: none; }
.meta-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.meta-value { font-size: 15px; font-weight: 600; color: var(--ink); text-align: right; }
.meta-value.mono { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--gold-deep); }

.readout-stream {
  flex: 1;
  min-height: 96px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px 18px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.6;
  color: var(--ink);
  overflow-wrap: break-word;
  max-height: 200px;
  overflow-y: auto;
}
.readout-stream.bangla-stream { font-family: var(--bangla); }
.stream-placeholder { color: var(--muted); font-style: italic; font-size: 17px; opacity: 0.7; }
.stream-char { display: inline-block; animation: charIn 0.3s var(--ease); }
.stream-space { display: inline-block; width: 0.6em; }
.stream-invalid { display: inline-block; color: var(--red); opacity: 0.6; font-family: var(--sans); font-size: 20px; vertical-align: 2px; animation: charIn 0.3s var(--ease); }

.demo-hint {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  max-width: 820px;
  margin: 34px auto 0;
  padding: 18px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.demo-hint svg { width: 26px; height: 26px; flex-shrink: 0; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.demo-hint p { font-size: 14px; color: var(--ink-soft); }
.demo-hint p strong { color: var(--ink); }

/* ============================================================
   DICTIONARIES
   ============================================================ */
.dict-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.dict-tab {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.dict-tab:hover { color: var(--gold-deep); border-color: var(--gold-soft); }
.dict-tab.active { background: var(--navy); color: #F3EFE4; }
.dict-panel .spec-grid { margin-bottom: 0; }

/* ============================================================
   TEACHER SOFTWARE
   ============================================================ */
.software-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 48px;
}
.software-list { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.software-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 15px;
  color: var(--ink-soft);
}
.software-list li svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: var(--gold-tint);
  border-radius: 50%;
  padding: 4px;
  box-sizing: content-box;
}
.software-list code.mono { font-size: 12px; }

.console-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-0.5deg);
  transition: transform 0.4s var(--ease);
}
.console-card:hover { transform: rotate(0deg) translateY(-4px); }
.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: var(--navy);
}
.console-title { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.75); letter-spacing: 0.03em; }
.console-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 10px rgba(74,222,128,0.8); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.console-body { padding: 10px 0; background: var(--paper); }
.console-rows { display: flex; flex-direction: column; }
.console-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.25s ease;
}
.console-row:hover { background: var(--surface); }
.console-row:last-child { border-bottom: none; }
.console-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--av, var(--gold));
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.console-info { min-width: 118px; }
.console-info strong { display: block; font-size: 13.5px; color: var(--ink); }
.console-meta { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.console-text {
  flex: 1;
  font-family: var(--serif);
  font-size: 14.5px;
  color: var(--ink-soft);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.console-bn { font-family: var(--bangla); font-style: normal; font-size: 15px; }

.console-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
  flex-wrap: wrap;
}
.console-foot > span { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; display: inline-block; animation: pulse 2s ease-in-out infinite; }

/* ============================================================
   ENGINEERING
   ============================================================ */
.eng-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.eng-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 26px 24px;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.eng-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-tint); }
.eng-num {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-deep);
  opacity: 0.55;
  letter-spacing: 0.08em;
}
.eng-card h4 { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); margin: 8px 0 6px; }
.eng-card p { font-size: 13.5px; color: var(--ink-soft); }

/* ============================================================
   COST
   ============================================================ */
.cost-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.cost-callout { text-align: center; padding: 20px 8px; }
.cost-big {
  font-family: var(--serif);
  font-size: clamp(72px, 9vw, 116px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.cost-caption { font-size: 15px; color: var(--ink-soft); margin-bottom: 36px; }
.cost-compare { text-align: left; }
.compare-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
  color: var(--ink-soft);
}
.compare-row strong { font-family: var(--serif); font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.compare-row-ours {
  background: var(--gold-tint);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-sm);
  margin-top: 8px;
}
.compare-row-ours span { font-weight: 700; color: var(--ink); }
.compare-row-ours strong { color: var(--gold-deep); }

/* ============================================================
   CONCLUSION
   ============================================================ */
.section-conclusion {
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(196, 154, 74, 0.10), transparent 60%),
    var(--navy);
  color: #EDEAE1;
  position: relative;
  overflow: hidden;
}
.section-conclusion::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
}
.conclusion-inner { max-width: 880px; margin: 0 auto; text-align: center; position: relative; }
.eyebrow-light { color: var(--gold-soft); }
.eyebrow-light::before { background: linear-gradient(to right, var(--gold-soft), transparent); }
.conclusion-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.3;
  font-weight: 500;
  color: #F3EFE4;
  margin-bottom: 24px;
}
.conclusion-title em { font-style: italic; color: var(--gold-soft); }
.conclusion-lede { font-size: 16.5px; color: rgba(237, 234, 225, 0.75); max-width: 62ch; margin: 0 auto 40px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0B0C12; color: #B9BAC4; padding: 72px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer .brand { color: #F3EFE4; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 40ch; color: #8E9099; }
.footer h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #B9BAC4; font-size: 14.5px; }
.footer-col a:hover { color: #F3EFE4; }
.footer-col li { font-size: 14.5px; }
.footer-col strong { color: #EDEAE1; font-weight: 600; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  font-size: 13px;
  color: #6E7078;
  flex-wrap: wrap;
}
.footer-braille { font-family: var(--bangla); letter-spacing: 0.14em; font-size: 16px; color: rgba(196,154,74,0.4); }

/* ============================================================
   CUSTOM CURSOR — braille cell that follows the pointer
   ============================================================ */

/* Hide the native cursor everywhere; our braille cell replaces it.
   Only active when JS adds .js-cursor — if scripts fail, the native cursor stays. */
html.js-cursor, html.js-cursor body,
html.js-cursor a, html.js-cursor button, html.js-cursor input, html.js-cursor select,
html.js-cursor textarea, html.js-cursor label, html.js-cursor [role='button'],
html.js-cursor .toggle-btn, html.js-cursor .dict-tab, html.js-cursor .demo-dot,
html.js-cursor .pipe, html.js-cursor .nav-burger, html.js-cursor .curved-loop {
  cursor: none;
}

.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  width: 34px; height: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  padding: 6px;
  pointer-events: none;
  will-change: transform;
  transform: translate(-50%, -50%);
  transition: width 0.22s var(--ease), height 0.22s var(--ease), padding 0.22s var(--ease), gap 0.22s var(--ease);
  opacity: 0;
}
.cursor i {
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(196, 154, 74, 0.65);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease);
}
.cursor.on { opacity: 1; }

/* Hovering interactive elements: dots glow brighter + cell grows slightly */
.cursor--hover {
  width: 40px; height: 40px;
  padding: 7px;
  gap: 5px;
}
.cursor--hover i {
  background: var(--gold-deep);
  box-shadow: 0 0 10px rgba(196, 154, 74, 0.9);
}

/* Pressing (mousedown): squeeze */
.cursor--press i { transform: scale(0.72); }

/* Over text/copy regions: single dot like an i-beam-ish cue */
.cursor--text {
  width: 18px; height: 18px;
  gap: 0; padding: 0;
}
.cursor--text i:first-child {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  justify-self: center;
  align-self: center;
  width: 3px; height: 18px;
  border-radius: 3px;
  background: var(--gold-deep);
}
.cursor--text i:not(:first-child) { display: none; }

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
  html.js-cursor, html.js-cursor body,
  html.js-cursor a, html.js-cursor button, html.js-cursor input, html.js-cursor select,
  html.js-cursor textarea, html.js-cursor label, html.js-cursor [role='button'],
  html.js-cursor .toggle-btn, html.js-cursor .dict-tab, html.js-cursor .demo-dot,
  html.js-cursor .pipe, html.js-cursor .nav-burger, html.js-cursor .curved-loop {
    cursor: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { transition: none; }
  .cursor i { transition: none; }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-stats { max-width: none; }
  .card-grid, .feature-list, .eng-grid { grid-template-columns: repeat(2, 1fr); }
  .how-list { grid-template-columns: repeat(2, 1fr); }
  .firmware-grid, .software-grid { grid-template-columns: 1fr; }
  .arch-split { grid-template-columns: 1fr; }
  .arch-branch + .arch-branch::before { display: none; }
  .cost-grid { grid-template-columns: 1fr; }
  .demo-shell { grid-template-columns: 1fr; max-width: 640px; }
  .note-1 { right: 0; }
  .note-2 { left: 0; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 78px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 12px 22px 22px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-links a::after { display: none; }
  .nav-burger { display: flex; }
  .nav-actions .btn { display: none; }
  .section { padding: 84px 0; }
  .quote-band { padding: 64px 0; }
  .hero { padding: 140px 0 80px; }
  .hero-title { font-size: clamp(38px, 8vw, 52px); }
}

@media (max-width: 620px) {
  .container { padding: 0 20px; }
  .card-grid, .feature-list, .eng-grid { grid-template-columns: 1fr; }
  .how-list { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .device-captions { margin-top: 18px; }
  .pipeline { flex-direction: column; align-items: stretch; }
  .pipeline svg { transform: rotate(90deg); align-self: center; }
  .demo-cell { padding: 26px 26px; }
  .demo-dot { width: 52px; height: 52px; }
  .readout-big { font-size: 76px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .console-text { max-width: 120px; }
  .tbl { font-size: 13px; }
  .tbl th, .tbl td { padding: 10px 14px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .device { animation: none; }
}
