:root {
  --void: #05070c;
  --ink: #0b0f18;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #f4f6fa;
  --muted: #9aa3b5;
  --signal: #e53e3e;
  --signal-soft: rgba(229, 62, 62, 0.45);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  color: var(--text);
  background: var(--void);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; }
a:focus-visible,
.store-btn:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.fx-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.fx-orb {
  pointer-events: none;
  position: fixed;
  width: 55vw;
  height: 55vw;
  top: -12%;
  right: -10%;
  z-index: 0;
  background: radial-gradient(circle, rgba(229,62,62,0.22), transparent 68%);
  filter: blur(20px);
  animation: orbFloat 12s ease-in-out infinite alternate;
}

@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4%, 6%, 0) scale(1.08); }
}

.top,
main,
footer {
  position: relative;
  z-index: 1;
}

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.1rem, 3vw, 2.5rem);
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--stroke);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark img { border-radius: 9px; }
.brand-mark em { font-style: normal; color: var(--signal); }

.top-nav {
  display: flex;
  gap: 1.35rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}
.top-nav a { text-decoration: none; }
.top-nav a:hover { color: var(--text); }

.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,7,12,0.92) 0%, rgba(5,7,12,0.72) 42%, rgba(5,7,12,0.35) 100%),
    linear-gradient(180deg, rgba(5,7,12,0.35) 0%, rgba(5,7,12,0.15) 40%, rgba(5,7,12,0.88) 100%);
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.1); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 4rem) clamp(1.1rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-copy {
  max-width: 34rem;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

.brand-hero {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.7rem, 6.5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--signal);
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(229, 62, 62, 0.25);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
}

.lede {
  color: var(--muted);
  font-weight: 300;
  font-size: 1.05rem;
  margin-bottom: 1.7rem;
  max-width: 32rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.78rem 1.1rem;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.store-btn small {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.7;
  line-height: 1.15;
}

.store-btn strong {
  display: block;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.store-btn.apple {
  background: #fff;
  color: #0a0a0a;
}

.store-btn.google {
  background: var(--panel-strong);
  color: var(--text);
  border-color: var(--stroke);
  backdrop-filter: blur(10px);
}

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

.store-ico {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16.37 12.29c-.03-2.04 1.67-3.02 1.75-3.07-.95-1.39-2.44-1.58-2.97-1.6-1.26-.13-2.46.75-3.1.75-.64 0-1.63-.73-2.68-.71-1.38.02-2.65.8-3.36 2.04-1.43 2.48-.37 6.15 1.03 8.17.68.99 1.5 2.1 2.57 2.06 1.03-.04 1.42-.67 2.67-.67s1.6.67 2.69.65c1.11-.02 1.82-1.01 2.5-2.01.78-1.14 1.1-2.24 1.12-2.3-.02-.01-2.15-.83-2.18-3.28zM14.5 5.8c.57-.69.95-1.65.85-2.6-.82.03-1.81.55-2.4 1.24-.53.61-.99 1.59-.87 2.52.92.07 1.86-.47 2.42-1.16z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.store-ico.play {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3.6 2.3c-.4.2-.6.6-.6 1.1v17.2c0 .5.2.9.6 1.1l9.5-9.7L3.6 2.3zm11.3 6.5L7.2 4.1l7.7 4.7zm.9 1.6 2.5 1.4c.9.5.9 1.4 0 1.9l-2.5 1.4-2.1-2.1 2.1-2.6zM7.2 19.9l7.7-4.4-1.2-.9-6.5 5.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Devices — interactive card deck */
.hero-device {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(28px);
  animation: rise 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}

.card-deck {
  position: relative;
  width: min(100%, 268px);
  aspect-ratio: 9 / 19.2;
  perspective: 900px;
  touch-action: pan-y;
  cursor: grab;
  margin-inline: 2.5rem;
  user-select: none;
}

.card-deck.is-dragging {
  cursor: grabbing;
  touch-action: none;
}

.card-deck.is-dragging .deck-card,
.card-deck.is-dragging.is-idle .deck-card {
  animation: none !important;
  transition: none !important;
}

.deck-card {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 22px 50px rgba(0, 0, 0, 0.45);
  transform-origin: 50% 100%;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    filter 0.45s ease,
    opacity 0.45s ease;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

.deck-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Fan positions by depth (0 = front) */
.deck-card[data-depth="0"] {
  z-index: 5;
  transform: translate3d(0, 0, 0) rotate(0deg);
  filter: none;
  opacity: 1;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 28px 70px rgba(0, 0, 0, 0.55);
}

.deck-card[data-depth="1"] {
  z-index: 4;
  transform: translate3d(18px, -10px, -40px) rotate(7deg);
  filter: brightness(0.92);
  opacity: 0.96;
}

.deck-card[data-depth="2"] {
  z-index: 3;
  transform: translate3d(-16px, -18px, -80px) rotate(-8deg);
  filter: brightness(0.86);
  opacity: 0.92;
}

.deck-card[data-depth="3"] {
  z-index: 2;
  transform: translate3d(28px, -28px, -120px) rotate(12deg);
  filter: brightness(0.8);
  opacity: 0.86;
}

.deck-card[data-depth="4"] {
  z-index: 1;
  transform: translate3d(-24px, -36px, -160px) rotate(-11deg);
  filter: brightness(0.74);
  opacity: 0.8;
}

/* Idle sway — feels like loose cards */
.card-deck.is-idle .deck-card[data-depth="1"] {
  animation: cardSway1 5.5s ease-in-out infinite;
}
.card-deck.is-idle .deck-card[data-depth="2"] {
  animation: cardSway2 6.2s ease-in-out infinite 0.3s;
}
.card-deck.is-idle .deck-card[data-depth="3"] {
  animation: cardSway3 7s ease-in-out infinite 0.15s;
}
.card-deck.is-idle .deck-card[data-depth="4"] {
  animation: cardSway4 6.6s ease-in-out infinite 0.45s;
}

@keyframes cardSway1 {
  0%, 100% { transform: translate3d(18px, -10px, -40px) rotate(7deg); }
  50% { transform: translate3d(22px, -14px, -40px) rotate(9deg); }
}
@keyframes cardSway2 {
  0%, 100% { transform: translate3d(-16px, -18px, -80px) rotate(-8deg); }
  50% { transform: translate3d(-20px, -22px, -80px) rotate(-10deg); }
}
@keyframes cardSway3 {
  0%, 100% { transform: translate3d(28px, -28px, -120px) rotate(12deg); }
  50% { transform: translate3d(32px, -32px, -120px) rotate(14deg); }
}
@keyframes cardSway4 {
  0%, 100% { transform: translate3d(-24px, -36px, -160px) rotate(-11deg); }
  50% { transform: translate3d(-28px, -40px, -160px) rotate(-13deg); }
}

/* Hover: fan opens wider */
.card-deck:hover .deck-card[data-depth="1"],
.card-deck:focus-within .deck-card[data-depth="1"] {
  animation: none;
  transform: translate3d(36px, -14px, -40px) rotate(11deg);
}
.card-deck:hover .deck-card[data-depth="2"],
.card-deck:focus-within .deck-card[data-depth="2"] {
  animation: none;
  transform: translate3d(-34px, -24px, -80px) rotate(-13deg);
}
.card-deck:hover .deck-card[data-depth="3"],
.card-deck:focus-within .deck-card[data-depth="3"] {
  animation: none;
  transform: translate3d(52px, -36px, -120px) rotate(17deg);
}
.card-deck:hover .deck-card[data-depth="4"],
.card-deck:focus-within .deck-card[data-depth="4"] {
  animation: none;
  transform: translate3d(-46px, -46px, -160px) rotate(-16deg);
}

.deck-card:hover:not(.is-front),
.deck-card:focus-visible:not(.is-front) {
  filter: brightness(1) !important;
  opacity: 1 !important;
  outline: none;
  box-shadow:
    0 0 0 2px rgba(229, 62, 62, 0.45),
    0 24px 60px rgba(0, 0, 0, 0.5);
}

.deck-card.is-front:focus-visible {
  outline: 2px solid rgba(229, 62, 62, 0.65);
  outline-offset: 3px;
}

.deck-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.01em;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.1rem, 3vw, 2.5rem);
}

.split-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  min-height: 320px;
}

.split-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.glass-chip {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  background: rgba(8, 10, 16, 0.62);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.glass-chip span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.glass-chip strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--signal);
}

.glass-chip em {
  font-style: normal;
  color: var(--signal);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-left: 0.15rem;
}

.split-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.split-copy > p {
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 1.25rem;
  max-width: 38ch;
}

.points {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.points li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text);
  font-weight: 450;
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal-soft);
}

