/* ============================================================
   MULEGRAPH — Main Stylesheet
   ============================================================ */

@import './tokens.css';

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Thai language — switch body font */
body.lang-th {
  font-family: var(--font-th);
}

/* Thai mode: section headlines also use Thai font */
body.lang-th .hero__headline,
body.lang-th .ecosystem__title,
body.lang-th .mulebank__title,
body.lang-th .flow__title,
body.lang-th .investigation__title,
body.lang-th .risk__title,
body.lang-th .case__title,
body.lang-th .product__title {
  font-family: var(--font-th);
  letter-spacing: -0.01em;
}

/* ── Font-role utility classes ────────────────────────────── */

/* Brand wordmark — Space Grotesk */
.font-brand,
.nav__logo-slot,
.lang-screen__logo-slot,
.footer__logo-slot {
  font-family: var(--font-brand);
  letter-spacing: -0.01em;
}

/* Data / numbers — Manrope */
.font-data,
.flow-step__num,
.risk-card__threshold,
.risk-card__state {
  font-family: var(--font-data);
}

/* Hero headline always uses brand font (Space Grotesk weight 700) */
.hero__headline,
.ecosystem__title,
.mulebank__title,
.flow__title,
.investigation__title,
.risk__title,
.case__title,
.product__title {
  font-family: var(--font-brand);
}

/* ── Typography utilities ─────────────────────────────────── */
.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.label--lime {
  color: var(--lime);
}

.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--purple-1);
  flex-shrink: 0;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-7);
  padding-right: var(--space-7);
}

section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

/* ── Asset placeholder ────────────────────────────────────── */
.asset-slot {
  background: var(--surface-1);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* Subtle grid on placeholders */
.asset-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.asset-slot__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(161,161,170,0.4);
  text-align: center;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.asset-slot__dim {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(161,161,170,0.25);
  position: relative;
  z-index: 1;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  /* background + glow handled in animations.css */
  background: var(--purple-1);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  padding: 14px 0;
  border-radius: 0;
}

.btn--ghost:hover {
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
}

.btn--outline:hover {
  border-color: var(--purple-1);
  color: var(--purple-2);
}

/* ── Divider ──────────────────────────────────────────────── */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ============================================================
   LANGUAGE SELECTION SCREEN
   — Layout only. Position/backdrop/animation in animations.css
   ============================================================ */
#lang-screen {
  /* position + backdrop moved to animations.css */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

/* .hidden class — animation handles fade, JS sets visibility after */
#lang-screen.hidden {
  opacity: 0;
  pointer-events: none;
  /* visibility set by JS after anim ends */
}

.lang-screen__logo-slot {
  width: 160px;
  height: 32px;
  background: var(--surface-2);
  border: 1px solid var(--purple-border);
  border-radius: 6px;
  margin-bottom: var(--space-9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-screen__logo-slot span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(161,161,170,0.3);
}

.lang-screen__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-7);
}

.lang-options {
  display: flex;
  gap: var(--space-5);
  margin-bottom: var(--space-9);
}

.lang-card {
  width: 220px;
  padding: var(--space-7) var(--space-6);
  background: var(--surface-2);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  position: relative;
  /* hover handled in animations.css */
}

.lang-card__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

.lang-card__sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.lang-card__signal {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.lang-card:hover .lang-card__signal,
.lang-card.active .lang-card__signal {
  opacity: 1;
}

.lang-screen__footer {
  position: absolute;
  bottom: var(--space-7);
  text-align: center;
}

.lang-screen__footer p {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(161,161,170,0.3);
  line-height: 1.8;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  background: rgba(9,9,11,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: transform 300ms var(--ease);
}

#nav.hidden {
  transform: translateY(-100%);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo-slot {
  width: 160px;
  height: 32px;
  background: var(--surface-2);
  border: 1px solid var(--purple-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav__logo-slot span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(161,161,170,0.3);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-7);
  list-style: none;
}

.nav__links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur);
}

.nav__links a:hover {
  color: var(--white);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

/* Language switcher in nav */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lang-switch__btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: inherit;
  transition: color var(--dur);
  position: relative;
}

.lang-switch__btn.active {
  color: var(--lime);
}

.lang-switch__btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
}

