/* EASY10 Modern Ultra-Light Design System (9.3/10 Consumer EdTech) */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --ink: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --indigo: #4f46e5;
  --indigo-dark: #4338ca;
  --indigo-soft: #eef2ff;
  --teal: #0d9488;
  --teal-soft: #f0fdfa;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --rose: #e11d48;
  --rose-soft: #fff1f2;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--indigo);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Sticky Frosted-Glass Top Navigation */
.modern-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.modern-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--indigo), var(--teal));
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-link:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.nav-link.is-active {
  background: var(--indigo-soft);
  color: var(--indigo);
}

.nav-link-cta {
  background: var(--indigo);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.22);
}

.nav-link-cta:hover {
  background: var(--indigo-dark);
}

/* Student Sub-Navigation (Shared across student pages) */
.student-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
  scrollbar-width: thin;
}

.student-nav-link {
  white-space: nowrap;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.15s ease;
}

.student-nav-link:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.student-nav-link.is-active {
  background: var(--indigo);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.22);
}

/* Main Container */
.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.page-shell-narrow {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

/* Typography & Badges */
.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--surface-soft);
  color: var(--ink);
  border: 1px solid var(--border);
}

.pill-indigo { background: var(--indigo-soft); color: var(--indigo); border-color: #c7d2fe; }
.pill-teal { background: var(--teal-soft); color: var(--teal); border-color: #99f6e4; }
.pill-emerald { background: var(--emerald-soft); color: var(--emerald); border-color: #a7f3d0; }
.pill-amber { background: var(--amber-soft); color: var(--amber); border-color: #fde68a; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--indigo);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  background: var(--indigo-dark);
}

.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--surface-soft);
}

.btn-teal {
  background: var(--teal);
  color: #ffffff;
}

.btn-teal:hover {
  background: #0f766e;
}

.btn-emerald {
  background: var(--emerald);
  color: #ffffff;
}

.btn-emerald:hover {
  background: #047857;
}

.btn-amber {
  background: var(--amber);
  color: #ffffff;
}

.btn-amber:hover {
  background: #b45309;
}

.btn-ghost {
  background: var(--surface-soft);
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: #e2e8f0;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

/* Hero Section (2-Column) */
.hero-section {
  padding: 24px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 32px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Interactive Hero Preview Card */
.hero-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.svg-diagram-frame {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg-diagram-frame svg {
  width: 100%;
  height: auto;
  display: block;
}

.preview-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.preview-tab-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preview-tab-btn.is-active {
  background: var(--indigo);
  color: #ffffff;
  border-color: var(--indigo);
}

.preview-panel {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--ink);
}

/* 14-Chapter Interactive Grid */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.chapter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.chapter-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #c7d2fe;
}

.chapter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.chapter-badge {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--indigo);
  background: var(--indigo-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

.chapter-stats {
  font-size: 12px;
  font-weight: 600;
  color: var(--subtle);
}

.chapter-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.chapter-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.chapter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* 6-Card Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.bento-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.bento-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.bento-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.bento-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Study Material Hub */
.hub-banner {
  background: linear-gradient(135deg, #eef2ff 0%, #f0fdfa 100%);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 22px;
}

.filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  flex: 1 1 220px;
}

.filter-bar input,
.filter-bar select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  font-size: 14px;
  font-family: inherit;
  background: #ffffff;
  color: var(--ink);
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.material-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.formula-snapshot {
  background: var(--indigo-soft);
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 12px 14px;
}

.formula-snapshot-title {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--indigo);
}

.formula-snapshot ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink);
}

.formula-snapshot li + li {
  margin-top: 4px;
}

.concept-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.practice-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--indigo);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.practice-cta-btn:hover {
  background: var(--indigo-dark);
}

/* Step-by-Step Exam Practice Simulator */
.practice-simulator {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sim-filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.sim-filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  flex: 1 1 180px;
}

.sim-filter-bar select {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  font-size: 14px;
  font-family: inherit;
  background: #ffffff;
}

.sim-toggle-check {
  flex: 0 1 auto !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 12px;
  background: var(--amber-soft);
  border: 1px solid #fde68a;
  border-radius: 10px;
  color: var(--amber) !important;
  cursor: pointer;
}

.sim-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sim-progress-bar {
  flex: 1;
  min-width: 160px;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.sim-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--indigo), var(--teal));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.sim-step-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge-indigo { background: var(--indigo-soft); color: var(--indigo); }
.badge-teal { background: var(--teal-soft); color: var(--teal); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }

.writing-time-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid #a7f3d0;
  font-variant-numeric: tabular-nums;
}

.sim-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 16px;
}

.sim-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sim-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sim-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.sim-timer-pill.is-over {
  background: var(--amber-soft);
  border-color: #fde68a;
  color: var(--amber);
}

.sim-question-body {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink);
}

.mcq-options {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.mcq-options li {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14.5px;
}

.sim-hint-box {
  background: var(--amber-soft);
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
}

.sim-solution-box {
  background: var(--emerald-soft);
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.sim-solution-step {
  background: #ffffff;
  border: 1px solid #d1fae5;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.sim-self-assess {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.notice {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--amber-soft);
  border: 1px solid #fde68a;
  color: var(--amber);
  font-size: 14px;
}

.success {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--emerald-soft);
  border: 1px solid #a7f3d0;
  color: var(--emerald);
  font-size: 14px;
  font-weight: 600;
}

.panel-empty {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .modern-nav-inner {
    padding: 10px 14px;
  }
  .page-shell,
  .page-shell-narrow {
    padding: 18px 14px 48px;
  }
  .bento-grid,
  .material-grid {
    grid-template-columns: 1fr;
  }
  .sim-card {
    padding: 16px;
  }
}
