/* ==========================================================================
   MASTER CLASS — Landing Page Stylesheet
   Architecture: BEM. Tokens live in :root. Grid for layout, Flex for
   components. Dark navy / white system with electric blue + soft gold accents.
   ========================================================================== */

:root {
  /* ---- Color: core ---- */
  --navy-950: #070b1a;
  --navy-900: #0b1130;
  --navy-800: #121a42;
  --navy-700: #1b2554;
  --slate-900: #0e1424;
  --slate-600: #5a6178;
  --slate-400: #8b91a6;
  --slate-200: #e1e4ec;
  --slate-100: #eef0f6;
  --slate-50:  #f7f8fb;
  --white: #ffffff;

  /* ---- Color: accents ---- */
  --accent-blue: #2f6fff;
  --accent-blue-dim: #2f6fff1a;
  --accent-blue-bright: #5b8bff;
  --accent-gold: #e3b35c;

  /* ---- Color: semantic ---- */
  --bg-page: var(--slate-50);
  --bg-surface: var(--white);
  --bg-inverse: var(--navy-950);
  --text-primary: var(--slate-900);
  --text-secondary: var(--slate-600);
  --text-inverse: var(--white);
  --text-inverse-secondary: #aab2cc;
  --border-subtle: var(--slate-200);
  --border-inverse: #232c52;

  /* ---- Typography ---- */
  --font-display: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --fs-eyebrow: 0.8125rem;
  --fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --fs-h1: clamp(2.5rem, 1.9rem + 3vw, 4.5rem);
  --fs-h2: clamp(1.9rem, 1.6rem + 1.4vw, 2.75rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);

  /* ---- Spacing scale ---- */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 7rem;

  /* ---- Layout ---- */
  --container-w: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --header-h: 76px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 420ms;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg { display: block; max-width: 100%; }

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.section__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding-inline: var(--space-4);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  margin-bottom: var(--space-2);
}

.eyebrow--inverse { color: var(--accent-gold); }

.section__head {
  max-width: 640px;
  margin-bottom: var(--space-6);
}

.section__title {
  font-size: var(--fs-h2);
  font-weight: 700;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

.btn--primary {
  background: var(--accent-blue);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(15, 23, 60, 0.15), 0 0 0 1px rgba(47, 111, 255, 0.06);
}

.btn--primary:hover {
  background: var(--accent-blue-bright);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(47, 111, 255, 0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn--ghost:hover {
  border-color: var(--slate-400);
  background: var(--slate-100);
}

.btn--pulse {
  position: relative;
}

.btn--pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 var(--accent-blue-dim);
  animation: pulse-ring 2.4s var(--ease-out) infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(47, 111, 255, 0.45); }
  70%  { box-shadow: 0 0 0 16px rgba(47, 111, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 111, 255, 0); }
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 248, 251, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border-subtle);
}

.header__inner {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding-inline: var(--space-4);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--navy-950);
  justify-self: start;
}

.header__logo-mark {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(47, 111, 255, 0.25);
  box-shadow: 0 2px 8px rgba(47, 111, 255, 0.15);
  display: block;
}

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

.header__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}

.header__link:hover { color: var(--text-primary); }

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  justify-self: end;
}

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.header__toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--navy-950);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4) var(--space-4);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav--open { display: flex; }

.mobile-nav__link {
  padding: var(--space-2) 0;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav__cta {
  margin-top: var(--space-2);
  width: 100%;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-8) var(--space-7);
  background: var(--bg-page);
}

.hero__field {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(47, 111, 255, 0.20) 0%, rgba(47, 111, 255, 0.10) 28%, rgba(47, 111, 255, 0.03) 50%, transparent 70%),
    radial-gradient(circle at 85% 5%, rgba(227, 179, 92, 0.16) 0%, rgba(227, 179, 92, 0.07) 26%, rgba(227, 179, 92, 0.02) 46%, transparent 68%),
    radial-gradient(ellipse at 50% 100%, rgba(47, 111, 255, 0.05) 0%, transparent 60%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}

.hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(247, 248, 251, 0) 0%, var(--bg-page) 92%);
  pointer-events: none;
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-w);
  margin: 0 auto;
  padding-inline: var(--space-4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}