.lang-switch__sep {
  color: var(--border-strong);
  font-size: 10px;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  padding-top: 160px;
  padding-bottom: var(--section-gap);
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 530px;
  gap: var(--space-9);
  align-items: center;
  width: 100%;
}

.hero__content {}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
}

.hero__headline {
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: var(--space-6);
}

.hero__sub {
  font-size: 20px;
  font-weight: 500;
  color: var(--purple-2);
  margin-bottom: var(--space-4);
  line-height: 1.4;
}

.hero__body {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: var(--space-7);
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

/* Hero asset slot: 530 × 340 */
.hero__visual {
  width: 100%;
  max-width: 530px;
  height: 340px;
  flex-shrink: 0;
}

/* ============================================================
   DEMO ECOSYSTEM
   ============================================================ */
#demo-ecosystem {
  border-top: 1px solid var(--border);
}

.ecosystem__header {
  margin-bottom: var(--space-9);
}

.ecosystem__title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: var(--space-3);
  line-height: 1.1;
}

.ecosystem__sub {
  font-size: 16px;
  color: var(--muted);
}

.ecosystem__grid {
  display: grid;
  grid-template-columns: 1fr;   /* single card now */
  gap: var(--space-5);
  max-width: 720px;              /* constrain to readable width */
}

/* ── Ecosystem cards ── */
.eco-card {
  background: var(--surface-2);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: border-color var(--dur) var(--ease);
}

.eco-card:hover {
  border-color: rgba(139,92,246,0.4);
}

.eco-card__header {}

.eco-card__label {
  margin-bottom: var(--space-3);
}

.eco-card__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.eco-card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* Asset slot inside card: 500 × 280 */
.eco-card__visual {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   MULEBANK SECTION
   ============================================================ */
#mulebank {
  border-top: 1px solid var(--border);
}

.mulebank__inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-10);
  align-items: center;
}

.mulebank__content {}

.mulebank__title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: var(--space-3);
  line-height: 1.1;
}

.mulebank__desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: var(--space-6);
  max-width: 460px;
}

.mulebank__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-top: var(--space-5);
}

.mulebank__status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* MuleBank asset slot: 420 × 300 */
.mulebank__visual {
  width: 100%;
  max-width: 420px;
  height: 300px;
  flex-shrink: 0;
}

/* ============================================================
   GOLDEN DEMO FLOW
   ============================================================ */
#golden-flow {
  border-top: 1px solid var(--border);
}

.flow__header {
  margin-bottom: var(--space-9);
}

.flow__title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.0;
}

.flow__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  position: relative;
}

/* connector line */
.flow__grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 32px;
  right: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple-border), transparent);
  pointer-events: none;
}

.flow-step {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  position: relative;
}

.flow-step__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--purple-2);
  margin-bottom: var(--space-2);
}

.flow-step__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-3);
}

.flow-step__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.flow-step__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: var(--space-2);
  margin-right: var(--space-1);
}

.badge--allow  { background: rgba(184,255,44,0.10);  color: var(--lime);    border: 1px solid rgba(184,255,44,0.22); }
.badge--alert  { background: rgba(108,43,255,0.12); color: var(--purple-2); border: 1px solid var(--purple-border); }
.badge--hold   { background: rgba(108,43,255,0.18); color: #a78bfa;        border: 1px solid rgba(108,43,255,0.28); }

/* Second row of flow — 4 more steps */
.flow__grid--row2 {
  margin-top: var(--space-1);
}

.flow__grid--row2::before {
  display: none;
}

/* ============================================================
   REAL-TIME INVESTIGATION
   ============================================================ */
#investigation {
  border-top: 1px solid var(--border);
}

.investigation__inner {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: var(--space-10);
  align-items: start;
}

.investigation__title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: var(--space-5);
}

.investigation__desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.signal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.signal-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.signal-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--purple-2);
  flex-shrink: 0;
}

/* Investigation asset slot: 600 × 400 */
.investigation__visual {
  width: 100%;
  height: 400px;
}

/* ============================================================
   RISK DECISION
   ============================================================ */
#risk-decision {
  border-top: 1px solid var(--border);
}

.risk__header {
  margin-bottom: var(--space-9);
}

.risk__title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: var(--space-3);
}

