/* ============================================================
   landing.css — Homepage styles
   Clean surfaces, amber CTAs, teal brand accents.
   ============================================================ */

/* ---------- keyframes ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ---------- design tokens (scoped to landing) ---------- */
:root {
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 24px 48px -8px rgba(0, 0, 0, 0.12);
}

html { scroll-behavior: smooth; }

/* ---------- body with ambient blob ---------- */
body {
  font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background: var(--white);
  position: relative;
}

/* body ambient blob removed for clean aesthetic */

/* ---------- hero ---------- */
.hero {
  padding: 7.5rem 2rem 5.5rem;
  background: var(--white);
  position: relative;
  border-bottom: 1px solid var(--gray-100);
  overflow: hidden;
}

/* hero ambient blobs removed for clean aesthetic */
.hero::before, .hero::after { display: none; }

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  padding: 5px 14px 5px 10px;
  border-radius: 99px;
  margin-bottom: 28px;
  background: var(--white);
  box-shadow: none;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-500);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(20, 184, 166, 0.4);
}

.hero-left h1 {
  font-size: clamp(3rem, 5.5vw, 4.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.hero-left h1 .accent {
  background: linear-gradient(130deg, var(--teal-600) 0%, var(--teal-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-left-tools {
  padding-top: 18px;
  border-top: 1px solid var(--gray-100);
}

.tools-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.03em;
  width: 100%;
  margin-bottom: 2px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--gray-100);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  line-height: 1;
}

.stat-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--gray-500);
}

.stat-div {
  width: 1px;
  height: 32px;
  background: var(--gray-200);
  flex-shrink: 0;
}

/* ---------- hero right / visual ---------- */
.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.visual-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 22px 26px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

/* noise texture removed for clean aesthetic */
.visual-card::after { display: none; }

.visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-300));
  z-index: 1;
}

.visual-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.visual-dots { display: flex; gap: 5px; }
.visual-dots span { width: 10px; height: 10px; border-radius: 50%; }
.visual-dots span:first-child { background: #FC5752; }
.visual-dots span:nth-child(2) { background: #FDBC30; }
.visual-dots span:last-child { background: #27C840; }

.visual-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray-600);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 3px 10px;
  border-radius: 99px;
}

.visual-text {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--gray-800);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.visual-card-footer {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.visual-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
}

.visual-pill.reading {
  background: var(--gray-50);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.visual-pill.writing {
  background: var(--gray-50);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.visual-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.visual-tools .tools-label { grid-column: 1 / -1; }

.visual-tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  padding: 11px 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.visual-tool-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.visual-tool-btn:active {
  transform: translateY(1px) scale(0.97);
  transition-duration: 0.1s;
}

.visual-tool-btn.accent {
  background: var(--white);
  border-color: var(--gray-200);
  color: var(--gray-700);
}

.visual-tool-btn.accent:hover {
  background: var(--teal-50);
  border-color: var(--teal-300);
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.1);
  color: var(--teal-700);
}

/* ---------- buttons (pill-shaped) ---------- */
.btn {
  padding: 13px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--amber-500);
  color: var(--white);
  box-shadow: var(--shadow-amber);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--amber-600);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(245, 158, 11, 0.4);
}


.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  border-color: var(--gray-300);
  color: var(--gray-900);
  background: var(--gray-50);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.btn-secondary:active {
  transform: translateY(1px) scale(0.97);
  transition-duration: 0.1s;
}

.btn-tool {
  background: var(--white);
  color: var(--gray-600);
  border: 1.5px solid var(--gray-200);
  padding: 9px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 99px;
  box-shadow: none;
}

.btn-tool:hover {
  border-color: var(--gray-300);
  color: var(--gray-900);
  background: var(--gray-50);
}

.btn-tool:active {
  transform: translateY(1px) scale(0.97);
  transition-duration: 0.1s;
}

.btn-white {
  background: var(--white);
  color: var(--gray-700);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-white:active {
  transform: translateY(1px) scale(0.97);
  transition-duration: 0.1s;
}

.btn-ghost-white {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.btn-ghost-white:active {
  transform: translateY(1px) scale(0.97);
  transition-duration: 0.1s;
}

/* ---------- section container / header ---------- */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--gray-900);
  line-height: 1.15;
}

