/* =========================================================
   TutorHalo – Global Design System
   Premium international EdTech marketplace
   ========================================================= */

:root {
  /* Brand */
  --th-primary: #4F46E5;
  --th-primary-dark: #3730A3;
  --th-primary-soft: #EEF2FF;
  --th-secondary: #0D9488;
  --th-secondary-soft: #F0FDFA;
  --th-accent: #F59E0B;

  /* Surfaces */
  --th-bg: #FFFFFF;
  --th-bg-soft: #F8FAFC;
  --th-bg-muted: #F1F5F9;
  --th-surface: #FFFFFF;

  /* Text */
  --th-text: #0F172A;
  --th-text-secondary: #334155;
  --th-muted: #64748B;
  --th-inverse: #FFFFFF;

  /* Borders & states */
  --th-border: #E2E8F0;
  --th-border-strong: #CBD5E1;
  --th-success: #16A34A;
  --th-success-soft: #F0FDF4;
  --th-warning: #D97706;
  --th-warning-soft: #FFFBEB;
  --th-danger: #DC2626;
  --th-danger-soft: #FEF2F2;

  /* Radii */
  --th-radius-sm: 8px;
  --th-radius: 14px;
  --th-radius-lg: 20px;
  --th-radius-xl: 28px;
  --th-radius-pill: 999px;
  --th-btn-radius: 12px;
  --th-card-radius: 18px;

  /* Shadows */
  --th-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --th-shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --th-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --th-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --th-shadow-float: 0 18px 40px rgba(79, 70, 229, 0.14);

  /* Layout */
  --th-container: 1180px;
  --th-container-wide: 1280px;
  --th-header-h: 72px;

  /* Spacing scale */
  --th-space-1: 0.25rem;
  --th-space-2: 0.5rem;
  --th-space-3: 0.75rem;
  --th-space-4: 1rem;
  --th-space-5: 1.25rem;
  --th-space-6: 1.5rem;
  --th-space-8: 2rem;
  --th-space-10: 2.5rem;
  --th-space-12: 3rem;
  --th-space-16: 4rem;
  --th-space-20: 5rem;
  --th-space-24: 6rem;

  /* Type */
  --th-font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --th-fs-xs: 0.75rem;
  --th-fs-sm: 0.875rem;
  --th-fs-base: 1rem;
  --th-fs-md: 1.0625rem;
  --th-fs-lg: 1.125rem;
  --th-fs-xl: 1.25rem;
  --th-fs-2xl: 1.5rem;
  --th-fs-3xl: 1.875rem;
  --th-fs-4xl: 2.25rem;
  --th-fs-5xl: 3rem;
  --th-lh: 1.6;
  --th-lh-tight: 1.2;

  --th-transition: 180ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--th-font);
  font-size: var(--th-fs-base);
  line-height: var(--th-lh);
  color: var(--th-text);
  background: var(--th-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--th-primary); text-decoration: none; transition: color var(--th-transition); }
a:hover { color: var(--th-primary-dark); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 var(--th-space-4); line-height: var(--th-lh-tight); color: var(--th-text); font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 var(--th-space-4); color: var(--th-text-secondary); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--th-primary); color: #fff; padding: 0.75rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: min(100% - 2rem, var(--th-container));
  margin-inline: auto;
}
.container-wide {
  width: min(100% - 2rem, var(--th-container-wide));
  margin-inline: auto;
}

/* Focus */
:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.45);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: inherit; font-weight: 600; font-size: var(--th-fs-sm);
  line-height: 1; border-radius: var(--th-btn-radius); border: 1px solid transparent;
  padding: 0.85rem 1.25rem; cursor: pointer; text-decoration: none;
  transition: background var(--th-transition), color var(--th-transition), box-shadow var(--th-transition), border-color var(--th-transition), transform var(--th-transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--th-primary); color: #fff; box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25); }
