/* Escolar Pro — cinematic marketing */
:root {
  --bg: #02060F;
  --bg-2: #07111F;
  --bg-3: #0C1A2E;
  --ink: #E8EEF7;
  --muted: #8B9BB0;
  --line: rgba(232,238,247,.12);
  --signal: #3D8BFF;
  --signal-2: #7AB0FF;
  --amber: #F5C451;
  --amber-2: #FFE29A;
  --ok: #3DDC97;
  --danger: #FF5C7A;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Figtree", system-ui, sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ep-body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
body.ep-body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

/* ========== PRELOADER ========== */
.ep-boot {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: #01040A;
  transition: opacity .7s ease, visibility .7s;
}
.ep-boot.is-done {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.ep-boot-stage {
  position: relative; width: min(92vw, 420px); height: 320px;
}
.ep-boot-gate, .ep-boot-phone, .ep-boot-brand {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0; transform: translateY(18px) scale(.96);
}
.ep-boot-gate.is-on,
.ep-boot-phone.is-on,
.ep-boot-brand.is-on {
  opacity: 1; transform: none;
  transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1);
}
.ep-boot-gate.is-off,
.ep-boot-phone.is-off {
  opacity: 0; transform: translateY(-14px) scale(.98);
  transition: opacity .35s ease, transform .4s ease;
}

.ep-nfc {
  width: 140px; height: 140px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 40% 35%, #14305A, #07111F 70%);
  border: 1px solid rgba(61,139,255,.35);
  box-shadow: 0 0 0 0 rgba(61,139,255,.35);
  animation: nfcPulse 1.4s ease-out infinite;
}
.ep-nfc svg { width: 54px; height: 54px; color: var(--signal-2); }
.ep-nfc-rings span {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(61,139,255,.25);
  animation: ringOut 1.4s ease-out infinite;
}
.ep-nfc-rings span:nth-child(2) { animation-delay: .25s; inset: -22px; }
.ep-nfc-rings span:nth-child(3) { animation-delay: .5s; inset: -36px; }
@keyframes nfcPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,139,255,.4); }
  50% { box-shadow: 0 0 40px 8px rgba(61,139,255,.15); }
}
@keyframes ringOut {
  0% { opacity: .7; transform: scale(.85); }
  100% { opacity: 0; transform: scale(1.15); }
}
.ep-boot-caption {
  position: absolute; bottom: 24px; left: 0; right: 0;
  text-align: center; font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
}

.ep-notif {
  width: min(100%, 340px);
  background: linear-gradient(160deg, #132033, #0A1422);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px; padding: 1.1rem 1.15rem;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  transform: translateY(40px); opacity: 0;
}
.ep-boot-phone.is-on .ep-notif {
  animation: notifIn .6s cubic-bezier(.2,.9,.2,1) forwards;
}
@keyframes notifIn {
  to { transform: translateY(0); opacity: 1; }
}
.ep-notif-top {
  display: flex; align-items: center; gap: .65rem; margin-bottom: .7rem;
}
.ep-notif-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(61,220,151,.15); color: var(--ok);
}
.ep-notif-top strong { display: block; font-size: .82rem; }
.ep-notif-top span { font-size: .7rem; color: var(--muted); }
.ep-notif h4 { margin: 0 0 .25rem; font-size: 1rem; font-weight: 800; }
.ep-notif p { margin: 0; color: var(--muted); font-size: .88rem; }

.ep-boot-logo {
  text-align: center;
}
.ep-boot-logo .mark {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--signal), #1A4A9C);
  box-shadow: 0 16px 40px rgba(61,139,255,.35);
}
.ep-boot-logo h2 {
  margin: 0; font-family: var(--display);
  font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 800; letter-spacing: -.04em;
}
.ep-boot-logo h2 em { font-style: normal; color: var(--amber); }
.ep-boot-logo p {
  margin: .55rem 0 0; color: var(--muted); font-size: .9rem; letter-spacing: .04em;
}
.ep-boot-progress {
  position: absolute; bottom: 0; left: 10%; right: 10%; height: 2px;
  background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden;
}
.ep-boot-progress i {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--signal), var(--amber));
  animation: bootBar 2.8s linear forwards;
}
@keyframes bootBar { to { width: 100%; } }

/* ========== SITE REVEAL ========== */
.ep-site {
  opacity: 0; transform: translateY(12px);
  transition: opacity .8s ease .15s, transform .8s cubic-bezier(.2,.8,.2,1) .15s;
}
.ep-site.is-ready { opacity: 1; transform: none; }