.section-description {
  font-size: 1.0625rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- features section ---------- */
.features {
  padding: 7rem 2rem;
  background: var(--gray-50);
  position: relative;
}

.feat-header { margin-bottom: 4rem; }
.feat-header .section-title { font-size: clamp(2.25rem, 4vw, 3.5rem); }
.feat-header .section-description { margin: 0; }

.feat-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  margin-bottom: 0.875rem;
}

.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feat-card {
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* noise texture removed for clean aesthetic */
.feat-card::after { display: none; }

.feat-card:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.09);
  transform: translateY(-6px);
}

.feat-card:active {
  transform: translateY(1px) scale(0.99);
  transition-duration: 0.1s;
}

.feat-visual {
  height: 210px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1;
}

.feat-card--reading .feat-visual {
  background: linear-gradient(145deg, var(--gray-50) 0%, var(--white) 100%);
}

.feat-card--writing .feat-visual {
  background: linear-gradient(145deg, var(--gray-100) 0%, var(--gray-50) 100%);
}

.feat-mockup {
  width: 230px;
  background: var(--white);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.05);
  position: relative;
}

.feat-mockup-dots { display: flex; gap: 5px; margin-bottom: 14px; }
.feat-mockup-dots span { width: 7px; height: 7px; border-radius: 50%; }
.feat-mockup-dots span:nth-child(1) { background: #FDA4AF; }
.feat-mockup-dots span:nth-child(2) { background: #FCD34D; }
.feat-mockup-dots span:nth-child(3) { background: #6EE7B7; }

.feat-ml { height: 7px; border-radius: 99px; background: var(--gray-100); margin-bottom: 7px; }
.feat-ml--full { width: 100%; }
.feat-ml--three-q { width: 76%; }
.feat-ml--half { width: 52%; }

.feat-mockup-q {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--gray-50);
  border-radius: 6px;
  padding: 6px 9px;
  line-height: 1.4;
}

.feat-mockup-prompt {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 12px;
}

.feat-mockup-cursor {
  width: 2px;
  height: 15px;
  background: var(--gray-400);
  border-radius: 2px;
  display: inline-block;
  animation: cursor-blink 1.1s steps(1) infinite;
}

.feat-mockup-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 2px 8px;
  border-radius: 99px;
}

.feat-mockup-badge--writing {
  background: var(--gray-100);
  color: var(--gray-600);
}

.feat-body {
  padding: 2rem 2.25rem 2.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 1;
}

.feat-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 99px;
  padding: 3px 10px;
  margin-bottom: 0.875rem;
  width: fit-content;
}

.feat-pill--writing {
  color: var(--gray-500);
  background: var(--gray-50);
  border-color: var(--gray-200);
}

.feat-heading {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 0.625rem;
  line-height: 1.25;
}

.feat-desc {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
}

.feat-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--amber-600);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: gap 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
  width: fit-content;
}

.feat-card:hover .feat-cta { color: var(--amber-700); gap: 9px; }
.feat-cta:hover { color: var(--amber-700); gap: 9px; }
.feat-cta--writing { color: var(--amber-600); }
.feat-cta--writing:hover { color: var(--amber-700); }

/* ---------- reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- secondary features ---------- */
.secondary-features {
  padding: 6rem 2rem;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  position: relative;
}

.sec-header { margin-bottom: 3rem; }

.sec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.sec-card {
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  padding: 2.25rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

/* noise texture removed for clean aesthetic */
.sec-card::after { display: none; }

.sec-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.02) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.sec-card:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.09);
  transform: translateY(-6px);
}

.sec-card:hover::before { opacity: 1; }

.sec-card:active {
  transform: translateY(1px) scale(0.99);
  transition-duration: 0.1s;
}

.sec-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.sec-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  position: relative;
  z-index: 1;
}

.sec-icon-wrap--grammar {
  background: var(--gray-50);
  border-color: var(--gray-200);
  color: var(--gray-600);
}

.sec-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  position: relative;
  z-index: 1;
}

.sec-heading {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.sec-desc {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.sec-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--amber-600);
  letter-spacing: -0.01em;
  transition: gap 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  width: fit-content;
  position: relative;
  z-index: 1;
}

.sec-card:hover .sec-cta { gap: 9px; }

/* ---------- feature icon helpers ---------- */
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--gray-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
}

.feature-icon svg { width: 26px; height: 26px; stroke-width: 2; }

.feature-icon-small {
  width: 44px;
  height: 44px;
  background: var(--gray-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
}

.feature-icon-small svg { width: 20px; height: 20px; stroke-width: 2; }

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.secondary-feature-card .feature-title { font-size: 1.125rem; }

.feature-description {
  color: var(--gray-500);
  line-height: 1.7;
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--amber-600);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
}

