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

:root {
  --bg: #1B2138;
  --bg-card: #232840;
  --accent: #5DB860;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

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

/* ── Nav ── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 33, 56, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 100px;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.85;
}

/* ── App Store Badge ── */

.appstore-badge {
  display: inline-block;
  transition: opacity 0.2s;
}

.appstore-badge:hover {
  opacity: 0.8;
}

.appstore-badge img {
  height: 52px;
  display: block;
}

/* ── Hero ── */

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

.hero-content {
  display: flex;
  align-items: flex-end;
  gap: 60px;
}

.hero-text {
  flex: 1;
  padding-bottom: 60px;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-image {
  flex: 0 0 300px;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 300px;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.5));
  border-radius: 36px;
}

/* ── Features ── */

.features {
  padding: 120px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 80px;
}

.feature-reverse {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 0 0 260px;
  display: flex;
  justify-content: center;
}

.feature-image img {
  width: 100%;
  max-width: 260px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
  border-radius: 30px;
}

.devices-image {
  flex: 0 0 500px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 12px;
}

.devices-image img {
  height: 220px;
  width: auto;
  max-width: unset;
  border-radius: 12px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.feature-text {
  flex: 1;
}

.feature-label {
  display: inline-block;
  background: rgba(93, 184, 96, 0.15);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.feature-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.feature-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.75;
}

/* ── Comparison ── */

.comparison {
  padding: 100px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.comparison h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  text-align: center;
}

.comparison-sub {
  color: var(--text-muted);
  text-align: center;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table thead th {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding-top: 18px;
  padding-bottom: 18px;
}

.comparison-table thead th:nth-child(2) {
  color: var(--accent);
}

.comparison-table td:first-child {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.comparison-table td:nth-child(2) {
  color: var(--text);
  font-weight: 500;
}

.comparison-table td:not(:first-child):not(:nth-child(2)) {
  color: var(--text-muted);
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

/* ── FAQ ── */

.faq {
  padding: 100px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-inner {
  max-width: 720px;
  margin: 0 auto;
}

.faq h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

.faq-item a {
  color: var(--accent);
  text-decoration: none;
}

.faq-item a:hover {
  text-decoration: underline;
}

/* ── CTA ── */

.cta {
  text-align: center;
  padding: 100px 24px;
  background: var(--bg-card);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin-bottom: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.cta h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.cta p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
}


/* ── Footer ── */

footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    padding-bottom: 0;
  }

  .hero-text {
    padding-bottom: 0;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    flex: unset;
  }

  .hero-image img {
    max-width: 240px;
  }

  .feature,
  .feature-reverse {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .feature-image {
    flex: unset;
    order: 1;
  }

  .feature-text p {
    margin: 0 auto;
  }

  .features {
    padding: 80px 24px;
    gap: 80px;
  }

  .devices-image {
    flex: unset;
    width: 100%;
    gap: 6px;
    align-items: flex-end;
  }

  .devices-image img {
    height: auto;
    max-width: unset;
    flex: none;
  }

  .devices-image img:nth-child(1) { width: 10%; }  /* iPhone — narrowest */
  .devices-image img:nth-child(2) { width: 26%; }  /* iPad */
  .devices-image img:nth-child(3) { width: 52%; }  /* Mac — widest */
}
