/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:        #4f8ef7;
  --brand-dark:   #2563eb;
  --brand2:       #10b981;
  --accent:       #818cf8;
  --dark:         #0f172a;
  --dark2:        #1e293b;
  --dark3:        #334155;
  --mid:          #64748b;
  --light:        #f1f5f9;
  --white:        #ffffff;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:    0 12px 48px rgba(0,0,0,.18);
  --transition:   .25s cubic-bezier(.4,0,.2,1);
  --font:         'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,142,247,.4); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-white { background: #fff; color: var(--brand-dark); font-weight: 700; }
.btn-white:hover { background: var(--light); transform: translateY(-2px); }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.15); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15,23,42,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: var(--transition);
}
.nav.scrolled { background: rgba(15,23,42,.97); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 66px;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  min-width: 0;
}
.nav-logo { height: 36px; width: 36px; flex-shrink: 0; display: inline-block; vertical-align: middle; }

/* Menu wrapper: section links take the slack, CTA cluster stays pinned right. */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.nav-links a {
  display: block;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 9px;
  border-radius: 6px;
  white-space: nowrap;
  transition: var(--transition);
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }

/* The CTAs are the last thing that may ever be clipped — never let them shrink. */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-link-enroll {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 9px 16px;
  border-radius: 8px;
  white-space: nowrap;
  transition: var(--transition);
}
.nav-link-enroll:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79,142,247,.35);
}

/* Sign-up dropdown — folds the two sign-up destinations into one nav slot. */
.nav-dropdown { position: relative; flex-shrink: 0; }
.nav-dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  color: #c4b5fd;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}
.nav-dd-toggle:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.32); }
.nav-dd-caret { width: 12px; height: 12px; flex-shrink: 0; transition: transform .2s ease; }
.nav-dropdown.open .nav-dd-toggle { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.32); }
.nav-dropdown.open .nav-dd-caret { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 212px;
  list-style: none;
  background: rgba(20,29,50,.98);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-dropdown.open .nav-dd-menu { opacity: 1; visibility: visible; transform: none; }
.nav-dd-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
}
.nav-dd-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  border-radius: 6px;
  transition: var(--transition);
}
.nav-burger:hover { background: rgba(255,255,255,.08); }
.nav-burger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  padding-top: 66px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(79,142,247,.18) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 20% 80%, rgba(16,185,129,.12) 0%, transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(79,142,247,.15);
  border: 1px solid rgba(79,142,247,.35);
  border-radius: 999px;
  color: #93c5fd;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 50%, var(--brand2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto 36px;
  color: rgba(255,255,255,.65);
  font-size: 1.1rem;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-n { display: block; font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-l { font-size: .8rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.stat-div { width: 1px; height: 40px; background: rgba(255,255,255,.15); }
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.4);
  font-size: .78rem;
  letter-spacing: .05em;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid rgba(255,255,255,.3);
  border-bottom: 2px solid rgba(255,255,255,.3);
  transform: rotate(45deg);
  animation: bounce 1.6s infinite;
}
@keyframes bounce { 0%,100%{transform:rotate(45deg) translateY(0)} 50%{transform:rotate(45deg) translateY(4px)} }

