/* ======================================================
   Imtihon.AI Landing Page — Styles
   Inspired by stitch.withgoogle.com & labs.google
   ====================================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Core palette — Aurora Dark */
  --bg:           #08070E;
  --bg-surface:   #0F0E18;
  --bg-card:      rgba(22, 20, 35, 0.6);
  --bg-card-hover:rgba(32, 29, 50, 0.8);
  --border:       rgba(124, 92, 252, 0.08);
  --border-hover: rgba(124, 92, 252, 0.2);

  /* Colors */
  --purple:       #7C5CFC;
  --purple-light: #A78BFA;
  --teal:         #06D6A0;
  --teal-dark:    #04A77D;
  --amber:        #F59E0B;
  --rose:         #F43F5E;
  --blue:         #3B82F6;

  /* Text */
  --text-primary:    #F5F3FF;
  --text-secondary:  #C4B5FD;
  --text-muted:      #8B83A8;
  --text-dim:        #5B5578;

  /* Spacing */
  --container:    1200px;
  --container-sm: 800px;
  --section-py:   120px;
  --gap:          24px;

  /* Radius (labs.google pill buttons) */
  --radius-sm:    12px;
  --radius-md:    16px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --radius-pill:  100px;

  /* Transitions (labs.google .3s default) */
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --duration:     0.3s;
  --duration-slow:0.6s;

  /* Shadows */
  --shadow-card:  0 4px 24px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-glow:  0 0 60px rgba(124,92,252,0.15);

  /* Font */
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'Space Mono', monospace;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ---------- UTILITY ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.container--sm {
  max-width: var(--container-sm);
}

.accent {
  color: var(--teal);
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- BUTTONS (labs.google pill style with pseudo-element animations) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
  transform: scale(0.85);
  pointer-events: none;
}

.btn:hover::after {
  opacity: 1;
  transform: scale(1);
}

.btn--primary {
  background: var(--purple);
  color: #fff;
}
.btn--primary::after {
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
}
.btn--primary:hover {
  box-shadow: 0 0 30px rgba(124,92,252,0.4);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}