.feature-link:hover { color: var(--amber-700); gap: 10px; }

.feature-link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--amber-600);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  transition: all 0.25s ease;
}

.feature-link-secondary:hover { color: var(--amber-700); }

/* ---------- how it works ---------- */
.how-it-works {
  padding: 7rem 2rem 9rem;
  background: var(--gray-50);
  overflow: hidden;
  position: relative;
}

.hiw-header { text-align: center; margin-bottom: 5rem; }
.hiw-header .section-title { font-size: clamp(2.25rem, 4vw, 3.5rem); }

.hiw-scatter {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
}

.hiw-card-wrap {
  width: 210px;
  height: 260px;
  flex-shrink: 0;
  perspective: 900px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.hiw-card-wrap.hiw-visible {
  opacity: 1;
  transform: translateY(0);
}

.hiw-card-wrap:hover {
  transform: translateY(-10px) scale(1.04) !important;
  z-index: 10;
  transition: transform 0.35s cubic-bezier(0.34, 1.25, 0.64, 1), opacity 0.35s ease;
}

.hiw-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.34, 1.1, 0.64, 1);
  cursor: pointer;
}

.hiw-card-wrap:hover .hiw-card { transform: rotateY(180deg); }

.hiw-card-front,
.hiw-card-back {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem 1.5rem;
}

.hiw-card-front {
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 8px 8px 0 0 var(--gray-200), 0 4px 24px rgba(0, 0, 0, 0.07);
}

.hiw-card-back {
  background: #0F766E;
  border: 1px solid var(--gray-900);
  transform: rotateY(180deg);
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 8px 8px 0 0 var(--gray-900), 0 4px 24px rgba(0, 0, 0, 0.15);
}

.step-tile-num {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--gray-800);
  margin-bottom: 0.75rem;
}

.step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hiw-back-num {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: white;
  line-height: 1;
}

.hiw-back-desc {
  font-size: 0.9rem;
  color: white;
  line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
  .hiw-card-wrap { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hiw-card { transition: none !important; }
}

/* ---------- progress showcase ---------- */
.progress-showcase {
  padding: 7rem 2rem;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  overflow: hidden;
  position: relative;
}

/* progress-showcase blob removed for clean aesthetic */
.progress-showcase::before { display: none; }

.progress-showcase .section-container { position: relative; z-index: 1; }

.ps-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 6rem;
  align-items: center;
}

.ps-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ps-eyebrow {
  color: var(--gray-500) !important;
  border-color: var(--gray-200) !important;
  background: var(--gray-50) !important;
}

.ps-title {
  color: var(--gray-900);
  text-align: left;
  margin-bottom: 0;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
}

.ps-lead {
  font-size: 1.0625rem;
  color: var(--gray-500);
  line-height: 1.75;
  max-width: 400px;
  margin: 0;
}

.ps-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--amber-600);
  text-decoration: none;
  letter-spacing: -0.01em;
  width: fit-content;
  transition: gap 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.ps-cta-link:hover { gap: 10px; color: var(--amber-700); }

/* ---------- bento box ---------- */
.ps-bento {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 1.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.07), 0 4px 16px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ps-bento:hover {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.09);
  transform: translateY(-4px);
}

/* noise texture removed for clean aesthetic */
.ps-bento::after { display: none; }

.ps-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  position: relative;
  z-index: 1;
}

.ps-stat-chip {
  border-radius: 12px;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border: 1px solid var(--gray-200);
}

.ps-stat-chip--streak { background: #FEF3C7; }
.ps-stat-chip--points { background: #FFF7ED; }
.ps-stat-chip--words { background: var(--gray-50); }

.ps-stat-icon { font-size: 1.125rem; line-height: 1; }

.ps-stat-num {
  display: block;
  font-size: 1.375rem;
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: -0.04em;
  line-height: 1;
}

.ps-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ---------- goal card ---------- */
.ps-goal-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 1rem 1.125rem;
  position: relative;
  z-index: 1;
}

.ps-goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.875rem;
}

.ps-goal-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-500);
}

.ps-goal-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber-600);
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  padding: 3px 10px;
  border-radius: 99px;
}

.ps-days-row {
  display: flex;
  gap: 5px;
  margin-bottom: 0.875rem;
}

