/* ============================================================
   THEA — Marketing site styles
   Premium dark, bilingual (RTL/LTR), animated
   ============================================================ */

/* ---------- Thmanyah Sans (primary typeface, Arabic + Latin) ---------- */
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('fonts/thmanyahsans-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('fonts/thmanyahsans-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('fonts/thmanyahsans-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('fonts/thmanyahsans-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('fonts/thmanyahsans-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #05060a;
  --bg-2: #080a12;
  --ink: #eef2fb;
  --ink-dim: #9aa4bd;
  --ink-faint: #5b647e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.035);
  --glass-2: rgba(255, 255, 255, 0.06);

  --teal: #1fd6c5;
  --cyan: #38bdf8;
  --indigo: #7c8cff;
  --violet: #b06bff;
  --amber: #ffb347;
  --rose: #ff6b88;
  --emerald: #34e0a1;

  --accent: var(--teal);
  --grad: linear-gradient(120deg, var(--teal), var(--cyan) 45%, var(--indigo) 100%);
  --grad-soft: linear-gradient(120deg, rgba(31,214,197,.18), rgba(124,140,255,.18));

  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  --maxw: 1180px;

  --font-ar: 'Thmanyah Sans', 'Tajawal', system-ui, sans-serif;
  --font-en: 'Thmanyah Sans', 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font: var(--font-ar);
}

html[lang="en"] { --font: var(--font-en); }

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* language visibility */
[data-lang-ar] { display: none; }
[data-lang-en] { display: inline; }
html[lang="en"] [data-lang-ar] { display: inline; }
html[lang="en"] [data-lang-en] { display: none; }

a { color: inherit; text-decoration: none; }
::selection { background: rgba(31, 214, 197, 0.35); color: #fff; }

/* ---------- Animated background ---------- */
#bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0.55;
}

.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.5;
  mix-blend-mode: screen;
}
.blob-1 { width: 50vw; height: 50vw; background: radial-gradient(circle, #0f6f78, transparent 70%); top: -12%; inset-inline-start: -8%; animation: drift1 22s ease-in-out infinite; }
.blob-2 { width: 46vw; height: 46vw; background: radial-gradient(circle, #3b3f9e, transparent 70%); top: 30%; inset-inline-end: -12%; animation: drift2 26s ease-in-out infinite; }
.blob-3 { width: 40vw; height: 40vw; background: radial-gradient(circle, #6a2f8a, transparent 70%); bottom: -15%; inset-inline-start: 25%; animation: drift3 30s ease-in-out infinite; }

@keyframes drift1 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(6%,8%) scale(1.12);} }
@keyframes drift2 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-7%,5%) scale(0.92);} }
@keyframes drift3 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(4%,-6%) scale(1.08);} }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .nav, .footer { position: relative; z-index: 2; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px clamp(20px, 5vw, 56px);
  transition: background .4s, backdrop-filter .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 9, 16, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--grad);
  box-shadow: 0 0 24px rgba(31,214,197,.55);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 6px;
  border-radius: 4px; background: var(--bg);
}
.brand-name { font-family: var(--font-en); letter-spacing: 3px; font-size: 20px; font-weight: 700; }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 14px; color: var(--ink-dim); font-weight: 500;
  position: relative; transition: color .25s; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; bottom: -6px; inset-inline-start: 0;
  height: 2px; width: 0; background: var(--grad); transition: width .3s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  background: var(--glass); border: 1px solid var(--line-strong);
  color: var(--ink); border-radius: 999px; padding: 8px 16px;
  font-family: var(--font-en); font-size: 13px; cursor: pointer;
  transition: border-color .25s, background .25s; font-weight: 600;
}
.lang-toggle:hover { border-color: var(--teal); background: var(--glass-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, border-color .25s;
  cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: var(--grad); color: #04121a;
  box-shadow: 0 12px 40px -12px rgba(56,189,248,.7);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 50px -12px rgba(56,189,248,.85); }
.btn-ghost {
  background: var(--glass); color: var(--ink); border: 1px solid var(--line-strong);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--teal); background: var(--glass-2); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px clamp(20px,5vw,40px) 80px; position: relative; }
