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

:root {
  --black: #0A0A0A;
  --purple: #7B5CFF;
  --purple-light: #EDE8FF;
  --purple-mid: #9B7EFF;
  --bg: #F7F7F7;
  --bg-white: #FFFFFF;
  --gray-1: #F0F0F0;
  --gray-2: #E5E5E5;
  --gray-3: #999999;
  --gray-4: #555555;
  --text: #0A0A0A;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 247, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-2);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  height: 32px;
  width: auto;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.3px;
}

.logo-text--sm {
  font-size: 15px;
}

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

nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-4);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

nav a:hover { color: var(--black); background: var(--gray-1); }

.nav-download {
  margin-left: 8px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--black);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.btn-primary:hover {
  background: #222;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--gray-2);
}

.btn-secondary:hover {
  background: var(--gray-1);
  border-color: var(--gray-3);
}

.btn-purple {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 4px 20px rgba(123,92,255,0.35);
}

.btn-purple:hover {
  background: #6A4BEE;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(123,92,255,0.45);
}

.btn--lg {
  font-size: 15px;
  padding: 14px 28px;
}

.btn--xl {
  font-size: 16px;
  padding: 16px 36px;
}

/* ── SECTIONS ── */
section { padding: 100px 32px; }
.container { max-width: 1120px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--black);
}

.section-title--mb {
  margin-bottom: 40px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray-3);
  margin-top: 12px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── HERO ── */
#hero {
  padding-top: 140px;
  padding-bottom: 100px;
  background: var(--bg);
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--purple);
  border-radius: 50%;
}

.hero-headline {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2.5px;
  color: var(--black);
  margin-bottom: 20px;
}

.hero-headline .accent { color: var(--purple); }

.hero-subheadline {
  font-size: 20px;
  font-weight: 500;
  color: var(--gray-4);
  margin-bottom: 16px;
  line-height: 1.5;
}

.hero-description {
  font-size: 16px;
  color: var(--gray-3);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 440px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-right {
  display: flex;
  justify-content: center;
  position: relative;
}

/* ── PHONE MOCKUP ── */
.phone-mockup-wrap {
  position: relative;
  display: inline-block;
}

.phone-mockup-wrap::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(123,92,255,0.12) 0%, transparent 70%);
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 280px;
  background: #1a1a1a;
  border-radius: 52px;
  padding: 10px;
  box-shadow:
    0 0 0 2px #C8C8CA,
    0 0 0 4px #F2F2F7,
    0 40px 80px rgba(0,0,0,0.25),
    0 10px 30px rgba(0,0,0,0.12);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  z-index: 10;
}

.phone-screen {
  border-radius: 44px;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.phone-screen img {
  width: 100%;
  display: block;
}

/* ── HOW IT WORKS ── */
#how {
  background: var(--bg-white);
}

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

.step-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid var(--gray-2);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.step-num {
  width: 44px; height: 44px;
  background: var(--purple-light);
  color: var(--purple);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 24px;
}

.step-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 15px;
  color: var(--gray-3);
  line-height: 1.6;
}

/* ── EXAMPLE ANALYSIS ── */
#analysis {
  background: var(--bg);
}

.analysis-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

/* App-style cards */
.app-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 22px 24px;
  border: 1px solid #E8E5DF;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.app-category {
  font-size: 22px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.app-score-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-score-num {
  font-size: 48px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1;
}

.app-score-max {
  font-size: 28px;
  font-weight: 400;
  color: #B0ACA6;
  line-height: 1;
}

.app-score-label {
  font-size: 16px;
  font-weight: 600;
  margin-left: 4px;
}

.app-score-label--green { color: #16A34A; }

.app-feedback-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.app-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-icon-badge--green { background: #F0FDF4; }
.app-icon-badge--purple { background: #FAF5FF; }

.app-feedback-title {
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
}

.app-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #8A8A8A;
  line-height: 1.5;
}

.app-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.app-dot--green { background: #16A34A; }
.app-dot--purple { background: #9333EA; }

/* ── SCREENSHOTS ── */
#screenshots {
  background: var(--bg-white);
  overflow: hidden;
}

.phones-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-end;
}

.phones-row .phone-wrap {
  transition: transform 0.3s;
}

.phones-row .phone-wrap:hover {
  transform: translateY(-8px);
}

.phones-row .phone-wrap.center {
  transform: translateY(-20px);
}

.phones-row .phone-wrap.center:hover {
  transform: translateY(-28px);
}

.phone-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-3);
  margin-top: 16px;
  letter-spacing: 0.2px;
}

/* ── FEATURES ── */
#features {
  background: var(--bg);
}

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

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--gray-2);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
  width: 48px; height: 48px;
  background: var(--purple-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 15px;
  color: var(--gray-3);
  line-height: 1.65;
}

/* ── CTA ── */
#cta {
  background: var(--black);
  padding: 120px 32px;
}

#cta .container {
  text-align: center;
}

.cta-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -2px;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 20px;
}

.cta-title .accent { color: var(--purple-mid); }

.cta-text {
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── FOOTER ── */
footer {
  background: var(--bg-white);
  border-top: 1px solid var(--gray-2);
  padding: 40px 32px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 4px;
}

.footer-links a {
  font-size: 13px;
  color: var(--gray-3);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.footer-links a:hover { color: var(--black); background: var(--gray-1); }

.footer-copy {
  font-size: 13px;
  color: var(--gray-3);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .hero-description { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-right { display: none; }

  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .analysis-inner {
    grid-template-columns: 1fr;
  }

  .analysis-phone { display: none; }

  .phones-row {
    gap: 16px;
  }

  .phone-frame { width: 180px; }
}

@media (max-width: 600px) {
  section { padding: 56px 20px; }
  #hero { padding-top: 96px; padding-bottom: 56px; }
  #cta { padding: 72px 20px; }
  .header-inner { padding: 0 16px; }
  nav .hide-mobile { display: none; }

  .hero-headline { letter-spacing: -1.5px; }
  .hero-subheadline { font-size: 17px; }
  .hero-badge { font-size: 11px; }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  .section-header { margin-bottom: 40px; }
  .section-subtitle { font-size: 16px; }

  .step-card { padding: 28px 24px; }
  .feature-card { padding: 28px 24px; }

  /* Screenshots: horizontal scroll carousel */
  #screenshots { overflow: hidden; }
  .phones-row {
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 24px 24px 20px;
    margin: 0 -20px;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .phones-row::-webkit-scrollbar { display: none; }
  .phone-wrap { flex-shrink: 0; scroll-snap-align: center; }
  .phone-frame { width: 200px; border-radius: 46px; padding: 10px; }
  .phone-notch { width: 80px; height: 22px; top: 10px; border-radius: 0 0 14px 14px; }
  .phone-screen { border-radius: 38px; }
  .phones-row .phone-wrap.center { transform: none; }
  .phones-row .phone-wrap.center:hover { transform: none; }
  .phone-label { font-size: 12px; margin-top: 12px; }

  .app-card { padding: 18px 20px; }
  .app-score-num { font-size: 40px; }

  .cta-title { letter-spacing: -1.5px; }
  .cta-text { font-size: 16px; }

  footer { padding: 32px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