/* ========== BRAND ========== */
.ep-brand { display: inline-flex; align-items: center; gap: .7rem; }
.ep-brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--signal), #1A4A9C);
}
.ep-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.ep-brand-text strong {
  font-family: var(--display); font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em;
}
.ep-brand-text strong em { font-style: normal; color: var(--amber); }
.ep-brand-text small { font-size: .65rem; color: var(--muted); margin-top: 2px; font-weight: 600; }

/* ========== HEADER ========== */
.ep-header {
  position: fixed; inset: 0 0 auto; z-index: 40;
  padding: 1.1rem 0; transition: background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.ep-header.is-scrolled {
  background: rgba(2,6,15,.82);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.ep-header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.ep-nav { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.ep-nav a { color: var(--muted); font-weight: 600; font-size: .9rem; transition: color .2s; }
.ep-nav a:hover { color: var(--ink); }
.ep-nav-link {
  position: relative; padding: .35rem 0;
}
.ep-nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--signal), var(--amber));
  transition: right .35s cubic-bezier(.2,.8,.2,1);
}
.ep-nav-link.is-active {
  color: var(--ink);
}
.ep-nav-link.is-active::after { right: 0; }
.ep-btn-nav {
  padding: .62rem 1.15rem; border-radius: 999px; font-weight: 700; font-size: .875rem;
  color: #fff !important;
  background: rgba(61,139,255,.16);
  border: 1px solid rgba(122,176,255,.45);
  box-shadow: 0 0 0 0 rgba(61,139,255,.25);
  transition: background .25s, border-color .25s, box-shadow .25s, transform .2s, color .2s;
}
.ep-btn-nav:hover {
  background: rgba(61,139,255,.28);
  border-color: rgba(122,176,255,.75);
  box-shadow: 0 8px 24px rgba(61,139,255,.22);
  transform: translateY(-1px);
  color: #fff !important;
}
.ep-menu-btn {
  display: none; background: rgba(255,255,255,.05); border: 1px solid var(--line);
  color: var(--ink); border-radius: 10px; padding: .45rem .55rem; cursor: pointer;
}

.ep-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
}
.ep-btn:hover { transform: translateY(-2px); }
.ep-btn-amber {
  background: linear-gradient(135deg, var(--amber-2), var(--amber));
  color: #0A0E16;
  box-shadow: 0 12px 32px rgba(245,196,81,.25);
}
.ep-btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid rgba(232,238,247,.25);
}
.ep-btn-sm { padding: .6rem 1rem; font-size: .85rem; }

/* ========== HERO ========== */
.ep-hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end;
  padding: 8rem 1.5rem 4rem;
  overflow: hidden;
}
.ep-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(61,139,255,.28), transparent 55%),
    radial-gradient(ellipse 45% 40% at 90% 70%, rgba(245,196,81,.08), transparent 50%),
    linear-gradient(180deg, #02060F 0%, #050B16 50%, #081221 100%);
}
.ep-hero-scan {
  position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255,255,255,.015) 3px,
    rgba(255,255,255,.015) 4px
  );
}
.ep-hero-orb {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  right: -8%; top: 10%;
  background: radial-gradient(circle, rgba(61,139,255,.2), transparent 65%);
  filter: blur(40px); animation: orbDrift 10s ease-in-out infinite;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-30px, 24px); }
}
.ep-hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto; width: 100%;
}
.ep-hero-brand {
  font-family: var(--display);
  font-size: clamp(3.4rem, 12vw, 8.5rem);
  font-weight: 800; line-height: .9; letter-spacing: -.05em;
  margin: 0 0 1.5rem;
}
.ep-hero-brand em { font-style: normal; color: var(--amber); }
.ep-hero-row {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: end;
}
.ep-hero-copy p {
  margin: 0 0 1.75rem; max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); line-height: 1.65;
}
.ep-hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; }
.ep-hero-live {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 24px; padding: 1.25rem;
  backdrop-filter: blur(12px);
}
.ep-hero-live-label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .7rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ok); margin-bottom: 1rem;
}
.ep-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(61,220,151,.5);
  animation: livePulse 1.5s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(61,220,151,.45); }
  70% { box-shadow: 0 0 0 9px rgba(61,220,151,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); }
}
.ep-feed { display: flex; flex-direction: column; gap: .65rem; }
.ep-feed-item {
  display: flex; gap: .75rem; align-items: center;
  padding: .75rem .85rem; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  opacity: 0; transform: translateX(12px);
  animation: feedIn .6s ease forwards;
}
.ep-feed-item:nth-child(1) { animation-delay: 3.1s; }
.ep-feed-item:nth-child(2) { animation-delay: 3.45s; }
.ep-feed-item:nth-child(3) { animation-delay: 3.8s; }
@keyframes feedIn {
  to { opacity: 1; transform: none; }
}
.ep-feed-ico {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: .7rem; font-weight: 800;
}
.ep-feed-ico.in { background: rgba(61,220,151,.15); color: var(--ok); }
.ep-feed-ico.out { background: rgba(61,139,255,.15); color: var(--signal-2); }
.ep-feed-ico.msg { background: rgba(245,196,81,.15); color: var(--amber); }
.ep-feed-item strong { display: block; font-size: .85rem; }
.ep-feed-item span { font-size: .72rem; color: var(--muted); }

