:root {
  --bg: #081815;
  --bg-elevated: #0d2420;
  --surface: rgba(13, 36, 32, 0.76);
  --surface-strong: rgba(20, 49, 43, 0.92);
  --text: #f4faf7;
  --text-muted: #b9d0c8;
  --border: rgba(164, 219, 200, 0.25);
  --accent: #ff9d52;
  --accent-strong: #ff7e2d;
  --accent-mint: #58dbc8;
  --xp-gradient: linear-gradient(94deg, #ff3ea6 0%, #a962ff 24%, #2f77ff 49%, #1eb7e9 73%, #4ad980 100%);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: min(1160px, 92vw);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 700px at 12% -10%, rgba(88, 219, 200, 0.16), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(255, 157, 82, 0.18), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: clamp(3.5rem, 5vw, 5.5rem) 0;
}

.ambient-gradient {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: -2;
}

.ambient-gradient-a {
  width: 28rem;
  height: 28rem;
  top: 8%;
  right: -8rem;
  background: rgba(255, 126, 45, 0.22);
}

.ambient-gradient-b {
  width: 32rem;
  height: 32rem;
  bottom: -9rem;
  left: -8rem;
  background: rgba(88, 219, 200, 0.2);
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 0.4px, transparent 0.4px);
  background-size: 3px 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(6, 15, 13, 0.5);
  border-bottom: 1px solid rgba(188, 236, 219, 0.12);
}

.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.primary-nav {
  margin-left: auto;
  margin-right: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
}

.primary-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
  transition: color 180ms ease;
}

.primary-nav a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.8rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.93rem;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

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

.button-small {
  min-height: 2.35rem;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.button-xp-hover {
  position: relative;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
}

.button-xp-hover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--xp-gradient);
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: 0;
}

.button-xp-hover > * {
  position: relative;
  z-index: 1;
}

.button-xp-hover:hover::before,
.button-xp-hover:focus-visible::before {
  opacity: 1;
}

.button-download {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.button-download .apple-icon,
.button-download span {
  position: relative;
  z-index: 1;
}

.button-download .apple-icon {
  width: 0.98rem;
  height: 0.98rem;
  display: block;
  fill: currentColor;
}

.button-download:hover,
.button-download:focus-visible {
  transform: translateY(-2px) scale(1.08);
  color: #061412;
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 14px 30px rgba(33, 129, 243, 0.24), 0 8px 22px rgba(255, 62, 166, 0.2);
}

.button-primary.button-xp-hover:hover,
.button-primary.button-xp-hover:focus-visible {
  transform: translateY(-2px) scale(1.04);
  color: #061412;
  box-shadow: 0 16px 34px rgba(31, 142, 233, 0.26), 0 10px 24px rgba(255, 62, 166, 0.2);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #1f1003;
  box-shadow: 0 14px 28px rgba(255, 126, 45, 0.35);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border);
  color: var(--text);
}

.hero {
  padding-top: clamp(4rem, 7vw, 7rem);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: clamp(1.5rem, 4.5vw, 4.5rem);
  align-items: center;
}