.btn-primary:hover { background: var(--th-primary-dark); color: #fff; }
.btn-secondary { background: var(--th-secondary); color: #fff; }
.btn-secondary:hover { background: #0F766E; color: #fff; }
.btn-outline { background: transparent; border-color: var(--th-border-strong); color: var(--th-text); }
.btn-outline:hover { border-color: var(--th-primary); color: var(--th-primary); background: var(--th-primary-soft); }
.btn-ghost { background: transparent; color: var(--th-text-secondary); }
.btn-ghost:hover { color: var(--th-primary); background: var(--th-primary-soft); }
.btn-white { background: #fff; color: var(--th-primary); }
.btn-white:hover { background: var(--th-primary-soft); color: var(--th-primary-dark); }
.btn-lg { padding: 1rem 1.5rem; font-size: var(--th-fs-base); border-radius: 14px; }
.btn-sm { padding: 0.65rem 0.95rem; font-size: var(--th-fs-xs); }
.btn-block { width: 100%; }
.btn:disabled, .btn.is-disabled { opacity: 0.55; pointer-events: none; }

/* Forms */
.form-label { display: block; font-size: var(--th-fs-sm); font-weight: 600; margin-bottom: 0.4rem; color: var(--th-text); }
.form-control, .form-select {
  width: 100%; appearance: none; -webkit-appearance: none;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--th-text);
  background-color: #fff;
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-sm);
  padding: 0.65rem 0.85rem;
  transition: border-color var(--th-transition), box-shadow var(--th-transition);
}
.form-select {
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px 8px;
}
.form-control::placeholder {
  font-size: 0.8125rem;
  color: var(--th-muted);
  opacity: 1;
}
.form-control:focus, .form-select:focus {
  border-color: var(--th-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
  outline: none;
}
.form-hint { font-size: var(--th-fs-xs); color: var(--th-muted); margin-top: 0.35rem; }
.form-error { color: var(--th-danger); font-size: var(--th-fs-xs); margin-top: 0.35rem; }

/* Alerts */
.flash-stack { margin-top: 1rem; display: grid; gap: 0.5rem; }
.alert {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1rem; border-radius: var(--th-radius); font-size: var(--th-fs-sm);
}
.alert-success { background: var(--th-success-soft); color: #166534; }
.alert-error { background: var(--th-danger-soft); color: #991B1B; }
.alert-info { background: var(--th-primary-soft); color: #3730A3; }
.alert-close { background: none; border: 0; font-size: 1.25rem; cursor: pointer; color: inherit; }

/* Sections */
.section { padding: var(--th-space-20) 0; }
.section-soft { background: var(--th-bg-soft); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto var(--th-space-12); }
.section-header .eyebrow {
  display: inline-block; font-size: var(--th-fs-xs); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--th-primary); margin-bottom: var(--th-space-3);
}
.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); margin-bottom: var(--th-space-3); }
.section-header p { margin: 0; color: var(--th-muted); font-size: var(--th-fs-md); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--th-transition), box-shadow var(--th-transition);
}
.site-header.is-scrolled {
  border-bottom-color: var(--th-border);
  box-shadow: var(--th-shadow-xs);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--th-header-h); gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--th-text); font-weight: 800; font-size: 1.15rem; }
.brand:hover { color: var(--th-text); }
.brand-text span { color: var(--th-primary); }
.brand-mark { display: grid; place-items: center; }
.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.55rem 0.8rem; border-radius: 10px; color: var(--th-text-secondary);
  font-size: var(--th-fs-sm); font-weight: 500;
}
.nav-link:hover, .nav-link.is-active { color: var(--th-primary); background: var(--th-primary-soft); }
.header-actions { display: flex; align-items: center; gap: 0.4rem; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; height: 2px; background: var(--th-text); border-radius: 2px; transition: transform var(--th-transition), opacity var(--th-transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  border-top: 1px solid var(--th-border); background: #fff; padding: 1rem 1.25rem 1.5rem;
}
.mobile-nav nav { display: grid; gap: 0.35rem; }
.mobile-nav a {
  display: block; padding: 0.85rem 0.75rem; border-radius: 10px;
  color: var(--th-text); font-weight: 500;
}
.mobile-nav a:hover { background: var(--th-bg-soft); color: var(--th-primary); }

@media (min-width: 992px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(79,70,229,0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(13,148,136,0.07), transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}
.hero-grid {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 992px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
}
.hero-copy h1 {
  font-size: clamp(2.35rem, 5vw, 3.6rem);
  margin-bottom: var(--th-space-5);
  letter-spacing: -0.035em;
}
.hero-copy h1 .line { display: block; }
.hero-copy h1 .accent { color: var(--th-primary); }
.hero-copy .lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--th-muted); max-width: 34rem; margin-bottom: var(--th-space-8);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: var(--th-space-8); }