.btn--outline::after {
  background: rgba(124,92,252,0.08);
}
.btn--outline:hover {
  border-color: var(--purple);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn--ghost:hover {
  color: var(--text-primary);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ---------- SECTION HEADERS ---------- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(124,92,252,0.1);
  color: var(--purple-light);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-subtitle {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ==========================================
   NAVBAR (labs.google: fixed, clean, minimal)
   ========================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 var(--gap);
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.nav--scrolled {
  background: rgba(8, 7, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  z-index: 10;
}

.nav__logo-icon {
  font-size: 1.5rem;
  color: var(--purple);
  animation: rotate 6s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color var(--duration) var(--ease);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: width var(--duration) var(--ease);
}

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

.nav__link:hover::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

.nav__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__burger.active span:nth-child(2) {
  opacity: 0;
}
.nav__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-slow) var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-menu__link {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--duration) var(--ease);
}

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

.mobile-menu__actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

/* ==========================================
   HERO (stitch.withgoogle.com: dark, aurora orbs, bold type)
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--gap) 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}

.hero__orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.hero__orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
  bottom: -15%;
  left: -10%;
  animation-delay: -3s;
}

.hero__orb--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation-delay: -5s;
  opacity: 0.25;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -30px) scale(1.05); }
  66%      { transform: translate(-20px, 20px) scale(0.95); }
}

.hero__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: rgba(124,92,252,0.1);
  border: 1px solid rgba(124,92,252,0.15);
  color: var(--purple-light);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(6,214,160,0.4); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 6px rgba(6,214,160,0); }
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__title-gradient {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--teal) 50%, var(--purple) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.hero__stat {
  text-align: center;
}

.hero__stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
}

.hero__stat-suffix {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--teal);
}

.hero__stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ==========================================
   MARQUEE (labs.google scrolling strip)
   ========================================== */
.marquee {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-surface);
}

.marquee__track {
  display: flex;
  overflow: hidden;
}

.marquee__content {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee__content span {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.marquee__dot {
  color: var(--purple) !important;
  font-size: 0.75rem !important;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================
   FEATURES — Bento Grid (labs.google card system)
   ========================================== */
.features {
  padding: var(--section-py) 0;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.bento__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(124,92,252,0.06), transparent 40%);
  transition: opacity var(--duration) var(--ease);
  pointer-events: none;
}

.bento__card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.bento__card:hover::before {
  opacity: 1;
}

.bento__card--lg  { grid-column: span 7; }
.bento__card--md  { grid-column: span 5; }
.bento__card--sm  { grid-column: span 3; }
.bento__card--wide { grid-column: span 6; }

.bento__card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(124,92,252,0.1);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.bento__card-icon--teal   { background: rgba(6,214,160,0.1); color: var(--teal); }
.bento__card-icon--purple { background: rgba(124,92,252,0.1); color: var(--purple); }
.bento__card-icon--green  { background: rgba(6,214,160,0.1); color: var(--teal); }
.bento__card-icon--amber  { background: rgba(245,158,11,0.1); color: var(--amber); }
.bento__card-icon--rose   { background: rgba(244,63,94,0.1); color: var(--rose); }
.bento__card-icon--blue   { background: rgba(59,130,246,0.1); color: var(--blue); }

.bento__card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.bento__card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.bento__card-visual {
  margin-top: 24px;
}

/* Adaptive demo */
.adaptive-demo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adaptive-demo__bar {
  height: 32px;
  border-radius: var(--radius-pill);
  background: rgba(124,92,252,0.08);
  display: flex;
  align-items: center;
  padding: 0 14px;
  width: var(--w);
  transition: width 1s var(--ease);
}

.adaptive-demo__bar span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.adaptive-demo__bar--active {
  background: linear-gradient(90deg, var(--purple), var(--teal));
}

.adaptive-demo__bar--active span {
  color: #fff;
}

/* Chart demo */
.chart-demo {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
}

.chart-demo__bar {
  flex: 1;
  height: var(--h);
  background: rgba(124,92,252,0.15);
  border-radius: 6px 6px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 8px;
  transition: height 1s var(--ease);
}

.chart-demo__bar span {
  font-size: 0.6875rem;
  color: var(--text-dim);
  font-weight: 500;
}

.chart-demo__bar--current {
  background: linear-gradient(180deg, var(--teal), rgba(6,214,160,0.2));
}

.chart-demo__bar--current span {
  color: var(--teal);
}

/* ==========================================
   HOW IT WORKS
   ========================================== */
.how-it-works {
  padding: var(--section-py) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.step__number {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(124,92,252,0.12);
  line-height: 1;
  letter-spacing: -0.05em;
}

.step__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step__desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.step__visual {
  display: flex;
  justify-content: center;
}

/* Phone mockup */
.step__phone {
  width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 12px;
  position: relative;
}

.step__phone-notch {
  width: 80px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin: 0 auto 12px;
}

.step__phone-screen {
  background: rgba(8,7,14,0.8);
  border-radius: 16px;
  padding: 16px;
  min-height: 200px;
}

.step__phone-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-align: center;
}

.step__phone-msg {
  background: rgba(124,92,252,0.1);
  border-radius: 12px 12px 12px 4px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.step__phone-msg span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step__phone-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step__phone-btns span {
  display: block;
  text-align: center;
  padding: 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  background: rgba(124,92,252,0.08);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* Radar chart */
.step__radar {
  width: 180px;
  height: 180px;
}

.step__radar-svg {
  width: 100%;
  height: 100%;
}

.step__radar-fill {
  animation: radar-morph 4s ease-in-out infinite;
}

@keyframes radar-morph {
  0%, 100% { opacity: 0.8; }
  50%      { opacity: 0.5; }
}

/* Score climb */
.step__score-climb {
  display: flex;
  align-items: center;
  gap: 16px;
}

.step__score-item {
  text-align: center;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.step__score-item--highlight {
  border-color: var(--teal);
  background: rgba(6,214,160,0.08);
}

.step__score-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.step__score-val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.step__score-item--highlight .step__score-val {
  color: var(--teal);
}

.step__score-arrow {
  color: var(--text-dim);
  font-size: 1.25rem;
}

/* ==========================================
   AI TUTOR SHOWCASE
   ========================================== */
.ai-tutor {
  padding: var(--section-py) 0;
}

.ai-tutor__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.ai-tutor__desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 20px 0 28px;
}

.ai-tutor__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.ai-tutor__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.ai-tutor__check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(6,214,160,0.12);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Chat window mock */
.chat-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.chat-window__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.chat-window__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
}

.chat-window__name {
  font-size: 0.875rem;
  font-weight: 600;
}

.chat-window__status {
  font-size: 0.75rem;
  color: var(--teal);
}

.chat-window__messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.6;
}

.chat-msg p {
  margin-bottom: 6px;
}

.chat-msg p:last-child {
  margin-bottom: 0;
}

.chat-msg code {
  font-family: var(--font-mono);
  background: rgba(124,92,252,0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8125rem;
}

.chat-msg--user {
  background: var(--purple);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg--bot {
  background: rgba(124,92,252,0.08);
  color: var(--text-secondary);
  border-bottom-left-radius: 4px;
}

.chat-window__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.875rem;
}

/* ==========================================
   SOCIAL PROOF
   ========================================== */
.social-proof {
  padding: var(--section-py) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--duration) var(--ease);
}

.testimonial:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.testimonial__stars {
  color: var(--amber);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
}

.testimonial__name {
  font-size: 0.875rem;
  font-weight: 600;
}

.testimonial__info {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================
   PRICING
   ========================================== */
.pricing {
  padding: var(--section-py) 0;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--duration) var(--ease);
  position: relative;
}

.pricing__card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.pricing__card--featured {
  border-color: var(--purple);
  background: linear-gradient(180deg, rgba(124,92,252,0.08) 0%, var(--bg-card) 100%);
  box-shadow: var(--shadow-glow);
}

.pricing__card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  background: var(--purple);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing__card-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing__card-price {
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 32px;
}

.pricing__card-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing__card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pricing__card-features li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
}

.pricing__card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8125rem;
}

/* ==========================================
   FAQ
   ========================================== */
.faq {
  padding: var(--section-py) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease);
}

