/* TutorFlow Landing — modern SaaS styles */

:root {
  --color-bg: #f8fafc;
  --color-bg-elevated: #ffffff;
  --color-surface: #ffffff;
  --color-surface-hover: #f1f5f9;
  --color-border: #e2e8f0;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-text-dim: #64748b;
  --color-primary: #4f46e5;
  --color-primary-light: #6366f1;
  --color-accent: #0891b2;
  --color-accent-2: #7c3aed;
  --color-success: #059669;
  --color-warning: #d97706;
  --gradient-hero: linear-gradient(135deg, #4f46e5 0%, #7c3aed 45%, #0891b2 100%);
  --gradient-card: linear-gradient(145deg, rgba(79, 70, 229, 0.06) 0%, rgba(8, 145, 178, 0.05) 100%);
  --gradient-glow: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.12), transparent);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --container: 1320px;
  --header-h: 72px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

h1, h2, h3, .hero__title, .section__title, .cta__title {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: 0;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary-light);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
}

.logo__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

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

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn--primary:hover {
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
  color: #fff;
}

.btn--ghost {
  background: var(--color-bg-elevated);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  background: var(--color-surface-hover);
  border-color: #cbd5e1;
  color: var(--color-text);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 64px) 0 80px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.hero__content,
.hero__visual {
  min-width: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero__title {
  font-size: clamp(1.75rem, 1.6vw + 1.25rem, 2.625rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero__title span {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero__stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
}

.hero__stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-dim);
  margin-top: 2px;
}

.hero__visual {
  position: relative;
}

.hero__screenshot {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--color-bg-elevated);
  aspect-ratio: 16 / 13;
  min-height: clamp(360px, 38vw, 580px);
  max-height: 620px;
}

.hero__screenshot img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: left 6%;
}

.hero__screenshot .img-placeholder {
  min-height: 100%;
  height: 100%;
}

.hero__float {
  position: absolute;
  bottom: -20px;
  left: -20px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
}

.hero__float-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #d1fae5;
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* ─── Image placeholder ─── */
.img-placeholder {
  position: relative;
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
  border: 2px dashed rgba(79, 70, 229, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  min-height: 280px;
  border-radius: inherit;
}

.img-placeholder__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.6;
}

.img-placeholder__title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-primary-light);
  margin-bottom: 6px;
}

.img-placeholder__hint {
  font-size: 0.8125rem;
  color: var(--color-text-dim);
  max-width: 280px;
  line-height: 1.5;
}

.img-placeholder__file {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--color-text-dim);
  font-family: monospace;
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ─── Sections ─── */
.section {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}

.section--alt {
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section__header {
  text-align: left;
  width: 100%;
  max-width: none;
  margin: 0 0 56px;
}

.section__label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
}

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

/* ─── Logos / trust ─── */
.trust {
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}

.trust__label {
  text-align: left;
  font-size: 0.8125rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.trust__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 32px 48px;
  align-items: center;
}

.trust__item {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-dim);
  opacity: 0.6;
}

/* ─── Problems ─── */
.problems__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  padding: 28px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.problem-card:hover {
  border-color: rgba(239, 68, 68, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.1);
}

.problem-card__icon {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.problem-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ─── Features ─── */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ─── Audience ─── */
.audience__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.audience-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.audience-card__emoji {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.audience-card__title {
  font-weight: 600;
  margin-bottom: 8px;
}

.audience-card__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ─── Showcase ─── */
.showcase__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.showcase__content,
.showcase__image {
  min-width: 0;
}

.showcase__item:last-child {
  margin-bottom: 0;
}

.showcase__item--reverse {
  direction: rtl;
}

.showcase__item--reverse > * {
  direction: ltr;
}

.showcase__content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.showcase__content p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.showcase__list {
  list-style: none;
}

.showcase__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.showcase__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.showcase__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

/* ─── How it works ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.step__title {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.step__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ─── Pricing ─── */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  padding: 36px 28px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  border-color: var(--color-primary);
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
  box-shadow: 0 8px 40px rgba(79, 70, 229, 0.15);
}

.pricing-card--featured > .pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--gradient-hero);
  background-clip: border-box;
  -webkit-background-clip: border-box;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  white-space: nowrap;
}

.pricing-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.pricing-card__price {
  margin-bottom: 24px;
}

.pricing-card__amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pricing-card__period {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.pricing-card__yearly {
  font-size: 0.8125rem;
  color: var(--color-success);
  margin-top: 6px;
}

.pricing-card__features {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
}

.pricing-card__features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.pricing-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
}

.pricing__loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
  padding: 48px 16px;
  font-size: 0.9375rem;
}