.hero__headline {
  font-size: var(--fs-h1);
  font-weight: 800;
  margin-block: var(--space-3) var(--space-4);
}

.hero__subhead {
  font-size: var(--fs-lead);
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: var(--space-5);
}

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

/* ---- Hero mockup (signature element) ---- */

.hero__visual { position: relative; min-height: 420px; }

.mockup {
  position: relative;
  width: 100%;
  height: 100%;
}

.mockup__dashboard {
  width: min(440px, 100%);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -20px rgba(11, 17, 48, 0.25);
  overflow: hidden;
}

.mockup__dashboard-bar {
  display: flex;
  gap: 6px;
  padding: var(--space-3) var(--space-4) 0;
}

.mockup__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--slate-200);
}

.mockup__dashboard-body { padding: var(--space-4); }

.mockup__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.mockup__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mockup__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-blue);
}

.mockup__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-blue);
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.mockup__counter {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy-950);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-3);
}

.mockup__bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 64px;
}

.mockup__bars span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent-blue-bright), var(--accent-blue));
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
}

.mockup__phone {
  position: absolute;
  right: -4%;
  bottom: -12%;
  width: 188px;
  border-radius: 26px;
  background: var(--navy-950);
  padding: 10px;
  box-shadow: 0 24px 50px -16px rgba(11, 17, 48, 0.4);
  border: 1px solid var(--border-inverse);
}

.mockup__phone-notch {
  width: 44px;
  height: 5px;
  border-radius: 4px;
  background: var(--border-inverse);
  margin: 0 auto var(--space-2);
}

.mockup__phone-body {
  background: var(--slate-50);
  border-radius: 16px;
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup__phone-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(11, 17, 48, 0.04);
}

.mockup__phone-card--muted { opacity: 0.7; }

.mockup__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue-bright), var(--accent-blue));
  flex-shrink: 0;
}

.mockup__avatar--alt {
  background: linear-gradient(135deg, var(--accent-gold), #c98f2e);
}

.mockup__name {
  font-size: 0.6875rem;
  font-weight: 700;
  margin: 0;
  color: var(--navy-950);
}

.mockup__sub {
  font-size: 0.625rem;
  margin: 0;
  color: var(--text-secondary);
}

/* ==========================================================================
   Features
   ========================================================================== */

.features { padding-block: var(--space-7); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.feature-card {
  padding: var(--space-5);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -24px rgba(11, 17, 48, 0.25);
  border-color: var(--slate-200);
}

.feature-card__icon {
  width: 36px;
  height: 36px;
  color: var(--accent-blue);
  margin-bottom: var(--space-3);
}

.feature-card__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.feature-card__body {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ==========================================================================
   Life on Master Class (illustrated campus scenes)
   ========================================================================== */

.campus { padding-block: var(--space-7); }

.campus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.campus-card__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-3);
  box-shadow: 0 20px 40px -26px rgba(11, 17, 48, 0.22), 0 0 0 1px var(--border-subtle);
}

.campus-card__visual svg {
  width: 100%;
  height: auto;
  display: block;
}

.campus-card__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 4px;
}

.campus-card__body {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ==========================================================================
   App Highlights (Parents / Teachers tabs)
   ========================================================================== */

.app-features {
  padding-block: var(--space-7);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.app-features__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.app-features__head .section__title { max-width: 480px; }

.app-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--slate-100);
  border-radius: 999px;
  flex-shrink: 0;
}

.app-tabs__btn {
  padding: 0.6rem 1.15rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.app-tabs__btn:hover { color: var(--text-primary); }

.app-tabs__btn--active,
.app-tabs__btn[aria-selected="true"] {
  background: var(--bg-surface);
  color: var(--navy-950);
  box-shadow: 0 6px 16px -8px rgba(11, 17, 48, 0.25), 0 0 0 1px var(--border-subtle);
}

.app-panel[hidden] { display: none; }

.feature-grid--tight { grid-template-columns: repeat(3, 1fr); }

.app-features__note {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   For Institutions (Tenant Admin)
   ========================================================================== */

.admin {
  padding-block: var(--space-7);
  background: var(--bg-page);
}

.admin__lead {
  margin-top: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--fs-lead);
  max-width: 640px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.admin-card {
  padding: var(--space-5);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-blue);
  border-radius: var(--radius-md);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}

.admin-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -24px rgba(11, 17, 48, 0.25);
}

