:root {
  color-scheme: dark;
  color-scheme: only dark;
  --bg: #08131f;
  --bg-soft: #102236;
  --ink: #eaf2f8;
  --ink-dim: #a7bac9;
  --card: rgba(17, 33, 49, 0.72);
  --card-stroke: rgba(255, 255, 255, 0.12);
  --accent: #4fd2ae;
  --accent-2: #3b82f6;
  --shadow: 0 24px 70px rgba(3, 9, 16, 0.45);
}

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

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
}

html {
  color-scheme: dark;
  color-scheme: only dark;
  min-height: 100%;
}

body {
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 50% -20%, #2d5d7a66, transparent),
    linear-gradient(160deg, var(--bg), var(--bg-soft) 52%, #10151f);
  min-height: 100vh;
  line-height: 1.45;
  overflow-x: hidden;
  position: relative;
}

.aurora {
  position: fixed;
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
  z-index: -1;
}

.aurora-one {
  width: 420px;
  height: 420px;
  background: #35a7ff33;
  top: -120px;
  right: -120px;
}

.aurora-two {
  width: 420px;
  height: 420px;
  background: #34d3992e;
  bottom: -120px;
  left: -100px;
}

.topbar {
  width: min(1160px, calc(100% - 2rem));
  margin: 1rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--card-stroke);
  border-radius: 18px;
  background: rgba(8, 19, 31, 0.55);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.availability {
  margin: 0;
  display: inline-flex;
  align-items: center;
  color: #d9e8f5;
  font-size: 0.86rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid #9ad4ff40;
  border-radius: 999px;
  background: #1e426033;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease;
}

.availability:hover {
  color: #f4fbff;
  background: #295a823d;
  border-color: #9ad4ff66;
  transform: translateY(-1px);
}

.availability:focus-visible {
  outline: 2px solid #9ad4ff99;
  outline-offset: 2px;
}

main {
  width: min(1160px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
}

.hero {
  text-align: center;
  margin-top: 2.1rem;
  animation: fade-in-up 0.8s ease both;
}

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 0.65rem;
}

.hero h1 {
  margin: 0 auto;
  font-family: "Avenir Next Condensed", "Avenir Next", sans-serif;
  font-size: clamp(2.15rem, 4.8vw, 4.3rem);
  line-height: 0.98;
  max-width: 16ch;
}

.hero-copy {
  margin: 1.1rem auto 0;
  max-width: 56ch;
  color: #d3e0ea;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.hero-actions {
  margin-top: 1.55rem;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.store-badge {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
}

.features {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.features article {
  border: 1px solid var(--card-stroke);
  border-radius: 16px;
  padding: 1rem 1rem 1.05rem;
  background: var(--card);
}

.features h2 {
  margin: 0;
  font-size: 1.02rem;
}

.features p {
  margin: 0.55rem 0 0;
  color: #d0dfeb;
  font-size: 0.96rem;
}

.shots {
  margin-top: 3rem;
}

.section-heading {
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.gallery {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.phone-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.phone-card figcaption {
  margin: 0;
  color: #c9d9e6;
  font-size: 0.92rem;
  text-align: center;
}

.iphone-frame {
  position: relative;
  width: min(300px, 100%);
  aspect-ratio: 9 / 19.5;
  border-radius: 46px;
  padding: 15px;
  background:
    radial-gradient(circle at 30% 20%, #40434a, #14191f 70%),
    linear-gradient(160deg, #2f3742, #13171d);
  box-shadow:
    inset 0 0 0 1px #9fa8b655,
    inset 0 0 0 3px #00000060,
    var(--shadow);
}

.iphone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  display: block;
}

.cta {
  margin: 3.2rem auto 2rem;
  max-width: 860px;
  border: 1px solid #7bb6ff35;
  border-radius: 18px;
  background: linear-gradient(130deg, #16263a, #152338 45%, #132530);
  text-align: center;
  padding: 1.6rem 1rem;
}

.cta h2 {
  margin: 0;
}

.cta p {
  margin: 0.45rem 0 0;
  color: #d2e0eb;
}

.cta-actions {
  margin-top: 1rem;
}

.footer {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto 1.4rem;
  color: #9eb2c2;
  font-size: 0.87rem;
  text-align: center;
}

.footer a {
  color: #bfe4ff;
}

.footer a:hover {
  color: #e1f2ff;
}

.legal-wrap {
  width: min(860px, calc(100% - 2rem));
  margin: 1.8rem auto 0;
}

.legal-card {
  border: 1px solid var(--card-stroke);
  border-radius: 18px;
  background: var(--card);
  padding: clamp(1rem, 2.3vw, 1.8rem);
}

.legal-meta {
  color: var(--ink-dim);
  margin-top: 0.2rem;
}

.legal-card h1 {
  margin: 0;
  font-family: "Avenir Next Condensed", "Avenir Next", sans-serif;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
}

.legal-card h2 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.12rem;
}

.legal-card p {
  margin: 0.4rem 0 0;
  color: #d2e0eb;
}

.legal-note {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: #9fb3c2;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 990px) {
  .features {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 660px) {
  .topbar {
    margin-top: 0.75rem;
    padding: 0.75rem;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .availability {
    font-size: 0.75rem;
  }

  .hero {
    margin-top: 1.5rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .iphone-frame {
    width: min(320px, 100%);
  }
}
