/* ==========================================================================
   CV DOST — LIGHT PREMIUM DESIGN SYSTEM (Twain.ai Inspired)
   Clean whites, soft pastels, serif display headings, generous whitespace
   ========================================================================== */

/* ── CSS Custom Properties ── */
:root {
  /* Canvas */
  --bg-page: #F5F6FA;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-nav: rgba(255, 255, 255, 0.85);

  /* Pastel card tints */
  --pastel-green: #E8F5E9;
  --pastel-green-dark: #C8E6C9;
  --pastel-blue: #E8EAF6;
  --pastel-blue-dark: #C5CAE9;
  --pastel-lavender: #EDE7F6;
  --pastel-lavender-dark: #D1C4E9;
  --pastel-grey: #ECEFF1;
  --pastel-grey-dark: #CFD8DC;
  --pastel-peach: #FFF3E0;
  --pastel-cyan: #E0F7FA;
  --pastel-rose: #FCE4EC;

  /* Text */
  --text-primary: #1A1D23;
  --text-secondary: #5F6368;
  --text-tertiary: #9AA0A6;
  --text-heading: #0F1419;

  /* Accents */
  --accent-blue: #1A56DB;
  --accent-blue-hover: #1347C4;
  --accent-dark: #1A1D23;
  --accent-green: #34A853;

  /* Borders */
  --border-light: #E5E7EB;
  --border-card: #E8EAED;
  --border-input: #DADCE0;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-input: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);

  /* Spacing */
  --section-padding: 120px 0;
  --container-max: 1200px;
  --container-padding: 0 40px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 100px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 300ms var(--ease-out);
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

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

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

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

/* ==========================================================================
   HEADER / NAVIGATION — Full-width top bar (Twain style)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: none !important;
  box-shadow: none !important;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}

/* Feathered gradient apron extending below navigation:
   As content scrolls up, it enters this gradient zone and smoothly
   cross-fades into the clean white background without any sharp 'blind line' cutoff */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 115px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.98) 52%,
    rgba(255, 255, 255, 0.82) 70%,
    rgba(255, 255, 255, 0.45) 85%,
    rgba(255, 255, 255, 0.12) 94%,
    rgba(255, 255, 255, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0.75) 72%,
    rgba(0, 0, 0, 0.25) 88%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0.75) 72%,
    rgba(0, 0, 0, 0.25) 88%,
    rgba(0, 0, 0, 0) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
  z-index: 1;
}

.header-inner {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px 48px;
}

/* Left Group: Logo + Navigation Links */
.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: #20242C;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.logo-t {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
}

.logo-bar {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: #60A5FA;
  line-height: 1;
  margin-left: 1px;
}

.brand-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1A1D23;
  letter-spacing: -0.2px;
}

/* Nav Links right next to logo */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 7px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4B5563;
  border-radius: 6px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.nav-link:hover {
  color: #111827;
  background: #F1F3F5;
}

.nav-link.active {
  color: #111827;
  background: #ECEFF2;
  font-weight: 500;
}

/* Nav Actions on right */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-ghost {
  padding: 6px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  transition: color 0.15s ease;
  text-decoration: none;
}

.btn-ghost:hover {
  color: #000000;
}

.btn-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #FFFFFF;
  background: #20242C;
  border-radius: 7px;
  transition: background 0.15s ease, transform 0.15s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-signup:hover {
  background: #2E343E;
  transform: translateY(-1px);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent-dark);
  border-radius: var(--radius-pill);
  transition: var(--transition-base);
  border: none;
  cursor: pointer;
}

.btn-dark:hover {
  background: #2C3038;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent-blue);
  border-radius: var(--radius-pill);
  transition: var(--transition-base);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  transition: var(--transition-base);
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--text-tertiary);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   HERO SECTION — Left-aligned, clean white, Twain layout
   ========================================================================== */