.hero-copy h1 {
  margin: 0.4rem 0 1rem;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-subtext {
  margin: 0;
  max-width: 58ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.eyebrow {
  margin: 0;
  color: var(--accent-mint);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-actions {
  margin-top: 1.8rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.bullet-row {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.bullet-row span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.79rem;
  font-weight: 700;
}

.phone-stack {
  position: relative;
  min-height: clamp(26rem, 55vw, 35rem);
}

.device-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: 2.25rem;
  padding: clamp(0.12rem, 0.31vw, 0.19rem);
  background: linear-gradient(145deg, #565c67 0%, #2b3039 20%, #101319 48%, #222832 80%, #555b66 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 0 0 2px rgba(0, 0, 0, 0.25);
}

.device-frame::before {
  content: "";
  position: absolute;
  left: 50%;
  top: clamp(0.19rem, 0.46vw, 0.28rem);
  transform: translateX(-50%);
  width: clamp(2rem, 22%, 3.1rem);
  height: clamp(0.12rem, 0.28vw, 0.16rem);
  border-radius: 999px;
  background: linear-gradient(180deg, #07090d, #12161e);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.9;
  z-index: 3;
}

.device-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 36%);
  opacity: 0.2;
  z-index: 2;
}

.device-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 0.462;
  object-fit: cover;
  border-radius: 2.08rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.screen-card {
  position: absolute;
  margin: 0;
  width: clamp(10.5rem, 24vw, 15rem);
  --offset-x: 0%;
  --base-rotate: 0deg;
  --hover-rotate: 0deg;
  --hover-shift-y: -0.42rem;
  --hover-scale: 1.04;
  --extra-rotate: 0deg;
  --lift-y: 0px;
  --scale: 1;
  --rx: 0deg;
  --ry: 0deg;
  transform: translateX(var(--offset-x)) translateY(var(--lift-y))
    rotateZ(calc(var(--base-rotate) + var(--extra-rotate)))
    perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--scale));
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  opacity: 0.96;
  filter: saturate(0.94) brightness(0.95);
  box-shadow: var(--shadow);
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 320ms ease, opacity 220ms ease, filter 220ms ease;
}

.screen-back {
  top: 16%;
  left: 5%;
  right: auto;
  z-index: 1;
  --base-rotate: -12deg;
  --hover-rotate: -1deg;
}

.screen-mid {
  top: 16%;
  right: 5%;
  left: auto;
  z-index: 2;
  --base-rotate: 12deg;
  --hover-rotate: 1deg;
}

.screen-front {
  top: 6%;
  left: 50%;
  z-index: 3;
  --offset-x: -50%;
  --base-rotate: 0deg;
  --hover-shift-y: -0.55rem;
  --hover-scale: 1.05;
}

.phone-stack:hover .screen-card:not(:hover) {
  opacity: 0.84;
  filter: saturate(0.8) brightness(0.84);
}

.screen-card:hover {
  z-index: 8;
  --lift-y: var(--hover-shift-y);
  --extra-rotate: var(--hover-rotate);
  --scale: var(--hover-scale);
  opacity: 1;
  filter: saturate(1) brightness(1);
}

.phone-stack:hover .screen-card:hover {
  opacity: 1;
  filter: saturate(1) brightness(1);
}

.screen-front:hover {
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
}

.vibe-section {
  padding-top: 0.8rem;
}

.vibe-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1rem, 3.2vw, 2.3rem);
  align-items: center;
}

.vibe-copy p {
  margin: 0;
  color: var(--text-muted);
  max-width: 62ch;
}

.vibe-title {
  margin: 0.45rem 0 0.75rem;
  font-size: clamp(1.5rem, 2.7vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-family: "Sora", "Avenir Next", sans-serif;
}

.vibe-chip-row {
  margin-top: 1.05rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
}

.vibe-chip-row span {
  padding: 0.35rem 0.74rem;
  border-radius: 999px;
  border: 1px solid rgba(188, 236, 219, 0.26);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.vibe-art {
  display: flex;
  justify-content: center;
}

.mascot-art {
  display: block;
  width: min(31.5rem, 100%);
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.42));
}

.section-header {
  max-width: 70ch;
  margin-bottom: 1.8rem;
}

.section-header h2 {
  margin: 0.6rem 0 0;
  font-size: clamp(1.6rem, 3.1vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-family: "Sora", "Avenir Next", sans-serif;
  text-wrap: balance;
}

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

.feature-card {
  position: relative;
  min-height: 15rem;
  padding: 1.3rem 1.2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(189, 237, 221, 0.2);
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -25% -55% auto;
  width: 9rem;
  height: 9rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(88, 219, 200, 0.23), transparent 70%);
}

.feature-kicker {
  margin: 0;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-weight: 700;
  color: rgba(255, 157, 82, 0.95);
}

.feature-card h3 {
  margin: 0.45rem 0 0.65rem;
  font-size: 1.22rem;
  font-family: "Sora", "Avenir Next", sans-serif;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.flow-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: start;
}

.flow-copy h2 {
  margin: 0.55rem 0 0.9rem;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.13;
  letter-spacing: -0.02em;
  font-family: "Sora", "Avenir Next", sans-serif;
}

.flow-copy p {
  margin: 0 0 1.4rem;
  color: var(--text-muted);
  max-width: 60ch;
}

