@font-face {
  font-family: "Vazir";
  src: url("../../../assets/fonts/vazir-font-v16.1.0/Vazir.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vazir";
  src: url("../../../assets/fonts/vazir-font-v16.1.0/Vazir-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Vazir";
  src: url("../../../assets/fonts/vazir-font-v16.1.0/Vazir-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f7f7fb;
  --muted: #9ea3b5;
  --line: rgba(255, 255, 255, 0.09);
  --violet: #996cff;
  --violet-bright: #bd9cff;
  --cyan: #56e6ff;
  --page-x: clamp(18px, 4vw, 64px);
}

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

html {
  min-width: 320px;
  background: #070811;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% -15%, rgba(125, 77, 255, 0.21), transparent 38rem),
    radial-gradient(circle at -10% 82%, rgba(41, 190, 218, 0.11), transparent 35rem),
    #070811;
  font-family: "Vazir", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }
button, a { font: inherit; }
a { color: inherit; }
::selection { color: #070811; background: var(--cyan); }

.skip-link {
  position: fixed;
  z-index: 2000;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #070811;
  background: #fff;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus { transform: translateY(0); }

.page-noise, .ambient-light, .grid-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-noise {
  z-index: -1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.grid-field {
  z-index: -3;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.ambient-light { z-index: -2; overflow: hidden; }
.ambient-light::before, .ambient-light::after {
  content: "";
  position: absolute;
  width: min(68vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.16;
}

.ambient-light::before {
  inset-block-start: -48%;
  inset-inline-start: 20%;
  background: #7047e8;
  animation: ambientDrift 14s ease-in-out infinite alternate;
}

.ambient-light::after {
  inset-block-end: -62%;
  inset-inline-end: -22%;
  background: #15c4dd;
  animation: ambientDrift 18s ease-in-out -4s infinite alternate-reverse;
}

.portal-shell {
  position: relative;
  width: min(1500px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px var(--page-x) 18px;
}

.portal-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025));
  box-shadow: 0 14px 42px rgba(77, 34, 157, 0.34), inset 0 1px rgba(255, 255, 255, 0.1);
}

.brand-mark-wrap::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(189, 156, 255, 0.45), transparent 38%, rgba(86, 230, 255, 0.2));
  filter: blur(8px);
  opacity: 0.6;
}

.brand-mark { width: 31px; height: 31px; object-fit: contain; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: 1rem; letter-spacing: -0.02em; }
.brand-copy small {
  margin-top: 2px;
  color: #7e849a;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.73rem;
}

.live-state, .version-tag {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55f6c0;
  box-shadow: 0 0 14px rgba(85, 246, 192, 0.9);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(85, 246, 192, 0.45);
  border-radius: inherit;
  animation: livePulse 2s ease-out infinite;
}

.portal-main {
  min-height: calc(100vh - 107px);
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(600px, 1.45fr);
  gap: clamp(34px, 5vw, 88px);
  align-items: center;
  padding: clamp(38px, 6vh, 72px) 0 32px;
}

.hero {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 580px;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--violet-bright);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
  box-shadow: 0 0 10px currentColor;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2.65rem, 4.6vw, 5.5rem);
  line-height: 1.22;
  letter-spacing: -0.065em;
}

.gradient-word {
  color: transparent;
  background: linear-gradient(105deg, #fff 8%, #bca3ff 52%, #6ee8fa 95%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-description {
  max-width: 570px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.1vw, 1.04rem);
  line-height: 2.05;
}

.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #b9bdca;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.72rem;
}
.chip-icon { width: 15px; height: 15px; color: #8bdff0; }

.panel-zone { min-width: 0; }
.zone-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.zone-heading h2 { margin: 0; font-size: clamp(1.15rem, 1.7vw, 1.45rem); letter-spacing: -0.035em; }
.zone-heading p { margin: 5px 0 0; color: #7f8497; font-size: 0.76rem; }
.zone-count { display: inline-flex; align-items: center; gap: 9px; color: #7f8497; font-size: 0.69rem; white-space: nowrap; }
.zone-count::before { content: ""; width: 42px; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent); }

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  perspective: 1200px;
}

.panel-card {
  --accent: #996cff;
  --accent-rgb: 153, 108, 255;
  --mx: 50%;
  --my: 50%;
  position: relative;
  min-height: 283px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), transparent 38%), rgba(15,17,28,.72);
  box-shadow: 0 28px 60px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.025);
  isolation: isolate;
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease, background 300ms ease;
  will-change: transform;
}