.ps-day {
  flex: 1;
  height: 30px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(243, 244, 246, 0.5);
  color: var(--gray-500);
  border: 1px solid rgba(229, 231, 235, 0.5);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.ps-day--done {
  background: var(--amber-500);
  color: #ffffff;
  border-color: var(--amber-500);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4), 0 0 24px rgba(245, 158, 11, 0.12);
}

.ps-goal-bar-track {
  height: 4px;
  background: rgba(243, 244, 246, 0.5);
  border-radius: 99px;
  overflow: hidden;
}

.ps-goal-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--amber-500), #FBBF24);
  border-radius: 99px;
  transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- vocab card ---------- */
.ps-vocab-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 1rem 1.125rem;
  position: relative;
  z-index: 1;
}

.ps-vocab-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 0.875rem;
}

.ps-level-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ps-level-bar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.ps-level-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--gray-500);
  letter-spacing: 0.05em;
  width: 20px;
  flex-shrink: 0;
}

.ps-level-track {
  flex: 1;
  height: 5px;
  background: rgba(243, 244, 246, 0.5);
  border-radius: 99px;
  overflow: hidden;
}

.ps-level-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--amber-500), #FBBF24);
  border-radius: 99px;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ps-level-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  width: 20px;
  text-align: right;
  flex-shrink: 0;
}

.ps-badge-strip {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ps-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 99px;
}

.ps-badge--unlocked {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  color: var(--amber-700);
}

.ps-badge--locked {
  background: rgba(243, 244, 246, 0.5);
  border: 1px solid rgba(229, 231, 235, 0.5);
  color: var(--gray-500);
}

/* ---------- CTA section (glass applied directly) ---------- */
.cta {
  padding: 5rem 2rem;
  background: #0F766E;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* CTA blobs/noise/accent-bar removed — clean dark background */
.cta-blob, .cta-noise, .cta-accent-bar { display: none; }

/* eyebrow badge */
.cta-eyebrow {
  display: inline-block;
  position: relative;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.cta h2 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  color: var(--white);
}

.cta p {
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* CTA button — amber primary (specificity must beat .btn:not(.btn-primary)) */
.btn.cta-btn {
  background: var(--amber-500);
  color: #422006 !important;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn.cta-btn:hover {
  background: var(--amber-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.4);
}

.btn.cta-btn:active {
  transform: translateY(1px) scale(0.97);
  transition-duration: 0.1s;
}

.btn.cta-btn:focus-visible {
  outline: 2px solid var(--amber-300);
  outline-offset: 3px;
}

/* CTA mobile */
@media (max-width: 640px) {
  .cta {
    padding: 4rem 1.25rem;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .btn.cta-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    justify-content: center;
  }
}

/* ---------- visual slideshow ---------- */
.visual-slide-wrap {
  min-height: 138px;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  z-index: 1;
}

.visual-slide {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.visual-slide.is-out {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.visual-slide.is-in {
  opacity: 0;
  transform: translateY(12px);
  transition: none;
}

.visual-card-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  min-height: 28px;
  position: relative;
  z-index: 1;
}

.visual-pill.neutral {
  background: rgba(243, 244, 246, 0.5);
  color: var(--gray-500);
  border: 1px solid rgba(229, 231, 235, 0.5);
}

.visual-progress-track {
  height: 2px;
  background: rgba(243, 244, 246, 0.5);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.visual-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-300));
  border-radius: 99px;
}

.visual-indicators {
  display: flex;
  gap: 0;
  justify-content: center;
  margin: 12px 0 4px;
}

.vi-dot {
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 -18px;
}
.vi-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(229, 231, 235, 0.5);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
  flex-shrink: 0;
}

.vi-dot.active::after {
  width: 22px;
  background: var(--teal-600);
  box-shadow: 0 0 8px rgba(20, 184, 166, 0.3);
}

/* ---------- visual slide content variants ---------- */
.vs-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.vs-label svg { color: var(--teal-500); flex-shrink: 0; }

.vs-excerpt {
  font-size: 0.9375rem;
  font-weight: 500;
  font-style: italic;
  color: var(--gray-800);
  line-height: 1.6;
  padding: 10px 14px;
  background: rgba(249, 250, 251, 0.5);
  border-left: 3px solid var(--teal-300);
  border-radius: 0 8px 8px 0;
  margin-bottom: 11px;
}

.vs-qa {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--gray-600);
}

.vs-qbadge {
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
}

