/* ==========================================================================
   Flixxy Inc — flixxyapps.com
   ========================================================================== */

:root {
  --bg: #07071a;
  --bg-2: #0c0c24;
  --bg-3: #12122f;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f5f3ff;
  --muted: #a9a6c8;
  --dim: #6f6c93;

  --coral: #ff6a4d;
  --magenta: #ff3d8b;
  --violet: #7c5cff;
  --teal: #22d3c5;
  --gold: #f5c26b;

  --grad: linear-gradient(115deg, var(--coral) 0%, var(--magenta) 45%, var(--violet) 100%);
  --grad-soft: linear-gradient(115deg, rgba(255, 106, 77, .18), rgba(255, 61, 139, .14) 45%, rgba(124, 92, 255, .18));

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --radius: 22px;
  --radius-lg: 32px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--magenta); color: #fff; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 10px;
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Subtle grain over everything for a filmic finish */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll progress bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  height: 2px;
  width: 100%;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--grad);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section { padding-block: clamp(90px, 12vw, 160px); position: relative; }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 80px); }
.section-head h2 { font-size: clamp(38px, 6vw, 72px); margin-top: 18px; }
.section-head p { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); margin: 22px 0 0; max-width: 620px; }

/* ---------- Buttons ---------- */

.btn {
  --pad-x: 26px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 var(--pad-x);
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, border-color .35s;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 40px -10px rgba(255, 61, 139, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(255, 61, 139, .9); }

.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .09); transform: translateY(-2px); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 7, 26, .72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 6px 20px -6px rgba(255, 61, 139, .7); }
.brand small { font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--dim); letter-spacing: .08em; margin-left: -4px; align-self: flex-end; margin-bottom: 4px; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color .25s, background .25s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav .btn { height: 44px; --pad-x: 20px; font-size: 15px; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .35s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 85;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  background: rgba(7, 7, 26, .96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -.02em;
  padding: 6px 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s, transform .5s var(--ease);
}
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; font-family: var(--font-body); font-size: 16px; }
.nav-open .mobile-menu { opacity: 1; visibility: visible; }
.nav-open .mobile-menu a { opacity: 1; transform: none; }
.nav-open .mobile-menu a:nth-child(2) { transition-delay: .04s; }
.nav-open .mobile-menu a:nth-child(3) { transition-delay: .08s; }
.nav-open .mobile-menu a:nth-child(4) { transition-delay: .12s; }
.nav-open .mobile-menu a:nth-child(5) { transition-delay: .16s; }
.nav-open .mobile-menu a:nth-child(6) { transition-delay: .2s; }
.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + 40px) 120px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.hero-media video { opacity: 0; transition: opacity 1.2s ease; }
.hero-media video.is-ready { opacity: 1; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 7, 26, .92) 0%, rgba(7, 7, 26, .55) 45%, rgba(7, 7, 26, .1) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}

.hero .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 14px;
  color: var(--muted);
}
.hero-badge b {
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.hero h1 {
  font-size: clamp(44px, 6.2vw, 86px);
  margin: 26px 0 0;
  letter-spacing: -.04em;
  line-height: .98;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }

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

.hero-lede {
  font-size: clamp(18px, 1.8vw, 21px);
  color: var(--muted);
  max-width: 560px;
  margin: 28px 0 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp 1s var(--ease) forwards; }
.d1 { animation-delay: .45s; }
.d2 { animation-delay: .6s; }
.d3 { animation-delay: .75s; }
.d4 { animation-delay: .9s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Floating app icon constellation */
.orbit {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 480px;
  justify-self: end;
}
.orbit-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .14);
  animation: spin 60s linear infinite;
}
.orbit-ring.r2 { inset: 24%; border-style: solid; border-color: rgba(255, 255, 255, .06); animation-duration: 90s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28%;
  translate: -50% -50%;
  border-radius: 26%;
  box-shadow: 0 30px 80px -20px rgba(255, 61, 139, .8), 0 0 0 1px rgba(255, 255, 255, .1);
  animation: bob 7s ease-in-out infinite;
}

