/* ============================================================
   app.css — Calixy Frontend
   Orden: tokens → reset → layouts → auth → dashboard → components
   ============================================================ */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --brand-900:  #1a3c6e;
  --brand-700:  #0f5e9c;
  --brand-500:  #1a8fbd;
  --brand-100:  #e8f4fd;
  --accent:     #7dd3fc;

  --gray-50:    #f8fafc;
  --gray-100:   #f0f5fb;
  --gray-200:   #e2e8f0;
  --gray-400:   #94a3b8;
  --gray-600:   #6c757d;
  --gray-900:   #1a1f36;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;

  --sidebar-w:  260px;
  --topbar-h:   60px;

  --font-base:  'Public Sans', system-ui, sans-serif;

  --shadow-sm:  0 1px 4px rgba(26,60,110,0.07);
  --shadow-md:  0 4px 16px rgba(26,60,110,0.10);
  --shadow-lg:  0 8px 32px rgba(26,60,110,0.13);
}

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

body {
  font-family: var(--font-base);
  background: var(--gray-100);
  color: var(--gray-900);
  min-height: 100vh;
  margin: 0;
}

#app { min-height: 100vh; }

/* ── App Loader ──────────────────────────────────────────── */
.app-loader {
  position: fixed; inset: 0;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s;
}
.app-loader--hidden { opacity: 0; pointer-events: none; }
.app-loader__spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--brand-700);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Auth Layout ─────────────────────────────────────────── */
.auth-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.auth-panel-left {
  background: linear-gradient(145deg, var(--brand-900) 0%, var(--brand-700) 55%, var(--brand-500) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 52px;
  position: relative;
  overflow: hidden;
}
.auth-panel-left::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.auth-panel-left::after {
  content: '';
  position: absolute; bottom: -120px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.auth-brand {
  font-size: 1.7rem; font-weight: 800;
  color: #fff; letter-spacing: -0.02em;
  text-decoration: none; position: relative; z-index: 1;
}
.auth-brand span { color: var(--accent); }
.auth-brand--mobile { display: none; color: var(--brand-900); margin-bottom: 32px; font-size: 1.5rem; }
.auth-brand--mobile span { color: var(--brand-700); }

.auth-panel-left__body { position: relative; z-index: 1; }

.auth-badge {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  display: inline-block; margin-bottom: 22px;
}

.auth-panel-left__body h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 16px;
}
.auth-panel-left__body h2 span { color: var(--accent); }
.auth-panel-left__body p {
  color: rgba(255,255,255,0.72);
  font-size: 0.97rem; line-height: 1.75;
  max-width: 380px; margin-bottom: 32px;
}

.auth-features { display: flex; flex-direction: column; gap: 10px; }
.auth-feature {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.88rem; color: rgba(255,255,255,0.85); font-weight: 500;
}
.auth-feature i { font-size: 1.05rem; color: var(--accent); flex-shrink: 0; }
.auth-panel-left__footer { font-size: 0.78rem; color: rgba(255,255,255,0.35); position: relative; z-index: 1; }

.auth-panel-right {
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
}
.auth-form-wrap {
  width: 100%; max-width: 400px;
  animation: fadeUp 0.35s ease both;
}

.auth-form-header { margin-bottom: 32px; }
.auth-form-label {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-700); margin-bottom: 8px;
}
.auth-form-header h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 6px; }
.auth-form-header p  { font-size: 0.92rem; color: var(--gray-600); margin: 0; }

.auth-link { font-size: 0.83rem; color: var(--brand-700); font-weight: 500; text-decoration: none; }
.auth-link:hover { color: var(--brand-900); text-decoration: underline; }
.auth-back-link:hover { color: var(--brand-900) !important; }

.auth-success-icon {
  width: 64px; height: 64px;
  background: #f0fdf4; border: 2px solid #bbf7d0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem; color: #16a34a;
}

/* Password toggle */
.password-wrapper { position: relative; }
.password-wrapper .form-control { padding-right: 44px; }
.password-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: var(--gray-400); cursor: pointer; padding: 0; font-size: 1.05rem;
  transition: color 0.15s;
}
.password-toggle:hover { color: var(--brand-700); }