.hero-inner { max-width: 920px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 1px; color: var(--teal);
  border: 1px solid rgba(31,214,197,.3); background: rgba(31,214,197,.07);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 28px; font-weight: 600;
}
.eyebrow::before { content:""; width:7px; height:7px; border-radius:50%; background: var(--teal); box-shadow:0 0 10px var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }

.hero-title {
  font-size: clamp(40px, 7vw, 86px); line-height: 1.05; font-weight: 800;
  letter-spacing: -0.5px; margin-bottom: 26px;
}
.hero-title .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(16px, 2.2vw, 21px); color: var(--ink-dim); max-width: 680px; margin: 0 auto 40px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 820px; margin: 0 auto; }
.stat { padding: 22px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--glass); backdrop-filter: blur(8px); }
.stat-num { font-family: var(--font-en); font-size: clamp(26px, 4vw, 40px); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 13px; color: var(--ink-dim); margin-top: 6px; }

.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 14px; }
.scroll-hint span { position:absolute; top:8px; left:50%; transform:translateX(-50%); width:4px; height:8px; border-radius:2px; background: var(--teal); animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0%{opacity:0; top:8px;} 30%{opacity:1;} 100%{opacity:0; top:24px;} }

/* ---------- Trust strip ---------- */
.strip { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.strip-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
html[dir="rtl"] .strip-track { animation-direction: reverse; }
.strip-track:hover { animation-play-state: paused; }
.strip-item { display: flex; align-items: center; gap: 10px; color: var(--ink-dim); font-size: 15px; font-weight: 500; white-space: nowrap; }
.strip-item svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 11vw, 140px) clamp(20px, 5vw, 40px); }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.kicker { display: inline-block; font-family: var(--font-en); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -0.5px; margin-bottom: 18px; }
.section-head p { color: var(--ink-dim); font-size: clamp(15px, 1.8vw, 18px); }

/* ---------- Journey flow ---------- */
.journey-flow { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; justify-content: center; }
.journey-node { flex: 1 1 150px; max-width: 190px; text-align: center; padding: 8px; position: relative; }
.journey-node .jn-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px;
  display: grid; place-items: center; border: 1px solid var(--line-strong);
  background: var(--glass); position: relative; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.journey-node:hover .jn-icon { transform: translateY(-6px); border-color: var(--teal); box-shadow: 0 18px 40px -18px rgba(31,214,197,.6); }
.journey-node .jn-icon svg { width: 28px; height: 28px; color: var(--teal); }
.journey-node h4 { font-size: 16px; margin-bottom: 6px; }
.journey-node p { font-size: 13px; color: var(--ink-dim); }
.journey-node:not(:last-child)::after {
  content: ""; position: absolute; top: 32px; inset-inline-start: calc(50% + 42px);
  width: calc(100% - 84px); height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  opacity: .4;
}
html[dir="rtl"] .journey-node:not(:last-child)::after { background: linear-gradient(270deg, var(--teal), transparent); }
@media (max-width: 760px){ .journey-node:not(:last-child)::after { display:none; } }

/* ---------- Pillars (core platforms, tailored visuals) ---------- */
.pillars { display: flex; flex-direction: column; gap: 28px; }
.pillar {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--glass-2), transparent 60%);
  overflow: hidden; box-shadow: var(--shadow);
  transition: border-color .4s, transform .4s;
}
.pillar:hover { border-color: var(--line-strong); }
.pillar.flip { direction: ltr; }
.pillar-info { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.pillar.flip .pillar-info { order: 2; direction: rtl; }
html[lang="en"] .pillar.flip .pillar-info { direction: ltr; }
.pillar-badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: 1px; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.pillar-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; }
.pillar-icon svg { width: 28px; height: 28px; }
.pillar-info h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 8px; }
.pillar-en { font-family: var(--font-en); font-size: 13px; letter-spacing: 2px; color: var(--ink-faint); text-transform: uppercase; margin-bottom: 16px; }
.pillar-info > p { color: var(--ink-dim); margin-bottom: 22px; font-size: 15px; }
.feat-list { display: grid; gap: 11px; }
.feat-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; list-style: none; color: var(--ink); }
.feat-list li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }

