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

:root {
  --bg:        #0a0a0a;
  --bg-card:   #111113;
  --bg-card-2: #161618;
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.05);
  --text:      #ececee;
  --muted:     rgba(236, 236, 238, 0.55);
  --muted-2:   rgba(236, 236, 238, 0.35);
  --positive:  #10b981;
  --positive-dim: rgba(16, 185, 129, 0.15);
  --positive-border: rgba(16, 185, 129, 0.4);

  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  --radius:    12px;
  --radius-lg: 20px;
  --max-w:     1100px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
a { color: inherit; text-decoration: none; }

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

/* ─── Shared section typography ─────────────────────────────────────────────── */
.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-sub {
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  margin-top: 8px;
}

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: opacity 0.15s, background 0.15s, transform 0.1s;
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--positive);
  color: #022c22;
  padding: 13px 22px;
}
.btn--primary:hover { opacity: 0.9; }

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 12px 22px;
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }

.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--lg { padding: 15px 28px; font-size: 15px; }
.btn--full { width: 100%; }

.price-early {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

/* ─── Animations ─────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.delay-0 { animation-delay: 0.05s; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.28s; }
.delay-3 { animation-delay: 0.42s; }
.delay-4 { animation-delay: 0.56s; }

/* ─── Nav ────────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.25s, background 0.25s, backdrop-filter 0.25s, border-color 0.25s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  flex-shrink: 0;
}

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

.nav__links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--text); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  padding: 160px 0 96px;
  text-align: center;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--positive);
  margin-bottom: 24px;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 820px;
  margin: 0 auto;
}

.hero__br-mobile { display: none; }

.hero__sub {
  font-size: clamp(16px, 2.2vw, 18px);
  color: var(--muted);
  margin-top: 24px;
  line-height: 1.65;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
}

.hero__trust {
  font-size: 13px;
  color: var(--muted-2);
  margin-top: 20px;
  letter-spacing: 0.01em;
}

/* ─── Problems ───────────────────────────────────────────────────────────────── */
.problems {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

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

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.problem-card__icon {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--positive);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.problem-card__heading {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.problem-card__body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── Product tour ───────────────────────────────────────────────────────────── */
.tour {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.tour .section-heading,
.tour .section-sub {
  margin-bottom: 0;
}

.tour__tabs {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 40px;
  padding: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tour__tab {
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.tour__tab:hover { color: var(--text); }
.tour__tab--active {
  background: var(--bg-card-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.tour__panels { margin-top: 24px; }

.tour__panel { display: none; }
.tour__panel--active { display: block; }

.tour__caption {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Screenshot wrappers (product tour) ────────────────────────────────────── */
.screenshot-wrapper {
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.screenshot-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-wrapper--detail {
  margin-top: 16px;
}

/* ─── Carousel ───────────────────────────────────────────────────────────────── */
.carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.carousel__track {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.carousel__slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.15s;
}
.carousel__btn:hover { background: rgba(22, 22, 24, 0.92); }
.carousel__btn--prev { left: 12px; }
.carousel__btn--next { right: 12px; }

.carousel__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  min-height: 20px;
}

.carousel__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

.carousel__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.carousel__dot--active {
  background: var(--positive);
  transform: scale(1.4);
}

/* ─── How it works ───────────────────────────────────────────────────────────── */
.how {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.how__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 56px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.how__step {
  display: flex;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.how__step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--positive-border);
  background: var(--positive-dim);
  color: var(--positive);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how__step-heading {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.how__step-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.how__connector {
  flex-shrink: 0;
  width: 48px;
  height: 1px;
  background: var(--border);
  margin-top: 20px;
  align-self: flex-start;
}

/* ─── Pricing ────────────────────────────────────────────────────────────────── */
.pricing {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.pricing__card {
  max-width: 480px;
  margin: 48px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.pricing__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--positive);
  background: var(--positive-dim);
  border: 1px solid var(--positive-border);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 24px;
}

.pricing__amount {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.pricing__price-early {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing__price-full {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--muted-2);
  text-decoration: line-through;
}

.pricing__once {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.pricing__features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing__features li {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check {
  color: var(--positive);
  font-size: 13px;
  line-height: 1.6;
  flex-shrink: 0;
}

.pricing__footnote {
  font-size: 13px;
  color: var(--muted-2);
  text-align: center;
  margin-top: 14px;
}

/* ─── Comparison table ───────────────────────────────────────────────────────── */
.compare {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.compare__wrap {
  overflow-x: auto;
  margin-top: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.compare__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}

.compare__table thead tr {
  border-bottom: 1px solid var(--border);
}

.compare__table th,
.compare__table td {
  padding: 14px 20px;
  text-align: left;
}

.compare__table th {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.compare__col--saas { text-align: center; }
.compare__col--rt {
  text-align: center;
  color: var(--positive);
}

.compare__table tbody tr {
  border-bottom: 1px solid var(--border-2);
}
.compare__table tbody tr:last-child { border-bottom: none; }

.compare__table tbody td:first-child {
  color: var(--muted);
}

.compare__table tbody tr:nth-child(odd) {
  background: rgba(255,255,255,0.015);
}

.compare__bad {
  text-align: center;
  color: var(--muted-2);
}

.compare__good {
  text-align: center;
  color: var(--positive);
  font-weight: 500;
}

/* ─── FAQ ────────────────────────────────────────────────────────────────────── */
.faq {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.faq__inner { max-width: 680px; }

.faq .section-heading { text-align: left; }
.faq .section-sub { display: none; }

.faq__list {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq__item {
  border-bottom: 1px solid var(--border-2);
}
.faq__item:last-child { border-bottom: none; }

/* h3 wrapper around the question button — for SEO heading hierarchy.
   The button keeps all visual styling; this just makes h3 inert visually. */
.faq__q-h {
  font: inherit;
  font-weight: inherit;
  margin: 0;
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  background: transparent;
  transition: background 0.15s;
}
.faq__question:hover { background: rgba(255,255,255,0.025); }

.faq__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  position: relative;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--muted);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.faq__icon::before { width: 12px; height: 1.5px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq__icon::after  { width: 1.5px; height: 12px; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.faq__question[aria-expanded="true"] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ─── Final CTA ──────────────────────────────────────────────────────────────── */
.cta-final {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-final__heading {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 36px;
}

.cta-final__sub {
  font-size: 13px;
  color: var(--muted-2);
  margin-top: 16px;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.footer__logo {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.footer__tagline {
  font-size: 13px;
  color: var(--muted-2);
  font-style: italic;
}

.footer__copy {
  font-size: 12px;
  color: var(--muted-2);
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .nav__links.open { display: flex; }
  .nav__links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-2);
    font-size: 15px;
  }
  .nav__links .btn { margin-top: 12px; text-align: center; }
  .nav__burger { display: flex; }

  .hero { padding: 120px 0 72px; }
  .hero__br-mobile { display: block; }
  .hero__ctas { flex-direction: column; align-items: center; }

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

  .tour__tabs {
    flex-wrap: wrap;
    width: 100%;
    gap: 6px;
  }
  .tour__tab { flex: 1; min-width: 80px; text-align: center; padding: 9px 12px; }

  .how__steps {
    flex-direction: column;
    gap: 32px;
  }
  .how__connector { display: none; }

  .pricing__card { padding: 28px 24px; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 480px) {
  .hero__headline { font-size: 36px; }
  .btn--lg { padding: 14px 20px; font-size: 14px; }
}
