:root {
  --primary: #4f46e5;
  --primary-dark: #3525cd;
  --primary-light: #6366f1;
  --primary-soft: #e0e7ff;
  --teal: #2bb6a3;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #0b1c30;
  --text-muted: #5b6475;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 18px 50px rgba(79, 70, 229, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1140px;
  --font-headline: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-headline);
  letter-spacing: -0.02em;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(246, 248, 252, 0.88);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.logo__image {
  height: 34px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav a:not(.btn):hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.25);
}

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

.btn--light {
  background: #fff;
  color: var(--primary);
}

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn--sm {
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
}

.btn--block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.08;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.btn--download svg {
  flex-shrink: 0;
}

.hero__download-note {
  margin: 0 0 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__stats li {
  display: grid;
  gap: 0.15rem;
}

.hero__stats strong {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  color: var(--primary);
}

.hero__stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Screenshot frames */
.screenshot-frame {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: 0.6rem;
  overflow: hidden;
}

.screenshot-frame img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
}

.screenshot-frame--hero {
  transform: perspective(1400px) rotateY(-4deg);
}

.screenshot-frame--phone {
  max-width: 360px;
  margin-inline: auto;
  background: #0b141a;
  border-color: #0b141a;
}

/* Phone device mockup (transparent PNG with its own frame) */
.device {
  margin: 0;
  display: flex;
  justify-content: center;
}

.device img {
  width: 100%;
  max-width: 340px;
  height: auto;
  filter: drop-shadow(0 26px 50px rgba(15, 23, 42, 0.28));
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section__head p {
  margin: 0;
  color: var(--text-muted);
}

/* Screenshots showcase */
.section--screenshots {
  background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 100%);
}

.screenshots-showcase__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.screenshots-tab {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.screenshots-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.screenshot-frame--large figcaption {
  padding: 0.85rem 0.4rem 0.3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.screenshots-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.screenshots-thumb {
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.screenshots-thumb img {
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.screenshots-thumb.is-active {
  border-color: var(--primary);
}

.screenshots-thumb:hover {
  transform: translateY(-2px);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.feature h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
}

/* Split sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split__text h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
}

.split__text > p {
  color: var(--text-muted);
}

.checklist,
.steps {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.checklist li {
  position: relative;
  padding-left: 1.9rem;
  font-weight: 500;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.steps {
  margin-bottom: 1.75rem;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 500;
}

.steps span {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-headline);
  font-weight: 700;
}

/* Plans */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.plan h3 {
  margin: 0;
  font-size: 1.3rem;
}

.plan__price {
  margin: 0.5rem 0 0.1rem;
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.plan__price span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.plan__desc {
  margin: 0 0 0.6rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.plan__quota {
  margin: 0 0 1.1rem;
  padding: 0.35rem 0.75rem;
  align-self: flex-start;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.plans__note {
  margin: 2rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.plans__note a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.plan ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  font-size: 0.92rem;
}

.plan .btn {
  margin-top: auto;
}

.plan ul li {
  padding-left: 1.5rem;
  position: relative;
}

.plan ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.plan--featured {
  background: linear-gradient(160deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  color: #fff;
}

.plan--featured .plan__price,
.plan--featured .plan__price span,
.plan--featured .plan__desc {
  color: #fff;
}

.plan--featured .plan__quota {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.plan--featured ul li::before {
  color: #fff;
}

.plan__badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* CTA */
.section--cta {
  padding-bottom: 5rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 3rem;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff;
  box-shadow: var(--shadow);
}

.cta h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
}

.cta p {
  margin: 0;
  max-width: 32rem;
  opacity: 0.95;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2.5rem 0 1.75rem;
}

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

.footer__logo {
  height: 30px;
  width: auto;
  margin-bottom: 0.5rem;
}

.footer__brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.footer__legal {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--delay {
  transition-delay: 0.12s;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 900px) {
  .hero__grid,
  .split,
  .features {
    grid-template-columns: 1fr;
  }

  .screenshots-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .section--split-reverse .screenshot-frame--phone,
  .section--split-reverse .device {
    order: -1;
  }

  .screenshot-frame--hero {
    transform: none;
  }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }

  .nav.is-open {
    transform: none;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .cta {
    padding: 2rem;
  }
}