.pillar-visual { position: relative; padding: clamp(20px,3vw,36px); display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.04), transparent 70%); border-inline-start: 1px solid var(--line); min-height: 360px; }
.pillar.flip .pillar-visual { order: 1; border-inline-start: none; border-inline-end: 1px solid var(--line); }
.visual-card { width: 100%; max-width: 420px; }

@media (max-width: 860px){
  .pillar, .pillar.flip { grid-template-columns: 1fr; direction: inherit; }
  .pillar.flip .pillar-info, .pillar.flip .pillar-visual { order: initial; }
  .pillar-visual { border-inline-start: none !important; border-inline-end: none !important; border-top: 1px solid var(--line); min-height: 300px; }
}

/* ---- mini visual components ---- */
.mini { font-family: var(--font-en); }
.mini-window { border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(8,10,18,.7); backdrop-filter: blur(10px); overflow: hidden; box-shadow: var(--shadow); }
.mini-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.mini-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: inline-block; }
.mini-bar i:nth-child(1){ background:#ff6b6b66;} .mini-bar i:nth-child(2){ background:#ffd36b66;} .mini-bar i:nth-child(3){ background:#5ef08e66;}
.mini-bar span { margin-inline-start: auto; font-size: 11px; color: var(--ink-faint); letter-spacing: 1px; }
.mini-body { padding: 14px; }

/* ER board rows */
.er-row { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: center; padding: 10px 8px; border-radius: 10px; margin-bottom: 8px; background: rgba(255,255,255,.025); font-size: 12.5px; opacity: 0; transform: translateY(8px); }
.er-row .esi { width: 6px; height: 30px; border-radius: 4px; }
.er-row .nm { color: var(--ink); }
.er-row .loc { color: var(--ink-faint); font-size: 11px; }
.er-row .tag { font-size: 10.5px; padding: 3px 9px; border-radius: 999px; font-weight: 600; }

/* bed grid */
.bed-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.bed { aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; color: var(--ink-dim); background: rgba(255,255,255,.02); transition: transform .3s; }
.bed.occ { background: rgba(31,214,197,.14); border-color: rgba(31,214,197,.4); color: var(--teal); }
.bed.crit { background: rgba(255,107,136,.16); border-color: rgba(255,107,136,.45); color: var(--rose); }
.bed:hover { transform: scale(1.08); }

/* lab result rows */
.lab-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.lab-row:last-child { border-bottom: none; }
.lab-row .val { font-weight: 600; }
.lab-row .val.hi { color: var(--rose); } .lab-row .val.ok { color: var(--emerald); }
.lab-flag { font-size: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(255,107,136,.18); color: var(--rose); font-weight: 700; }

/* dicom */
.dicom { aspect-ratio: 1; border-radius: 12px; background: radial-gradient(circle at 50% 45%, #1a2740, #05070d 75%); position: relative; overflow: hidden; border: 1px solid var(--line-strong); }
.dicom .scan { position: absolute; inset-inline: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); box-shadow: 0 0 14px var(--cyan); animation: scanmove 3s ease-in-out infinite; }
@keyframes scanmove { 0%,100%{ top: 12%; } 50%{ top: 86%; } }
.dicom .skull { position: absolute; inset: 0; display: grid; place-items: center; opacity: .5; }
.dicom .skull svg { width: 60%; height: 60%; color: #6f86b8; }
.dicom .crit-pin { position: absolute; top: 28%; inset-inline-start: 40%; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--rose); box-shadow: 0 0 0 6px rgba(255,107,136,.18); animation: pulse 1.6s infinite; }
.dicom .dlabel { position: absolute; bottom: 8px; inset-inline-start: 10px; font-size: 10px; color: var(--ink-dim); letter-spacing: 1px; }

/* pharmacy pipeline */
.pipe { display: flex; flex-direction: column; gap: 10px; }
.pipe-step { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid var(--line); font-size: 13px; }
.pipe-step .dot { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: rgba(124,140,255,.18); color: var(--indigo); font-size: 12px; font-weight: 700; }
.pipe-step.done .dot { background: rgba(52,224,161,.18); color: var(--emerald); }

/* schedule timeline (OR) */
.gantt { display: grid; gap: 8px; }
.gantt-row { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: center; font-size: 11px; color: var(--ink-faint); }
.gantt-track { position: relative; height: 26px; border-radius: 7px; background: rgba(255,255,255,.03); overflow: hidden; }
.gantt-bar { position: absolute; top: 4px; height: 18px; border-radius: 6px; background: var(--grad); opacity: 0; }

/* booking / queue (OPD) */
.queue-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.queue-row:last-child { border: none; }
.queue-num { width: 30px; height: 30px; border-radius: 9px; background: rgba(31,214,197,.14); color: var(--teal); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.queue-row .meta { color: var(--ink-faint); font-size: 11px; }
.queue-row .stt { margin-inline-start: auto; font-size: 10.5px; padding: 3px 9px; border-radius: 999px; background: var(--glass-2); color: var(--ink-dim); }

/* ---------- Chip grids (specialties / ops) ---------- */
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.chip {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px;
  background: var(--glass); transition: transform .3s, border-color .3s, background .3s;
  position: relative; overflow: hidden;
}
.chip::before { content:""; position:absolute; inset-inline-start:0; top:0; height:100%; width:3px; background: var(--grad); opacity:0; transition: opacity .3s; }
.chip:hover { transform: translateY(-5px); border-color: var(--line-strong); background: var(--glass-2); }
.chip:hover::before { opacity: 1; }
.chip-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: var(--grad-soft); }
.chip-icon svg { width: 22px; height: 22px; color: var(--teal); }
.chip h4 { font-size: 16px; margin-bottom: 4px; }
.chip .chip-en { font-family: var(--font-en); font-size: 11px; letter-spacing: 1.5px; color: var(--ink-faint); text-transform: uppercase; margin-bottom: 10px; }
.chip p { font-size: 13px; color: var(--ink-dim); }

/* ---------- Enterprise grid (rich cards) ---------- */
.ent-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ent-card {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px,3vw,36px);
  background: linear-gradient(165deg, var(--glass-2), transparent 70%);
  position: relative; overflow: hidden; transition: transform .4s, border-color .4s;
}
.ent-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.ent-card .ent-glow { position: absolute; top: -40%; inset-inline-end: -20%; width: 220px; height: 220px; border-radius: 50%; filter: blur(60px); opacity: .35; }
.ent-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ent-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.ent-ic svg { width: 26px; height: 26px; }
.ent-head h3 { font-size: 21px; }
.ent-head .ent-en { font-family: var(--font-en); font-size: 11px; letter-spacing: 2px; color: var(--ink-faint); text-transform: uppercase; }
.ent-card > p { color: var(--ink-dim); font-size: 14.5px; margin-bottom: 20px; }
.ent-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ent-feats li { list-style: none; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink); }
.ent-feats li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--teal); }
@media (max-width: 760px){ .ent-grid { grid-template-columns: 1fr; } .ent-feats { grid-template-columns: 1fr; } }