.hero-search {
  background: #fff; border: 1px solid var(--th-border); border-radius: var(--th-radius-lg);
  box-shadow: var(--th-shadow); padding: 1rem;
}
.hero-search-grid {
  display: grid; gap: 0.75rem;
}
@media (min-width: 640px) {
  .hero-search-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .hero-search-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr) auto; align-items: end; }
}
.hero-search .form-label {
  font-size: 0.75rem;
  margin-bottom: 0.3rem;
}
.hero-search .form-control,
.hero-search .form-select {
  font-size: 0.8125rem;
  line-height: 1.35;
  height: 42px;
  padding: 0.5rem 0.7rem;
  min-width: 0;
}
.hero-search .form-select {
  padding-right: 1.75rem;
  background-position: right 0.6rem center;
  background-size: 10px 7px;
}
.hero-search .form-control::placeholder {
  font-size: 0.8125rem;
  color: #94A3B8;
}
.hero-search .btn {
  height: 42px;
  font-size: 0.8125rem;
  padding-inline: 1rem;
  white-space: nowrap;
}

/* Floating cards stage */
.hero-visual { position: relative; min-height: 420px; }
.hero-stage {
  position: relative; width: 100%; height: 100%; min-height: 420px;
  border-radius: var(--th-radius-xl);
  background:
    linear-gradient(145deg, rgba(79,70,229,0.08), rgba(13,148,136,0.06)),
    #fff;
  border: 1px solid var(--th-border);
  box-shadow: var(--th-shadow);
  overflow: hidden;
}
.hero-stage-core {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center; padding: 2rem;
  z-index: 1;
}
.hero-stage-core .orb {
  width: min(220px, 55%); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #818CF8, #4F46E5 55%, #0D9488);
  opacity: 0.9;
  box-shadow: 0 30px 60px rgba(79,70,229,0.28);
  margin-bottom: 1.25rem;
}
.hero-stage-core h2 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.hero-stage-core p { margin: 0; color: var(--th-muted); font-size: var(--th-fs-sm); max-width: 16rem; }