.hero {
  padding: 140px 0 80px;
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Left column — Text & Input */
.hero-text {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: 'Besley', 'Newsreader', Georgia, serif;
  font-size: clamp(3.6rem, 6.2vw, 5.5rem);
  font-weight: 400;
  color: #061826;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.hero-title-line {
  display: block;
}

.hero-title-line:not(:last-child) {
  margin-bottom: 12px;
}

/* Right column — Floating Service Cards Cluster (Matches User Reference Image) */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.floating-cards-cluster {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 460px;
}

.floating-cards-cluster::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(235, 230, 255, 0.6) 0%, rgba(240, 245, 255, 0.3) 50%, transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.service-float-card {
  position: absolute;
  width: 255px;
  border-radius: 20px;
  padding: 0 0 20px 0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.03);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.service-float-card:hover {
  transform: scale(1.08) translateY(-14px) rotate(0deg) !important;
  z-index: 50 !important;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16), 0 4px 14px rgba(15, 23, 42, 0.04);
}

/* Card Pastel Trays (Underneath) */
.service-float-card.coral { background: #FFD2C8; }
.service-float-card.yellow { background: #FFE8A3; }
.service-float-card.lavender { background: #E3D4FC; }
.service-float-card.mint { background: #C4F4DB; }
.service-float-card.blue { background: #D2E4FF; }

/* White Card Inner */
.card-inner-white {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 16px 18px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #1E293B;
}

.service-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.service-dot.coral { background: #F97316; }
.service-dot.yellow { background: #EAB308; }
.service-dot.lavender { background: #8B5CF6; }
.service-dot.mint { background: #10B981; }
.service-dot.blue { background: #3B82F6; }

.card-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.25;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.card-meta {
  font-size: 0.76rem;
  font-weight: 500;
  color: #64748B;
  margin-bottom: 10px;
}

.card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tag-pill {
  font-size: 0.62rem;
  font-weight: 700;
  color: #2563EB;
  background: #EEF2FF;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.3px;
}

.card-tray-tab {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding-top: 4px;
  color: rgba(30, 41, 59, 0.58);
  text-transform: uppercase;
}

/* Specific Card Layout Positioning & Floating Keyframes */
.service-float-card.card-1 {
  top: 10px;
  left: 55px;
  transform: rotate(-7deg);
  z-index: 3;
  animation: floatCard1 5.2s ease-in-out infinite alternate;
}

.service-float-card.card-2 {
  top: 35px;
  right: 25px;
  transform: rotate(7deg);
  z-index: 2;
  animation: floatCard2 6.1s ease-in-out infinite alternate;
}

.service-float-card.card-3 {
  top: 155px;
  left: 15px;
  transform: rotate(-4deg);
  z-index: 4;
  animation: floatCard3 5.7s ease-in-out infinite alternate;
}

.service-float-card.card-4 {
  top: 195px;
  right: 35px;
  transform: rotate(6deg);
  z-index: 3;
  animation: floatCard4 6.5s ease-in-out infinite alternate;
}

.service-float-card.card-5 {
  bottom: 12px;
  left: 95px;
  transform: rotate(3deg);
  z-index: 5;
  animation: floatCard5 5.9s ease-in-out infinite alternate;
}

@keyframes floatCard1 {
  0% { transform: translateY(0px) rotate(-7deg); }
  100% { transform: translateY(-9px) rotate(-5.5deg); }
}

@keyframes floatCard2 {
  0% { transform: translateY(0px) rotate(7deg); }
  100% { transform: translateY(-11px) rotate(8.5deg); }
}

@keyframes floatCard3 {
  0% { transform: translateY(0px) rotate(-4deg); }
  100% { transform: translateY(-10px) rotate(-2.5deg); }
}

@keyframes floatCard4 {
  0% { transform: translateY(0px) rotate(6deg); }
  100% { transform: translateY(-8px) rotate(4.5deg); }
}

@keyframes floatCard5 {
  0% { transform: translateY(0px) rotate(3deg); }
  100% { transform: translateY(-12px) rotate(1.5deg); }
}

.cards-mobile-dots {
  display: none;
}

/* ── Hero Input Box (Exact Twain-style capsule) ── */
.hero-input-box {
  scroll-margin-top: 140px;
  width: 486px;
  max-width: 100%;
  background: #E9EDFA;
  border-radius: 20px;
  padding: 4px;
}

.hero-input-tabs {
  display: flex;
  align-items: center;
  padding: 4px 8px 2px;
}

.hero-tab {
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  background: transparent;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-tab.active {
  color: #0F172A;
  font-weight: 600;
}

.hero-tab .free-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #1D4ED8;
  background: rgba(37, 99, 235, 0.12);
  border-radius: 4px;
}

.hero-input-surface {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 6px 4px 16px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  box-shadow: inset 0 1.5px 0 0 #FFFFFF, 0 1px 3px rgba(20, 59, 113, 0.04), 0 4px 12px -4px rgba(20, 59, 113, 0.06);
  min-height: 56px;
  transition: var(--transition-base);
}

.hero-input-surface:focus-within {
  box-shadow: inset 0 1.5px 0 0 #FFFFFF, 0 0 0 2px #3B82F6, 0 4px 12px rgba(59, 130, 246, 0.1);
}

.hero-input-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.hero-input-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #2563EB;
}

.hero-input-field {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: #0F172A;
  min-width: 0;
}

.hero-input-field::placeholder {
  color: #64748B;
}

.hero-input-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hero-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: #334155;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.hero-upload-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.hero-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 50%;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.hero-remove-btn:hover {
  background: #FEE2E2;
  border-color: #FECACA;
  color: #EF4444;
  transform: rotate(90deg);
}

.hero-submit-btn.ready {
  animation: pulse-ready 2s infinite ease-in-out;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

@keyframes pulse-ready {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
  }
}

.hero-submit-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563EB;
  border: none;
  border-radius: 12px;
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s var(--ease-out);
}

.hero-submit-btn:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
}

/* ── Engineering & Career Tracks Ribbon — Infinite Smooth Marquee & Scroll Drift ── */
.career-tracks-ribbon {
  padding: 68px 0 20px;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 10%,
    rgba(0, 0, 0, 1) 90%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 10%,
    rgba(0, 0, 0, 1) 90%,
    rgba(0, 0, 0, 0) 100%
  );
}

.career-tracks-scroll-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.career-tracks-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marqueeScroll 36s linear infinite;
  will-change: transform;
}

.career-tracks-track:hover {
  animation-play-state: paused;
}

.career-tracks-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid #E2E8F0;
  border-radius: 100px;
  margin: 0 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  transition: all 0.3s var(--ease-out);
}

.career-tracks-group:hover {
  border-color: #CBD5E1;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  background: #FFFFFF;
}

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

.track-item {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: #475569;
  letter-spacing: -0.01em;
  padding: 4px 10px;
  border-radius: 8px;
  transition: all 0.2s var(--ease-out);
  cursor: default;
  white-space: nowrap;
}

.track-item:hover {
  color: #0F172A;
  background: #EEF2F6;
  transform: translateY(-1px);
}

.track-dot {
  color: #94A3B8;
  font-size: 0.85rem;
  user-select: none;
  padding: 0 4px;
}

/* ── Trust Logos — Bottom of hero ── */
.trust-logos {
  padding: 64px 0 0;
  text-align: center;
}

.trust-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.35;
}

.trust-logo {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-logo svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   STATS SECTION — Pastel metric cards (Twain style)
   ========================================================================== */
.stats-section {
  padding: 80px 0 100px;
  background: var(--bg-white);
}

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

.stat-card {
  padding: 40px 36px 36px;
  border-radius: 28px;
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.02);
  cursor: pointer;
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.stat-card.green {
  background-color: #DCF5E7;
}

.stat-card.lavender {
  background-color: #E8EBFF;
}

.stat-card.grey {
  background-color: #EEF1F5;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #475569;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: 36px;
}

.stat-value {
  font-family: 'Besley', 'Newsreader', Georgia, serif;
  font-size: clamp(2.2rem, 3.2vw, 2.9rem);
  font-weight: 500;
  color: #0F172A;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.stat-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.45;
}

.stat-brand {
  align-self: flex-end;
  margin-top: 44px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  opacity: 0.65;
  letter-spacing: -0.2px;
}

/* ==========================================================================
   SECTIONS — COMMON
   ========================================================================== */
.section {
  padding: var(--section-padding);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
}

.section-title {
  font-family: 'Instrument Serif', 'Georgia', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--text-heading);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ==========================================================================
   FEATURES — Clean card grid
   ========================================================================== */
.features-section {
  padding: 100px 0;
  background: var(--bg-page);
}

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

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  position: relative;
  cursor: pointer;
}

.feature-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(4deg);
}

.feature-card.wide {
  grid-column: span 2;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 1.1rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-icon.blue { background: var(--pastel-blue); color: var(--accent-blue); }
.feature-icon.green { background: var(--pastel-green); color: #2E7D32; }
.feature-icon.violet { background: var(--pastel-lavender); color: #5E35B1; }
.feature-icon.orange { background: var(--pastel-peach); color: #E65100; }
.feature-icon.cyan { background: var(--pastel-cyan); color: #00838F; }
.feature-icon.rose { background: var(--pastel-rose); color: #C62828; }

.feature-title {
  font-family: 'Instrument Serif', 'Georgia', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-heading);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   HOW IT WORKS — Steps
   ========================================================================== */
.how-section {
  padding: 100px 0;
  background: var(--bg-white);
}

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

.step-card {
  text-align: center;
  padding: 36px 28px;
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  cursor: pointer;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
}

.step-card:hover .step-number {
  transform: scale(1.15);
  background: var(--accent-blue);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 24px;
  background: var(--accent-dark);
  border-radius: 50%;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, box-shadow 0.3s ease;
}

.step-title {
  font-family: 'Instrument Serif', 'Georgia', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   SAMPLE REPORT PREVIEW
   ========================================================================== */
.report-section {
  padding: 100px 0;
  background: var(--bg-page);
}

.report-preview {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.report-preview:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.report-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #FAFBFC;
  border-bottom: 1px solid var(--border-light);
}

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

.report-dot.red { background: #FF5F57; }
.report-dot.yellow { background: #FEBC2E; }
.report-dot.green { background: #28C840; }

.report-title-bar {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
}

.report-body {
  padding: 32px;
}

.report-score-ring {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 32px;
}

.score-circle {
  width: 120px;
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.score-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-circle .score-bg {
  fill: none;
  stroke: #F0F0F0;
  stroke-width: 6;
}

.score-circle .score-fill {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 88;
  transition: stroke-dashoffset 1.5s var(--ease-out);
}

.score-value {
  position: absolute;
  font-family: 'Instrument Serif', 'Georgia', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-heading);
}

.score-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: absolute;
  bottom: 20px;
}

.score-details {
  flex: 1;
}

.score-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.score-metric:last-child {
  border-bottom: none;
}

.score-metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.score-metric-value {
  font-weight: 600;
  font-size: 0.85rem;
}

.score-metric-value.high { color: #2E7D32; }
.score-metric-value.mid { color: #E65100; }
.score-metric-value.low { color: #C62828; }

/* ── Dost Empathetic Note ── */
.dost-note-card {
  margin-top: 24px;
  padding: 16px 20px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 3.5px solid #2563EB;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.dost-note-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #2563EB;
}

.dost-note-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1E293B;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dost-note-body {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

.report-insights {
  margin-top: 20px;
  padding: 20px;
  background: #F7F8FC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.report-insights h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.report-insights ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-insights li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.report-insights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--accent-blue);
  border-radius: 50%;
  opacity: 0.4;
}

/* ── Top Recommendation & Paid Upgrade Card ── */
.report-recommendation-card {
  margin-top: 20px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.05) 0%, rgba(124, 58, 237, 0.08) 100%);
  border: 1.5px solid rgba(26, 86, 219, 0.2);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 86, 219, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-recommendation-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 86, 219, 0.12);
}

.report-recommendation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-blue), #7C3AED);
}

.recommendation-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(26, 86, 219, 0.12);
  color: var(--accent-blue);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 20px;
  margin-bottom: 12px;
}

.recommendation-badge svg {
  color: #F59E0B;
  fill: #F59E0B;
}

.recommendation-text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.recommendation-text strong {
  color: var(--accent-blue);
  font-weight: 700;
}

.recommendation-action {
  display: flex;
  align-items: center;
}

.recommendation-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.25);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.recommendation-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 86, 219, 0.35);
}

/* ── Locked Report & Email Lead Capture Overlay ── */
.report-locked-wrapper {
  position: relative;
  transition: filter 0.4s ease;
  width: 100%;
}

.report-locked-wrapper.is-locked > *:not(.report-blur-overlay) {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
  opacity: 0.55;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.report-blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 380px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.unlock-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(26, 86, 219, 0.25);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  max-width: 440px;
  width: 100%;
}

.unlock-icon-badge {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.unlock-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.55rem;
  color: var(--text-heading);
  margin-bottom: 8px;
  line-height: 1.25;
}

.unlock-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 18px;
}

.unlock-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.unlock-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.unlock-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.unlock-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

.unlock-submit-btn {
  width: 100%;
  padding: 13px 20px;
  background: #1A56DB;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.28);
  transition: all 0.15s ease;
}

.unlock-submit-btn:hover {
  background: #1E40AF;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 86, 219, 0.38);
}

.unlock-guarantee {
  font-size: 0.74rem;
  color: var(--text-tertiary);
  display: block;
}

/* ==========================================================================
   AI TUTOR DEMO
   ========================================================================== */
.tutor-section {
  padding: 100px 0;
  background: var(--bg-white);
}

.tutor-demo {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tutor-demo:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.tutor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
}

.tutor-avatar {
  width: 36px;
  height: 36px;
  background: var(--accent-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.tutor-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.tutor-status {
  font-size: 0.75rem;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tutor-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
}

.tutor-messages {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
  max-height: 400px;
  overflow-y: auto;
}

.msg {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  line-height: 1.6;
  animation: msgSlide 0.4s var(--ease-out);
}

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

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

.msg.bot {
  align-self: flex-start;
  background: #F3F4F6;
  color: var(--text-secondary);
  border-bottom-left-radius: 4px;
}

.tutor-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 24px 20px;
}

.tutor-chip {
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: #F9FAFB;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tutor-chip:hover {
  color: var(--text-primary);
  border-color: var(--accent-blue);
  background: rgba(26, 86, 219, 0.04);
}

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing-section {
  padding: 100px 0;
  background: var(--bg-page);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  cursor: pointer;
}

.pricing-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 24px 50px rgba(37, 99, 235, 0.12);
  border-color: #3B82F6;
}

.pricing-card.featured {
  border-color: var(--accent-dark);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured:hover {
  border-color: #2563EB;
}

.pricing-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-blue);
  background: rgba(26, 86, 219, 0.06);
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.pricing-name {
  font-family: 'Instrument Serif', 'Georgia', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 28px;
}

.pricing-currency {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-heading);
}

.pricing-value {
  font-family: 'Instrument Serif', 'Georgia', serif;
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--text-heading);
  letter-spacing: -2px;
  line-height: 1;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-left: 4px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pricing-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pastel-green);
  color: #2E7D32;
  border-radius: 50%;
  font-size: 0.6rem;
  margin-top: 2px;
}

.pricing-cta {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 80px 0 40px;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
}

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

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: 16px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #F3F4F6;
  color: var(--text-tertiary);
  transition: var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--pastel-blue);
  color: var(--accent-blue);
}