.float-icon {
  position: absolute;
  width: 23%;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform .8s var(--ease);
}
.float-icon img {
  width: 100%;
  border-radius: 23%;
  box-shadow: 0 24px 50px -18px var(--glow, rgba(0, 0, 0, .8)), 0 0 0 1px rgba(255, 255, 255, .12);
  animation: bob 6s ease-in-out infinite;
}
.float-icon.i1 { top: 2%; left: 38%; --glow: rgba(139, 92, 255, .9); }
.float-icon.i2 { top: 38%; right: -2%; --glow: rgba(37, 208, 122, .8); }
.float-icon.i3 { bottom: 2%; left: 34%; --glow: rgba(245, 194, 107, .7); }
.float-icon.i4 { top: 36%; left: -2%; --glow: rgba(255, 84, 112, .9); }
.float-icon.i2 img { animation-delay: -1.5s; }
.float-icon.i3 img { animation-delay: -3s; }
.float-icon.i4 img { animation-delay: -4.5s; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}
.scroll-cue i {
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  position: relative;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  translate: -50% 0;
  border-radius: 2px;
  background: var(--text);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue {
  0% { opacity: 0; transform: translateY(-3px); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding-block: 22px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: var(--muted);
}
.marquee-item img { width: 44px; height: 44px; border-radius: 12px; }
.marquee-item .star { color: var(--magenta); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Apps ---------- */

.apps { background: radial-gradient(1200px 600px at 80% 0%, rgba(124, 92, 255, .12), transparent 60%), var(--bg); }

.app-list { display: grid; gap: clamp(28px, 4vw, 44px); }

.app-card {
  --accent: var(--violet);
  --accent-2: var(--magenta);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px circle at var(--mx, 30%) var(--my, 40%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  overflow: hidden;
  isolation: isolate;
}
.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 60%, transparent), transparent 40%, transparent 60%, color-mix(in srgb, var(--accent-2) 50%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .7;
}
.app-card:nth-child(even) .app-visual { order: 2; }

.app-card[data-app="gba"] { --accent: #8b5cff; --accent-2: #4f2fd1; }
.app-card[data-app="nd"] { --accent: #25d07a; --accent-2: #0b8f71; }
.app-card[data-app="prayer"] { --accent: #f5c26b; --accent-2: #0f7a5c; }
.app-card[data-app="lyrics"] { --accent: #ff5470; --accent-2: #ff8a4d; }

.app-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  perspective: 900px;
}
.app-visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 68%);
  filter: blur(40px);
  opacity: .7;
  animation: pulse 6s ease-in-out infinite;
}
.app-visual::after {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 40px rgba(255, 255, 255, .012);
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .6; }
  50% { transform: scale(1.08); opacity: .85; }
}

.app-icon {
  position: relative;
  z-index: 1;
  width: 62%;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease);
}
.app-icon img {
  width: 100%;
  border-radius: 23%;
  box-shadow:
    0 50px 80px -30px color-mix(in srgb, var(--accent) 80%, #000),
    0 0 0 1px rgba(255, 255, 255, .14);
}
.app-icon .shine {
  position: absolute;
  inset: 0;
  border-radius: 23%;
  background: radial-gradient(circle at var(--sx, 30%) var(--sy, 20%), rgba(255, 255, 255, .35), transparent 45%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.app-body .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.app-body h3 { font-size: clamp(32px, 4.2vw, 54px); margin: 20px 0 0; }
.app-body .tagline { font-family: var(--font-display); font-size: clamp(19px, 2vw, 24px); font-weight: 500; color: var(--text); opacity: .9; margin: 12px 0 0; letter-spacing: -.01em; }
.app-body > p { color: var(--muted); margin: 18px 0 0; }

.features {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}
.features li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; }
.features li::before {
  content: "";
  flex: 0 0 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 6px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat,
    linear-gradient(140deg, var(--accent), var(--accent-2));
}

.app-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 16px;
  background: #000;
  border: 1px solid var(--line-2);
  transition: transform .3s var(--ease), border-color .3s;
}
.store-badge:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .35); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge small { font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.store-badge b { font-size: 17px; font-weight: 600; }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: ping 2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); }
  100% { box-shadow: 0 0 0 10px transparent; }
}

.disclaimer { font-size: 13px; color: var(--dim); margin: 22px 0 0; line-height: 1.5; }