/* ========== MARQUEE ========== */
.ep-marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden; padding: 1rem 0;
}
.ep-marquee-track {
  display: flex; gap: 3rem; width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  color: var(--muted); letter-spacing: -.01em;
}
.ep-marquee-track span::before {
  content: "◆"; color: var(--amber); margin-right: 3rem; font-size: .7rem;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ========== SECTIONS ========== */
.ep-section { padding: 6.5rem 1.5rem; position: relative; }
.ep-section-inner { max-width: var(--max); margin: 0 auto; }
.ep-kicker {
  display: inline-block; margin-bottom: .85rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber);
}
.ep-title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.08;
}
.ep-lead {
  margin: 0 0 2.75rem; max-width: 38rem;
  color: var(--muted); font-size: 1.08rem;
}

/* Story split */
.ep-story {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
}
.ep-story-pane {
  padding: 2.5rem 2rem; min-height: 340px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.ep-story-pane.web {
  background: linear-gradient(160deg, #0C1A2E, #07111F);
  border-right: 1px solid var(--line);
}
.ep-story-pane.app {
  background: linear-gradient(160deg, #0A1628, #05101C);
}
.ep-story-pane h3 {
  margin: 0 0 .75rem; font-family: var(--display);
  font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em;
}
.ep-story-pane p { margin: 0 0 1.5rem; color: var(--muted); }
.ep-story-pane ul { list-style: none; margin: 0; padding: 0; }
.ep-story-pane li {
  padding: .55rem 0; border-top: 1px solid var(--line);
  font-weight: 600; font-size: .95rem;
}
.ep-story-tag {
  align-self: flex-start; margin-bottom: 1.5rem;
  padding: .35rem .75rem; border-radius: 999px;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em;
}
.ep-story-pane.web .ep-story-tag { background: rgba(245,196,81,.12); color: var(--amber); }
.ep-story-pane.app .ep-story-tag { background: rgba(61,139,255,.15); color: var(--signal-2); }

/* Feature ribbon */
.ep-ribbon {
  display: grid; grid-template-columns: repeat(6, minmax(200px, 1fr));
  gap: 1rem; overflow-x: auto; padding-bottom: .5rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.ep-ribbon::-webkit-scrollbar { height: 4px; }
.ep-ribbon::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 99px; }
.ep-card {
  scroll-snap-align: start;
  min-height: 260px; padding: 1.5rem 1.25rem;
  border-radius: 22px; border: 1px solid var(--line);
  background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .3s, border-color .3s, background .3s;
}
.ep-card:hover {
  transform: translateY(-8px);
  border-color: rgba(61,139,255,.4);
  background: var(--bg-3);
}
.ep-card-num {
  font-family: var(--display); font-size: 2.4rem; font-weight: 800;
  color: rgba(255,255,255,.08); margin-bottom: auto; letter-spacing: -.03em;
}
.ep-card h3 { margin: 0 0 .45rem; font-size: 1.1rem; font-weight: 800; }
.ep-card p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Timeline */
.ep-timeline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  position: relative;
}
.ep-timeline::before {
  content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.ep-step { padding: 0 1rem; text-align: center; }
.ep-step-dot {
  width: 56px; height: 56px; margin: 0 auto 1.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-3); border: 1px solid var(--line);
  font-family: var(--display); font-weight: 800; color: var(--amber);
  position: relative; z-index: 1;
}
.ep-step h3 { margin: 0 0 .4rem; font-size: 1.05rem; font-weight: 800; }
.ep-step p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Roles */
.ep-roles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.ep-role {
  padding: 1.4rem 1.25rem; border-radius: 18px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
}
.ep-role strong { display: block; margin-bottom: .35rem; font-size: 1.05rem; }
.ep-role span { color: var(--muted); font-size: .9rem; }

/* CTA */
.ep-cta {
  margin: 0 1.5rem 4rem; border-radius: 32px; overflow: hidden;
  padding: 5rem 1.5rem; text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(61,139,255,.25), transparent 55%),
    linear-gradient(160deg, #0A1628, #02060F 60%, #0C1A2E);
  border: 1px solid var(--line);
}
.ep-cta .ep-title { max-width: 16ch; margin-left: auto; margin-right: auto; }
.ep-cta .ep-lead { margin-left: auto; margin-right: auto; }
.ep-cta-actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }

/* Footer */
.ep-footer {
  padding: 3.5rem 1.5rem 2rem; border-top: 1px solid var(--line);
  background: #01040A;
}
.ep-footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem;
}
.ep-footer p { margin: 1rem 0 0; color: var(--muted); max-width: 28rem; font-size: .92rem; }
.ep-footer h4 {
  margin: 0 0 1rem; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink);
}
.ep-footer ul { list-style: none; margin: 0; padding: 0; }
.ep-footer li { margin-bottom: .5rem; }
.ep-footer a { color: var(--muted); font-size: .92rem; }
.ep-footer a:hover { color: var(--ink); }
.ep-footer-bottom {
  max-width: var(--max); margin: 2.5rem auto 0; padding-top: 1.25rem;
  border-top: 1px solid var(--line); text-align: center;
  color: var(--muted); font-size: .85rem;
}
.ep-footer-bottom a {
  color: var(--amber); font-weight: 800; margin-left: .2rem;
}
.ep-footer-bottom a:hover { color: var(--amber-2); }