.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 0.75rem;
  background: #fff; border: 1px solid rgba(226,232,240,0.9);
  border-radius: 16px; padding: 0.7rem 0.9rem;
  box-shadow: var(--th-shadow-float);
  width: min(220px, 70%);
  will-change: transform;
  animation: floatY 6s ease-in-out infinite;
}
.float-card img {
  width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
}
.float-card .meta { min-width: 0; }
.float-card .name { font-weight: 700; font-size: var(--th-fs-sm); color: var(--th-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float-card .subject { font-size: var(--th-fs-xs); color: var(--th-muted); }
.float-card .rating { font-size: var(--th-fs-xs); color: var(--th-accent); font-weight: 600; display: flex; align-items: center; gap: 0.25rem; margin-top: 0.15rem; }
.float-card .verified {
  position: absolute; top: -6px; right: -6px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--th-secondary);
  color: #fff; display: grid; place-items: center; font-size: 0.65rem;
  border: 2px solid #fff;
}
.float-card.c1 { top: 8%; left: 4%; animation-delay: 0s; }
.float-card.c2 { top: 18%; right: 2%; animation-delay: 1.2s; }
.float-card.c3 { bottom: 16%; left: 8%; animation-delay: 2.1s; }
.float-card.c4 { bottom: 8%; right: 6%; animation-delay: 0.7s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 991px) {
  .hero-visual { min-height: 340px; }
  .hero-stage { min-height: 340px; }
  .float-card.c3, .float-card.c4 { display: none; }
  .float-card { width: min(200px, 62%); }
}
@media (max-width: 480px) {
  .float-card.c2 { display: none; }
  .float-card.c1 { top: 6%; left: 50%; transform: translateX(-50%); width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-card { animation: none !important; }
  .btn:active { transform: none; }
}

/* Stats */
.stats-bar {
  margin-top: -1.5rem; position: relative; z-index: 5;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  background: #fff; border: 1px solid var(--th-border); border-radius: var(--th-radius-lg);
  box-shadow: var(--th-shadow); padding: 1.25rem;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); padding: 1.5rem 1.75rem; }
}
.stat-item { text-align: center; padding: 0.65rem; }
.stat-item .value { font-size: clamp(1.85rem, 3.5vw, 2.5rem); font-weight: 800; color: var(--th-text); letter-spacing: -0.03em; }
.stat-item .label { font-size: 1rem; color: var(--th-muted); margin-top: 0.35rem; font-weight: 500; }

/* Tutor cards */
.tutor-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .tutor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .tutor-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .tutor-grid { grid-template-columns: repeat(4, 1fr); } }

.tutor-card {
  background: #fff; border: 1px solid var(--th-border); border-radius: var(--th-card-radius);
  display: flex; flex-direction: column;
  transition: transform var(--th-transition), box-shadow var(--th-transition), border-color var(--th-transition);
  box-shadow: var(--th-shadow-xs);
  min-width: 0;
}
.tutor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--th-shadow);
  border-color: #C7D2FE;
}
.tutor-card-media {
  position: relative; aspect-ratio: 1 / 1; background: var(--th-bg-muted);
  border-radius: var(--th-card-radius) var(--th-card-radius) 0 0;
  overflow: hidden;
}
.tutor-card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge-verified {
  position: absolute; top: 0.75rem; left: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(255,255,255,0.95); color: var(--th-secondary);
  font-size: 0.7rem; font-weight: 700; padding: 0.35rem 0.55rem;
  border-radius: var(--th-radius-pill); box-shadow: var(--th-shadow-xs);
}
.tutor-card-body {
  padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1;
  min-width: 0;
}
.tutor-card-body h3 { font-size: 1.05rem; margin: 0; }
.tutor-card-body .subject { color: var(--th-primary); font-weight: 600; font-size: var(--th-fs-sm); }
.tutor-card-body .meta-line { font-size: var(--th-fs-xs); color: var(--th-muted); }
.tutor-card-body .rating-row {
  display: flex; align-items: center; gap: 0.4rem; font-size: var(--th-fs-sm); font-weight: 600;
}
.stars { color: #F59E0B; letter-spacing: 0.02em; font-size: 0.85em; }
.tutor-card-body .price { margin-top: auto; padding-top: 0.5rem; font-weight: 700; color: var(--th-text); }
.tutor-card-body .price span { font-weight: 500; color: var(--th-muted); font-size: var(--th-fs-xs); }
.tutor-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.4rem;
  margin-top: 0.75rem;
  width: 100%;
}
.tutor-card-actions .btn {
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.35rem;
  font-size: 0.7rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Subject cards */
.subject-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .subject-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .subject-grid { grid-template-columns: repeat(4, 1fr); } }
.subject-card {
  display: flex; flex-direction: column; gap: 0.65rem;
  background: #fff; border: 1px solid var(--th-border); border-radius: var(--th-radius);
  padding: 1.25rem; transition: border-color var(--th-transition), box-shadow var(--th-transition), transform var(--th-transition);
  color: inherit;
}
.subject-card:hover {
  border-color: #C7D2FE; box-shadow: var(--th-shadow-sm); transform: translateY(-2px); color: inherit;
}
.subject-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--th-primary-soft); color: var(--th-primary); font-size: 1.1rem;
}
.subject-card h3 { font-size: 1rem; margin: 0; }
.subject-card p { margin: 0; font-size: var(--th-fs-xs); color: var(--th-muted); }