/* ---------- Infra grid ---------- */
.infra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.infra-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; background: var(--glass); text-align: center; transition: transform .3s, border-color .3s; }
.infra-card:hover { transform: translateY(-5px); border-color: var(--teal); }
.infra-ic { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--grad-soft); }
.infra-ic svg { width: 26px; height: 26px; color: var(--teal); }
.infra-card h4 { font-size: 17px; margin-bottom: 8px; }
.infra-card p { font-size: 13.5px; color: var(--ink-dim); }
@media (max-width: 760px){ .infra-grid { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { max-width: var(--maxw); margin: 0 auto; padding: 40px clamp(20px,5vw,40px) 100px; }
.cta-card {
  border: 1px solid var(--line-strong); border-radius: 32px; padding: clamp(40px, 7vw, 80px);
  text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(31,214,197,.14), transparent 60%), var(--bg-2);
  box-shadow: var(--shadow);
}
.cta-card::after { content:""; position:absolute; inset:0; background: var(--grad); opacity:.06; }
.cta-card h2 { font-size: clamp(28px, 5vw, 52px); font-weight: 800; margin-bottom: 18px; letter-spacing: -.5px; position: relative; }
.cta-card p { color: var(--ink-dim); font-size: 18px; max-width: 560px; margin: 0 auto 34px; position: relative; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-meta { margin-top: 26px; font-size: 14px; color: var(--ink-dim); position: relative; }

/* ---------- Footer ---------- */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 64px clamp(20px,5vw,40px) 40px; border-top: 1px solid var(--line); }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px clamp(24px, 4vw, 56px);
  text-align: start;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.footer-desc { color: var(--ink-dim); font-size: 14px; line-height: 1.85; max-width: 360px; margin: 0; }
.footer-vision {
  display: inline-flex; align-items: center; gap: 8px; align-self: start;
  margin-top: 4px; padding: 7px 14px; border: 1px solid var(--line-strong);
  border-radius: 999px; color: var(--teal); font-size: 12.5px; font-weight: 600;
}
.footer-vision .fv-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.footer-h { color: var(--ink); font-size: 14px; font-weight: 700; margin: 0 0 4px; letter-spacing: .2px; }
.footer-link { color: var(--ink-dim); font-size: 14px; text-decoration: none; transition: color .2s ease; width: fit-content; }
.footer-link:hover { color: var(--ink); }
.footer-contact {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-dim); font-size: 14px; text-decoration: none;
  transition: color .2s ease; width: fit-content;
}
.footer-contact:hover:not(.footer-contact--static) { color: var(--ink); }
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--accent); }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--ink-dim);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.footer-social a:hover { color: var(--ink); border-color: var(--accent); background: var(--glass); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
}
.footer-copy { color: var(--ink-faint); font-size: 13px; }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal a { color: var(--ink-faint); font-size: 13px; text-decoration: none; transition: color .2s ease; }
.footer-legal a:hover { color: var(--ink-dim); }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .footer-col-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   CINEMATIC WEBGL LAYER
   ============================================================ */