.faq__item[open] {
  border-color: var(--border-hover);
}

.faq__question {
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--duration) var(--ease);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform var(--duration) var(--ease);
}

.faq__item[open] .faq__question::after {
  content: '−';
}

.faq__question:hover {
  color: var(--purple-light);
}

.faq__answer {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================
   CTA
   ========================================== */
.cta {
  padding: var(--section-py) 0;
}

.cta__inner {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.cta__orb--1 {
  width: 300px;
  height: 300px;
  background: var(--purple);
  top: -30%;
  right: -5%;
}

.cta__orb--2 {
  width: 250px;
  height: 250px;
  background: var(--teal);
  bottom: -30%;
  left: -5%;
}

.cta__title {
  position: relative;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta__subtitle {
  position: relative;
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.cta .btn {
  position: relative;
}

/* ==========================================
   FOOTER (labs.google: dark, multi-column, social circles)
   ========================================== */
.footer {
  padding: 64px 0 32px;
  background: #05040A;
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__tagline {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* labs.google circular social buttons */
.footer__social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
}

.footer__social:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: rgba(124,92,252,0.08);
}

.footer__col-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--duration) var(--ease), opacity var(--duration) var(--ease);
  opacity: 0.7;
}

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

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer__lang {
  font-size: 0.75rem;
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
  }

  .nav__links, .nav__actions {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .bento__card--lg   { grid-column: span 12; }
  .bento__card--md   { grid-column: span 12; }
  .bento__card--sm   { grid-column: span 6; }
  .bento__card--wide { grid-column: span 12; }

  .step {
    grid-template-columns: auto 1fr;
    gap: 24px;
  }

  .step__visual {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .ai-tutor__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --section-py: 64px;
    --gap: 16px;
  }

  .hero {
    padding: 100px var(--gap) 60px;
    min-height: auto;
  }

  .hero__stats {
    flex-direction: column;
    gap: 20px;
  }

  .hero__stat-divider {
    width: 60px;
    height: 1px;
  }

  .bento__card--sm { grid-column: span 12; }

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

  .step__number {
    font-size: 2.5rem;
  }

  .step__score-climb {
    flex-direction: column;
    gap: 8px;
  }

  .step__score-arrow {
    transform: rotate(90deg);
  }

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

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__orb,
  .cta__orb {
    animation: none;
  }

  .marquee__content {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