.flow-steps {
  display: grid;
  gap: 0.95rem;
}

.step {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(188, 236, 219, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.step span {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-mint);
  font-weight: 800;
}

.step h3 {
  margin: 0;
  font-size: 1.15rem;
  font-family: "Sora", "Avenir Next", sans-serif;
}

.step p {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
}

.showcase-strip {
  width: min(1320px, 95vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.95rem;
}

.showcase-card {
  margin: 0;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.showcase-card.tilt-phone {
  --rx: 0deg;
  --ry: 0deg;
  --scale: 1;
  transform-style: preserve-3d;
  will-change: transform;
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--scale));
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.showcase-card.tilt-phone:hover {
  --scale: 1.06;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  z-index: 3;
}

.showcase-card.tilt-phone img {
  transform: translateZ(20px);
  transition: transform 220ms ease;
}

.showcase-card.tilt-phone:hover img {
  transform: translateZ(28px);
}

.premium-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 1rem;
}

.premium-copy,
.premium-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(188, 236, 219, 0.2);
  background: linear-gradient(145deg, var(--surface), rgba(15, 39, 34, 0.65));
  padding: clamp(1.4rem, 3vw, 2rem);
}

.premium-copy h2 {
  margin: 0.55rem 0 0.8rem;
  font-size: clamp(1.55rem, 2.8vw, 2.55rem);
  font-family: "Sora", "Avenir Next", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.13;
}

.premium-copy p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 56ch;
}

.premium-note {
  display: inline-flex;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
}

.premium-card h3 {
  margin: 0 0 0.9rem;
  font-family: "Sora", "Avenir Next", sans-serif;
}

.premium-card ul {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.premium-card li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.68rem;
  color: var(--text-muted);
}

.premium-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48rem;
  width: 0.53rem;
  height: 0.53rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.faq-layout {
  display: grid;
  gap: 1.1rem;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(188, 236, 219, 0.2);
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem 1rem 1.1rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-family: "Sora", "Avenir Next", sans-serif;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
}

.site-footer {
  padding: 1.8rem 0 2.2rem;
  border-top: 1px solid rgba(188, 236, 219, 0.18);
  background: rgba(6, 17, 15, 0.6);
}

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

.footer-shell p {
  margin: 0;
  color: rgba(185, 208, 200, 0.85);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
  transition-delay: var(--delay, 0s);
}

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

@media (max-width: 1050px) {
  .hero-layout,
  .flow-layout,
  .premium-layout,
  .vibe-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 35rem;
    margin: 0 auto;
  }

  .showcase-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .nav-shell {
    flex-wrap: wrap;
    padding: 0.8rem 0;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    min-height: 2.25rem;
    padding: 0.35rem 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(188, 236, 219, 0.25);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
  }

  .primary-nav {
    width: 100%;
    order: 4;
    margin: 0;
    padding-top: 0.35rem;
    display: none;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .primary-nav.open {
    display: flex;
  }

  .button-small {
    display: none;
  }

  .showcase-strip {
    width: var(--container);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .feature-grid,
  .showcase-strip {
    grid-template-columns: 1fr;
  }

  .screen-card {
    width: min(12.5rem, 45vw);
  }

  .screen-back {
    left: 2%;
    top: 20%;
    right: auto;
  }

  .screen-mid {
    right: 2%;
    top: 20%;
    left: auto;
  }

  .screen-front {
    left: 50%;
    top: 9%;
  }

  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

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

  .button,
  .button:hover {
    transition: none;
    transform: none;
  }

  .screen-card,
  .phone-stack:hover .screen-card,
  .screen-card:hover,
  .showcase-card.tilt-phone,
  .showcase-card.tilt-phone:hover,
  .showcase-card.tilt-phone img,
  .showcase-card.tilt-phone:hover img {
    transition: none;
  }

  .screen-card {
    --rx: 0deg;
    --ry: 0deg;
    --lift-y: 0px;
    --scale: 1;
    --extra-rotate: 0deg;
    opacity: 1;
    filter: none;
  }

  .showcase-card.tilt-phone,
  .showcase-card.tilt-phone:hover,
  .showcase-card.tilt-phone img,
  .showcase-card.tilt-phone:hover img {
    transform: none;
  }
}
