/* ==========================================================================
   Luminus Edu — Landing page
   Brand tokens mirrored from the app (globals.css): navy sidebar, blue
   primary, Inter font. Gold accent sampled from the product logo.
   ========================================================================== */

:root {
  --color-navy: #0f2044;
  --color-navy-soft: #16295a;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-gold: #ffce00;
  --color-gold-dark: #e0ac00;

  --color-fg: #1e293b;
  --color-muted: #64748b;
  --color-background: #f8fafc;
  --color-surface: #ffffff;
  --color-subtle: #f1f5f9;
  --color-border: #e2e8f0;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-lg: 1rem;
  --radius-md: 0.75rem;
  --radius-sm: 0.5rem;

  --shadow-md: 0 4px 16px -4px rgba(15, 32, 68, 0.12);
  --shadow-lg: 0 20px 48px -16px rgba(15, 32, 68, 0.24);

  --container-w: 1152px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-fg);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

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

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

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

h1, h2, h3, p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.55);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-navy);
  transform: translateY(-1px);
}

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

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

/* ── Header ──────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-navy);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-navy-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.brand-mark {
  border-radius: 8px;
}

.brand-name strong {
  color: var(--color-gold);
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
}

.main-nav a:not(.btn):hover {
  color: var(--color-gold);
}

.nav-toggle-checkbox {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2fb 100%);
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.hero-tags li {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-navy);
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.hero-card--main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-card-header {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot--gold { background: var(--color-gold); }
.dot--blue { background: var(--color-primary); }
.dot--muted { background: rgba(255, 255, 255, 0.25); }

.hero-card-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
}

.skeleton {
  display: block;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
}

.skeleton--icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255, 206, 0, 0.28);
}

.skeleton--line {
  height: 10px;
  width: 100%;
}

.w-70 { max-width: 70%; }
.w-60 { max-width: 60%; }
.w-50 { max-width: 50%; }

.hero-card-stat {
  margin-top: 0.25rem;
}

.stat-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-navy);
  background: var(--color-gold);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.hero-card--float {
  position: absolute;
  right: -1rem;
  bottom: -1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  max-width: 220px;
}

.hero-card-float-title {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 600;
}

.hero-card-float-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy);
}

/* ── Strip ───────────────────────────────────────────────────────────── */

.strip {
  background: var(--color-navy);
  padding: 1.25rem 0;
}

.strip p {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ── Screenshot gallery ──────────────────────────────────────────────── */

.gallery-tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.gallery-tab {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-muted);
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.gallery-tab:hover {
  color: var(--color-navy);
  border-color: var(--color-primary);
}

.gallery-frame {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-navy);
}

.gallery-slide {
  display: none;
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: auto;
}

#gallery-tab-1:checked ~ .gallery-tabs label[for="gallery-tab-1"],
#gallery-tab-2:checked ~ .gallery-tabs label[for="gallery-tab-2"],
#gallery-tab-3:checked ~ .gallery-tabs label[for="gallery-tab-3"],
#gallery-tab-4:checked ~ .gallery-tabs label[for="gallery-tab-4"] {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

#gallery-tab-1:checked ~ .gallery-frame .gallery-slide-1,
#gallery-tab-2:checked ~ .gallery-frame .gallery-slide-2,
#gallery-tab-3:checked ~ .gallery-frame .gallery-slide-3,
#gallery-tab-4:checked ~ .gallery-frame .gallery-slide-4 {
  display: block;
}

/* ── Sections ────────────────────────────────────────────────────────── */

.section {
  padding: 6rem 0;
}

.section--alt {
  background: var(--color-background);
}

.section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

.section-lead {
  margin-top: 0.85rem;
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* ── Feature cards ───────────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: #eef2ff;
  color: var(--color-primary);
  margin-bottom: 1.1rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ── Roles ───────────────────────────────────────────────────────────── */

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.role-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.role-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  color: #fff;
}

.role-icon--navy { background: var(--color-navy); }
.role-icon--blue { background: var(--color-primary); }
.role-icon--gold { background: var(--color-gold-dark); }

.role-icon svg {
  width: 24px;
  height: 24px;
}

.role-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.6rem;
}

.role-card > p {
  font-size: 0.92rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.role-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.88rem;
  color: var(--color-fg);
  margin-bottom: 0.6rem;
}

.role-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold-dark);
}

/* ── Benefits ────────────────────────────────────────────────────────── */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.benefit {
  text-align: left;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-subtle);
  color: var(--color-navy);
  margin-bottom: 1.1rem;
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
}

.benefit h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.benefit p {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ── CTA band ────────────────────────────────────────────────────────── */

.cta-band {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);
  padding: 4.5rem 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  color: #fff;
  max-width: 32ch;
}

.cta-band p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 48ch;
}

.cta-band .btn-primary {
  background: var(--color-gold);
  color: var(--color-navy);
  box-shadow: 0 8px 20px -8px rgba(255, 206, 0, 0.5);
}

.cta-band .btn-primary:hover {
  background: var(--color-gold-dark);
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--color-navy);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand-name strong {
  color: var(--color-gold);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

/* ── Modal ───────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 32, 68, 0.55);
  backdrop-filter: blur(4px);
}

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

.modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem;
}

.modal h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-navy);
  padding-right: 1.5rem;
}

.modal-lead {
  margin-top: 0.6rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-subtle);
  color: var(--color-muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
  background: var(--color-border);
  color: var(--color-navy);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
}

.field input,
.field textarea {
  font: inherit;
  color: var(--color-fg);
  background: var(--color-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.modal-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.modal-note {
  font-size: 0.78rem;
  color: var(--color-muted);
  text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .roles-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 420px;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .gallery-tab {
    font-size: 0.8rem;
    padding: 0.5rem 0.85rem;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-navy);
    border-bottom: 1px solid var(--color-navy-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav a {
    width: 100%;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-navy-soft);
  }

  .main-nav a.btn {
    margin: 1rem 1.5rem;
    width: calc(100% - 3rem);
  }

  .nav-toggle-checkbox:checked ~ .main-nav {
    max-height: 420px;
  }

  .section {
    padding: 4rem 0;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.5rem 0 4rem;
  }

  .hero-card--float {
    position: static;
    margin-top: 1rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