/* Bootstrap form overrides */
.form-label { font-size: 0.87rem; font-weight: 600; color: var(--gray-900); margin-bottom: 6px; }
.form-control, .form-select {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-base);
  font-size: 0.93rem;
  background: var(--gray-50);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-700);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15,94,156,0.10);
  outline: none;
}

/* ── Dashboard Layout ────────────────────────────────────── */
.layout-dashboard {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: #fff;
  border-right: 1px solid var(--gray-200);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.25s ease;
}

.sidebar__brand {
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.sidebar__logo {
  font-size: 1.4rem; font-weight: 800;
  color: var(--brand-900); letter-spacing: -0.02em;
  text-decoration: none;
}
.sidebar__logo span { color: var(--brand-700); }
.sidebar__close {
  background: none; border: none; color: var(--gray-600);
  cursor: pointer; padding: 4px; font-size: 1.1rem;
}

.sidebar__nav {
  flex: 1; overflow-y: auto; padding: 12px 8px;
}

/* Nav items */
.nav-item { margin-bottom: 2px; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--gray-600); font-size: 0.9rem; font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-link i { font-size: 1rem; flex-shrink: 0; }
.nav-link:hover { background: var(--brand-100); color: var(--brand-900); }
.nav-link.active { background: var(--brand-100); color: var(--brand-900); font-weight: 600; }
.nav-link--parent { cursor: pointer; }
.nav-link__arrow {
  margin-left: auto; font-size: 0.75rem;
  transition: transform 0.2s;
}
.nav-item--has-children.is-open .nav-link__arrow { transform: rotate(180deg); }

/* Submenu */
.nav-submenu {
  display: none;
  padding-left: 20px;
  border-left: 2px solid var(--gray-200);
  margin-left: 20px;
  margin-top: 4px;
}
.nav-item--has-children.is-open .nav-submenu { display: block; }

/* Sidebar footer */
.sidebar__footer {
  padding: 16px;
  border-top: 1px solid var(--gray-200);
  display: flex; align-items: center; gap: 10px;
}
.sidebar__user { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.sidebar__avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
  color: #fff; font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar__user-info { min-width: 0; }
.sidebar__user-name {
  display: block; font-size: 0.85rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar__user-role { font-size: 0.75rem; color: var(--gray-600); }
.sidebar__logout {
  background: none; border: none; color: var(--gray-400);
  cursor: pointer; padding: 6px; border-radius: var(--radius-sm);
  font-size: 1rem; transition: color 0.15s, background 0.15s;
}
.sidebar__logout:hover { color: #dc2626; background: #fef2f2; }

/* Overlay mobile */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 99;
}
.sidebar-overlay.is-visible { display: block; }

/* Main */
.layout-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex; flex-direction: column;
  min-width: 0;
}

/* Topbar */
.topbar {
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 50;
}
.topbar__menu-btn {
  background: none; border: none; color: var(--gray-600);
  font-size: 1.3rem; cursor: pointer; padding: 4px;
}
.topbar__breadcrumb {
  flex: 1; display: flex; align-items: center; gap: 4px;
  font-size: 0.88rem;
}
.breadcrumb-item { color: var(--gray-600); text-decoration: none; }
.breadcrumb-item:hover { color: var(--brand-900); }
.breadcrumb-item.active { color: var(--gray-900); font-weight: 600; }
.breadcrumb-sep { font-size: 0.65rem; color: var(--gray-400); margin: 0 2px; }

.topbar__actions { display: flex; align-items: center; gap: 8px; }
.topbar__icon-btn {
  position: relative;
  background: none; border: none; color: var(--gray-600);
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.topbar__icon-btn:hover { background: var(--gray-100); color: var(--gray-900); }
.topbar__badge {
  position: absolute; top: 4px; right: 4px;
  background: #dc2626; color: #fff;
  font-size: 0.6rem; font-weight: 700;
  border-radius: 50px; padding: 1px 5px; min-width: 16px; text-align: center;
}

.page-body { padding: 24px; flex: 1; }

/* Page header */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.page-header__title { font-size: 1.4rem; font-weight: 800; margin: 0; }
.page-header__subtitle { color: var(--gray-600); margin: 4px 0 0; font-size: 0.92rem; }
.page-header__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Owner Layout ────────────────────────────────────────── */
.layout-owner { min-height: 100vh; display: flex; flex-direction: column; }
.owner-topbar {
  background: var(--brand-900); color: #fff;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.owner-topbar__brand {
  font-size: 1.3rem; font-weight: 800; color: #fff; text-decoration: none;
}
.owner-topbar__brand span { color: var(--accent); }
.owner-topbar__brand em { font-style: normal; font-size: 0.7em; color: rgba(255,255,255,0.5); margin-left: 6px; }
.owner-topbar__actions { display: flex; align-items: center; gap: 16px; }
.owner-topbar__user { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.owner-topbar__logout {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 0.85rem; padding: 6px 14px; border-radius: var(--radius-sm);
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: background 0.15s;
}
.owner-topbar__logout:hover { background: rgba(255,255,255,0.2); }
.owner-body { flex: 1; padding: 32px 24px; }

/* ── Select Student ──────────────────────────────────────── */
.select-student-wrapper { min-height: 100vh; background: var(--gray-100); }
.ss-topbar { background: #fff; border-bottom: 1px solid var(--gray-200); padding: 14px 0; }
.ss-body { display: flex; flex-direction: column; align-items: center; padding: 48px 16px; }
.ss-header { text-align: center; max-width: 560px; margin: 0 auto 44px; }
.ss-header h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 10px; }

.student-card {
  background: #fff; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 28px 24px;
  width: 100%; cursor: pointer; text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.18s;
  display: flex; flex-direction: column; height: 100%;
  appearance: none; font-family: var(--font-base); color: var(--gray-900);
}
.student-card:hover {
  border-color: var(--brand-700);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.student-card:disabled { opacity: 0.6; transform: none; }
.student-card__school {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px dashed var(--gray-200);
}
.student-card__logo { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; }
.student-card__school-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--brand-100); color: var(--brand-700);
  display: flex; align-items: center; justify-content: center;
}
.student-card__school-name { font-size: 0.8rem; font-weight: 600; color: var(--gray-600); }
.student-card__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
  color: #fff; font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.student-card__name { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.student-card__meta { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.student-card__meta span { font-size: 0.85rem; color: var(--gray-600); display: flex; align-items: center; gap: 7px; }
.student-card__action {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 700; color: var(--brand-700);
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--gray-100);
  transition: gap 0.18s;
}
.student-card:hover .student-card__action { gap: 10px; }

/* ── Stat Cards ──────────────────────────────────────────── */
.stat-card {
  background: #fff; border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  padding: 20px; display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm);
}
.stat-card__icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.stat-card--blue  .stat-card__icon { background: #dbeafe; color: #1d4ed8; }
.stat-card--green .stat-card__icon { background: #dcfce7; color: #16a34a; }
.stat-card--amber .stat-card__icon { background: #fef3c7; color: #d97706; }
.stat-card--red   .stat-card__icon { background: #fee2e2; color: #dc2626; }
.stat-card__value { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.stat-card__label { font-size: 0.82rem; color: var(--gray-600); margin-top: 4px; }
.stat-card__trend { font-size: 0.8rem; color: #16a34a; font-weight: 600; margin-top: 4px; }

/* ── Data table ──────────────────────────────────────────── */
.data-table-wrapper { background: #fff; border-radius: var(--radius-md); border: 1px solid var(--gray-200); padding: 20px; box-shadow: var(--shadow-sm); }
.table { margin-bottom: 0; }
.table th { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-600); border-bottom: 2px solid var(--gray-200); padding: 10px 12px; white-space: nowrap; }
.table td { padding: 12px; font-size: 0.9rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-100); color: var(--brand-900); font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--brand-900); }

/* ── Skeleton ────────────────────────────────────────────── */
.skeleton-bar {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  animation: shimmer 1.4s infinite;
  display: block;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Empty state ─────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 48px 24px;
}
.empty-state__icon { font-size: 2.5rem; color: var(--gray-400); display: block; margin-bottom: 16px; }
.empty-state__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.empty-state__text { color: var(--gray-600); font-size: 0.93rem; margin-bottom: 0; max-width: 360px; margin-inline: auto; }

/* ── Utilities ───────────────────────────────────────────── */
.page-placeholder { padding: 48px; text-align: center; color: var(--gray-600); }
.section-wrapper { margin-bottom: 24px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
  .layout-main { margin-left: 0; }
  .sidebar {
    transform: translateX(calc(-1 * var(--sidebar-w)));
  }
  .sidebar.is-open { transform: translateX(0); }
}

@media (max-width: 900px) {
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-panel-left { display: none; }
  .auth-panel-right { padding: 40px 24px; background: var(--gray-100); }
  .auth-form-wrap {
    background: #fff; border-radius: var(--radius-xl);
    padding: 36px 28px; box-shadow: var(--shadow-md);
  }
  .auth-brand--mobile { display: block; }
}

@media (max-width: 576px) {
  .page-body { padding: 16px; }
  .ss-body { padding: 32px 12px; }
}

/* ============================================================
   LANDING PAGE
   ============================================================ */

.landing { overflow-x: hidden; }

/* Navbar */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: transparent;
  transition: background 0.25s, box-shadow 0.25s, backdrop-filter 0.25s;
}
.landing-nav--scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 16px rgba(26,60,110,0.09);
}
.landing-nav__inner {
  max-width: 1160px; margin: 0 auto;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.landing-nav__brand {
  font-size: 1.5rem; font-weight: 800;
  color: #fff; letter-spacing: -0.02em; text-decoration: none;
  transition: color 0.2s;
}
.landing-nav__brand span { color: var(--accent); }
.landing-nav--scrolled .landing-nav__brand { color: var(--brand-900); }
.landing-nav--scrolled .landing-nav__brand span { color: var(--brand-700); }

.landing-container {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
}

/* Hero */
.landing-hero {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--brand-900) 0%, var(--brand-700) 55%, var(--brand-500) 100%);
  display: flex; align-items: center;
  padding: 100px 0 80px;
  position: relative; overflow: hidden;
}
.landing-hero::before {
  content: '';
  position: absolute; top: -150px; right: -150px;
  width: 600px; height: 600px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.landing-hero::after {
  content: '';
  position: absolute; bottom: -200px; left: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.landing-hero .landing-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  position: relative; z-index: 1;
}
.landing-hero__badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px; padding: 6px 16px;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: #fff; display: inline-block; margin-bottom: 24px;
}
.landing-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; color: #fff; line-height: 1.15;
  margin-bottom: 20px;
}
.landing-hero__title span { color: var(--accent); }
.landing-hero__subtitle {
  font-size: 1.05rem; color: rgba(255,255,255,0.75);
  line-height: 1.75; margin-bottom: 36px; max-width: 480px;
}
.landing-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.landing-hero__cta .btn-primary {
  background: #fff; color: var(--brand-900);
  border: none; font-weight: 700;
}
.landing-hero__cta .btn-primary:hover { background: var(--accent); color: var(--brand-900); }
.landing-hero__cta .btn-outline-secondary {
  border-color: rgba(255,255,255,0.4); color: #fff;
}
.landing-hero__cta .btn-outline-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }

/* Hero mockup */
.landing-hero__visual { display: flex; justify-content: center; }
.hero-mockup {
  background: #fff; border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  overflow: hidden; width: 100%; max-width: 460px;
  animation: floatUp 6s ease-in-out infinite;
}
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.hero-mockup__bar {
  background: var(--gray-100); padding: 10px 14px;
  display: flex; gap: 6px; align-items: center;
  border-bottom: 1px solid var(--gray-200);
}
.hero-mockup__bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gray-300);
}
.hero-mockup__bar span:nth-child(1) { background: #fc615d; }
.hero-mockup__bar span:nth-child(2) { background: #fdbc40; }
.hero-mockup__bar span:nth-child(3) { background: #34c749; }
.hero-mockup__body { display: flex; height: 280px; }

.hero-mock-sidebar {
  width: 110px; flex-shrink: 0;
  background: var(--brand-900); padding: 12px 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.hero-mock-nav-item {
  padding: 7px 10px; border-radius: 6px;
  font-size: 0.65rem; color: rgba(255,255,255,0.55);
  font-weight: 500; cursor: default;
}
.hero-mock-nav-item.active {
  background: rgba(255,255,255,0.12); color: #fff;
}

.hero-mock-content { flex: 1; padding: 16px; overflow: hidden; }
.hero-mock-title {
  height: 14px; width: 50%; background: var(--gray-200);
  border-radius: 4px; margin-bottom: 16px;
}
.hero-mock-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.hero-mock-stat {
  height: 48px; background: var(--gray-100);
  border-radius: 6px; border: 1px solid var(--gray-200);
}
.hero-mock-table-header {
  height: 10px; background: var(--gray-200);
  border-radius: 4px; margin-bottom: 8px;
}
.hero-mock-table-row {
  height: 22px; background: var(--gray-50);
  border-radius: 4px; margin-bottom: 6px;
  border: 1px solid var(--gray-200);
}

/* Section header */
.landing-section-header { text-align: center; margin-bottom: 56px; }
.landing-section-label {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-700); margin-bottom: 12px;
}
.landing-section-label--light { color: rgba(255,255,255,0.7); }
.landing-section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; margin-bottom: 14px;
}
.landing-section-header p { color: var(--gray-600); font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* Features */
.landing-features { padding: 96px 0; background: var(--gray-50); }
.landing-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-card__icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 18px;
}
.feature-card__icon--blue   { background: #dbeafe; color: #1d4ed8; }
.feature-card__icon--green  { background: #dcfce7; color: #16a34a; }
.feature-card__icon--amber  { background: #fef3c7; color: #d97706; }
.feature-card__icon--purple { background: #ede9fe; color: #7c3aed; }
.feature-card__icon--teal   { background: #ccfbf1; color: #0f766e; }
.feature-card__icon--pink   { background: #fce7f3; color: #db2777; }
.feature-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card__desc  { font-size: 0.9rem; color: var(--gray-600); margin: 0; line-height: 1.6; }

/* Roles */
.landing-roles { padding: 80px 0; background: #fff; }
.landing-roles__grid {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.role-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--brand-100); border: 1px solid #bfdbfe;
  border-radius: 50px; padding: 10px 20px;
  font-size: 0.9rem; font-weight: 600; color: var(--brand-900);
}
.role-chip i { font-size: 1rem; color: var(--brand-700); }

/* Security */
.landing-security {
  padding: 96px 0;
  background: linear-gradient(145deg, var(--brand-900) 0%, var(--brand-700) 100%);
}
.landing-security__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.landing-security__text h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 800; color: #fff; margin-bottom: 16px; }
.landing-security__text p  { color: rgba(255,255,255,0.72); line-height: 1.75; margin-bottom: 28px; }
.landing-security__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.landing-security__list li {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.85); font-size: 0.95rem;
}
.landing-security__list i { color: var(--accent); font-size: 1rem; flex-shrink: 0; }

.landing-security__badges {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.security-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.security-badge i { font-size: 1.8rem; color: var(--accent); }
.security-badge span { font-size: 0.85rem; color: rgba(255,255,255,0.75); font-weight: 600; line-height: 1.4; }

/* CTA */
.landing-cta { padding: 96px 0; background: var(--gray-50); }
.landing-cta__inner {
  background: #fff; border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200); box-shadow: var(--shadow-md);
  padding: 56px 40px; text-align: center;
}
.landing-cta__inner h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; margin-bottom: 12px; }
.landing-cta__inner p  { color: var(--gray-600); margin-bottom: 32px; font-size: 1rem; }

/* Footer */
.landing-footer {
  background: var(--brand-900); padding: 36px 0;
}
.landing-footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.landing-footer__brand {
  font-size: 1.3rem; font-weight: 800;
  color: #fff; text-decoration: none; letter-spacing: -0.02em;
}
.landing-footer__brand span { color: var(--accent); }
.landing-footer__copy { font-size: 0.82rem; color: rgba(255,255,255,0.35); margin: 0; }

/* Landing responsive */
@media (max-width: 900px) {
  .landing-hero .landing-container { grid-template-columns: 1fr; gap: 40px; }
  .landing-hero { padding: 100px 0 60px; }
  .landing-hero__visual { display: none; }
  .landing-security__inner { grid-template-columns: 1fr; gap: 40px; }
  .landing-security__badges { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .landing-security__badges { grid-template-columns: 1fr 1fr; }
  .landing-cta__inner { padding: 40px 24px; }
  .landing-footer__inner { flex-direction: column; text-align: center; }
}