/* ── TRUST STRIP ── */
.trust-strip {
  background: var(--light);
  padding: 20px 0;
  border-bottom: 1px solid #e2e8f0;
}
.trust-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-label { font-size: .8rem; color: var(--mid); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.trust-logos { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  padding: 4px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--dark3);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.pill--integration {
  background: linear-gradient(135deg, #ede9fe 0%, #e0f2fe 100%);
  border-color: rgba(124,58,237,.35);
  color: #6d28d9;
}
.pill--mobile {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
  border-color: rgba(16,185,129,.35);
  color: #047857;
}

/* ── SECTION COMMONS ── */
.section { padding: 100px 0; }
.section--dark { background: var(--dark); color: #fff; }
.section--tinted { background: var(--light); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(79,142,247,.1);
  border: 1px solid rgba(79,142,247,.25);
  border-radius: 999px;
  color: var(--brand);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.section-badge--light {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.section-sub {
  max-width: 560px;
  margin: 0 auto;
  color: var(--mid);
  font-size: 1.05rem;
}
.section--dark .section-sub { color: rgba(255,255,255,.55); }

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.feature-card--accent { background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%); border-color: rgba(79,142,247,.3); }
.feature-card--accent2 { background: linear-gradient(135deg, #f5f3ff 0%, #fdf4ff 100%); border-color: rgba(129,140,248,.3); }
.feature-card--enroll  { background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 100%); border-color: rgba(16,185,129,.3); }
.feature-card--notify  { background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%); border-color: rgba(245,158,11,.3); }
.feature-card--biometric { background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%); border-color: rgba(124,58,237,.3); }
.feature-card--signature { background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 100%); border-color: rgba(6,182,212,.3); }
.feature-card--mobile { background: linear-gradient(135deg, #f0fdfa 0%, #eff6ff 100%); border-color: rgba(20,184,166,.3); }
.feature-icon { font-size: 2.4rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--mid); font-size: .95rem; line-height: 1.7; }

/* ── MODULES ── */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.module-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: var(--transition);
  cursor: default;
}
.module-card:hover {
  background: rgba(79,142,247,.12);
  border-color: rgba(79,142,247,.35);
  transform: translateX(4px);
}
.module-icon { font-size: 1.6rem; flex-shrink: 0; }
.module-name { font-weight: 600; font-size: .95rem; color: #fff; }
.module-desc { font-size: .82rem; color: rgba(255,255,255,.5); margin-top: 3px; }

/* ── MOBILE APPS (dark section) ── */
.mobile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mobile-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 26px 24px;
  transition: var(--transition);
}
.mobile-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-4px);
}
.mobile-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.mobile-role-icon { font-size: 1.7rem; line-height: 1; flex-shrink: 0; }
.mobile-role { font-weight: 700; font-size: 1.05rem; color: #fff; }
.mobile-role-sub {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 3px;
}
.mobile-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.mobile-list li {
  position: relative;
  padding-left: 22px;
  font-size: .88rem;
  line-height: 1.5;
  color: rgba(255,255,255,.65);
}
.mobile-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
}
/* Device mockups — real app captures inside a CSS bezel. */
.phone-showcase {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 56px;
}
.phone { margin: 0; text-align: center; }
.phone-frame {
  width: 228px;
  padding: 10px;
  background: linear-gradient(160deg, #2c3446 0%, #161c2b 100%);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 30px;
  box-shadow: 0 22px 50px rgba(0,0,0,.5);
  transition: var(--transition);
}
.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  background: #0f172a;
}
.phone:hover .phone-frame { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.phone-caption {
  margin-top: 18px;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
}
.phone-role {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #34d399;
  margin-bottom: 4px;
}
.phone-shot-note {
  text-align: center;
  margin-top: 26px;
  font-size: .8rem;
  color: rgba(255,255,255,.38);
}
.mobile-notes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 38px; }
.mobile-note {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 8px 16px;
}