/* ---------- Studio (video band) ---------- */

.studio { padding: 0; }
.studio-media {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.studio-media img,
.studio-media video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.studio-media video { opacity: 0; transition: opacity 1.2s; }
.studio-media video.is-ready { opacity: 1; }
.studio-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 7, 26, .65) 0%, rgba(7, 7, 26, .25) 55%, transparent 80%),
    linear-gradient(180deg, var(--bg) 0%, rgba(7, 7, 26, .3) 22%, rgba(7, 7, 26, .5) 55%, rgba(7, 7, 26, .94) 88%, var(--bg) 100%);
}
.studio-copy { padding-block: 160px 90px; max-width: 900px; }
.studio-copy h2 { font-size: clamp(42px, 7.2vw, 96px); margin-top: 18px; letter-spacing: -.035em; }
.studio-copy p { font-size: clamp(18px, 1.8vw, 22px); color: rgba(245, 243, 255, .82); max-width: 640px; margin: 24px 0 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: clamp(28px, 4vw, 48px) clamp(12px, 2vw, 28px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}
.stat > span { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; }

/* ---------- Story ---------- */

.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.story-text h2 { font-size: clamp(38px, 5vw, 60px); margin: 18px 0 32px; }
.story-text p { color: var(--muted); font-size: 18px; margin: 0 0 20px; }
.story-text p:first-of-type { color: var(--text); font-size: clamp(21px, 2.2vw, 26px); line-height: 1.45; font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--coral), var(--magenta), var(--violet), transparent);
}
.timeline li { position: relative; padding: 0 0 40px 48px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--magenta);
  box-shadow: 0 0 0 5px rgba(255, 61, 139, .12);
}
.timeline time { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
.timeline h4 { font-size: 24px; margin: 6px 0 8px; letter-spacing: -.015em; }
.timeline p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Principles ---------- */

.principles { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.principles::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  right: -300px;
  top: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 61, 139, .12), transparent 60%);
  pointer-events: none;
}

.p-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.p-card {
  position: relative;
  padding: 34px 30px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .07), transparent 50%),
    var(--surface);
  transition: transform .5s var(--ease), border-color .4s;
}
.p-card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.p-card .num { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--dim); letter-spacing: .1em; }
.p-card .ico {
  width: 52px;
  height: 52px;
  margin: 22px 0 22px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--line-2);
}
.p-card .ico svg { width: 24px; height: 24px; stroke: var(--text); }
.p-card h3 { font-size: 24px; letter-spacing: -.015em; }
.p-card p { color: var(--muted); font-size: 16px; margin: 12px 0 0; }

/* ---------- Company facts ---------- */

.company-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: stretch; }

.facts {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.facts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--grad-soft);
}
.facts-head h3 { font-size: 22px; }
.facts-head .seal {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text);
  white-space: nowrap;
}
.facts dl { margin: 0; }
.facts .row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
}
.facts .row:last-child { border-bottom: 0; }
.facts dt { color: var(--dim); font-size: 14px; font-weight: 500; }
.facts dd { margin: 0; font-weight: 500; font-size: 16px; }
.facts dd code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; letter-spacing: .04em; color: var(--gold); }

.hq-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  isolation: isolate;
}
.hq-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.hq-card:hover img { transform: scale(1.05); }
.hq-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 7, 26, .1), rgba(7, 7, 26, .92));
}
.hq-card .pin {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  margin-bottom: 18px;
  box-shadow: 0 0 0 10px rgba(255, 61, 139, .18);
}
.hq-card .pin svg { width: 22px; height: 22px; }
.hq-card h3 { font-size: 30px; }
.hq-card address { font-style: normal; color: rgba(245, 243, 255, .82); margin-top: 10px; }
.hq-card .btn { margin-top: 22px; align-self: flex-start; height: 48px; }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--nav-h) + 30px); margin-bottom: 0; }

.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  letter-spacing: -.01em;
  transition: color .25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq summary i {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  position: relative;
  transition: transform .4s var(--ease), background .3s;
}
.faq summary i::before,
.faq summary i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--text);
  translate: -50% -50%;
}
.faq summary i::after { rotate: 90deg; transition: rotate .4s var(--ease); }
.faq details[open] summary i { background: var(--grad); border-color: transparent; }
.faq details[open] summary i::after { rotate: 0deg; }
.faq .answer { color: var(--muted); padding: 0 60px 28px 0; margin: 0; }
.faq details[open] .answer { animation: fadeUp .5s var(--ease); }