/* ==========================================================================
   OTHER PAGES / LEGAL POLICIES (Twain Style with Card Animations)
   ========================================================================== */
.legal-page {
  padding-top: 140px;
  padding-bottom: 120px;
  background: var(--bg-white);
  min-height: 100vh;
}

.legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-back-nav {
  margin-bottom: 32px;
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #4B5563;
  background: #F1F3F5;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s var(--ease-out);
}

.legal-back-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease-out);
}

.legal-back-btn:hover {
  background: #E5E7EB;
  color: #111827;
  transform: translateX(-4px);
}

.legal-back-btn:hover svg {
  transform: translateX(-3px);
}

.legal-header {
  margin-bottom: 48px;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1E40AF;
  background: #DBEAFE;
  border-radius: 100px;
  margin-bottom: 16px;
}

.legal-title {
  font-family: 'Besley', 'Newsreader', Georgia, serif;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 400;
  color: #061826;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.legal-subtitle {
  font-size: 1rem;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Interactive Legal Section Card (Hover & Scroll Animations) ── */
.legal-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

/* Subtle pastel tray indicator along bottom on hover */
.legal-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #2563EB;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}

.legal-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
  border-color: #CBD5E1;
}

.legal-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Card Header with Number and Title */
.legal-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.legal-card-number {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #F1F5F9;
  color: #1E293B;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease-out);
}