.admin-card--wide { grid-column: span 3; }

.admin-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.admin-card__icon {
  width: 32px;
  height: 32px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.admin-card__tag {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  background: rgba(227, 179, 92, 0.12);
  border: 1px solid rgba(227, 179, 92, 0.3);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.admin-card__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.admin-card__body {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ==========================================================================
   Workflow ("How it works")
   ========================================================================== */

.workflow {
  padding-block: var(--space-7);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.workflow__list {
  display: flex;
  flex-direction: column;
}

.workflow__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.workflow__item:last-child { border-bottom: 1px solid var(--border-subtle); }

.workflow__index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--slate-200);
  letter-spacing: -0.02em;
}

.workflow__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 4px;
}

.workflow__body { color: var(--text-secondary); }

/* ==========================================================================
   Security (dark trust banner)
   ========================================================================== */

.security {
  padding-block: var(--space-8);
  background: var(--bg-inverse);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}

.security::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 30%, rgba(227, 179, 92, 0.08), transparent 45%);
  pointer-events: none;
}

.security__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}

.security__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--text-inverse);
  margin-bottom: var(--space-3);
}

.security__body {
  color: var(--text-inverse-secondary);
  max-width: 440px;
}

.security__checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-5);
  max-width: 460px;
}

.security__check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-inverse);
}

.security__check svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-gold);
}

.security__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-inverse);
}

.security__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.security__stat-value {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-inverse);
}

.security__stat-label {
  font-size: 0.6875rem;
  color: var(--slate-400);
  text-align: center;
}

.tenant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 320px;
  margin-inline: auto;
}

.tenant-cell {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--navy-900);
  border: 1px solid var(--border-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  transition: border-color var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}

.tenant-cell svg { width: 24px; height: 24px; }

.tenant-cell--active {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 0 1px rgba(227, 179, 92, 0.25), 0 0 24px -6px rgba(227, 179, 92, 0.45);
}

.security__caption {
  text-align: center;
  margin-top: var(--space-3);
  font-size: 0.8125rem;
  color: var(--slate-400);
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.pricing {
  padding-block: var(--space-8);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  background: var(--slate-100);
  border-radius: 999px;
  margin-top: var(--space-4);
}

.pricing-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.pricing-tabs__btn:hover {
  color: var(--text-primary);
}

.pricing-tabs__btn--active,
.pricing-tabs__btn[aria-selected="true"] {
  background: var(--bg-surface);
  color: var(--navy-950);
  box-shadow: 0 6px 16px -8px rgba(11, 17, 48, 0.25), 0 0 0 1px var(--border-subtle);
}

.pricing-tabs__tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(47, 111, 255, 0.1);
  color: var(--accent-blue);
}

.pricing-tabs__tag--gold {
  background: rgba(227, 179, 92, 0.15);
  color: #b88320;
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: stretch;
  margin-top: var(--space-6);
}

.pricing-card {
  position: relative;
  background: linear-gradient(145deg, #ffffff, #f7f9ff);
  border: 2px solid var(--accent-blue);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  box-shadow: 0 24px 48px -16px rgba(47, 111, 255, 0.18), 0 0 0 1px rgba(47, 111, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: var(--space-5);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-bright));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(47, 111, 255, 0.35);
}

.pricing-card__header {
  margin-bottom: var(--space-3);
}

.pricing-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-950);
  margin-bottom: 4px;
}

.pricing-card__sub {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.pricing-card__price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-block: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-card__currency {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-blue);
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--navy-950);
  letter-spacing: -0.03em;
}

.pricing-card__period {
  display: flex;
  flex-direction: column;
}

.pricing-card__period-main {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-950);
}

.pricing-card__period-sub {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.pricing-card__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.pricing-card__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 500;
}

.pricing-card__feature-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(47, 111, 255, 0.12);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pricing-card__feature-icon svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
}