.panel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(var(--accent-rgb), .16), transparent 64%);
  transition: opacity 300ms ease;
}

.panel-card::after {
  content: "";
  position: absolute;
  inset-inline: 20px;
  inset-block-start: 0;
  height: 1px;
  opacity: .46;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(.28);
  transition: transform 420ms ease, opacity 420ms ease;
}

.panel-card:hover, .panel-card:focus-within {
  border-color: rgba(var(--accent-rgb), .42);
  background: linear-gradient(145deg, rgba(var(--accent-rgb), .085), transparent 42%), rgba(17,19,31,.9);
  box-shadow: 0 34px 80px rgba(0,0,0,.26), 0 0 32px rgba(var(--accent-rgb), .08);
}
.panel-card:hover::before, .panel-card:focus-within::before { opacity: 1; }
.panel-card:hover::after, .panel-card:focus-within::after { opacity: .85; transform: scaleX(1); }
.panel-card[data-role="teacher"] { --accent: #f0bb68; --accent-rgb: 240, 187, 104; }
.panel-card[data-role="student"] { --accent: #57d8f2; --accent-rgb: 87, 216, 242; }
.panel-card[data-role="parent"] { --accent: #ee82b6; --accent-rgb: 238, 130, 182; }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.panel-icon {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), .25);
  border-radius: 14px;
  color: var(--accent);
  background: linear-gradient(145deg, rgba(var(--accent-rgb), .14), rgba(var(--accent-rgb), .025));
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 12px 30px rgba(var(--accent-rgb), .08);
}
.panel-icon::after { content: ""; position: absolute; inset: 9px; z-index: -1; border-radius: 50%; background: var(--accent); filter: blur(16px); opacity: .18; }
.panel-icon svg { width: 25px; height: 25px; overflow: visible; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.card-index { color: rgba(255,255,255,.18); font-size: .65rem; font-weight: 500; letter-spacing: .18em; }
.card-copy { margin-top: 19px; }
.role-type { margin: 0 0 4px; color: var(--accent); font-size: .64rem; font-weight: 500; letter-spacing: .05em; }
.panel-card h3 { margin: 0; font-size: 1.18rem; letter-spacing: -.035em; }
.card-description { min-height: 50px; margin: 8px 0 0; color: #8f94a7; font-size: .75rem; line-height: 1.9; }
.feature-line { display: flex; align-items: center; gap: 7px; margin-top: 13px; color: #6f7488; font-size: .62rem; white-space: nowrap; }
.feature-line span:not(:last-child)::after { content: ""; width: 3px; height: 3px; display: inline-block; margin-inline-start: 7px; border-radius: 50%; vertical-align: middle; background: rgba(var(--accent-rgb), .52); }

.card-actions { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; margin-top: 18px; }
.primary-entry, .login-entry {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}
.primary-entry {
  gap: 9px;
  padding: 8px 13px;
  color: #080910;
  background: linear-gradient(135deg, #fff, #e7e1f5);
  box-shadow: 0 11px 28px rgba(var(--accent-rgb), .13);
  font-size: .74rem;
  font-weight: 700;
}
.primary-entry svg { width: 15px; height: 15px; stroke: currentColor; transition: transform 180ms ease; }
.primary-entry:hover { transform: translateY(-2px); }
.primary-entry:hover svg { transform: translateX(-3px); }
.login-entry { width: 42px; padding: 0; border: 1px solid var(--line); color: #777c90; background: rgba(255,255,255,.025); }
.login-entry:hover { border-color: rgba(var(--accent-rgb), .35); color: var(--accent); background: rgba(var(--accent-rgb), .08); }
.login-entry svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.primary-entry:focus-visible, .login-entry:focus-visible, .brand:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.portal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 2px;
  border-top: 1px solid var(--line);
  color: #656a7d;
  font-size: .64rem;
  line-height: 1.85;
}
.footer-safety { display: inline-flex; align-items: center; gap: 8px; }
.footer-safety svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: #55d9b0; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-signature { direction: ltr; color: #505467; letter-spacing: .08em; white-space: nowrap; }

/* Cinematic entrance */
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #05060c;
  transition: opacity 300ms ease, visibility 300ms ease;
}
.intro-screen::before, .intro-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.intro-screen::before {
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(255,255,255,.08) 50%, transparent 50.1%),
    linear-gradient(transparent 49.9%, rgba(255,255,255,.08) 50%, transparent 50.1%),
    radial-gradient(circle, rgba(116,76,219,.15), transparent 39%);
  transform: scale(1.7);
}
.intro-screen::after { box-shadow: inset 0 0 180px 65px #020309; }
.intro-content { position: relative; z-index: 2; display: grid; justify-items: center; }
.intro-halo {
  position: absolute;
  top: 60px;
  left: 50%;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(174,139,255,.16);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%,-50%) scale(.45);
}
.intro-halo::before, .intro-halo::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: inherit; }
.intro-halo::before { inset: 36px; }
.intro-halo::after { inset: 74px; border-color: rgba(86,230,255,.13); }
.intro-indicator {
  position: relative;
  width: 122px;
  height: 122px;
  display: grid;
  place-items: center;
}
.intro-indicator-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.1);
  border-top-color: #b793ff;
  border-right-color: rgba(86,230,255,.75);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 30px rgba(153,108,255,.1);
}
.intro-indicator-ring::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 22px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 13px #8befff;
}
.intro-indicator-ring.inner {
  inset: 10px;
  border-top-color: transparent;
  border-right-color: rgba(255,255,255,.12);
  border-bottom-color: rgba(183,147,255,.5);
}
.intro-indicator-ring.inner::after { display: none; }
.intro-logo-shell {
  position: relative;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 21px;
  opacity: 0;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.025));
  box-shadow: 0 30px 100px rgba(76,38,157,.48);
  transform: scale(.5) rotate(-8deg);
}
.intro-logo-shell::before { content: ""; position: absolute; inset: -18px; z-index: -1; border: 1px solid rgba(255,255,255,.08); border-radius: 32px; transform: rotate(45deg); }
.intro-logo-shell img { width: 55px; height: 55px; }
.intro-title { margin-top: 24px; overflow: hidden; color: #f4f1ff; font-size: clamp(1.1rem,3vw,1.45rem); font-weight: 500; letter-spacing: -.025em; }
.intro-title span { display: block; opacity: 0; transform: translateY(110%); }
.intro-system { margin-top: 8px; color: #646a7e; font-family: Arial,sans-serif; font-size: .58rem; letter-spacing: .36em; opacity: 0; text-transform: uppercase; }

body.is-intro .intro-indicator-ring { animation: indicatorAppear 350ms ease 80ms both, loaderSpin 1.15s linear 80ms infinite; }
body.is-intro .intro-indicator-ring.inner { animation: indicatorAppear 350ms ease 140ms both, loaderSpin 1.75s linear 140ms infinite reverse; }
body.is-intro .intro-halo { animation: introHalo 1.25s cubic-bezier(.16,1,.3,1) 100ms both; }
body.is-intro .intro-logo-shell { animation: introLogo 850ms cubic-bezier(.16,1,.3,1) 170ms both; }
body.is-intro .intro-title span { animation: introText 520ms cubic-bezier(.16,1,.3,1) 560ms both; }
body.is-intro .intro-system { animation: introSystem 480ms ease 690ms both; }
body.is-intro .intro-screen { animation: introExit 480ms cubic-bezier(.7,0,.84,0) 1.34s both; }
body.intro-complete .intro-screen { visibility: hidden; opacity: 0; pointer-events: none; }
body.is-intro .portal-header { animation: revealDown 650ms cubic-bezier(.16,1,.3,1) 1.25s both; }
body.is-intro .hero > *, body.is-intro .zone-heading, body.is-intro .panel-card { animation: revealUp 850ms cubic-bezier(.16,1,.3,1) both; }
body.is-intro .hero > :nth-child(1) { animation-delay: 1.22s; }
body.is-intro .hero > :nth-child(2) { animation-delay: 1.28s; }
body.is-intro .hero > :nth-child(3) { animation-delay: 1.34s; }
body.is-intro .hero > :nth-child(4) { animation-delay: 1.4s; }
body.is-intro .zone-heading { animation-delay: 1.26s; }
body.is-intro .panel-card:nth-child(1) { animation-delay: 1.31s; }
body.is-intro .panel-card:nth-child(2) { animation-delay: 1.37s; }
body.is-intro .panel-card:nth-child(3) { animation-delay: 1.43s; }
body.is-intro .panel-card:nth-child(4) { animation-delay: 1.49s; }
body.is-intro .portal-footer { animation: revealUp 600ms ease 1.53s both; }

/* Full-screen panel transition */
.portal-transition {
  --transition-accent: #7f56e8;
  position: fixed;
  inset: 0;
  z-index: 1400;
  overflow: hidden;
  display: grid;
  place-items: center;
  visibility: hidden;
  pointer-events: none;
}
.portal-transition.is-active { visibility: visible; pointer-events: all; }
.transition-bloom {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--transition-accent), #141329 38%, #05060d 72%);
  box-shadow: 0 0 40px var(--transition-accent);
  transform: translate(-50%,-50%);
}
.portal-transition.is-active .transition-bloom { animation: screenBloom 720ms cubic-bezier(.7,0,.2,1) both; }
.transition-loader {
  position: relative;
  z-index: 2;
  width: min(330px, calc(100vw - 44px));
  display: grid;
  justify-items: center;
  opacity: 0;
  transform: translateY(18px) scale(.96);
}
.portal-transition.is-active .transition-loader { animation: loaderReveal 500ms cubic-bezier(.16,1,.3,1) 470ms both; }
.neuron-loader { position: relative; width: 146px; height: 146px; display: grid; place-items: center; }
.loader-orbit, .loader-orbit::before, .loader-orbit::after { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.loader-orbit { animation: loaderSpin 3.4s linear infinite; }
.loader-orbit::before, .loader-orbit::after { content: ""; inset: 15px; border-color: transparent rgba(255,255,255,.22) transparent rgba(255,255,255,.06); animation: loaderSpin 2.2s linear infinite reverse; }
.loader-orbit::after { inset: 32px; border-color: rgba(255,255,255,.08) transparent rgba(255,255,255,.28); animation-duration: 1.5s; animation-direction: normal; }
.loader-node { position: absolute; width: 8px; height: 8px; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; background: var(--transition-accent); box-shadow: 0 0 18px rgba(255,255,255,.62); }
.loader-node.n1 { inset-block-start: 9px; inset-inline-start: 47px; }
.loader-node.n2 { inset-block-start: 49px; inset-inline-end: 7px; animation: nodePulse 800ms ease-in-out infinite alternate; }
.loader-node.n3 { inset-block-end: 14px; inset-inline-start: 38px; animation: nodePulse 800ms ease-in-out 300ms infinite alternate; }
.loader-mark {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: rgba(255,255,255,.07);
  box-shadow: 0 0 60px rgba(255,255,255,.13), inset 0 1px rgba(255,255,255,.12);
  animation: markBreathe 1.1s ease-in-out infinite alternate;
}
.loader-mark img { width: 48px; height: 48px; }
.transition-label { margin-top: 23px; color: rgba(255,255,255,.48); font-family: Arial,sans-serif; font-size: .55rem; letter-spacing: .28em; text-transform: uppercase; }
.transition-title { margin: 7px 0 0; font-size: 1.05rem; font-weight: 500; }
.transition-progress { position: relative; width: 170px; height: 2px; overflow: hidden; margin-top: 18px; border-radius: 99px; background: rgba(255,255,255,.11); }
.transition-progress::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #fff 35%, #fff 75%, transparent); transform: translateX(110%); }
.portal-transition.is-active .transition-progress::after { animation: progressLoad 1.2s cubic-bezier(.65,0,.35,1) 680ms both; }
.transition-status { min-height: 20px; margin: 10px 0 0; color: rgba(255,255,255,.44); font-size: .65rem; }

@keyframes ambientDrift { to { transform: translate3d(8%,7%,0) scale(1.08); } }
@keyframes livePulse { 0% { opacity:1; transform:scale(.7); } 80%,100% { opacity:0; transform:scale(1.8); } }
@keyframes indicatorAppear { from { opacity:0; } to { opacity:1; } }
@keyframes introHalo { 0% { opacity:0; transform:translate(-50%,-50%) scale(.36) rotate(-24deg); } 45% { opacity:1; } 100% { opacity:.16; transform:translate(-50%,-50%) scale(1) rotate(0); } }
@keyframes introLogo { 0% { opacity:0; transform:scale(.5) rotate(-8deg); } 55% { opacity:1; transform:scale(1.08) rotate(1deg); } 100% { opacity:1; transform:scale(1) rotate(0); box-shadow:0 0 0 40px rgba(153,108,255,0), 0 30px 100px rgba(76,38,157,.48); } }
@keyframes introText { to { opacity:1; transform:translateY(0); } }
@keyframes introSystem { from { opacity:0; letter-spacing:.5em; } to { opacity:1; letter-spacing:.36em; } }
@keyframes introExit { 0% { opacity:1; clip-path:inset(0); } 100% { opacity:0; clip-path:inset(0 0 100% 0); visibility:hidden; } }
@keyframes revealUp { from { opacity:0; transform:translateY(26px); filter:blur(7px); } to { opacity:1; transform:translateY(0); filter:blur(0); } }
@keyframes revealDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes screenBloom { 0% { width:2px; height:2px; box-shadow:0 0 30px 12px var(--transition-accent); } 42% { box-shadow:0 0 90px 32px var(--transition-accent); } 100% { width:300vmax; height:300vmax; box-shadow:0 0 0 transparent; } }
@keyframes loaderReveal { to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes loaderSpin { to { transform:rotate(360deg); } }
@keyframes nodePulse { to { transform:scale(1.8); opacity:.5; } }
@keyframes markBreathe { to { transform:scale(1.05); box-shadow:0 0 80px rgba(255,255,255,.18), inset 0 1px rgba(255,255,255,.14); } }
@keyframes progressLoad { to { transform:translateX(-110%); } }

@media (max-width: 1120px) {
  .portal-main { grid-template-columns: 1fr; gap: 36px; }
  .hero { min-height: auto; }
  .panel-card { min-height: 270px; }
}

@media (max-width: 720px) {
  :root { --page-x: 16px; }
  .portal-shell { padding-top: 10px; }
  .portal-header { min-height: 62px; }
  .brand-copy small, .version-tag { display: none; }
  .portal-main { padding-top: 42px; }
  .hero { display: block; }
  .hero h1 { font-size: clamp(2.7rem,13vw,4.25rem); line-height: 1.24; }
  .hero-description { font-size: .88rem; }
  .panel-grid { grid-template-columns: 1fr; }
  .panel-card { min-height: 264px; }
  .portal-footer { align-items: flex-start; flex-direction: column; }
  .footer-signature { align-self: flex-end; }
}

@media (max-width: 420px) {
  .live-state { padding-inline: 9px; font-size: .65rem; }
  .brand-mark-wrap { width: 39px; height: 39px; }
  .brand-mark { width: 29px; height: 29px; }
  .zone-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .zone-count::before { display: none; }
  .panel-card { padding: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .intro-screen { display: none; }
  .panel-card { transform: none !important; }
  .portal-transition.is-active .transition-bloom { width: 300vmax; height: 300vmax; }
}