/* Steps */
.steps-grid {
  display: grid; gap: 1.25rem;
}
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.step-card {
  background: #fff; border: 1px solid var(--th-border); border-radius: var(--th-card-radius);
  padding: 1.5rem; position: relative; height: 100%;
}
.step-num {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em;
  color: var(--th-primary); margin-bottom: 0.75rem;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step-card p { margin: 0; font-size: var(--th-fs-sm); color: var(--th-muted); }

/* Feature cards */
.feature-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-card {
  background: #fff; border: 1px solid var(--th-border); border-radius: var(--th-radius);
  padding: 1.35rem; transition: box-shadow var(--th-transition);
}
.feature-card:hover { box-shadow: var(--th-shadow-sm); }
.feature-card .icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--th-secondary-soft); color: var(--th-secondary); margin-bottom: 0.85rem;
}
.feature-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.feature-card p { margin: 0; font-size: var(--th-fs-sm); color: var(--th-muted); }

/* About split */
.about-split {
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 992px) { .about-split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.about-visual {
  border-radius: var(--th-radius-xl); min-height: 320px;
  background:
    linear-gradient(135deg, rgba(79,70,229,0.9), rgba(13,148,136,0.85)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: #fff; display: grid; place-items: center; padding: 2rem; text-align: center;
  box-shadow: var(--th-shadow);
}
.about-visual h3 { color: #fff; font-size: 1.6rem; }
.about-visual p { color: rgba(255,255,255,0.85); margin: 0; max-width: 18rem; }

/* Demo explainer */
.demo-band {
  background: linear-gradient(120deg, var(--th-primary-soft), var(--th-secondary-soft));
  border: 1px solid var(--th-border); border-radius: var(--th-radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid; gap: 1.5rem; align-items: center;
}
@media (min-width: 768px) { .demo-band { grid-template-columns: 1.4fr 1fr; } }
.demo-band h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-bottom: 0.5rem; }
.demo-band p { margin: 0 0 1rem; color: var(--th-text-secondary); }
.demo-points { display: grid; gap: 0.65rem; }
.demo-points li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: var(--th-fs-sm); color: var(--th-text-secondary);
}
.demo-points i { color: var(--th-secondary); margin-top: 0.15rem; }

/* Reviews / testimonials */
.review-grid, .testimonial-grid {
  display: grid; gap: 1.15rem;
}
@media (min-width: 768px) {
  .review-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .review-grid, .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}
.review-card, .testimonial-card {
  background: #fff; border: 1px solid var(--th-border); border-radius: var(--th-card-radius);
  padding: 1.35rem; box-shadow: var(--th-shadow-xs); height: 100%;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.review-card .quote, .testimonial-card .quote {
  color: var(--th-text-secondary); font-size: var(--th-fs-sm); margin: 0; flex: 1;
}
.person-row { display: flex; align-items: center; gap: 0.75rem; }
.person-row img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.person-row .name { font-weight: 700; font-size: var(--th-fs-sm); }
.person-row .sub { font-size: var(--th-fs-xs); color: var(--th-muted); }

/* CTA bands */
.cta-band {
  border-radius: var(--th-radius-xl); padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-band.teacher {
  background: linear-gradient(135deg, #312E81 0%, #4F46E5 45%, #0D9488 100%);
}
.cta-band.student {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #334155 100%);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 34rem; margin: 0 auto 1.5rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* Page hero (inner pages) */
.page-hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, var(--th-bg-soft), #fff);
  border-bottom: 1px solid var(--th-border);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.5rem; }
.page-hero p { margin: 0; color: var(--th-muted); max-width: 40rem; }
.breadcrumbs { font-size: var(--th-fs-sm); color: var(--th-muted); margin-bottom: 0.75rem; }
.breadcrumbs a { color: var(--th-muted); }
.breadcrumbs a:hover { color: var(--th-primary); }

/* Marketplace */
.market-layout {
  display: grid; gap: 1.5rem; padding: 2rem 0 3rem;
}
@media (min-width: 992px) {
  .market-layout { grid-template-columns: 280px 1fr; align-items: start; }
}
.filters-panel {
  background: #fff; border: 1px solid var(--th-border); border-radius: var(--th-radius-lg);
  padding: 1.25rem; position: sticky; top: calc(var(--th-header-h) + 1rem);
}
.filters-panel h2 { font-size: 1rem; margin-bottom: 1rem; }
.filter-group { margin-bottom: 1rem; }
.market-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; align-items: center;
  margin-bottom: 1.25rem;
}
.market-toolbar .count { font-size: var(--th-fs-sm); color: var(--th-muted); }
.pagination {
  display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-top: 2rem;
}
.pagination a, .pagination span {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--th-border); color: var(--th-text); font-size: var(--th-fs-sm); font-weight: 600;
}
.pagination a:hover { border-color: var(--th-primary); color: var(--th-primary); }
.pagination .is-active { background: var(--th-primary); color: #fff; border-color: var(--th-primary); }

/* Auth */
.auth-shell {
  min-height: calc(100vh - var(--th-header-h));
  display: grid; place-items: center; padding: 2rem 1rem;
  background: linear-gradient(180deg, var(--th-bg-soft), #fff);
}
.auth-card {
  width: min(100%, 440px); background: #fff; border: 1px solid var(--th-border);
  border-radius: var(--th-radius-xl); padding: 2rem; box-shadow: var(--th-shadow);
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 0.35rem; }
.auth-card .sub { color: var(--th-muted); margin-bottom: 1.5rem; font-size: var(--th-fs-sm); }
.auth-card .form-group { margin-bottom: 1rem; }
.auth-footer { margin-top: 1.25rem; text-align: center; font-size: var(--th-fs-sm); color: var(--th-muted); }
.role-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin-bottom: 1.25rem; }
.role-tabs a {
  text-align: center; padding: 0.6rem; border-radius: 10px; border: 1px solid var(--th-border);
  font-size: var(--th-fs-xs); font-weight: 600; color: var(--th-text-secondary);
}
.role-tabs a.is-active { background: var(--th-primary-soft); border-color: #C7D2FE; color: var(--th-primary); }

/* Footer */
.site-footer {
  background: #0B1220; color: #CBD5E1; padding-top: 3.5rem; margin-top: 2rem;
}
.site-footer .brand-text { color: #fff; }
.site-footer .brand-text span { color: #A5B4FC; }
.site-footer p { color: #94A3B8; }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.footer-brand p { max-width: 18rem; font-size: var(--th-fs-sm); }
.site-footer h3 { color: #fff; font-size: var(--th-fs-sm); margin-bottom: 0.85rem; }
.site-footer ul { display: grid; gap: 0.45rem; }
.site-footer a { color: #94A3B8; font-size: var(--th-fs-sm); }
.site-footer a:hover { color: #fff; }
.social-links { display: flex; gap: 0.5rem; margin-top: 1rem; }
.social-links a {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,0.06); color: #fff;
}
.social-links a:hover { background: var(--th-primary); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 1.15rem 0; font-size: var(--th-fs-sm); color: #64748B;
}
.footer-bottom p { margin: 0; color: #64748B; }

/* Empty / error */
.empty-state {
  text-align: center; padding: 3rem 1.5rem; color: var(--th-muted);
  border: 1px dashed var(--th-border); border-radius: var(--th-radius-lg); background: var(--th-bg-soft);
}
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 3rem 1rem; }
.error-page .code { font-size: 4rem; font-weight: 800; color: var(--th-primary); letter-spacing: -0.04em; }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline-flex; } }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 37%, #F1F5F9 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; background: #F1F5F9; }
}