/* Cost Calculator Box */
.pricing-calculator {
  background: var(--navy-950);
  color: var(--text-inverse);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  box-shadow: 0 30px 60px -20px rgba(7, 11, 26, 0.4);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-inverse);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-calculator::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 70% 30%, rgba(47, 111, 255, 0.15), transparent 50%);
  pointer-events: none;
}

.pricing-calculator__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.pricing-calculator__sub {
  font-size: 0.875rem;
  color: var(--text-inverse-secondary);
  margin-bottom: var(--space-4);
}

.pricing-calculator__slider-wrap {
  margin-bottom: var(--space-4);
}

.pricing-calculator__label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2);
}

.pricing-calculator__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-inverse-secondary);
}

.pricing-calculator__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.pricing-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--navy-800);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.pricing-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 3px solid var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out);
}

.pricing-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.pricing-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 3px solid var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.pricing-calculator__results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  background: var(--navy-900);
  border: 1px solid var(--border-inverse);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.pricing-calculator__results--single {
  grid-template-columns: 1fr;
  text-align: center;
  padding: var(--space-4) var(--space-5);
}

.pricing-calculator__rate-note {
  font-size: 0.8125rem;
  color: var(--slate-400);
  text-align: center;
  margin-top: -6px;
  margin-bottom: var(--space-4);
}

.pricing-calculator__res-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pricing-calculator__res-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-400);
}

.pricing-calculator__res-val {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--white);
}

.pricing-calculator__res-val--highlight {
  color: var(--accent-blue-bright);
}

.pricing-calculator__cta {
  width: 100%;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.cta-final {
  padding-block: var(--space-8);
  text-align: center;
}

.cta-final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.cta-final__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  max-width: 600px;
}

.cta-final__body {
  color: var(--text-secondary);
  max-width: 460px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--space-5);
}

.footer__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding-inline: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.footer__logo-mark {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(47, 111, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: block;
}

.footer__nav {
  display: flex;
  gap: var(--space-4);
}

.footer__link {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer__link:hover { color: var(--text-primary); }

.footer__copy {
  width: 100%;
  font-size: 0.8125rem;
  color: var(--slate-400);
  order: 3;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Enquiry Modal
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(7, 11, 26, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -20px rgba(7, 11, 26, 0.5);
  animation: modal-in 260ms var(--ease-out);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  background: var(--slate-100);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.modal__close:hover { background: var(--slate-200); color: var(--text-primary); }
.modal__close svg { width: 16px; height: 16px; }

.modal__body { padding: var(--space-6) var(--space-5) var(--space-5); }

.modal__title {
  font-size: 1.625rem;
  font-weight: 700;
  margin-block: 4px var(--space-2);
}

.modal__subtitle {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: var(--space-5);
  max-width: 420px;
}

.enquiry-form { display: flex; flex-direction: column; gap: var(--space-3); }

.enquiry-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.enquiry-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.enquiry-form__field--full { grid-column: 1 / -1; }

.enquiry-form__field input,
.enquiry-form__field select,
.enquiry-form__field textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-primary);
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--slate-50);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.enquiry-form__field input:focus,
.enquiry-form__field select:focus,
.enquiry-form__field textarea:focus {
  border-color: var(--accent-blue);
  background: var(--white);
  outline: none;
}

.enquiry-form__field textarea { resize: vertical; min-height: 64px; }

.enquiry-form__submit { margin-top: var(--space-2); width: 100%; }

.enquiry-form__note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.enquiry-success {
  text-align: center;
  padding-block: var(--space-4);
}

.enquiry-success svg { width: 48px; height: 48px; margin: 0 auto var(--space-3); }

.enquiry-success h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.enquiry-success p {
  color: var(--text-secondary);
  max-width: 380px;
  margin-inline: auto;
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: 380px; order: -1; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid--tight { grid-template-columns: repeat(2, 1fr); }
  .campus-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-card--wide { grid-column: span 2; }
  .pricing__grid { grid-template-columns: 1fr; }
  .security__inner { grid-template-columns: 1fr; text-align: center; }
  .security__body { margin-inline: auto; }
  .security__checklist { margin-inline: auto; }
  .tenant-grid { margin-bottom: var(--space-2); }
}

@media (max-width: 760px) {
  .security__checklist { grid-template-columns: 1fr; max-width: 280px; }
  .security__check { justify-content: center; }
  .header__nav { display: none; }
  .header__toggle { display: flex; }
  .header__inner { grid-template-columns: auto auto; justify-content: space-between; }
  .header__actions .btn--sm { display: none; }
  .mobile-nav__cta { display: inline-flex; }

  .hero { padding-block: var(--space-6) var(--space-6); }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }

  .mockup__phone { right: 0; bottom: -8%; width: 150px; }

  .workflow__item { grid-template-columns: 56px 1fr; }

  .app-features__head { flex-direction: column; align-items: stretch; }
  .app-tabs { align-self: stretch; }
  .app-tabs__btn { flex: 1; text-align: center; }
  .feature-grid--tight { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-card--wide { grid-column: span 1; }
  .enquiry-form__row { grid-template-columns: 1fr; }
  .modal__body { padding: var(--space-5) var(--space-4) var(--space-4); }
}

@media (max-width: 420px) {
  .mockup__dashboard { width: 100%; }
  .mockup__phone { display: none; }
}

/* ==========================================================================
   GLASSMORPHISM 2.0 (SPATIAL & LIQUID GLASS) DESIGN SYSTEM
   ========================================================================== */

.text-gradient {
  background: linear-gradient(135deg, #2f6fff 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ---- Spatial Liquid Mesh Background ---- */
.hero__liquid-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.liquid-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.liquid-orb--1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(47, 111, 255, 0.6) 0%, rgba(139, 92, 246, 0.2) 100%);
  top: -100px;
  left: -100px;
}

.liquid-orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.4) 0%, rgba(47, 111, 255, 0.15) 100%);
  top: 40%;
  right: -150px;
  animation-delay: -4s;
}

