:root {
  --bg: #f6fcff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --ink: #142536;
  --muted: #587084;
  --line: rgba(34, 68, 92, 0.12);
  --blue: #41a8ff;
  --mint: #35d7b1;
  --yellow: #ffd166;
  --orange: #ff9b54;
  --pink: #ff7aa8;
  --shadow: 0 24px 70px rgba(30, 87, 124, 0.16);
  --soft-shadow: 0 12px 34px rgba(28, 73, 105, 0.12);
  --radius: 24px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 209, 102, 0.32), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(53, 215, 177, 0.22), transparent 30rem),
    linear-gradient(180deg, #f7fdff 0%, #eefaff 42%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(65, 168, 255, 0.5);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--ink);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.section-pad {
  padding: 92px 0;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  padding: 0 0 10px;
  pointer-events: none;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.65rem 0.85rem 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 42px rgba(43, 92, 130, 0.12);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #07324b;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--yellow), var(--mint) 55%, #9de9ff);
  box-shadow: inset 0 -10px 18px rgba(255, 255, 255, 0.35), 0 10px 24px rgba(53, 215, 177, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.88rem;
  border-radius: 999px;
  color: #24435a;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #0c2d42;
  background: rgba(65, 168, 255, 0.12);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  background: #ecf9ff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  padding-top: 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.8fr);
  gap: clamp(2rem, 6vw, 5.2rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: #147fae;
  font-weight: 850;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 1.15rem;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.18;
}

.hero-text,
.section-heading p,
.app-feature-card p,
.benefit p,
.legal-card p,
.contact-card p {
  color: var(--muted);
}

.hero-text {
  max-width: 680px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #09283b;
  background: linear-gradient(135deg, #ffd166, #63e7c8 58%, #8fdcff);
  box-shadow: 0 18px 34px rgba(65, 168, 255, 0.24);
}

.btn-ghost {
  color: #183d56;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(34, 68, 92, 0.1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.float-shape,
.mini-glyph,
.mini-card,
.mini-cloud {
  position: absolute;
  display: block;
  will-change: transform;
}

.float-shape {
  border-radius: 999px;
  filter: blur(0.2px);
  opacity: 0.55;
  animation: float 8s ease-in-out infinite;
}

.shape-one {
  width: 10rem;
  height: 10rem;
  left: 5%;
  top: 20%;
  background: rgba(255, 209, 102, 0.45);
}

.shape-two {
  width: 16rem;
  height: 16rem;
  right: -5rem;
  top: 12%;
  background: rgba(65, 168, 255, 0.18);
  animation-delay: -2s;
}

.shape-three {
  width: 9rem;
  height: 9rem;
  right: 24%;
  bottom: 7%;
  background: rgba(53, 215, 177, 0.2);
  animation-delay: -4s;
}

.mini-glyph {
  color: #0d7fa8;
  font-size: 2.1rem;
  font-weight: 900;
  animation: bob 6s ease-in-out infinite;
}

.glyph-one {
  left: 50%;
  top: 18%;
}

.glyph-two {
  left: 12%;
  bottom: 18%;
  color: #ff9b54;
  animation-delay: -2.4s;
}

.mini-card {
  width: 76px;
  height: 54px;
  right: 39%;
  top: 34%;
  border-radius: 16px;
  background: white;
  box-shadow: var(--soft-shadow);
  transform: rotate(-9deg);
  animation: bob 7s ease-in-out infinite;
}

.mini-card::before,
.mini-card::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  height: 5px;
  border-radius: 99px;
  background: #bfeaff;
}

.mini-card::before {
  top: 15px;
}

.mini-card::after {
  top: 28px;
  right: 28px;
  background: #ffd166;
}

.mini-cloud {
  width: 74px;
  height: 28px;
  right: 10%;
  bottom: 24%;
  border-radius: 999px;
  background: white;
  box-shadow: var(--soft-shadow);
  animation: drift 12s ease-in-out infinite;
}

.mini-cloud::before,
.mini-cloud::after {
  content: "";
  position: absolute;
  bottom: 12px;
  border-radius: 50%;
  background: white;
}

.mini-cloud::before {
  width: 32px;
  height: 32px;
  left: 12px;
}

.mini-cloud::after {
  width: 24px;
  height: 24px;
  right: 14px;
}

.phone-stage {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.phone {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 0.54;
  padding: 16px;
  border-radius: 42px;
  background: linear-gradient(145deg, #17384e, #071e31);
  box-shadow: 0 42px 90px rgba(20, 37, 54, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  animation: phoneFloat 8s ease-in-out infinite;
}

.phone-speaker {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 78px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
}

.phone-screen {
  height: 100%;
  padding: 38px 18px 18px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 12%, rgba(255, 255, 255, 0.78), transparent 8rem),
    linear-gradient(180deg, #eafdff, #f8fffb);
}

.status-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.status-row span {
  width: 50px;
  height: 10px;
  border-radius: 99px;
  background: rgba(20, 37, 54, 0.1);
}

.screen-card {
  min-height: 168px;
  display: grid;
  align-content: center;
  gap: 0.45rem;
  margin-bottom: 14px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 15px 34px rgba(36, 105, 145, 0.14);
}

.screen-card:nth-of-type(2),
.screen-card:nth-of-type(3) {
  min-height: 96px;
}

.screen-card strong {
  font-size: 1.2rem;
}

.screen-card small {
  color: var(--muted);
  font-weight: 700;
}

.screen-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-block;
}

.news-icon {
  background: linear-gradient(135deg, #41a8ff, #ffd166);
}

.math-icon {
  background: linear-gradient(135deg, #ffd166, #ff7aa8);
}

.weather-icon {
  background: linear-gradient(135deg, #8fdcff, #35d7b1);
}

.screen-stack {
  display: grid;
  gap: 10px;
}

.screen-stack span {
  height: 12px;
  border-radius: 99px;
  background: rgba(20, 37, 54, 0.08);
}

.orbit-dot {
  position: absolute;
  border-radius: 999px;
  box-shadow: var(--soft-shadow);
  animation: bob 7s ease-in-out infinite;
}

.dot-a {
  width: 72px;
  height: 72px;
  left: 4%;
  top: 16%;
  background: #ffd166;
}

.dot-b {
  width: 48px;
  height: 48px;
  right: 8%;
  bottom: 18%;
  background: #35d7b1;
  animation-delay: -3s;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.align-left {
  margin-inline: 0;
  text-align: left;
}

.app-feature-card,
.benefit,
.contact-card,
.legal-card,
.cosmos-panel {
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.app-showcase {
  display: grid;
  gap: clamp(1.4rem, 4vw, 2.6rem);
}

.app-feature-card {
  --card-accent: linear-gradient(135deg, #41a8ff, #ffd166);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3.2rem);
  align-items: center;
  min-height: 430px;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 32px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.app-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.95), transparent 14rem), var(--card-accent);
  opacity: 0.18;
}

.app-feature-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: var(--card-accent);
}

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

.app-feature-card.reverse .app-image-wrap {
  order: 2;
}

.app-feature-card.reverse .app-feature-content {
  order: 1;
}

.app-news {
  --card-accent: linear-gradient(135deg, #41a8ff, #ffd166);
}

.app-math {
  --card-accent: linear-gradient(135deg, #ffd166, #ff7aa8);
}

.app-weather {
  --card-accent: linear-gradient(135deg, #8fdcff, #35d7b1);
}

.app-pos {
  --card-accent: linear-gradient(135deg, #ff9b54, #41a8ff);
}

.app-image-wrap {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 1.8rem);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 209, 102, 0.26), transparent 9rem),
    radial-gradient(circle at 88% 80%, rgba(53, 215, 177, 0.22), transparent 12rem),
    rgba(255, 255, 255, 0.55);
}

.app-image-wrap img {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  max-height: 470px;
  object-fit: contain;
  border-radius: 22px;
  filter: drop-shadow(0 28px 34px rgba(20, 37, 54, 0.18));
  transition: transform 220ms ease;
}

.app-feature-card:hover .app-image-wrap img {
  transform: translateY(-6px) scale(1.015);
}

.app-orb {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: var(--card-accent);
  opacity: 0.34;
  filter: blur(0.2px);
  animation: bob 8s ease-in-out infinite;
}

.orb-one {
  width: 84px;
  height: 84px;
  left: 9%;
  top: 12%;
}

.orb-two {
  width: 54px;
  height: 54px;
  right: 12%;
  bottom: 13%;
  animation-delay: -3s;
}

.app-feature-content {
  max-width: 520px;
  padding: clamp(0.4rem, 2vw, 1rem);
}

.app-feature-content h3 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1.02;
}

.app-feature-content p:not(.category) {
  font-size: clamp(1rem, 1.7vw, 1.16rem);
}

.category {
  margin-bottom: 0.55rem;
  color: #147fae;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.4rem;
  padding-top: 1rem;
}

.chips span {
  padding: 0.42rem 0.62rem;
  border-radius: 999px;
  color: #24435a;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(34, 68, 92, 0.08);
  font-size: 0.82rem;
  font-weight: 750;
}

.text-link {
  width: fit-content;
  color: #0d6e9f;
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.benefits {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(234, 248, 255, 0.82));
}

.benefit-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.benefit {
  padding: 1.15rem;
  border-radius: 22px;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  display: inline-block;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--yellow), var(--mint));
}

.benefit-icon.idea {
  clip-path: polygon(50% 0, 78% 18%, 94% 48%, 78% 80%, 50% 100%, 22% 80%, 6% 48%, 22% 18%);
}

.benefit-icon.hand {
  border-radius: 18px 18px 24px 10px;
}

.benefit-icon.route {
  background: radial-gradient(circle at 20% 25%, #ff9b54 0 10px, transparent 11px), radial-gradient(circle at 78% 72%, #41a8ff 0 10px, transparent 11px), linear-gradient(135deg, #fff, #b4f6e8);
}

.benefit-icon.play {
  background: linear-gradient(135deg, #41a8ff, #ffd166);
  clip-path: polygon(24% 12%, 82% 50%, 24% 88%);
}

.cosmos-panel {
  position: relative;
  min-height: 470px;
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: 32px;
  overflow: hidden;
}

.planet-field {
  position: absolute;
  inset: 0;
}

.planet,
.orbit-line {
  position: absolute;
  display: block;
}

.planet {
  border-radius: 50%;
  box-shadow: var(--soft-shadow);
  animation: orbitBob 9s ease-in-out infinite;
}

.planet i {
  position: absolute;
  inset: 23%;
  border-radius: 40%;
  background: rgba(255, 255, 255, 0.74);
}

.planet-news {
  width: 112px;
  height: 112px;
  right: 18%;
  top: 22%;
  background: linear-gradient(135deg, #41a8ff, #ffd166);
}

.planet-math {
  width: 78px;
  height: 78px;
  left: 18%;
  bottom: 18%;
  background: linear-gradient(135deg, #ff7aa8, #ffd166);
  animation-delay: -2s;
}

.planet-weather {
  width: 138px;
  height: 138px;
  right: 31%;
  bottom: 13%;
  background: linear-gradient(135deg, #8fdcff, #35d7b1);
  animation-delay: -4s;
}

.planet-pos {
  width: 64px;
  height: 64px;
  left: 42%;
  top: 20%;
  background: linear-gradient(135deg, #ff9b54, #41a8ff);
  animation-delay: -5s;
}

.orbit-line {
  left: 18%;
  right: 12%;
  top: 34%;
  height: 220px;
  border: 1px dashed rgba(20, 37, 54, 0.13);
  border-radius: 50%;
  transform: rotate(-9deg);
}

.line-two {
  left: 10%;
  right: 20%;
  top: 22%;
  transform: rotate(19deg);
}

.contact-wrap {
  max-width: 980px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.35rem, 4vw, 2.6rem);
  border-radius: 32px;
}

.contact-card::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -54px;
  top: -76px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.52), rgba(53, 215, 177, 0.32));
}

.contact-copy {
  position: relative;
  z-index: 1;
}

.contact-options {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
}

.contact-tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 92px;
  padding: 1rem;
  border: 1px solid rgba(34, 68, 92, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(28, 73, 105, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-tile:hover {
  transform: translateY(-3px);
  background: white;
  box-shadow: var(--soft-shadow);
}

.contact-tile strong,
.contact-tile small {
  display: block;
}

.contact-tile strong {
  font-size: 1.02rem;
}

.contact-tile small {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.contact-icon {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffd166, #8fdcff);
}

.mail-icon::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 17px;
  width: 26px;
  height: 18px;
  border: 3px solid #10283a;
  border-radius: 5px;
}

.mail-icon::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-left: 3px solid #10283a;
  border-bottom: 3px solid #10283a;
  transform: rotate(-45deg);
}

.phone-icon::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 12px;
  width: 15px;
  height: 28px;
  border: 3px solid #10283a;
  border-radius: 9px;
  transform: rotate(-24deg);
}

.phone-icon::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10283a;
}

.site-footer {
  padding: 36px 0;
  background: #10283a;
  color: white;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  color: white;
}

.footer-grid p {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 750;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.footer-icons {
  display: flex;
  gap: 0.55rem;
}

.footer-icons span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #10283a;
  background: linear-gradient(135deg, #ffd166, #8fdcff);
  font-weight: 950;
}

.legal-main {
  min-height: 70vh;
}

.legal-hero {
  padding-bottom: 42px;
}

.legal-card {
  padding: clamp(1.3rem, 4vw, 2.4rem);
  border-radius: var(--radius);
}

.legal-card h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card h3 {
  margin: 1.4rem 0 0.55rem;
  font-size: 1.05rem;
}

.legal-card ul {
  margin: 0 0 1.3rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.legal-card li + li {
  margin-top: 0.35rem;
}

.legal-card a {
  color: #0d6e9f;
  font-weight: 850;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -22px, 0) scale(1.04);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(8px, -18px, 0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-34px, -12px, 0);
  }
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(2deg);
  }
  50% {
    transform: translate3d(0, -18px, 0) rotate(-1deg);
  }
}

@keyframes orbitBob {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(18px, -20px, 0) rotate(7deg);
  }
}

@media (max-width: 860px) {
  .site-header {
    top: 8px;
  }

  .nav {
    border-radius: 28px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    display: grid;
    gap: 0.3rem;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--soft-shadow);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
  }

  .hero-grid,
  .benefit-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .app-feature-card,
  .app-feature-card.reverse {
    grid-template-columns: 1fr;
  }

  .app-feature-card.reverse .app-image-wrap,
  .app-feature-card.reverse .app-feature-content {
    order: initial;
  }

  .hero {
    min-height: auto;
  }

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

  .section-pad {
    padding: 72px 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .benefit-list {
    grid-template-columns: 1fr;
  }

  .app-feature-card {
    min-height: auto;
    border-radius: 26px;
  }

  .app-image-wrap {
    min-height: 260px;
    padding: 0.8rem;
  }

  .app-image-wrap img {
    max-height: 350px;
  }

  .hero-actions,
  .footer-grid {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .app-store-link {
    width: 100%;
  }

  .contact-card {
    border-radius: 26px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .cosmos-panel {
    min-height: 420px;
  }

  .planet-news {
    right: 10%;
  }

  .planet-weather {
    right: 18%;
    width: 112px;
    height: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
