/* =========================================================================
   TICKDATA.IN — SOVEREIGN QUANT, LIQUID GOLD & EMERALD ALPHA DESIGN SYSTEM
   (Includes 1-Click Live Theme Switcher: Sovereign Gold / Daylight Ivory / Jade HFT)
   ========================================================================= */

:root,
[data-theme="ivory"] {
  --bg-0: #f7f4ed;
  --bg-1: #efeae0;
  --bg-2: #e6dfd1;
  --surface: rgba(255, 253, 249, 0.94);
  --surface-solid: #ffffff;
  --surface-hover: #fffcf5;
  --surface-subtle: rgba(180, 83, 9, 0.065);
  --border: rgba(120, 93, 42, 0.22);
  --border-strong: rgba(180, 83, 9, 0.50);
  --accent: #b45309;
  --accent-bright: #92400e;
  --accent-deep: #78350f;
  --emerald: #059669;
  --emerald-bright: #047857;
  --crimson: #e11d48;
  --copper: #c2410c;
  --text: #1c1917;
  --text-soft: #44403c;
  --muted: #78716c;
  --btn-primary-bg: linear-gradient(135deg, #1c1917 0%, #292524 60%, #44403c 100%);
  --btn-primary-fg: #fef3c7;
  --hero-glow-1: rgba(217, 119, 6, 0.12);
  --hero-glow-2: rgba(5, 150, 105, 0.09);
  --grad-headline: linear-gradient(135deg, #92400e 0%, #b45309 48%, #047857 100%);
  --shadow-heavy: 0 22px 55px rgba(28, 25, 23, 0.13);
}

[data-theme="gold"] {
  --bg-0: #0a0908;
  --bg-1: #12100d;
  --bg-2: #1a1612;
  --surface: rgba(24, 20, 16, 0.86);
  --surface-solid: #16130f;
  --surface-hover: rgba(34, 28, 21, 0.96);
  --surface-subtle: rgba(245, 158, 11, 0.055);
  --border: rgba(245, 158, 11, 0.19);
  --border-strong: rgba(251, 191, 36, 0.46);
  --accent: #f59e0b;
  --accent-bright: #fde68a;
  --accent-deep: #b45309;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --crimson: #f43f5e;
  --copper: #fb923c;
  --text: #fafaf9;
  --text-soft: #d6d3d1;
  --muted: #a8a29e;
  --btn-primary-bg: linear-gradient(135deg, #fbbf24 0%, #f59e0b 52%, #d97706 100%);
  --btn-primary-fg: #0c0a09;
  --hero-glow-1: rgba(245, 158, 11, 0.16);
  --hero-glow-2: rgba(16, 185, 129, 0.11);
  --grad-headline: linear-gradient(135deg, #fef3c7 0%, #fbbf24 46%, #34d399 100%);
  --shadow-heavy: 0 28px 75px rgba(0, 0, 0, 0.72);
}

[data-theme="emerald"] {
  --bg-0: #060d0b;
  --bg-1: #0b1714;
  --bg-2: #10221d;
  --surface: rgba(12, 28, 24, 0.86);
  --surface-solid: #0d1d18;
  --surface-hover: rgba(16, 39, 33, 0.96);
  --surface-subtle: rgba(16, 185, 129, 0.07);
  --border: rgba(16, 185, 129, 0.22);
  --border-strong: rgba(52, 211, 153, 0.48);
  --accent: #10b981;
  --accent-bright: #6ee7b7;
  --accent-deep: #047857;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --crimson: #fb7185;
  --copper: #fbbf24;
  --text: #f0fdf4;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --btn-primary-bg: linear-gradient(135deg, #34d399 0%, #10b981 55%, #059669 100%);
  --btn-primary-fg: #04130e;
  --hero-glow-1: rgba(16, 185, 129, 0.18);
  --hero-glow-2: rgba(245, 158, 11, 0.10);
  --grad-headline: linear-gradient(135deg, #a7f3d0 0%, #34d399 50%, #fbbf24 100%);
  --shadow-heavy: 0 28px 75px rgba(0, 0, 0, 0.75);
}

:root {
  --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: "Georgia", "Cambria", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "Consolas", monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-0);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(ellipse 78% 48% at 50% -8%, var(--hero-glow-1), transparent 65%),
    radial-gradient(ellipse 52% 40% at 90% 24%, var(--hero-glow-2), transparent 62%),
    radial-gradient(ellipse 50% 42% at 8% 72%, var(--hero-glow-1), transparent 65%),
    var(--bg-0);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.62;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a { color: inherit; text-decoration: none; }

/* Top Live Institutional Tape */
.telemetry-bar {
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  padding: 8px 20px;
}

.telemetry-inner {
  max-width: 1420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.telemetry-items {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tel-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.tel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.tel-val {
  color: var(--accent-bright);
  font-weight: 700;
}

.tel-val.up {
  color: var(--emerald-bright);
}

/* Palette Switcher Pills */
.palette-switcher {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.pal-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pal-btn.active {
  background: var(--accent);
  color: #0c0a09;
}

[data-theme="ivory"] .pal-btn.active {
  color: #ffffff;
}

.swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 95;
  background: color-mix(in srgb, var(--bg-0) 86%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(16, 185, 129, 0.18));
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.brand-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.brand-name span {
  color: var(--accent);
}

.brand-sub {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-soft);
}

.nav-links a:hover {
  color: var(--accent);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-lg {
  font-size: 14.5px;
  padding: 13px 24px;
  border-radius: 12px;
}

.container {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HERO */
.hero {
  padding: 58px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.35rem, 4.2vw, 3.85rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.032em;
  margin-bottom: 18px;
}

.grad-text {
  background: var(--grad-headline);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 16.5px;
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 26px;
  line-height: 1.68;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric-box {
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.metric-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
}

.metric-num span {
  color: var(--accent);
}

.metric-lbl {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
}

/* 4K UHD Interactive Telemetry Terminal */
.uhd-terminal {
  background: #0c0b09;
  color: #fafaf9;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  box-shadow: var(--shadow-heavy);
  overflow: hidden;
}

.term-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  background: #14120f;
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
  flex-wrap: wrap;
}

.term-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}
.term-dots i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.term-dots i:nth-child(1) { background: #ef4444; }
.term-dots i:nth-child(2) { background: #f59e0b; }
.term-dots i:nth-child(3) { background: #10b981; }

.term-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.term-tab {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #d6d3d1;
  cursor: pointer;
  transition: all 0.16s;
}

.term-tab.active, .term-tab:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #fde68a;
  color: #0c0a09;
}

.canvas-wrap {
  position: relative;
  width: 100%;
  height: 468px;
  background: radial-gradient(circle at 50% 30%, #171410 0%, #080706 88%);
}

.canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.term-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #a8a29e;
  background: #12100d;
  flex-wrap: wrap;
  gap: 8px;
}

/* Generic Sections */
.section {
  padding: 84px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sec-head {
  max-width: 900px;
  margin-bottom: 38px;
}

.sec-head h2 {
  font-size: clamp(1.95rem, 3.2vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.13;
  margin-bottom: 14px;
}

.sec-head p {
  color: var(--text-soft);
  font-size: 16.5px;
  line-height: 1.68;
}

/* =========================================================================
   PROMOTIONAL CINEMA SHOWCASE & 9-LANGUAGE BHARAT VIDEO VAULT
   ========================================================================= */
.cinema-stage {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-heavy);
  margin-bottom: 34px;
}

.player-frame {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.video-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.video-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cinema-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lang-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.lang-chip {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.16s;
}

.lang-chip.active, .lang-chip:hover {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border-color: var(--accent);
}

.playlist-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 520px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.playlist-header {
  padding: 14px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.playlist-scroll {
  overflow-y: auto;
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.play-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 11px;
  padding: 8px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  align-items: center;
  transition: all 0.15s;
}

.play-item:hover {
  background: var(--surface-subtle);
  border-color: var(--border);
}

.play-item.active {
  background: var(--surface-subtle);
  border-color: var(--accent);
}

.play-thumb {
  width: 86px;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.play-info-ed {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
  font-weight: 700;
}

.play-info-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

/* Expandable All-Videos Grid */
.video-vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.vid-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.vid-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.vid-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #060606;
  display: block;
}

.vid-card-body {
  padding: 15px 17px 17px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* =========================================================================
   HIGH-FUNDA QUANT MICROSTRUCTURE & DERIVATIVES PHYSICS CARDS
   ========================================================================= */
.quant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.quant-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.quant-card:hover {
  border-color: var(--border-strong);
}

.quant-formula {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--bg-0);
  border-left: 3px solid var(--accent);
  color: var(--emerald-bright);
  overflow-x: auto;
}

.quant-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.quant-card h3 {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
}

.quant-card p {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.66;
}

/* Filter Pills & Feature Matrix */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter-pill {
  font-size: 12.8px;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.16s;
}

.filter-pill.active, .filter-pill:hover {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border-color: var(--accent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.feat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.feat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.route-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  color: var(--emerald-bright);
}

.feat-card h3 {
  font-size: 18px;
  font-weight: 800;
}

.feat-card p {
  font-size: 13.8px;
  color: var(--text-soft);
}

.feat-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feat-bullets li {
  font-size: 12.8px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.feat-bullets li::before {
  content: "◆";
  color: var(--accent);
  font-size: 9px;
  margin-top: 4px;
}

.feat-actions {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 800;
}

.link-accent {
  color: var(--accent);
  cursor: pointer;
}
.link-accent:hover { text-decoration: underline; }

/* =========================================================================
   TURNKEY PROJECTS & LOW-LATENCY SYSTEMS ENGINEERING PORTFOLIO
   ========================================================================= */
.turnkey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(410px, 1fr));
  gap: 24px;
}

.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.22s ease;
}

.tech-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-heavy);
  transform: translateY(-3px);
}

.tech-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.sla-pill {
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald-bright);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.tech-card h3 {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
}

.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.spec-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

/* Turnkey Delivery Matrix Table */
.matrix-wrap {
  margin-top: 42px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  overflow: hidden;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.matrix-table th {
  text-align: left;
  padding: 15px 18px;
  background: var(--bg-2);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
}

.matrix-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
}

.matrix-table tr:last-child td { border-bottom: none; }

/* Architecture Blueprint Box */
.arch-box {
  background: #0d0b09;
  color: #fafaf9;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow-heavy);
}

.arch-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.arch-svg-stage {
  width: 100%;
  background: #070605;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 16px;
  padding: 18px;
  overflow-x: auto;
}

.arch-svg-stage svg {
  width: 100%;
  min-width: 780px;
  height: auto;
  display: block;
}

/* Project Scoping CTA Card */
.cta-panel {
  margin-top: 52px;
  background: linear-gradient(135deg, var(--bg-2), var(--surface-solid));
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-heavy);
}

.brief-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-0);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input, .select, .textarea {
  width: 100%;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13.5px;
  outline: none;
}

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
}

.textarea { resize: vertical; min-height: 82px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 38px;
  background: var(--bg-1);
  color: var(--muted);
  font-size: 13.5px;
}

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

.legal-disclaimer-box {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.legal-disclaimer-box strong {
  color: var(--text-soft);
  font-weight: 700;
}

/* =========================================================================
   TUHIN — HUMAN LIVE SUPPORT DESK WIDGET (SOVEREIGN GOLD & OBSIDIAN)
   ========================================================================= */
.tuhin-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.tuhin-teaser {
  max-width: 340px;
  background: #17130e;
  border: 1px solid rgba(245, 158, 11, 0.55);
  border-radius: 18px 18px 4px 18px;
  padding: 14px 16px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.72);
  color: #fafaf9;
  font-size: 13.5px;
  line-height: 1.5;
  cursor: pointer;
  animation: slideUpFade 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tuhin-teaser.hidden { display: none; }

.teaser-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 11.5px;
  font-weight: 800;
  color: #fbbf24;
}

.teaser-close {
  background: none;
  border: none;
  color: #a8a29e;
  font-size: 16px;
  cursor: pointer;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tuhin-launcher {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1c1610, #2b2114);
  border: 1.5px solid #f59e0b;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.68), 0 0 26px rgba(245, 158, 11, 0.24);
  color: #fafaf9;
  cursor: pointer;
  transition: transform 0.2s ease;
  position: relative;
}

.tuhin-launcher:hover {
  transform: translateY(-2px);
}

.avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fbbf24;
}

.online-badge {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #14110d;
  box-shadow: 0 0 8px #10b981;
}

.launcher-meta { text-align: left; line-height: 1.2; }
.launcher-name { font-size: 14px; font-weight: 800; color: #fff; }
.launcher-role { font-size: 11.5px; color: #fde68a; }

.unread-pill {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 21px;
  height: 21px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 5px;
}
.unread-pill.hidden { display: none; }

.tuhin-panel {
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 545px;
  max-height: calc(100vh - 110px);
  background: #100e0b;
  border: 1px solid rgba(245, 158, 11, 0.48);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.82);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fafaf9;
}

.tuhin-panel.hidden { display: none; }

.chat-head {
  padding: 15px 18px;
  background: linear-gradient(135deg, #1f1810, #291f13);
  border-bottom: 1px solid rgba(245, 158, 11, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-agent-info { display: flex; align-items: center; gap: 12px; }
.chat-agent-title { font-size: 15px; font-weight: 800; color: #fff; }
.chat-agent-sub { font-size: 11.5px; color: #fde68a; }

.chat-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #0c0a08;
}

.msg-row {
  display: flex;
  gap: 9px;
  align-items: flex-end;
  max-width: 88%;
}
.msg-row.tuhin { align-self: flex-start; }
.msg-row.visitor { align-self: flex-end; flex-direction: row-reverse; }

.msg-mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #f59e0b;
  flex-shrink: 0;
}

.msg-bubble {
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.52;
}

.msg-row.tuhin .msg-bubble {
  background: #1a1611;
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #f5f5f4;
  border-bottom-left-radius: 4px;
}

.msg-row.visitor .msg-bubble {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0c0a09;
  font-weight: 600;
  border-bottom-right-radius: 4px;
}

.msg-time {
  display: block;
  font-size: 10px;
  opacity: 0.65;
  margin-top: 4px;
}

.typing-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #a8a29e;
  padding: 6px 14px;
  background: #0c0a08;
}
.typing-row.hidden { display: none; }

.typing-dots {
  display: inline-flex;
  gap: 4px;
  padding: 8px 11px;
  background: #1a1611;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  animation: bounceDot 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes bounceDot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.45; }
  40% { transform: scale(1.15); opacity: 1; }
}

.quick-chips {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  overflow-x: auto;
  background: #120f0b;
  border-top: 1px solid rgba(245, 158, 11, 0.16);
}
.quick-chips.hidden { display: none; }

.q-chip {
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.34);
  color: #fde68a;
  white-space: nowrap;
  cursor: pointer;
}
.q-chip:hover { background: rgba(245, 158, 11, 0.25); }

.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: #16120d;
  border-top: 1px solid rgba(245, 158, 11, 0.22);
}

.chat-input-bar input {
  flex: 1;
  background: #0c0a08;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 11px;
  padding: 10px 13px;
  color: #fff;
  font-size: 13.5px;
  outline: none;
}

.chat-send-btn {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border: none;
  color: #0c0a09;
  font-weight: 800;
  padding: 0 16px;
  border-radius: 11px;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .hero-grid, .cinema-stage, .quant-grid, .cta-panel {
    grid-template-columns: 1fr;
  }
  .nav-links { display: none; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .turnkey-grid, .features-grid, .video-vault-grid, .form-row {
    grid-template-columns: 1fr;
  }
  .cta-panel { padding: 24px; }
}