.risk__sub {
  font-size: 16px;
  color: var(--muted);
}

.risk__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.risk-card {
  background: var(--surface-2);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
}

.risk-card__state {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

.risk-card__state--allow { color: var(--lime); }
.risk-card__state--alert { color: var(--purple-2); }
.risk-card__state--hold  { color: #a78bfa; }

.risk-card__threshold {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: var(--space-4);
  font-variant-numeric: tabular-nums;
}

.risk-card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   INVESTIGATION / CASE SECTION
   ============================================================ */
#case-section {
  border-top: 1px solid var(--border);
}

.case__header {
  margin-bottom: var(--space-9);
}

.case__title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: var(--space-3);
}

.case__inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-10);
  align-items: start;
}

.case__flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.case-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  position: relative;
}

.case-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.case-step__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--purple-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.case-step__dot--active {
  background: var(--purple-1);
  border-color: var(--purple-1);
}

.case-step__dot span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-2);
}

.case-step__dot--active span {
  background: var(--white);
}

.case-step__text {}

.case-step__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-1);
}

.case-step__desc {
  font-size: 13px;
  color: var(--muted);
}

/* Case detail asset slot: 500 × 360 */
.case__visual {
  width: 100%;
  height: 360px;
}

/* ============================================================
   PRODUCT POSITIONING
   ============================================================ */
#product {
  border-top: 1px solid var(--border);
}

.product__inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: var(--space-10);
  align-items: center;
}

.product__title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: var(--space-5);
}

.product__body {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: var(--space-7);
  max-width: 460px;
}

.product__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--purple-border);
  color: var(--muted);
  background: var(--surface-2);
  transition: all var(--dur) var(--ease);
}

.pill:hover {
  color: var(--purple-2);
  border-color: var(--purple-2);
}

/* Product asset slot: 480 × 360 */
.product__visual {
  width: 100%;
  max-width: 480px;
  height: 360px;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  border-top: 1px solid var(--border);
  padding-top: var(--space-9);
  padding-bottom: var(--space-8);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo-slot {
  width: 120px;
  height: 24px;
  background: var(--surface-2);
  border: 1px solid var(--purple-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__logo-slot span {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(161,161,170,0.25);
}

.footer__nav {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.footer__nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur);
}

.footer__nav a:hover {
  color: var(--white);
}

.footer__tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(161,161,170,0.3);
}

/* ============================================================
   MOBILE PC BANNER
   ============================================================ */
.mobile-pc-banner {
  display: none; /* hidden on desktop */
  background: rgba(108,43,255,0.08);
  border-bottom: 1px solid rgba(108,43,255,0.2);
  padding: var(--space-4) 0;
  margin-top: 76px; /* height of nav */
}

.mobile-pc-banner__inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.mobile-pc-banner__inner > i {
  font-size: 22px;
  color: var(--lime);
  flex-shrink: 0;
  margin-top: 2px;
}

.mobile-pc-banner__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-1);
  line-height: 1.4;
}