html.gl-ready { scroll-behavior: auto; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 50% 32%, rgba(31,214,197,.07), transparent 58%),
    radial-gradient(circle at 82% 82%, rgba(124,140,255,.07), transparent 55%),
    radial-gradient(circle at 16% 70%, rgba(176,107,255,.05), transparent 55%);
}

/* splash */
.splash {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity .6s ease;
}
.splash.hide { opacity: 0; pointer-events: none; }
.splash-mark { width: 52px; height: 52px; border-radius: 15px; background: var(--grad); box-shadow: 0 0 50px rgba(31,214,197,.55); position: relative; animation: spin 3.2s linear infinite; }
.splash-mark::after { content: ""; position: absolute; inset: 11px; border-radius: 7px; background: var(--bg); }
.splash-name { font-family: var(--font-en); letter-spacing: 9px; font-size: 24px; font-weight: 700; }
.splash-bar { width: 190px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.splash-bar > i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .25s ease; }
.splash-pct { font-family: var(--font-en); font-size: 12px; color: var(--ink-dim); letter-spacing: 1px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* top chrome */
.chrome-nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px clamp(20px, 5vw, 56px);
  opacity: 0; transition: opacity .9s .3s ease;
}
html.gl-ready .chrome-nav { opacity: 1; }
.chrome-nav .brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.chrome-nav .chaps { display: flex; gap: 22px; }
.chrome-nav .chap { font-size: 14px; color: var(--ink-dim); cursor: pointer; position: relative; transition: color .25s; }
.chrome-nav .chap::after { content: ""; position: absolute; bottom: -6px; inset-inline-start: 0; height: 2px; width: 0; background: var(--grad); transition: width .3s; }
.chrome-nav .chap:hover { color: var(--ink); }
.chrome-nav .chap:hover::after { width: 100%; }
.lang-btn { background: var(--glass); border: 1px solid var(--line-strong); color: var(--ink); border-radius: 999px; padding: 8px 16px; font-family: var(--font-en); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .25s, background .25s; }
.lang-btn:hover { border-color: var(--teal); background: var(--glass-2); }
@media (max-width: 820px) { .chrome-nav .chaps { display: none; } }

