/* ── Reset & Base ─────────────────────────────── */

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

:root {
  --color-primary: #8b5cf6;
  --color-primary-dark: #7c3aed;
  --color-primary-light: #f5f3ff;
  --color-cyan: #06b6d4;
  --color-cyan-dark: #0891b2;
  --color-cyan-light: #ecfeff;
  --color-accent: #f97316;
  --color-accent-dark: #ea580c;
  --color-accent-light: #fff7ed;
  --color-bg: #ffffff;
  --color-bg-subtle: #f8fafc;
  --color-text: #1e293b;
  --color-text-secondary: #64748b;
  --color-text-tertiary: #94a3b8;
  --color-border: #e2e8f0;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1120px;
  --radius: 12px;
  --radius-lg: 16px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* ── Accessibility ───────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Container ───────────────────────────────── */

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

/* ── Nav ─────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

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

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 40px;
  width: auto;
}

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 8px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
}

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

/* ── Hero ────────────────────────────────────── */

.hero {
  padding: 140px 0 80px;
}

.hero__inner {
  text-align: center;
}

.hero__title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 20px;
}

.hero__title--accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 56px;
}

.hero__discover {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

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

.hero__arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.hero__discover:hover .hero__arrow {
  transform: translateY(2px);
}

.hero__image {
  max-width: 900px;
  margin: 0 auto;
}

/* ── CTA Button ──────────────────────────────── */

.cta {
  display: inline-block;
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.cta:active {
  transform: translateY(0);
}

.cta--large {
  font-size: 19px;
  padding: 18px 40px;
}

/* ── Sections ────────────────────────────────── */

.section {
  padding: 96px 0;
}

.section--subtle {
  background: rgba(248, 250, 252, 0.75);
}

.section--cta {
  padding: 120px 0;
}

.section__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__title--centered {
  text-align: center;
}

.section__subtitle {
  font-size: 19px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin-bottom: 48px;
}

.section__cta-wrapper {
  text-align: center;
  margin-top: 32px;
}

.section__reassurance {
  margin-top: 16px;
  font-size: 15px;
  color: var(--color-text-tertiary);
}

/* ── Badge ───────────────────────────────────── */

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.badge--ia {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.badge--planning {
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
}

/* ── Screenshots ─────────────────────────────── */

.screenshot {
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12),
              0 0 0 1px rgba(0, 0, 0, 0.04);
}

.section__images {
  margin-bottom: 40px;
}

/* Desktop + phone side by side */
.section__images--showcase {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: center;
  max-width: 900px;
}

.screenshot-desktop {
  width: 100%;
}

.screenshot-phone {
  display: flex;
  justify-content: center;
}

/* Two phones side by side */
.section__images--phones {
  display: flex;
  justify-content: center;
  gap: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Phone frame — subtle border, no heavy black frame */
.phone-frame {
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: 24px;
  padding: 8px;
  max-width: 260px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12),
              0 0 0 1px rgba(0, 0, 0, 0.04);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.section__images--single {
  max-width: 800px;
}

/* ── Feature List ────────────────────────────── */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  font-size: 17px;
  color: var(--color-text-secondary);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ── Cards ───────────────────────────────────── */

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

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

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

.card__icon {
  color: var(--color-primary);
  margin-bottom: 20px;
}

.card__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.card__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ── Footer ──────────────────────────────────── */

.footer {
  background: var(--color-text);
  color: var(--color-text-tertiary);
  padding: 32px 0;
}

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

.footer__logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__copy {
  font-size: 14px;
}

/* ── Gradient Blobs ──────────────────────────── */

.blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  animation: blob-float 20s ease-in-out infinite;
}

.blob--1 {
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.blob--2 {
  width: 500px;
  height: 500px;
  background: var(--color-cyan);
  top: 40%;
  left: -8%;
  animation-delay: -7s;
}

.blob--3 {
  width: 450px;
  height: 450px;
  background: var(--color-accent);
  bottom: 10%;
  right: 10%;
  animation-delay: -14s;
  opacity: 0.1;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 30px) scale(1.02); }
}

/* ── Steps ───────────────────────────────────── */

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 56px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 260px;
  flex: 1;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.step__title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.step__connector {
  width: 60px;
  height: 2px;
  background: var(--color-border);
  margin-top: 28px;
  flex-shrink: 0;
}

/* ── Stats ───────────────────────────────────── */

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

.stat {
  text-align: center;
  padding: 32px 16px;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.stat__number {
  display: block;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat__label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.stat__detail {
  display: block;
  font-size: 14px;
  color: var(--color-text-tertiary);
}

/* ── Parallax ────────────────────────────────── */

.parallax {
  will-change: transform;
}

/* ── Animations ──────────────────────────────── */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for cards */
.cards .animate-on-scroll:nth-child(2) {
  transition-delay: 0.1s;
}
.cards .animate-on-scroll:nth-child(3) {
  transition-delay: 0.2s;
}

/* ── Responsive ──────────────────────────────── */

@media (max-width: 1024px) {
  .hero__title {
    font-size: 42px;
  }

  .section__title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero__title {
    font-size: 34px;
  }

  .hero__subtitle {
    font-size: 17px;
  }

  .hero__actions {
    flex-direction: column;
    gap: 16px;
  }

  .cta {
    width: 100%;
    text-align: center;
  }

  .cta--large {
    font-size: 17px;
    padding: 16px 32px;
  }

  .section {
    padding: 64px 0;
  }

  .section--cta {
    padding: 80px 0;
  }

  .section__title {
    font-size: 28px;
  }

  .section__subtitle {
    font-size: 17px;
  }

  .section__images--showcase {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .screenshot-phone {
    justify-content: flex-start;
  }

  .section__images--phones {
    gap: 16px;
  }

  .phone-frame {
    max-width: 200px;
    border-radius: 22px;
    padding: 8px;
  }

  .phone-frame img {
    border-radius: 14px;
  }

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

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .step {
    max-width: 100%;
    flex-direction: row;
    text-align: left;
    gap: 16px;
  }

  .step__number {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 20px;
    border-radius: 12px;
    margin-bottom: 0;
  }

  .step__connector {
    width: 2px;
    height: 24px;
    margin: 0 0 0 21px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat {
    padding: 24px 12px;
  }

  .stat__number {
    font-size: 32px;
  }

  .blob--1 { width: 300px; height: 300px; }
  .blob--2 { width: 250px; height: 250px; }
  .blob--3 { width: 200px; height: 200px; }

  .card {
    padding: 28px 24px;
  }

  .nav__inner {
    height: 56px;
  }

  .nav__logo-img {
    height: 32px;
  }

  .nav__link {
    font-size: 14px;
    padding: 6px 16px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 28px;
  }

  .section__title {
    font-size: 24px;
  }

  .container {
    padding: 0 16px;
  }
}