.pricing__note {
  margin-top: 40px;
  padding: 24px 28px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pricing__note-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pricing__note-text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.pricing__note-text strong {
  color: var(--color-warning);
}

/* ─── Implementation ─── */
.impl__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.impl__content,
.impl__grid > .showcase__image {
  min-width: 0;
}

.impl__list {
  list-style: none;
  margin-top: 24px;
}

.impl__list li {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.impl__list-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.impl__list-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.impl__list-text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ─── FAQ ─── */
#faq .section__header {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 4px 40px;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item:last-child {
  border-bottom: none;
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

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

.faq__icon {
  font-size: 1.25rem;
  color: var(--color-text-dim);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

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

.faq__item.is-open .faq__answer {
  max-height: 300px;
}

/* ─── CTA ─── */
.cta {
  padding: 80px 0;
}

.cta__box {
  position: relative;
  padding: 64px 48px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 50%, #ecfeff 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-align: left;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta__box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(79, 70, 229, 0.08), transparent 60%);
  pointer-events: none;
}

.cta__title {
  position: relative;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.cta__desc {
  position: relative;
  color: var(--color-text-muted);
  max-width: none;
  margin: 0 0 32px;
  font-size: 1.0625rem;
}

.cta__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

.cta__form {
  position: relative;
  max-width: 560px;
  margin: 32px 0 0;
  display: flex;
  gap: 12px;
}

.cta__input {
  flex: 1;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.9375rem;
}

.cta__input::placeholder {
  color: var(--color-text-dim);
}

.cta__input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* ─── Footer ─── */
.footer {
  position: relative;
  z-index: 1;
  padding: 48px 0 32px;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
}

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

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

.footer__col h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-dim);
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.footer__col a:hover {
  color: var(--color-text);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-text-dim);
}

/* ─── Mobile nav overlay ─── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 14px 16px;
  color: var(--color-text);
  font-size: 1.0625rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.mobile-nav a:hover {
  background: var(--color-surface);
}

.mobile-nav__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .features__grid,
  .problems__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 900px) {
  .nav,
  .nav__actions {
    display: none;
  }

  .burger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero__badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    max-width: 100%;
    text-align: center;
    line-height: 1.4;
  }

  .hero__title {
    font-size: clamp(1.375rem, 6.2vw, 1.875rem);
    line-height: 1.2;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    max-width: 100%;
    padding: 0 4px;
  }

  .hero__cta {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero__cta .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    padding: 14px 16px;
  }

  .hero__stats {
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .hero__stat-value {
    font-size: 1.5rem;
  }

  .hero__stat-label {
    max-width: 280px;
    line-height: 1.45;
  }

  .hero__screenshot {
    min-height: clamp(220px, 52vw, 340px);
    max-height: 380px;
  }

  .hero__float {
    display: none;
  }

  .section__title {
    font-size: clamp(1.375rem, 5.5vw, 1.875rem);
  }

  .section__desc {
    font-size: 0.9375rem;
  }

  .btn--lg {
    padding: 14px 18px;
    font-size: 0.9375rem;
  }

  .mobile-nav__actions .btn {
    white-space: normal;
    text-align: center;
  }

  .pricing-card__badge {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    max-width: calc(100% - 24px);
  }

  .pricing-card__amount {
    font-size: 2rem;
  }

  .cta__box {
    padding: 40px 20px;
    text-align: center;
  }

  .cta__title {
    font-size: clamp(1.375rem, 5.5vw, 1.75rem);
  }

  .cta__desc {
    font-size: 0.9375rem;
  }

  .cta__actions {
    justify-content: center;
  }

  .cta__actions .btn {
    white-space: normal;
    width: 100%;
  }

  .trust__grid {
    justify-content: center;
    gap: 16px 24px;
  }

  .trust__item {
    font-size: 0.875rem;
    text-align: center;
  }

  .showcase__item,
  .showcase__item--reverse,
  .impl__grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .showcase__item {
    margin-bottom: 56px;
  }

  .faq__list {
    padding: 4px 20px;
  }

  .faq__answer-inner {
    padding-right: 8px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .features__grid,
  .problems__grid,
  .audience__grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: 56px;
  }

  .cta__form {
    flex-direction: column;
  }

  .cta__input {
    width: 100%;
    min-width: 0;
  }

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

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

@media (max-width: 380px) {
  .container {
    padding: 0 12px;
  }

  .hero__title {
    font-size: 1.3125rem;
  }

  .hero__badge {
    font-size: 0.6875rem;
    padding: 5px 10px;
  }

  .logo {
    font-size: 1rem;
    gap: 8px;
  }

  .logo__icon {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .pricing-card {
    padding: 28px 18px;
  }

  .pricing-card__amount {
    font-size: 1.75rem;
  }
}

/* Cookie notice (informational only, Metrika loads immediately) */
.cookie-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

.cookie-notice--dismissed {
  display: none;
}

.cookie-notice__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.cookie-notice__btn {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-notice {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}