.liquid-orb--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(227, 179, 92, 0.4) 0%, rgba(47, 111, 255, 0.1) 100%);
  bottom: -50px;
  left: 30%;
  animation-delay: -8s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ---- Spatial Pill & Badges ---- */
.spatial-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(47, 111, 255, 0.08);
  border: 1px solid rgba(47, 111, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 4px 12px rgba(47, 111, 255, 0.1);
}

.spatial-pill--center {
  margin-inline: auto;
}

.spatial-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 10px var(--accent-blue);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* ---- Hero Metric Pill ---- */
.hero__metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 16px;
  margin-top: var(--space-5);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 12px 30px -10px rgba(11, 17, 48, 0.12);
}

.hero__metric-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  animation: pulse-glow 1.5s infinite;
}

.hero__metric-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-950);
  line-height: 1.1;
}

.hero__metric-pill span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ---- Spatial Glass Card 2.0 Base ---- */
.spatial-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  box-shadow:
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.05),
    0 20px 40px -15px rgba(11, 17, 48, 0.15);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s var(--ease-out);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.spatial-card:hover {
  border-color: rgba(47, 111, 255, 0.35);
  box-shadow:
    inset 0 1px 2px 0 rgba(255, 255, 255, 1),
    0 30px 60px -20px rgba(47, 111, 255, 0.25);
}

/* Mouse Glare Reflection */
.spatial-card__glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.4) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.spatial-card:hover .spatial-card__glare {
  opacity: 1;
}

/* Hero Spatial Card */
.spatial-card--hero {
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(240, 244, 255, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.spatial-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.spatial-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(47, 111, 255, 0.1);
  color: var(--accent-blue);
  font-size: 0.8125rem;
  font-weight: 700;
}

.spatial-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.spatial-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.spatial-preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(11, 17, 48, 0.04);
  transition: transform 0.2s var(--ease-out);
}

.spatial-preview-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
}

.spatial-preview-item__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.spatial-preview-item h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy-950);
  margin: 0 0 2px 0;
}

.spatial-preview-item p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
}

.spatial-interactive-strip {
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  background: rgba(47, 111, 255, 0.05);
  border: 1px solid rgba(47, 111, 255, 0.15);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-blue);
}

/* ==========================================================================
   WHY MASTER CLASS IS BETTER (SHOWCASE SECTION)
   ========================================================================== */