/* stage / pinned / panels */
.stage { position: relative; z-index: 1; }
.pinned { height: 100vh; width: 100%; overflow: hidden; }
.panels { position: absolute; inset: 0; perspective: 1300px; }
.panel { position: absolute; inset: 0; display: flex; align-items: center; padding: 84px clamp(24px, 8vw, 130px); opacity: 0; will-change: opacity; }
.panel.side-left  { justify-content: flex-start; }
.panel.side-right { justify-content: flex-end; }
.panel.side-center { justify-content: center; text-align: center; }
.p-inner { max-width: 500px; will-change: transform, filter; position: relative; transform-style: preserve-3d; }
.p-inner::before {
  content: ""; position: absolute; inset: -38px -64px; z-index: -1; pointer-events: none;
  background: radial-gradient(62% 60% at 50% 48%, rgba(5,6,10,.86), rgba(5,6,10,.5) 52%, transparent 76%);
}
.panel.side-center .p-inner { max-width: 760px; }
.panel.side-center .p-inner::before { inset: -44px -90px; }
.p-title, .p-tag { text-shadow: 0 2px 26px rgba(0,0,0,.75); }
.p-body { text-shadow: 0 1px 16px rgba(0,0,0,.7); }

.p-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 2px; font-weight: 600; color: var(--accent); background: rgba(255,255,255,.05); border: 1px solid var(--line-strong); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; text-transform: uppercase; }
.p-title { font-size: clamp(34px, 5.4vw, 66px); line-height: 1.05; font-weight: 800; letter-spacing: -.5px; margin-bottom: 16px; }
.panel.is-intro .p-title, .panel.is-cta .p-title { font-size: clamp(40px, 7vw, 88px); }
.p-tag { font-size: clamp(16px, 2.1vw, 22px); color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.p-body { font-size: clamp(15px, 1.7vw, 18px); color: var(--ink-dim); margin-bottom: 26px; max-width: 46ch; }
.panel.side-center .p-body { margin-inline: auto; }
.p-feats { display: grid; gap: 11px; list-style: none; }
.p-feats.wrap { grid-template-columns: 1fr 1fr; }
.panel.side-center .p-feats { grid-template-columns: repeat(2, auto); justify-content: center; gap: 12px 30px; }
.p-feats li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; color: var(--ink); }
.p-feats li svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.p-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 14px 30px; border-radius: 999px; background: var(--grad); color: #04121a; font-weight: 700; font-size: 16px; box-shadow: 0 14px 44px -12px rgba(56,189,248,.7); transition: transform .25s; }
.p-btn:hover { transform: translateY(-3px); }
.p-mail { margin-top: 18px; }
.feat-mail { color: var(--accent); font-family: var(--font-en); font-size: 15px; }