/* ---------- Contact ---------- */

.contact-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 80px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: conic-gradient(from 0deg at 50% 50%, rgba(255, 106, 77, .35), rgba(255, 61, 139, .25), rgba(124, 92, 255, .35), rgba(34, 211, 197, .2), rgba(255, 106, 77, .35));
  filter: blur(80px);
  animation: spin 24s linear infinite;
}
.contact-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(10, 10, 32, .78);
}
.contact-card h2 { font-size: clamp(40px, 6vw, 76px); margin-top: 18px; }
.contact-card > div > p { color: var(--muted); font-size: 18px; margin: 20px 0 0; max-width: 460px; }

.contact-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.contact-list a,
.contact-list div {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  transition: border-color .3s, background .3s;
}
.contact-list a:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .06); }
.contact-list svg { flex: 0 0 22px; width: 22px; height: 22px; stroke: var(--coral); }
.contact-list small { display: block; font-size: 12px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.contact-list b { font-weight: 500; }

.form { display: grid; gap: 16px; align-content: start; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9a6c8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field select option { background: var(--bg-3); color: var(--text); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--magenta);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 4px rgba(255, 61, 139, .15);
}
.form .btn { justify-self: start; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--dim); margin: 0; }

/* ---------- Footer ---------- */

.footer { padding-block: 80px 40px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-top p { color: var(--muted); font-size: 15px; max-width: 320px; margin: 18px 0 0; }
.footer h4 { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: 15px; transition: color .2s; }
.footer ul a:hover { color: var(--text); }

.footer-wordmark {
  margin-top: 80px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(80px, 22vw, 320px);
  line-height: .9;
  padding-bottom: .12em;
  letter-spacing: -.06em;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}
.footer-legal { font-size: 12px; color: var(--dim); margin-top: 18px; line-height: 1.6; }

/* ---------- Reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */

.legal-hero { padding-block: calc(var(--nav-h) + 80px) 40px; background: radial-gradient(900px 400px at 20% 0%, rgba(124, 92, 255, .18), transparent 60%); }
.legal-hero h1 { font-size: clamp(42px, 6vw, 72px); margin-top: 18px; }
.legal-hero p { color: var(--muted); margin-top: 16px; }
.legal { padding-block: 40px 120px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 28px; margin: 56px 0 14px; letter-spacing: -.015em; }
.legal h3 { font-size: 20px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 17px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--coral); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); }
.legal .toc {
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.legal .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal .toc a { color: var(--text); text-decoration: none; }
.legal .toc a:hover { color: var(--coral); }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--text); font-weight: 600; }
.legal td { color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* ---------- 404 ---------- */

.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding-block: 120px; }
.lost h1 { font-size: clamp(110px, 24vw, 260px); letter-spacing: -.06em; line-height: .9; }
.lost p { color: var(--muted); font-size: 19px; margin: 18px auto 34px; max-width: 460px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .orbit { justify-self: center; max-width: 380px; margin-top: 20px; }
  .hero::after { background: linear-gradient(180deg, rgba(7, 7, 26, .7) 0%, rgba(7, 7, 26, .55) 55%, var(--bg) 100%); }
  .scroll-cue { display: none; }
  .app-card { grid-template-columns: 1fr; }
  .app-card:nth-child(even) .app-visual { order: 0; }
  .app-visual { max-width: 360px; width: 100%; justify-self: center; }
  .story-grid, .company-grid, .faq-grid, .contact-card { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .p-grid { grid-template-columns: 1fr; }
  .facts .row { grid-template-columns: 1fr; gap: 4px; padding: 16px 22px; }
  .facts-head { padding: 22px; flex-wrap: wrap; }
  .form .two { grid-template-columns: 1fr; }
  .faq .answer { padding-right: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .legal .toc ol { columns: 1; }
  .hero-actions .btn { flex: 1 1 100%; }
  .brand small { display: none; }
  .hero-badge .long { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-media video, .studio-media video { display: none; }
}