.showcase {
  position: relative;
  padding-block: var(--space-8);
  background: linear-gradient(180deg, var(--bg-page) 0%, rgba(238, 240, 246, 0.7) 100%);
}

.text-center { text-align: center; }

.section__subtitle {
  font-size: var(--fs-lead);
  color: var(--text-secondary);
  max-width: 600px;
  margin: var(--space-2) auto 0;
}

/* Toggle Bar */
.showcase-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-block: var(--space-6) var(--space-6);
}

.showcase-toggle {
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 25px -5px rgba(11, 17, 48, 0.1);
  backdrop-filter: blur(16px);
}

.showcase-toggle__btn {
  padding: 10px 24px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.showcase-toggle__btn--active {
  background: var(--navy-950);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(11, 17, 48, 0.25);
}

/* Grid & Cards */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.showcase-card {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.showcase-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-4);
}

.showcase-card__icon {
  font-size: 1.75rem;
}

.showcase-card__header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-950);
  margin: 0;
}

.showcase-card__comparison {
  margin-bottom: var(--space-4);
  position: relative;
  min-height: 90px;
}

.showcase-card__state {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.showcase-card__state:not(.showcase-card__state--active) {
  display: none;
}

.showcase-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.showcase-tag--legacy {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.showcase-tag--masterclass {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.showcase-card__state p {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}

.showcase-card__footer {
  padding-top: var(--space-3);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.showcase-metric {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-blue);
}

/* Calculator Widget */
.showcase-calc {
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(235, 242, 255, 0.85) 100%);
  border: 1px solid rgba(47, 111, 255, 0.2);
}

.showcase-calc__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-6);
  align-items: center;
}

.showcase-calc__info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-950);
  margin-block: var(--space-1) var(--space-2);
}

.showcase-calc__info p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}

.showcase-calc__slider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.showcase-calc__slider-row strong {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--accent-blue);
}

.showcase-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(47, 111, 255, 0.15);
  outline: none;
  margin-bottom: var(--space-5);
  cursor: pointer;
  accent-color: var(--accent-blue);
}

.showcase-calc__results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.calc-res {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 15px rgba(11, 17, 48, 0.05);
}

.calc-res__val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.calc-res__lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

@media (max-width: 980px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-calc__inner { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* Section Head Centering Fix */
.section__head {
  margin-bottom: var(--space-6);
}

.section__head.text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

.section__title {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--navy-950);
  margin-top: var(--space-2);
  margin-bottom: var(--space-1);
  text-align: center;
}

/* ==========================================================================
   INTERACTIVE CLASSROOM GAME SIMULATOR
   ========================================================================== */

.classroom-game {
  position: relative;
  padding-block: var(--space-8);
  background: var(--bg-page);
}

.game-stage-card {
  padding: var(--space-6);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 245, 255, 0.85) 100%);
  border: 1px solid rgba(47, 111, 255, 0.2);
}

.game-smartboard {
  border-radius: var(--radius-md);
  background: var(--navy-950);
  border: 1px solid var(--border-inverse);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  box-shadow: 0 12px 30px -10px rgba(11, 17, 48, 0.4);
}

.game-smartboard__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-inverse);
  padding-bottom: 8px;
}

.game-smartboard__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #38bdf8;
}

.game-smartboard__time {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-inverse-secondary);
}

.game-smartboard__screen {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(18, 26, 66, 0.6);
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px dashed rgba(91, 139, 255, 0.3);
}

.game-screen__msg strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.game-screen__msg span {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.game-stage {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  min-height: 240px;
  margin-bottom: var(--space-6);
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(47, 111, 255, 0.15);
}

.game-station {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px;
}

.game-bubble {
  position: absolute;
  top: -48px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--navy-950);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(7, 11, 26, 0.25);
  border: 1px solid rgba(91, 139, 255, 0.3);
  transition: all 0.3s var(--ease-out);
  z-index: 10;
}

.game-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: var(--navy-950) transparent;
}

.game-char {
  width: 140px;
  height: 170px;
  transition: transform 0.3s ease;
}

.game-label {
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-950);
}

.game-deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.game-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-950);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.game-btn:hover {
  background: var(--white);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(47, 111, 255, 0.15);
}