/* ── PORTALS ── */
.portals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.portal-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.portal-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.portal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.portal-admin .portal-header  { background: #1e293b; }
.portal-teacher .portal-header { background: #064e3b; }
.portal-student .portal-header { background: #1e1b4b; }
.portal-librarian .portal-header { background: #064040; }
.portal-cashier .portal-header { background: #431407; }
.portal-nurse .portal-header { background: #7f1d1d; }

.portal-dots { display: flex; gap: 5px; }
.portal-dots span { width: 10px; height: 10px; border-radius: 50%; }
.portal-dots span:nth-child(1) { background: #ef4444; }
.portal-dots span:nth-child(2) { background: #f59e0b; }
.portal-dots span:nth-child(3) { background: #22c55e; }
.portal-title-bar { color: rgba(255,255,255,.6); font-size: .78rem; font-weight: 500; }

.portal-body {
  display: flex;
  min-height: 200px;
}
.portal-admin .portal-body  { background: #f8fafc; }
.portal-teacher .portal-body { background: #f0fdf4; }
.portal-student .portal-body { background: #f5f3ff; }
.portal-librarian .portal-body { background: #f0fdfa; }
.portal-cashier .portal-body { background: #fff7ed; }
.portal-nurse .portal-body { background: #fef2f2; }

.portal-sidebar {
  width: 130px;
  flex-shrink: 0;
  padding: 12px 0;
  border-right: 1px solid rgba(0,0,0,.07);
  background: rgba(0,0,0,.03);
}
.ps-item {
  padding: 8px 14px;
  font-size: .75rem;
  font-weight: 500;
  color: var(--mid);
  border-radius: 0 6px 6px 0;
  margin-right: 6px;
  cursor: default;
}
.ps-active {
  background: rgba(79,142,247,.12);
  color: var(--brand-dark);
  font-weight: 700;
}
.portal-main { flex: 1; padding: 14px; }

/* Admin portal main */
.pm-stat-row { display: flex; gap: 8px; margin-bottom: 12px; }
.pm-stat {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.pm-stat-n { font-size: 1.1rem; font-weight: 800; color: var(--brand); }
.pm-stat-l { font-size: .68rem; color: var(--mid); }
.pm-chart-bar { background: #fff; border-radius: 8px; padding: 10px; border: 1px solid #e2e8f0; }
.pm-bar-label { font-size: .7rem; font-weight: 600; color: var(--mid); margin-bottom: 8px; }
.pm-bars { display: flex; align-items: flex-end; gap: 4px; height: 50px; }
.pm-bar { flex: 1; border-radius: 3px 3px 0 0; transition: height .3s; }

/* Teacher portal main */
.pm-class-list { display: flex; flex-direction: column; gap: 8px; }
.pm-class-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
}
.pm-class-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.pm-class-name { font-size: .8rem; font-weight: 600; }
.pm-class-sub { font-size: .7rem; color: var(--mid); }

/* Student portal main */
.pm-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 10px;
}
.pm-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: .85rem;
  flex-shrink: 0;
}
.pm-name { font-size: .85rem; font-weight: 700; }
.pm-meta { font-size: .7rem; color: var(--mid); }
.pm-badge { display: inline-block; font-size: .65rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-top: 4px; }
.pm-badge.enrolled { background: #dcfce7; color: #166534; }
.pm-grade-row { display: flex; gap: 8px; }
.pm-grade-item {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  text-align: center;
}
.pm-grade-sub { font-size: .68rem; color: var(--mid); }
.pm-grade-score { font-size: 1.2rem; font-weight: 800; }

.portal-label {
  padding: 14px 18px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  font-size: .82rem;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 10px;
}
.portal-role-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.admin-badge     { background: #dbeafe; color: #1d4ed8; }
.teacher-badge   { background: #dcfce7; color: #166534; }
.student-badge   { background: #ede9fe; color: #6d28d9; }
.librarian-badge { background: #ccfbf1; color: #0f766e; }
.cashier-badge   { background: #ffedd5; color: #c2410c; }
.nurse-badge     { background: #fee2e2; color: #b91c1c; }
.canteen-badge   { background: #fef3c7; color: #b45309; }

/* ── Canteen portal ── */
.portal-canteen .portal-header { background: #78350f; }
.portal-canteen .portal-body   { background: #fffbeb; }
.feature-card--canteen { background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%); border-color: rgba(245,158,11,.3); }

/* ── HOW IT WORKS ── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.step {
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  text-align: center;
}
.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 6px 20px rgba(79,142,247,.4);
}
.step-content h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-content p { color: var(--mid); font-size: .9rem; line-height: 1.6; }
.step-arrow {
  font-size: 1.8rem;
  color: #cbd5e1;
  align-self: center;
  flex-shrink: 0;
  padding-bottom: 48px;
}

/* ── INTEGRATIONS ── */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.integration-card {
  position: relative;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 32px;
  overflow: hidden;
  transition: var(--transition);
}
.integration-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
}
.integration-card--zkteco::before { background: linear-gradient(90deg, #7c3aed, #818cf8); }
.integration-card--wacom::before  { background: linear-gradient(90deg, #06b6d4, #4f8ef7); }
.integration-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.integration-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.integration-logo {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  border-radius: 14px;
  background: var(--light);
  border: 1px solid #e2e8f0;
}
.integration-vendor {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--mid);
}
.integration-name { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.integration-tag {
  margin-left: auto;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: #ede9fe;
  color: #6d28d9;
}
.integration-card--wacom .integration-tag { background: #cffafe; color: #0e7490; }
.integration-desc { color: var(--mid); font-size: .95rem; line-height: 1.7; margin-bottom: 18px; }
.integration-desc code {
  background: var(--light);
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: .85em;
}
.integration-points { list-style: none; display: grid; gap: 10px; }
.integration-points li {
  position: relative;
  padding-left: 26px;
  color: var(--dark3);
  font-size: .92rem;
  line-height: 1.5;
}
.integration-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: #7c3aed;
}
.integration-card--wacom .integration-points li::before { color: #06b6d4; }
.integrations-note {
  text-align: center;
  max-width: 720px;
  margin: 36px auto 0;
  color: var(--mid);
  font-size: .95rem;
  line-height: 1.7;
}

/* ── TECH STACK ── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.tech-card {
  background: var(--light);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}
.tech-card:hover { border-color: var(--brand); background: #fff; transform: translateY(-4px); box-shadow: var(--shadow); }
.tech-icon { font-size: 2rem; margin-bottom: 12px; }
.tech-name { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.tech-desc { font-size: .88rem; color: var(--mid); line-height: 1.6; }

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  align-items: stretch;
  margin-bottom: 40px;
}

.pricing-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

/* Featured (Pro) */
.pricing-card--featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg);
  transform: translateY(-8px);
}
.pricing-card--featured:hover { transform: translateY(-14px); }

/* Advanced */
.pricing-card--advanced {
  border-color: #7c3aed;
  background: linear-gradient(160deg, #faf5ff 0%, #f5f3ff 100%);
}
.pricing-card--advanced:hover { box-shadow: 0 12px 48px rgba(124,58,237,.2); }

.pricing-popular {
  position: absolute !important;
  top:-15px !important;
  left:30% !important;
  background: var(--brand);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pricing-tier {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.pricing-card--featured .pricing-tier { color: var(--brand-dark); }
.pricing-card--advanced .pricing-tier { color: #6d28d9; }

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}
.pricing-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mid);
}
.pricing-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.pricing-tagline {
  font-size: .88rem;
  color: var(--mid);
  margin-bottom: 28px;
  line-height: 1.5;
  min-height: 40px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  flex: 1;
}
.pricing-features li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: .88rem;
}
.pf-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--dark);
}
.pf-excluded .pf-row {
  color: #94a3b8;
  font-weight: 400;
}
.pf-icon {
  font-size: .9rem;
  flex-shrink: 0;
  line-height: 1;
}
.pf-new > .pf-row > .pf-icon { color: var(--brand2); }
.pf-detail {
  display: block;
  font-size: .76rem;
  font-weight: 400;
  color: var(--mid);
  padding-left: 26px;
  line-height: 1.4;
}

.pricing-btn {
  display: block;
  text-align: center;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.pricing-btn--outline {
  border: 2px solid #e2e8f0;
  color: var(--dark3);
  background: transparent;
}
.pricing-btn--outline:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: rgba(79,142,247,.05);
}
.pricing-btn--primary {
  background: var(--brand);
  color: #fff;
  border: 2px solid var(--brand);
}
.pricing-btn--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  box-shadow: 0 8px 24px rgba(79,142,247,.4);
  transform: translateY(-2px);
}
.pricing-btn--advanced {
  background: #7c3aed;
  color: #fff;
  border: 2px solid #7c3aed;
}
.pricing-btn--advanced:hover {
  background: #6d28d9;
  border-color: #6d28d9;
  box-shadow: 0 8px 24px rgba(124,58,237,.4);
  transform: translateY(-2px);
}

.pricing-note {
  text-align: center;
  font-size: .85rem;
  color: var(--mid);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}
.pricing-note a { color: var(--brand); text-decoration: underline; }

/* ── CTA ── */
.cta-section {
  position: relative;
  padding: 100px 0;
  background: var(--dark);
  overflow: hidden;
  text-align: center;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(79,142,247,.2) 0%, transparent 70%);
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: #fff; margin-bottom: 16px; }
.cta-content p { color: rgba(255,255,255,.6); font-size: 1.05rem; max-width: 520px; margin: 0 auto 40px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.cta-note { color: rgba(255,255,255,.35); font-size: .82rem; }

/* ── FOOTER ── */
.footer {
  background: #020617;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,.45); font-size: .85rem; transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-copy { color: rgba(255,255,255,.3); font-size: .8rem; }

/* ── RESPONSIVE ── */

/* Four handsets stop fitting on one row here; cap the track so they land
   as a tidy 2x2 instead of 3 + an orphan. */
@media (max-width: 1150px) {
  .phone-showcase { max-width: 520px; margin-left: auto; margin-right: auto; }
}

/* The full nav row needs ~1075px of content width; below that it becomes a
   burger panel rather than overflowing and clipping the sign-up CTAs. */
@media (max-width: 1200px) {
  .nav-burger { display: flex; }
  .nav-brand { flex-shrink: 1; min-width: 0; }
  .nav-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 66px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    /* Opaque, not translucent: this panel covers page content, and a
       backdrop-filter here is unreliable enough to leave text showing through. */
    background: #0f172a;
    padding: 14px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    max-height: calc(100vh - 66px);
    overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; gap: 2px; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; border-radius: 8px; }
  .nav-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-left: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav-cta .nav-link-enroll { justify-content: center; padding: 13px 16px; font-size: 1rem; }
  .nav-dropdown { width: 100%; }
  .nav-dd-toggle { width: 100%; justify-content: space-between; padding: 13px 14px; font-size: 1rem; }
  /* Inline accordion on small screens — a floating panel has nowhere to go. */
  .nav-dd-menu {
    position: static;
    display: none;
    min-width: 0;
    margin-top: 6px;
    background: rgba(255,255,255,.04);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav-dropdown.open .nav-dd-menu { display: block; }
  .nav-dd-menu a { padding: 12px 14px; font-size: .95rem; }
}

@media (max-width: 768px) {
  .nav-brand span { font-size: .85rem; }
  .portals-grid, .features-grid, .mobile-grid { grid-template-columns: 1fr; }
  .mobile-notes { flex-direction: column; align-items: stretch; text-align: center; }
  .phone-showcase { gap: 40px; margin-top: 40px; }
  .phone-frame { width: 232px; }
  .portal-body { flex-direction: column; }
  .portal-sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 10px;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,.07);
  }
  .ps-item { border-radius: 6px; margin-right: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }
  .pricing-card--featured:hover { transform: translateY(-6px); }
  .pricing-popular { left: 50% !important; transform: translateX(-50%); }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .trust-inner { justify-content: center; }
  .hero-stats { gap: 14px; }
  .stat-div { height: 28px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; max-width: 320px; }
  .section { padding: 70px 0; }
  .modules-grid { grid-template-columns: 1fr; }
}

/* ── SCROLL ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}