/* SHK credit */
.ep-shk {
  display: inline-flex; align-items: center; gap: .75rem;
  margin-top: 1.5rem; padding: .7rem .9rem .7rem .7rem;
  border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  transition: border-color .25s, background .25s, transform .25s;
}
.ep-shk:hover {
  border-color: rgba(245,196,81,.45);
  background: rgba(245,196,81,.06);
  transform: translateY(-2px);
}
.ep-shk-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: .85rem;
  letter-spacing: -.02em; color: #0A0E16;
  background: linear-gradient(135deg, var(--amber-2), var(--amber));
  box-shadow: 0 8px 20px rgba(245,196,81,.25);
}
.ep-shk-text { display: flex; flex-direction: column; line-height: 1.2; }
.ep-shk-text strong { font-size: .88rem; font-weight: 800; }
.ep-shk-text small { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.ep-shk-hero { margin-top: 1.75rem; }

/* Scroll reveals */
.ep-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .7s cubic-bezier(.2,.8,.2,1) var(--d, 0s),
    transform .7s cubic-bezier(.2,.8,.2,1) var(--d, 0s);
}
.ep-reveal.is-visible {
  opacity: 1;
  transform: none;
}
.ep-card {
  transition: transform .3s, border-color .3s, background .3s,
    opacity .7s cubic-bezier(.2,.8,.2,1) var(--d, 0s),
    transform .7s cubic-bezier(.2,.8,.2,1) var(--d, 0s);
}
.ep-card.ep-reveal:not(.is-visible) { transform: translateY(28px); }
.ep-card.ep-reveal.is-visible:hover { transform: translateY(-8px); }

