/* Orchive — promotional site */

:root {
  --coral: #ff5a36;
  --coral-deep: #e8431f;
  --purple: #7c3aed;
  --purple-deep: #5b21b6;
  --cyan: #22d3ee;
  --ink: #1c1412;
  --ink-soft: #4a3a35;
  --muted: #7a6a64;
  --cream: #fff7f3;
  --cream-deep: #f3e8e1;
  --paper: #fffcfa;
  --line: rgba(28, 20, 18, 0.08);
  --radius: 28px;
  --radius-sm: 16px;
  --shadow-phone: 0 40px 80px rgba(28, 20, 18, 0.18), 0 12px 24px rgba(28, 20, 18, 0.08);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 90, 54, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(124, 58, 237, 0.2), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(34, 211, 238, 0.08), transparent 55%),
    linear-gradient(180deg, #fff9f6 0%, var(--cream) 40%, #f8efe9 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(255, 247, 243, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 247, 243, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coral), var(--purple));
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(255, 90, 54, 0.25);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.28);
}

@media (max-width: 640px) {
  .nav-hide-sm {
    display: none;
  }
}

/* Layout */
.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.85rem;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(3.2rem, 9vw, 5.75rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.lede {
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 28ch;
  font-weight: 500;
}

/* Store badges */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1.15rem 0.65rem 0.9rem;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  min-width: 168px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.store-badge:hover {
  transform: translateY(-2px);
  background: #2a201c;
}

.store-badge svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-badge .label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-badge .label small {
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.75;
}

.store-badge .label strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.store-badge.play {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(28, 20, 18, 0.06);
}

.store-badge.play:hover {
  background: var(--paper);
}

/* Hero */
.hero {
  min-height: min(92vh, 920px);
  display: grid;
  align-items: end;
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero .lede {
    margin-inline: auto;
  }

  .hero .store-row {
    justify-content: center;
  }
}

.hero-copy .brand-word {
  background: linear-gradient(120deg, var(--coral) 10%, var(--purple) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.hero-glow {
  position: absolute;
  width: min(100%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 54, 0.35), rgba(124, 58, 237, 0.2) 45%, transparent 70%);
  filter: blur(8px);
  animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.hero-phone {
  position: relative;
  z-index: 1;
  width: min(280px, 68vw);
  animation: float-y 5.5s ease-in-out infinite;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.deco {
  position: absolute;
  width: clamp(72px, 14vw, 110px);
  filter: drop-shadow(0 16px 28px rgba(28, 20, 18, 0.15));
  z-index: 2;
  pointer-events: none;
  animation: float-y 4.8s ease-in-out infinite;
}

.deco-camera {
  top: 8%;
  left: 2%;
  animation-delay: -1s;
}

.deco-bell {
  bottom: 12%;
  right: 0;
  animation-delay: -2.2s;
  width: clamp(64px, 12vw, 96px);
}

@media (max-width: 900px) {
  .deco {
    display: none;
  }
}

/* Phone frame */
.phone {
  position: relative;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(145deg, #2a2422, #1a1513 40%, #3a2e4a);
  box-shadow: var(--shadow-phone);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--coral), var(--purple), var(--cyan));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: #1c1412;
  aspect-ratio: 9 / 19.5;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Scroll runway — items enlarge as they approach center */
.runway {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.runway-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.runway-head p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin: 0.85rem 0 0;
}

.runway-track {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 10vw, 7rem);
}

.runway-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  will-change: transform, opacity, filter;
  transform: scale(0.88);
  opacity: 0.45;
  filter: blur(1.5px);
  transition: none;
}

.runway-item:nth-child(even) .runway-media {
  order: 2;
}

.runway-item:nth-child(even) .runway-copy {
  order: 1;
}

.runway-item.is-focus {
  /* JS drives precise scale; this class is a fallback cue */
}

.runway-media {
  display: flex;
  justify-content: center;
}

.runway-media .phone {
  width: min(260px, 72vw);
}

.runway-copy {
  max-width: 28rem;
}

.runway-copy p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.runway-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--purple));
  margin-bottom: 0.75rem;
}

@media (max-width: 800px) {
  .runway-item,
  .runway-item:nth-child(even) {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .runway-item:nth-child(even) .runway-media,
  .runway-item:nth-child(even) .runway-copy {
    order: unset;
  }

  .runway-copy {
    margin-inline: auto;
  }
}

/* Feature strip */
.features {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature {
  padding: 1.5rem 0.25rem;
  will-change: transform, opacity;
  transform: scale(0.92);
  opacity: 0.5;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 10px 18px rgba(28, 20, 18, 0.12));
}

.feature h3 {
  margin-bottom: 0.4rem;
}

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

@media (max-width: 800px) {
  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 24rem;
    margin-inline: auto;
  }
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-panel {
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(125deg, var(--coral) 0%, #c44a8a 45%, var(--purple) 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.25), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(34, 211, 238, 0.2), transparent 35%);
  pointer-events: none;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  max-width: 16ch;
  margin-inline: auto;
}

.cta-panel p {
  margin: 0.85rem auto 0;
  max-width: 36ch;
  opacity: 0.92;
  font-weight: 500;
}

.cta-panel .store-row {
  justify-content: center;
}

.cta-panel .store-badge {
  background: #fff;
  color: var(--ink);
}

.cta-panel .store-badge.play {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-panel .store-badge.play:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Footer */
.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}

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

.footer-brand p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 28ch;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 6vw, 4rem);
}

.footer-cols h4 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-cols a:hover {
  color: var(--coral-deep);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Legal pages */
.legal-page {
  padding: clamp(2.5rem, 6vw, 4rem) 0 4rem;
}

.legal-page .wrap {
  max-width: 720px;
}

.legal-page h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 0.35rem;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.65rem;
}

.legal-page p,
.legal-page li {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.legal-page ul {
  padding-left: 1.2rem;
}

.legal-page li {
  margin-bottom: 0.4rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--purple);
  margin-bottom: 1.5rem;
}

.legal-back:hover {
  color: var(--coral-deep);
}

.legal-page a[href^="mailto"],
.legal-page a[href$=".html"] {
  color: var(--purple);
  font-weight: 600;
}

.legal-page a[href^="mailto"]:hover,
.legal-page a[href$=".html"]:hover {
  color: var(--coral-deep);
}

.support-card {
  margin: 2rem 0;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(255, 90, 54, 0.08),
    rgba(124, 58, 237, 0.1)
  );
  border: 1px solid var(--line);
  text-align: center;
}

.support-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.support-email {
  display: inline-block;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink) !important;
  word-break: break-all;
}

.support-email:hover {
  color: var(--purple) !important;
}

.support-btn {
  display: inline-flex;
  margin-top: 1.15rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff !important;
  background: linear-gradient(135deg, var(--coral), var(--purple));
  box-shadow: 0 8px 20px rgba(255, 90, 54, 0.22);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.support-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.28);
  color: #fff !important;
}

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

  .hero-phone,
  .deco,
  .hero-glow {
    animation: none !important;
  }

  .runway-item,
  .feature {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}