.legal-card:hover .legal-card-number {
  background: #2563EB;
  color: #FFFFFF;
  transform: scale(1.08);
}

.legal-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0F172A;
  letter-spacing: -0.01em;
  margin: 0;
}

.legal-card-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 14px;
}

.legal-card-content p:last-child {
  margin-bottom: 0;
}

.legal-card-content strong {
  color: #0F172A;
  font-weight: 600;
}

.legal-card-content ul {
  padding-left: 20px;
  margin: 12px 0 16px;
  list-style-type: disc;
}

.legal-card-content li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 8px;
}

/* ── Support & Contact Card ── */
.legal-support-card {
  margin-top: 32px;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 24px;
  padding: 36px 40px;
  text-align: center;
  transition: all 0.3s var(--ease-out);
}

.legal-support-card:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.legal-support-card h3 {
  font-family: 'Besley', Georgia, serif;
  font-size: 1.45rem;
  color: #0F172A;
  margin-bottom: 8px;
}

.legal-support-card p {
  color: #64748B;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.legal-support-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
}

.btn-contact-wa {
  background: #25D366;
  color: #FFFFFF;
}

.btn-contact-wa:hover {
  background: #20BD5A;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.btn-contact-email {
  background: #20242C;
  color: #FFFFFF;
}

.btn-contact-email:hover {
  background: #2E343E;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(32, 36, 44, 0.25);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-in-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-page .fade-in-up {
  opacity: 1 !important;
  transform: none !important;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children .fade-in-up:nth-child(1) { transition-delay: 0ms; }
.stagger-children .fade-in-up:nth-child(2) { transition-delay: 100ms; }
.stagger-children .fade-in-up:nth-child(3) { transition-delay: 200ms; }
.stagger-children .fade-in-up:nth-child(4) { transition-delay: 300ms; }
.stagger-children .fade-in-up:nth-child(5) { transition-delay: 400ms; }
.stagger-children .fade-in-up:nth-child(6) { transition-delay: 500ms; }

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

/* ── Tablet & Small Desktop (<= 1024px) ── */
@media (max-width: 1024px) {
  :root {
    --container-max: 960px;
    --container-padding: 0 32px;
  }

  .header-inner {
    padding: 14px 32px;
  }

  .hero-layout {
    gap: 40px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 5.2vw, 4.2rem);
  }

  .floating-cards-cluster {
    transform: scale(0.85);
    transform-origin: center right;
  }
}