/* Hero brand entrance after boot */
.ep-site.is-ready .ep-hero-brand {
  animation: heroTitle .9s cubic-bezier(.2,.8,.2,1) .15s both;
}
.ep-site.is-ready .ep-hero-copy {
  animation: heroTitle .9s cubic-bezier(.2,.8,.2,1) .28s both;
}
.ep-site.is-ready .ep-hero-live {
  animation: heroTitle .9s cubic-bezier(.2,.8,.2,1) .4s both;
}
@keyframes heroTitle {
  from { opacity: 0; transform: translateY(22px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* Login / panel reuse */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-brand {
  position: relative; overflow: hidden; padding: 3.5rem;
  display: flex; align-items: center;
  background: linear-gradient(160deg, #02060F, #0A1628 55%, #0C1A2E);
}
.login-brand-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(61,139,255,.28), transparent 50%);
}
.login-brand-inner { position: relative; z-index: 1; max-width: 28rem; }
.login-brand h1 {
  font-family: var(--display); font-size: 2.2rem; font-weight: 800;
  line-height: 1.1; margin: 1.75rem 0 1rem; letter-spacing: -.03em;
}
.login-brand-inner > p { color: var(--muted); margin: 0 0 1.75rem; }
.login-features { list-style: none; margin: 0; padding: 0; }
.login-features li {
  display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line);
}
.login-feature-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(245,196,81,.1); color: var(--amber); flex-shrink: 0;
}
.login-features strong { display: block; margin-bottom: .15rem; }
.login-features span { font-size: .85rem; color: var(--muted); }
.login-form-side {
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 1.5rem; background: #F3F6FA; color: #0F172A;
}
.login-card {
  width: 100%; max-width: 420px; background: #fff; border-radius: 24px;
  padding: 2.25rem 2rem; border: 1px solid #E2E8F0;
  box-shadow: 0 24px 60px rgba(15,23,42,.1);
}
.login-card-header { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.login-card-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(61,139,255,.1); color: var(--signal);
}
.login-card h2 { margin: 0; font-size: 1.4rem; font-weight: 800; font-family: var(--display); }
.login-card .subtitle { margin: .2rem 0 0; color: #64748B; font-size: .9rem; }
.back-link {
  display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.25rem;
  color: #64748B; font-weight: 600; font-size: .875rem;
}
.back-link:hover { color: var(--signal); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .45rem; font-size: .875rem; }
.field input, .field select {
  width: 100%; padding: .9rem 1rem; border-radius: 12px; border: 1.5px solid #E2E8F0;
  font: inherit; background: #fff; color: #0F172A;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px rgba(61,139,255,.15);
}
.field-check { display: flex; align-items: center; gap: .55rem; margin-bottom: 1.25rem; }
.field-check label { margin: 0; font-size: .875rem; color: #64748B; font-weight: 500; }
.btn, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: .95rem 1.25rem; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--signal), #1A4A9C); color: #fff;
  font-weight: 700; font-size: .95rem; cursor: pointer; font-family: inherit;
}
.btn-block { width: 100%; }
.alert { padding: .9rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 600; font-size: .9rem; }
.alert-error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.alert-success { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.demo-hint {
  margin-top: 1.25rem; padding: .9rem 1rem; border-radius: 12px;
  background: #F8FAFC; border: 1px dashed #E2E8F0; font-size: .85rem; color: #64748B;
}
.panel-body { min-height: 100vh; background: #F3F6FA; font-family: var(--sans); color: #0F172A; }
.panel-topbar { background: linear-gradient(135deg, #02060F, #0C1A2E); color: #fff; padding: .85rem 0; }
.panel-topbar-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.panel-nav { display: flex; gap: .25rem; align-items: center; }
.panel-nav a, .panel-nav button {
  color: rgba(255,255,255,.85); background: none; border: 0; font: inherit; font-weight: 600;
  padding: .5rem 1rem; border-radius: 10px; cursor: pointer;
}
.panel-nav a.active, .panel-nav a:hover, .panel-nav button:hover { background: rgba(255,255,255,.12); }
.panel-wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.panel-card { background: #fff; border-radius: 20px; padding: 1.5rem; border: 1px solid #E2E8F0; box-shadow: 0 8px 30px rgba(15,23,42,.05); }
.hint { color: #64748B; font-size: .9rem; }
.chip { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.chip-ok { background: #ECFDF5; color: #047857; }
.chip-warn { background: #FFFBEB; color: #B45309; }
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { text-align: left; padding: .85rem .7rem; border-bottom: 1px solid #E2E8F0; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #64748B; }
.nfc-hero {
  background: linear-gradient(135deg, #02060F, var(--signal)); color: #fff;
  border-radius: 20px; padding: 2rem 1.5rem; text-align: center; margin-bottom: 1.25rem;
}
.uid-input { font-size: 1.35rem !important; letter-spacing: .08em; text-align: center; font-weight: 800 !important; text-transform: uppercase; }
.btn-secondary { background: #0C1A2E; color: #fff; border: 0; border-radius: 10px; padding: .75rem 1rem; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-outline { background: transparent; color: var(--signal); border: 1px solid #93C5FD; border-radius: 10px; padding: .65rem 1rem; font-weight: 700; cursor: pointer; }

@media (max-width: 960px) {
  .ep-hero-row, .ep-story, .ep-timeline, .ep-roles, .ep-footer-inner, .login-page { grid-template-columns: 1fr; }
  .ep-story-pane.web { border-right: 0; border-bottom: 1px solid var(--line); }
  .ep-timeline::before { display: none; }
  .ep-nav { display: none; }
  .ep-menu-btn { display: inline-flex; }
  .ep-nav.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(2,6,15,.97); padding: 1.25rem 1.5rem 1.5rem; gap: 1rem;
  }
  .ep-header-inner { position: relative; }
  .login-brand { display: none; }
  .ep-hero { align-items: center; padding-top: 7rem; }
}
@media (max-width: 600px) {
  .ep-hero-cta .ep-btn { width: 100%; }
  .ep-cta { margin: 0 1rem 3rem; }
}