.mobile-pc-banner__sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* desktop-only elements */
.desktop-only  { display: block; }
.desktop-section { display: block; }

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {

  .hero__inner {
    grid-template-columns: 1fr 400px;
    gap: var(--space-8);
  }

  .hero__visual { width: 400px; height: 280px; }

  .mulebank__inner {
    grid-template-columns: 1fr 340px;
    gap: var(--space-8);
  }
  .mulebank__visual { width: 340px; height: 260px; }

  .investigation__inner {
    grid-template-columns: 380px 1fr;
    gap: var(--space-8);
  }

  .product__inner {
    grid-template-columns: 1fr 380px;
    gap: var(--space-8);
  }
  .product__visual { width: 380px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   Mobile: show ONLY hero + mulebank + footer
   Everything else hidden, banner shown
   ============================================================ */
@media (max-width: 768px) {

  /* ── base ── */
  :root { --section-gap: 64px; }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  /* ── nav ── */
  #nav { height: 60px; }
  .nav__links { display: none; }
  .nav__right .btn--primary { display: none; } /* hide CTA on mobile nav */

  /* ── show mobile banner ── */
  .mobile-pc-banner { display: block; }

  /* ── hide desktop-only sections entirely ── */
  .desktop-section { display: none !important; }
  .desktop-only    { display: none !important; }

  /* ── hero: single column, no right visual ── */
  #hero {
    padding-top: 100px;
    padding-bottom: var(--space-9);
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* hide the hero right-side placeholder on mobile */
  .hero__visual { display: none; }

  .hero__headline {
    font-size: clamp(36px, 10vw, 52px);
    margin-bottom: var(--space-5);
  }

  .hero__sub  { font-size: 17px; }
  .hero__body { font-size: 15px; max-width: 100%; }

  /* ── mulebank: full-width, dominant ── */
  #mulebank {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .mulebank__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .mulebank__title  { font-size: clamp(32px, 8vw, 44px); }
  .mulebank__desc   { font-size: 15px; max-width: 100%; }

  /* MuleBank visual placeholder: full width on mobile */
  .mulebank__visual {
    width: 100%;
    height: 240px;
    order: -1; /* visual above text on mobile */
  }

  /* ── footer: simple stack ── */
  #footer {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
  }

  .footer__nav { display: none; } /* clean on mobile */

  /* ── lang screen ── */
  .lang-options {
    flex-direction: column;
    align-items: center;
  }
  .lang-card { width: min(280px, 80vw); }
}

/* ============================================================
   PHOSPHOR ICONS — Integration styles
   ============================================================ */

/* ── Section label: icon replaces the ::before line ──────── */
.section-label {
  gap: var(--space-2);
}

.section-label i {
  font-size: 14px;
  color: var(--purple-2);
  flex-shrink: 0;
}

/* Remove the old CSS ::before line when icon is present */
.section-label:has(i)::before {
  display: none;
}

/* ── Eco-card label icon ──────────────────────────────────── */
.eco-card__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.eco-card__label i {
  font-size: 14px;
  color: var(--purple-2);
}

/* ── Flow step icon ───────────────────────────────────────── */
.flow-step__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--purple-dim);
  border: 1px solid var(--purple-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  flex-shrink: 0;
}

.flow-step__icon i {
  font-size: 17px;
  color: var(--purple-2);
}

/* ── Risk card icon ───────────────────────────────────────── */
.risk-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.risk-card__icon i {
  font-size: 20px;
}

.risk-card__icon--allow {
  background: rgba(184,255,44,0.08);
  border: 1px solid rgba(184,255,44,0.18);
}
.risk-card__icon--allow i { color: var(--lime); }

.risk-card__icon--alert {
  background: rgba(108,43,255,0.10);
  border: 1px solid var(--purple-border);
}
.risk-card__icon--alert i { color: var(--purple-2); }

.risk-card__icon--hold {
  background: rgba(108,43,255,0.14);
  border: 1px solid rgba(108,43,255,0.24);
}
.risk-card__icon--hold i { color: #a78bfa; }

/* ── Signal list: icon replaces ::before dot ─────────────── */
.signal-list li {
  gap: var(--space-3);
}

.signal-list li::before {
  display: none; /* replaced by icon */
}

.signal-list li i {
  font-size: 15px;
  color: var(--purple-2);
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

/* ── Case step dot: now holds icon, no inner <span> ──────── */
.case-step__dot {
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-step__dot span {
  display: none; /* replaced by icon */
}

/* ── Pill icon ────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill i {
  font-size: 13px;
  color: var(--purple-2);
}

/* ── CTA button icon ──────────────────────────────────────── */
.btn i {
  font-size: 15px;
  line-height: 1;
  transition: transform var(--dur) var(--ease);
}

.btn:hover i {
  transform: translateX(3px);
}

/* ── Lang switcher sep: CSS-only divider now ─────────────── */
.lang-switch__sep {
  width: 1px;
  height: 12px;
  background: var(--border-strong);
  display: inline-block;
  vertical-align: middle;
  margin: 0 2px;
}

/* ── Lang live dot (replaces inline dot span) ────────────── */
.lang-live-dot {
  margin-left: 4px;
  display: flex;
  align-items: center;
}

/* ── Asset slot: icon sits above label ───────────────────── */
.asset-slot > i {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-2);
  opacity: 0.6;
}

/* ── Mulebank status: icon replaces .dot ─────────────────── */
.mulebank__status i {
  animation: pulse 2s infinite;
}