/* ── Mobile & Small Tablet (<= 768px) ── */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
    --container-padding: 0 20px;
  }

  /* Fixed Header — Scaled cross-fade apron for mobile */
  .site-header::before {
    height: 85px;
  }

  .header-inner {
    padding: 12px 18px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  .btn-ghost {
    font-size: 0.82rem;
    padding: 5px 8px;
  }

  .btn-signup {
    font-size: 0.82rem;
    padding: 6px 14px;
  }

  /* Hero Section */
  .hero {
    padding: 100px 0 48px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-title {
    font-size: clamp(2.3rem, 7.8vw, 3.2rem);
    line-height: 1.02;
    margin-bottom: 24px;
  }

  .hero-title-line:not(:last-child) {
    margin-bottom: 6px;
  }

  /* Input Capsule */
  .hero-input-box {
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
  }

  .hero-input-tabs {
    padding: 4px;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hero-input-tabs::-webkit-scrollbar {
    display: none;
  }

  .hero-tab {
    padding: 6px 12px;
    font-size: 0.82rem;
    gap: 5px;
  }

  .hero-input-surface {
    padding: 4px 6px 4px 12px;
    gap: 8px;
    min-height: 52px;
    border-radius: 14px;
  }

  .hero-input-field {
    font-size: 0.86rem;
  }

  .hero-upload-btn {
    padding: 5px 9px;
    font-size: 0.74rem;
    border-radius: 8px;
  }

  .hero-submit-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  /* Floating Service Cards — Sleek Horizontal Swipe Deck on Mobile */
  .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 16px 0 6px;
    height: auto;
    min-height: auto;
    overflow: visible;
    position: relative;
  }

  .floating-cards-cluster {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 24px 18px;
    width: 100%;
    max-width: 100%;
    height: auto;
    position: static;
    transform: none !important;
  }

  .floating-cards-cluster::-webkit-scrollbar {
    display: none;
  }

  .floating-cards-cluster::before {
    display: none;
  }

  .service-float-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    animation: none !important;
    flex: 0 0 240px;
    width: 240px;
    scroll-snap-align: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  }

  .cards-mobile-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    margin-bottom: 8px;
    z-index: 5;
  }

  .cards-mobile-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #CBD5E1;
    transition: all 0.25s var(--ease-out);
  }

  .cards-mobile-dots .dot.active {
    background: #2563EB;
    width: 18px;
    border-radius: 100px;
  }

  /* Career Tracks Ribbon */
  .career-tracks-ribbon {
    padding: 40px 0 16px;
  }

  .career-tracks-group {
    padding: 6px 12px;
    gap: 8px;
  }

  .track-item {
    font-size: 0.84rem;
    padding: 3px 8px;
  }

  .track-dot {
    font-size: 0.78rem;
  }

  /* Stat Cards */
  .stats-section {
    padding: 60px 0 80px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-card {
    padding: 28px 24px;
    min-height: auto;
    border-radius: 22px;
  }

  .stat-badge {
    margin-bottom: 20px;
  }

  .stat-value {
    font-size: 2.1rem;
  }

  /* Features Grid */
  .features-section {
    padding: 64px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .feature-card.wide {
    grid-column: span 1;
  }

  /* How it Works */
  .steps-section {
    padding: 64px 0;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-card {
    padding: 26px 20px;
    border-radius: 20px;
  }

  /* Sample Report Preview */
  .report-section {
    padding: 64px 0;
  }

  .report-body {
    padding: 24px 16px;
  }

  .report-score-ring {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .score-details {
    width: 100%;
  }

  /* AI Tutor Demo */
  .tutor-section {
    padding: 64px 0;
  }

  .tutor-header {
    padding: 12px 18px;
  }

  .tutor-messages {
    padding: 18px 14px;
    gap: 12px;
  }

  .msg {
    max-width: 90%;
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  .tutor-chips {
    padding: 0 14px 16px;
    gap: 6px;
  }

  .tutor-chip {
    padding: 6px 12px;
    font-size: 0.74rem;
  }

  /* Pricing */
  .pricing-section {
    padding: 64px 0;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-card {
    padding: 32px 22px;
    border-radius: 20px;
  }

  /* Legal / Policy Pages */
  .legal-page {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .legal-container {
    padding: 0 18px;
  }

  .legal-title {
    font-size: 2.1rem;
  }

  .legal-card {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .legal-card-title {
    font-size: 1.15rem;
  }

  .legal-support-card {
    padding: 28px 18px;
    border-radius: 18px;
  }

  .legal-support-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

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

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ── Ultra-Compact Mobile (<= 480px) ── */
@media (max-width: 480px) {
  :root {
    --container-padding: 0 14px;
  }

  .header-inner {
    padding: 10px 14px;
  }

  .hero {
    padding: 90px 0 40px;
  }

  .hero-title {
    font-size: clamp(2rem, 8.5vw, 2.5rem);
  }

  /* Hide input icon on narrow phones to maximize typing area */
  .hero-input-icon {
    display: none;
  }

  .hero-tab {
    padding: 5px 9px;
    font-size: 0.75rem;
  }

  .hero-input-surface {
    padding: 4px 5px 4px 10px;
    gap: 6px;
    min-height: 48px;
  }

  .hero-input-field {
    font-size: 0.82rem;
  }

  .hero-upload-btn {
    padding: 4px 7px;
    font-size: 0.7rem;
    gap: 3px;
  }

  .hero-upload-btn svg {
    width: 12px;
    height: 12px;
  }

  .hero-submit-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .service-float-card {
    flex: 0 0 226px;
    width: 226px;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .career-tracks-group {
    padding: 5px 10px;
    gap: 6px;
  }

  .track-item {
    font-size: 0.78rem;
    padding: 2px 6px;
  }

  .legal-title {
    font-size: 1.85rem;
  }

  .legal-card {
    padding: 20px 16px;
  }
}

/* Coming Soon Badge */
.coming-soon-badge,
.tag-pill.coming-soon {
  font-size: 0.62rem;
  font-weight: 600;
  color: #71717A;
  background: rgba(113, 113, 122, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0.85;
}

/* ==========================================================================
   Passwordless Email OTP Modal Styles
   ========================================================================== */
.auth-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: authFadeIn 0.2s ease-out;
}

@keyframes authFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-modal-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(226, 232, 240, 0.9);
  text-align: center;
  animation: authScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authScaleUp {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.auth-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.auth-modal-close-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.auth-icon-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.auth-icon-badge.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.auth-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.65rem;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.25;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 22px;
}

.auth-subtitle strong {
  color: #1e293b;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.auth-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  color: #0f172a;
  background: #ffffff;
  transition: all 0.15s ease;
}

.auth-input:focus {
  outline: none;
  border-color: #1a56db;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

.otp-code-input {
  font-size: 1.6rem !important;
  font-weight: 700;
  letter-spacing: 12px;
  text-align: center;
  padding: 12px 14px !important;
  color: #1a56db;
}

.auth-primary-btn {
  width: 100%;
  padding: 13px 20px;
  background: #1a56db;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.28);
  transition: all 0.15s ease;
}

.auth-primary-btn:hover:not(:disabled) {
  background: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 86, 219, 0.38);
}

.auth-primary-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.auth-hint {
  font-size: 0.76rem;
  color: #94a3b8;
  display: block;
}

.auth-resend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.auth-link-btn {
  background: transparent;
  border: none;
  color: #1a56db;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease;
}

.auth-link-btn:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* Navbar Logged-in Badge */
.user-nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  color: #334155;
  font-weight: 500;
}

.user-nav-badge .paid-tag {
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  border: 1px solid #a7f3d0;
}

.btn-nav-logout {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 4px;
  transition: color 0.15s ease;
}

.btn-nav-logout:hover {
  color: #ef4444;
}

