:root {
  --white: #f4f8fe;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.9);
  --panel: rgba(255, 255, 255, 0.16);
  --panel-border: rgba(255, 255, 255, 0.3);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Poppins", "Avenir Next", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #68a2ea 0%, #a8c6ee 100%);
}

.top-header {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding-top: 44px;
}

.top-nav {
  display: flex;
  gap: clamp(24px, 5vw, 88px);
  align-items: center;
}

.nav-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: clamp(1.05rem, 2vw, 2.95rem);
  font-weight: 500;
}

.nav-link.active {
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
}

.hero-shell {
  width: min(1200px, 92vw);
  margin: 0 auto;
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(16px, 2.5vw, 40px);
  padding-bottom: 10px;
}

.hero-left {
  max-width: 680px;
}

.brand {
  margin: 0;
  font-family: "Pacifico", cursive;
  font-size: clamp(3.4rem, 7.5vw, 8.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
}

.tagline {
  margin: clamp(22px, 2.8vw, 34px) 0 0;
  font-size: clamp(1.2rem, 2.3vw, 3.15rem);
  line-height: 1.28;
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 22ch;
}

.store-button {
  margin-top: clamp(36px, 5.2vw, 70px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border-radius: 15px;
  padding: 12px 22px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.apple {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.store-text .small {
  font-size: clamp(0.8rem, 1.3vw, 1.05rem);
}

.store-text .big {
  margin-top: 5px;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 500;
}

.hero-right {
  min-height: 100%;
  display: flex;
  align-items: end;
  justify-content: end;
  overflow: hidden;
}

.phones {
  width: clamp(470px, 54vw, 880px);
  max-width: none;
  transform: translateX(16%) translateY(3%);
  animation: phoneFloat 8s ease-in-out infinite;
}

.content-page {
  width: min(1000px, 92vw);
  margin: 56px auto;
}

.content-title {
  margin: 0 0 22px;
  font-family: "Pacifico", cursive;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
}

.content-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  padding: clamp(20px, 4vw, 36px);
  backdrop-filter: blur(3px);
  line-height: 1.7;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.content-card a {
  color: white;
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translateX(16%) translateY(3%);
  }
  50% {
    transform: translateX(16%) translateY(1%);
  }
}

@media (max-width: 980px) {
  .hero-shell {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-right {
    justify-content: center;
    margin-top: 24px;
  }

  .phones {
    width: min(100%, 760px);
    transform: translateX(0) translateY(0);
    animation: none;
  }

  .top-header {
    padding-top: 24px;
  }

  .top-nav {
    gap: 20px;
    flex-wrap: wrap;
  }

  .store-button {
    margin-top: 30px;
  }
}
