/* Home page */
body {
  background: #030526;
  color: white;
  min-height: 100vh;
  overflow-x: hidden;
}

.hero-wrap {
  min-height: calc(100vh - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 44px;
  position: relative;
  overflow: hidden;
}

.hero-wrap::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 59, 0.22), rgba(77, 163, 255, 0.12), transparent 68%);
  filter: blur(18px);
  transform: translate(210px, -80px);
  pointer-events: none;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 56px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 72px;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.hero-logo {
  display: block;
  width: 300px;
  height: auto;
  margin: 0 auto 30px;
  filter: drop-shadow(0 24px 70px rgba(255, 212, 59, 0.22));
}

h1 {
  font-size: clamp(52px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  margin-bottom: 22px;
}

p {
  color: #c7c7d1;
  font-size: 20px;
  line-height: 1.65;
}

.hero-subtitle {
  max-width: 600px;
  color: #c7c7d1;
  font-size: 21px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 32px;
}

.button {
  display: inline-block;
  margin-top: 0;
  padding: 14px 22px;
  border-radius: 999px;
  background: white;
  color: #050816;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 18px 50px rgba(255, 255, 255, 0.14);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(255, 212, 59, 0.22);
  background: #fff7c2;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 24px 70px rgba(77, 163, 255, 0.16);
}

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 620px;
}

.phone-stage::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 212, 59, 0.22), rgba(255, 92, 138, 0.14), transparent 70%);
  filter: blur(36px);
}

.phone-mockup {
  position: relative;
  width: min(360px, 80vw);
  aspect-ratio: 433 / 897;
  border-radius: 58px;
  filter: drop-shadow(0 34px 80px rgba(0, 0, 0, 0.55));
}

.phone-screen {
  position: absolute;
  inset: 2.2% 4.2% 2.2% 4.2%;
  width: 91.6%;
  height: 95.6%;
  object-fit: cover;
  border-radius: 46px;
  background: #050816;
  z-index: 1;
}

.phone-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}

.feature-mockup {
  width: min(245px, 100%);
}

.section-mockup {
  width: min(300px, 100%);
}

.badge-mockup {
  width: min(240px, 100%);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-kicker {
  color: #ffd43b;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

.section-header p {
  max-width: 680px;
  color: #b8bedd;
  font-size: 19px;
}

.feature-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 8px 4px 26px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.feature-grid::-webkit-scrollbar {
  height: 8px;
}

.feature-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.feature-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  padding: 24px;
  min-height: 520px;
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, min-height 0.32s ease, flex-basis 0.36s ease;
  cursor: pointer;
  transform-origin: center top;
  outline: none;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.32);
}

.feature-card:focus-visible {
  border-color: rgba(255, 212, 59, 0.65);
  box-shadow: 0 34px 100px rgba(255, 212, 59, 0.18);
}

.feature-card.is-expanded {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(260px, 1fr);
  grid-template-areas:
    "title title"
    "mockup details";
  column-gap: 34px;
  align-items: center;
  flex-basis: min(720px, calc(100vw - 56px));
  min-height: 620px;
  border-color: rgba(255, 212, 59, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
}

.feature-card.is-expanded h3 {
  grid-area: title;
}

.feature-card.is-expanded .feature-image-wrap {
  grid-area: mockup;
  margin-top: 26px;
}

.feature-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(12px);
  transition: max-height 0.42s ease, opacity 0.28s ease, transform 0.28s ease;
}

.feature-card.is-expanded .feature-details {
  grid-area: details;
  margin-top: 26px;
  max-height: 900px;
  opacity: 1;
  transform: translateY(0);
}

.feature-card h3 {
  font-size: 28px;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.feature-card p {
  color: #b8bedd;
  font-size: 16px;
  line-height: 1.55;
}

.feature-image-wrap {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}


.wide-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.25);
}

.wide-feature > div:first-child {
  order: 2;
}

.wide-feature > .feature-image-wrap,
.wide-feature > .badge-showcase {
  order: 1;
}

.badge-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
}

.more-features {
  text-align: center;
  padding: 70px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(255, 212, 59, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.more-features h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}

.more-features p {
  max-width: 620px;
  margin: 0 auto;
  color: #b8bedd;
}

.privacy-cta {
  text-align: center;
  padding: 84px 24px;
  border-radius: 42px;
  background: radial-gradient(circle at top, rgba(255, 212, 59, 0.18), rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-cta h2 {
  font-size: clamp(38px, 5vw, 64px);
}

.privacy-cta p {
  max-width: 640px;
  margin: 16px auto 0;
  color: #b8bedd;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(56px) scale(0.98);
  transition: opacity 0.9s ease, transform 0.9s ease;
  will-change: opacity, transform;
}

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

.hero-copy.scroll-reveal,
.phone-stage.scroll-reveal {
  transition-delay: 0.08s;
}

.feature-card.scroll-reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.feature-card.scroll-reveal:nth-child(3) {
  transition-delay: 0.16s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 44px 0 34px;
    text-align: center;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-logo {
    width: 150px;
    margin: 0 auto 24px;
  }

  h1 {
    font-size: 48px;
  }

  p,
  .hero-subtitle {
    font-size: 18px;
  }

  .hero-actions {
    justify-content: center;
  }

  .phone-stage {
    min-height: 520px;
  }

  .phone-mockup {
    width: min(300px, 82vw);
  }

  .section {
    padding: 66px 0;
  }

  .wide-feature,
  .badge-showcase {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    gap: 16px;
    padding-bottom: 22px;
  }

  .feature-card {
    flex-basis: min(82vw, 320px);
    min-height: 500px;
  }

  .feature-card.is-expanded {
    display: block;
    flex-basis: min(92vw, 390px);
    min-height: 560px;
  }

  .feature-card.is-expanded .feature-image-wrap,
  .feature-card.is-expanded .feature-details {
    margin-top: 18px;
  }

  .wide-feature > div:first-child,
  .wide-feature > .feature-image-wrap,
  .wide-feature > .badge-showcase {
    order: initial;
  }

  .scroll-reveal {
    transform: translateY(36px) scale(0.98);
  }
}