.game-btn--active {
  background: var(--navy-950);
  color: var(--white);
  border-color: var(--navy-950);
  box-shadow: 0 8px 20px rgba(11, 17, 48, 0.25);
}

.arm-raising {
  transform-origin: 50px 96px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.arm-raising--active {
  transform: rotate(-25deg);
}

@media (max-width: 760px) {
  .game-stage { flex-direction: column; align-items: center; gap: var(--space-6); min-height: auto; }
  .game-deck { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   CHAOS VS CLARITY (WHATSAPP TO MASTER CLASS)
   ========================================================================== */
.chaos-clarity {
  position: relative;
  padding-block: var(--space-8);
  background: linear-gradient(180deg, rgba(238, 240, 246, 0.7) 0%, var(--bg-page) 100%);
}

.chaos-stage-card {
  padding: var(--space-6);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 245, 255, 0.85) 100%);
  border: 1px solid rgba(47, 111, 255, 0.2);
}

.chaos-stage {
  min-height: 400px;
  position: relative;
}

.chaos-view__title, .clarity-view__title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-950);
  margin-bottom: var(--space-5);
}

.chaos-phones {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.chaos-phone {
  width: 260px;
  background: #ece5dd;
  border-radius: 20px;
  border: 8px solid #333;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chaos-phone__header {
  background: #075e54;
  color: white;
  padding: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
}

.chaos-bubbles {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #efe7dd;
}

.chaos-bubble {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.8125rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  position: relative;
  animation: floatUp 0.5s ease-out backwards;
}

.chaos-bubble--receive {
  background: white;
  align-self: flex-start;
  border-top-left-radius: 0;
}

.chaos-bubble--send {
  background: #dcf8c6;
  align-self: flex-end;
  border-top-right-radius: 0;
}

.chaos-anim-1 { animation-delay: 0.2s; }
.chaos-anim-2 { animation-delay: 0.8s; }
.chaos-anim-3 { animation-delay: 1.4s; }
.chaos-anim-4 { animation-delay: 2.0s; }
.chaos-anim-5 { animation-delay: 2.6s; }

@keyframes floatUp {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.chaos-action {
  display: flex;
  justify-content: center;
  margin-top: var(--space-4);
}

.clarity-dashboard {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.clarity-main-dash {
  display: flex;
  width: 480px;
  height: 280px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(11, 17, 48, 0.1);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.clarity-sidebar {
  width: 140px;
  background: var(--navy-950);
  color: white;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
}

.clarity-logo {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: var(--space-4);
  color: var(--accent-blue);
}

.clarity-item {
  padding: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  border-radius: 6px;
  margin-bottom: 4px;
}

.clarity-item--active {
  background: rgba(47, 111, 255, 0.2);
  color: white;
}

.clarity-main {
  flex: 1;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

.clarity-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  font-weight: 700;
}

.clarity-btn {
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.clarity-content {
  padding: var(--space-4);
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.clarity-success {
  text-align: center;
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.clarity-success h4 {
  color: #10b981;
  margin: 12px 0 4px;
  font-size: 1.125rem;
}

.clarity-success p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
}

.clarity-phone-preview {
  width: 240px;
}

.clarity-phone {
  background: white;
  border-radius: 20px;
  border: 8px solid #333;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  overflow: hidden;
  height: 280px;
  display: flex;
  flex-direction: column;
}

.clarity-phone__header {
  background: var(--navy-950);
  color: white;
  padding: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
}

.clarity-notification {
  margin: 12px;
  padding: 12px;
  background: #f1f5f9;
  border-radius: 8px;
  border-left: 3px solid var(--accent-blue);
  position: relative;
  animation: slideLeft 0.5s ease-out 0.3s backwards;
}

.clarity-notification:nth-child(2) {
  animation-delay: 0.6s;
}

@keyframes slideLeft {
  0% { transform: translateX(20px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.clarity-notification strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--navy-950);
  margin-bottom: 4px;
}

.clarity-notification span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.clarity-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

@media (max-width: 800px) {
  .chaos-phones, .clarity-dashboard { flex-direction: column; }
  .clarity-main-dash { width: 100%; height: 240px; }
}