/* CTA finale — contact block */
.cta-contact {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  margin-top: 26px;
}
.cta-contact .cc-item {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); font-size: 15px; text-decoration: none;
  transition: color .2s ease;
}
.cta-contact a.cc-item:hover { color: var(--teal); }
.cta-contact .cc-item svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }
.cta-contact .cc-static { color: var(--ink-dim); }
.cta-vision {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; padding: 8px 16px; border: 1px solid var(--line-strong);
  border-radius: 999px; color: var(--teal); font-size: 13px; font-weight: 600;
}
.cta-vision .cv-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.cta-social { display: flex; justify-content: center; gap: 14px; margin-top: 22px; }
.cta-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(10,14,22,.72); backdrop-filter: blur(6px);
  color: var(--ink);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.cta-social a:hover {
  color: #04121a; border-color: var(--teal); background: var(--teal);
  transform: translateY(-2px);
}
.cta-social a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.cta-social svg { width: 19px; height: 19px; }
.cta-legal { margin-top: 24px; color: var(--ink-faint); font-size: 13px; font-family: var(--font-en); }

/* platform-intro panels */
.p-logo { max-height: 70px; max-width: 280px; width: auto; height: auto; object-fit: contain; margin-bottom: 24px; filter: drop-shadow(0 8px 30px rgba(0,0,0,.55)); }
.panel.side-center .p-logo { margin-inline: auto; display: block; }
.p-coming { margin-inline-start: 10px; font-size: 11px; padding: 3px 11px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--amber); border: 1px solid var(--line-strong); letter-spacing: 1px; }
.p-stats { display: flex; gap: clamp(22px, 4vw, 40px); margin-top: 30px; flex-wrap: wrap; }
.panel.side-center .p-stats { justify-content: center; }
.p-stat { text-align: center; }
.p-stat-v { font-family: var(--font-en); font-size: clamp(22px, 3.2vw, 36px); font-weight: 700; color: var(--accent); line-height: 1; }
.p-stat-l { font-size: 12.5px; color: var(--ink-dim); margin-top: 6px; }
.panel.is-platform .p-title { font-size: clamp(40px, 6.5vw, 78px); }
.chrome-nav .chap::after { background: linear-gradient(90deg, var(--accent, var(--teal)), transparent); }
.p-scrollhint { margin-top: 42px; display: flex; align-items: center; gap: 12px; justify-content: center; color: var(--ink-faint); font-size: 13px; }
.mouse { width: 24px; height: 38px; border: 2px solid var(--line-strong); border-radius: 13px; position: relative; }
.mouse i { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; border-radius: 2px; background: var(--accent); animation: scrolldot 1.8s infinite; }

/* bottom progress */
.chrome-bar { position: fixed; bottom: 0; inset-inline: 0; z-index: 60; display: flex; align-items: center; gap: 16px; padding: 16px clamp(20px, 5vw, 56px); opacity: 0; transition: opacity .9s .3s ease; }
html.gl-ready .chrome-bar { opacity: 1; }
.bar-track { flex: 1; height: 2px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--grad); }
.bar-count { font-family: var(--font-en); font-size: 12px; color: var(--ink-dim); letter-spacing: 1px; min-width: 66px; text-align: end; transition: opacity .3s; }

/* fallback toggles */
#dom-fallback { display: none; }
html.no-webgl #dom-fallback { display: block; }
html.no-webgl #gl, html.no-webgl .stage, html.no-webgl .chrome-nav, html.no-webgl .chrome-bar, html.no-webgl .splash { display: none !important; }
html.no-webgl { scroll-behavior: smooth; }

@media (max-width: 620px) {
  .p-feats.wrap, .panel.side-center .p-feats { grid-template-columns: 1fr; }
}

/* ---------- Responsive nav ---------- */
@media (max-width: 940px){ .nav-links { display: none; } }
@media (max-width: 560px){
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .nav-actions .btn-ghost { display: none; }
}