.audience {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 3vw, 2.5rem) clamp(3.5rem, 7vw, 5rem);
}

.audience h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
  max-width: 18ch;
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.glass {
  background: var(--panel);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(18px);
  border-radius: 20px;
}

.audience .glass {
  padding: 1.4rem 1.35rem;
}

.audience h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
  color: var(--signal);
}

.audience p {
  color: var(--muted);
  font-weight: 300;
  max-width: 36ch;
}

.closing {
  padding: 0 clamp(1.1rem, 3vw, 2.5rem) clamp(3.5rem, 7vw, 5rem);
}

.closing-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem);
  text-align: left;
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(229,62,62,0.18), transparent 55%),
    var(--panel);
}

.brand-mini {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--signal);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.035em;
  margin-bottom: 0.4rem;
}

.closing-panel > p {
  color: var(--muted);
  margin-bottom: 1.35rem;
}

.foot {
  border-top: 1px solid var(--stroke);
  padding: 1.8rem clamp(1.1rem, 3vw, 2.5rem) 2.4rem;
  display: grid;
  gap: 0.7rem;
  color: var(--muted);
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 650;
}

.foot-brand img { border-radius: 7px; }

.foot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  font-size: 0.9rem;
}

.foot-meta a { color: var(--muted); text-decoration: none; }
.foot-meta a:hover { color: var(--text); }
.foot-copy { font-size: 0.8rem; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .hero-inner,
  .split,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .hero { min-height: auto; }

  .hero-inner {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .hero-device { order: -1; }
  .card-deck { width: min(100%, 210px); margin-inline: 1.25rem; }
  .deck-hint { font-size: 0.72rem; }

  .hero-veil {
    background:
      linear-gradient(180deg, rgba(5,7,12,0.55) 0%, rgba(5,7,12,0.55) 35%, rgba(5,7,12,0.94) 100%);
  }
}

@media (max-width: 560px) {
  .top-nav { display: none; }
  .store-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-orb,
  .hero-bg,
  .hero-copy,
  .hero-device {
    animation: none !important;
  }
  .hero-copy,
  .hero-device {
    opacity: 1;
    transform: none;
  }
  .card-deck.is-idle .deck-card,
  .card-deck:hover .deck-card,
  .card-deck:focus-within .deck-card {
    animation: none !important;
  }
  .deck-card {
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}