.vs-prompt {
  font-size: 0.9375rem;
  color: var(--gray-700);
  background: rgba(249, 250, 251, 0.5);
  border: 1px dashed rgba(209, 213, 219, 0.5);
  border-radius: 10px;
  padding: 12px 14px;
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 12px;
}

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

.vs-score {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.vs-score-n {
  font-size: 2rem;
  font-weight: 900;
  color: var(--amber-600);
  letter-spacing: -0.04em;
  line-height: 1;
}

.vs-score-d {
  font-size: 0.875rem;
  color: var(--gray-500);
  font-weight: 600;
}

.vs-score-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
}

.vs-flashcard {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.vs-fc-front {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin-bottom: 5px;
}

.vs-fc-sep {
  font-size: 12px;
  color: var(--gray-300);
  margin-bottom: 5px;
}

.vs-fc-back {
  font-size: 1rem;
  font-weight: 600;
  color: var(--amber-600);
}

.vs-grammar { margin-bottom: 10px; }

.vs-gtext {
  display: block;
  font-size: 0.9375rem;
  color: var(--gray-800);
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.5;
}

.vs-gopts { display: flex; gap: 8px; flex-wrap: wrap; }

.vs-gchip {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid rgba(229, 231, 235, 0.5);
  background: rgba(249, 250, 251, 0.5);
  color: var(--gray-500);
}

.vs-gchip.ok {
  background: #ECFDF5;
  color: #065F46;
  border-color: #A7F3D0;
}

.vs-stats { display: flex; gap: 10px; margin-bottom: 12px; }

.vs-stat {
  flex: 1;
  background: rgba(249, 250, 251, 0.5);
  border: 1px solid rgba(229, 231, 235, 0.5);
  border-radius: 10px;
  padding: 9px 8px;
  text-align: center;
}

.vs-sn {
  display: block;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.vs-sl {
  display: block;
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
}

.vs-bar {
  height: 5px;
  background: rgba(243, 244, 246, 0.5);
  border-radius: 99px;
  overflow: hidden;
}

.vs-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-300));
  border-radius: 99px;
  transition: width 1s ease;
}

.vs-meta {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
  margin-top: 2px;
}

/* ---------- entry animation ---------- */
.fade-in {
  animation: fadeInUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---------- responsive: 1024px ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .visual-indicators { display: none; }
  .hero-right { flex-direction: row; }
  .hero-right .hero-stats { margin-top: 0; }
  .hero-left h1 { font-size: clamp(2.75rem, 8vw, 3.75rem); }
  .feat-grid { grid-template-columns: 1fr; }

  .hiw-scatter { max-width: 480px; }
  .hiw-card-wrap { flex: 0 0 calc(50% - 0.75rem); height: 240px; }

  .ps-layout { grid-template-columns: 1fr; gap: 3rem; }
}

/* ---------- responsive: 640px ---------- */
@media (max-width: 640px) {
  .hero { padding: 5.5rem 1.5rem 4rem; }
  .hero-left h1 { font-size: 2.5rem; }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn { justify-content: center; }

  .hero-left-tools { grid-template-columns: repeat(3, 1fr); }

  .hero-stats { flex-wrap: wrap; gap: 14px 20px; }
  .hero-stats .stat-div { display: none; }

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

  .feat-grid { grid-template-columns: 1fr; }
  .feat-visual { height: 180px; }

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

  .how-it-works { padding: 4.5rem 1.5rem 5rem; }
  .hiw-header { margin-bottom: 2.5rem; }
  .hiw-scatter { gap: 0.875rem; }
  .hiw-card-wrap { flex: 0 0 calc(50% - 0.5rem); height: 220px; }
  .step-tile-num { font-size: 2.5rem; }

  .ps-stat-chip:last-child { display: none; }
}

/* ---------- responsive: 480px ---------- */
@media (max-width: 480px) {
  .hiw-card-wrap { flex: 0 0 100%; height: 200px; }
}

/* ---------- focus-visible: keyboard accessibility ---------- */
.btn:focus-visible,
.feat-card:focus-visible,
.sec-card:focus-visible,
.visual-tool-btn:focus-visible,
.ps-cta-link:focus-visible,
.feat-cta:focus-visible,
.sec-cta:focus-visible,
.btn-white:focus-visible,
.btn-ghost-white:focus-visible,
.btn-secondary:focus-visible,
.btn-tool:focus-visible,
.ps-bento:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
}

.hiw-card-wrap:focus-within .hiw-card-front {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
}
