/* ClearVoid Studios homepage — liquid + metallic */

:root {
  --void: #07090c;
  --steel-0: #0c1014;
  --steel-1: #151b22;
  --steel-2: #1e2833;
  --chrome: #c5d0dc;
  --chrome-bright: #e8eef5;
  --mercury: #7a9eae;
  --mercury-deep: #3d5c6a;
  --bronze: #a8895e;
  --ink: #e6ebf0;
  --muted: #8b97a6;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--void);
  line-height: 1.5;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

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

/* —— Full-bleed metallic / liquid stage —— */
.metal-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 70% at 70% 20%, rgba(122, 158, 174, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 15% 80%, rgba(168, 137, 94, 0.12), transparent 50%),
    linear-gradient(165deg, #0a0d11 0%, #121820 42%, #0e1318 100%);
}

.liquid {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}

.liquid-a {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  top: -8%;
  right: -5%;
  background: radial-gradient(circle at 35% 35%, #b8c9d4 0%, #5a7a8a 45%, transparent 70%);
  animation: driftA 18s var(--ease) infinite alternate;
}

.liquid-b {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  bottom: 5%;
  left: -10%;
  background: radial-gradient(circle at 60% 40%, rgba(200, 170, 120, 0.55) 0%, rgba(90, 70, 40, 0.2) 50%, transparent 70%);
  animation: driftB 22s var(--ease) infinite alternate;
}

.liquid-c {
  width: min(40vw, 300px);
  height: min(40vw, 300px);
  top: 42%;
  left: 38%;
  background: radial-gradient(circle, rgba(180, 210, 220, 0.35) 0%, transparent 68%);
  animation: driftC 14s ease-in-out infinite alternate;
}

.sheen {
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 70%
  );
  animation: sheenSweep 12s ease-in-out infinite;
  pointer-events: none;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  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)'/%3E%3C/svg%3E");
}

@keyframes driftA {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-6%, 8%) scale(1.08); }
}
@keyframes driftB {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(10%, -6%) scale(1.12); }
}
@keyframes driftC {
  from { transform: translate(0, 0); opacity: 0.4; }
  to { transform: translate(-12%, 10%); opacity: 0.7; }
}
@keyframes sheenSweep {
  0%, 100% { transform: translateX(-8%) rotate(0deg); opacity: 0.5; }
  50% { transform: translateX(8%) rotate(2deg); opacity: 1; }
}

/* —— Hero: copy left, fluid graphic + shots right —— */
.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 960px) {
  .hero {
    min-height: 100svh;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 5vw, 5rem) clamp(1.15rem, 5vw, 4rem) clamp(1.25rem, 4vw, 5rem);
  max-width: 38rem;
  min-width: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.35rem;
  min-width: 0;
  opacity: 0;
  animation: rise 1s var(--ease) 0.05s forwards;
}

.mark {
  flex: 0 0 auto;
  width: clamp(2.3rem, 6.9vw, 3.93rem);
  height: clamp(2.3rem, 6.9vw, 3.93rem);
  border-radius: 0;
  box-shadow: none;
  /* Soft lift so the transparent crystal reads on dark steel */
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.brand {
  margin: 0;
  min-width: 0;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 8.2vw, 4.4rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
  color: var(--chrome-bright);
  animation: rise 1s var(--ease) 0.08s forwards;
}

.brand-labs {
  color: #2f6f68;
  background: linear-gradient(
    135deg,
    #4a9a90 0%,
    #2f6f68 45%,
    #3d857c 70%,
    #2f6f68 100%
  );
  background-size: 180% 180%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: metalShift 10s ease-in-out infinite;
}
@supports not (background-clip: text) {
  .brand-labs {
    color: #2f6f68;
    background: none;
  }
}

@keyframes metalShift {
  0%, 100% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
}

.headline {
  margin: 0 0 0.85rem;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 3.8vw, 1.65rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  max-width: 22ch;
  color: var(--chrome-bright);
  opacity: 0;
  animation: rise 1s var(--ease) 0.18s forwards;
}

.lede {
  margin: 0 0 1.5rem;
  font-size: clamp(0.95rem, 2.8vw, 1.12rem);
  color: var(--muted);
  max-width: 36ch;
  opacity: 0;
  animation: rise 1s var(--ease) 0.28s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  opacity: 0;
  animation: rise 1s var(--ease) 0.38s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-metal {
  color: var(--void);
  background: linear-gradient(145deg, #eef3f7 0%, #9aadb8 48%, #d5dde6 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 10px 28px rgba(0, 0, 0, 0.35);
}

.btn-metal:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 14px 36px rgba(0, 0, 0, 0.4);
}

.btn-ghost {
  color: var(--chrome);
  border-color: rgba(197, 208, 220, 0.35);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(197, 208, 220, 0.65);
  background: rgba(255, 255, 255, 0.06);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Right: faded fluid graphic + cycling phones —— */
.hero-visual {
  position: relative;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  animation: revealSide 1.1s var(--ease) 0.2s forwards;
}

@media (min-width: 960px) {
  .hero-visual {
    min-height: 100svh;
  }
}

@keyframes revealSide {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

.exotic {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  filter: saturate(0.85) blur(0.4px);
  background:
    radial-gradient(ellipse 80% 60% at 70% 35%, rgba(184, 137, 90, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 30% 70%, rgba(47, 111, 104, 0.2), transparent 60%),
    linear-gradient(155deg, #121a1f 0%, #1a2e32 40%, #243f42 75%, #2a4a48 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
}

.exotic-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.contour {
  fill: none;
  stroke: rgba(232, 238, 245, 0.28);
  stroke-width: 1.15;
  stroke-linecap: round;
  filter: url(#fluidBlur);
}

.contour-strong {
  stroke: rgba(232, 238, 245, 0.4);
  stroke-width: 1.45;
}

.contour-gold {
  stroke: rgba(232, 196, 150, 0.4);
  stroke-width: 1.25;
}

.flow {
  stroke-dasharray: 10 16;
  animation: dash 32s linear infinite;
}

.flow-slow {
  stroke-dasharray: 5 20;
  animation: dash 44s linear infinite reverse;
}

@keyframes dash {
  to { stroke-dashoffset: -480; }
}

.crystal {
  transform-origin: 62% 48%;
  animation: crystalBreathe 11s ease-in-out infinite;
}

@keyframes crystalBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.025); }
}

.facet-shimmer {
  animation: shimmer 7s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.75; }
}

.orb {
  animation: orbFloat 13s ease-in-out infinite;
}

.orb-2 {
  animation-delay: -4s;
  animation-duration: 16s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(14px, -20px); }
}

.shot-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.35rem 1rem 1.75rem;
  z-index: 2;
}

.apps-visual .shot-stage {
  padding: 0;
}

.shot-caption {
  position: relative;
  z-index: 3;
  margin: 0;
  text-align: center;
  font-family: "Unbounded", "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 5.5vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: none;
  background: linear-gradient(
    125deg,
    #f4f7fb 0%,
    #c5d0dc 28%,
    #e8eef5 52%,
    #9eb8c4 78%,
    #f0d3a8 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 18px rgba(122, 158, 174, 0.35));
  animation: captionSheen 9s ease-in-out infinite;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

@keyframes captionSheen {
  0%, 100% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
}

@supports not (background-clip: text) {
  .shot-caption {
    color: var(--chrome-bright);
    background: none;
  }
}

.shot-phones {
  position: relative;
  display: grid;
  place-items: center;
}

.phone-shot {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), visibility 0.7s;
  pointer-events: none;
  z-index: 0;
}

.phone-shot.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 1;
}

.phone {
  width: min(240px, 68vw);
  border-radius: 1.85rem;
  padding: 0.45rem;
  background: linear-gradient(160deg, #2a323c 0%, #12161c 55%, #0a0d11 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 28px 60px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(122, 158, 174, 0.12);
}

/* Full promo frames (Ad Media) — same footprint as phone, no device chrome */
.promo-shot {
  width: min(240px, 68vw);
}

.promo-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.35rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 28px 60px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(122, 158, 174, 0.12);
}

@media (min-width: 960px) {
  .phone {
    width: min(300px, 72vw);
  }

  .promo-shot {
    width: min(300px, 72vw);
  }
}

.phone-notch {
  width: 34%;
  height: 0.28rem;
  margin: 0.12rem auto 0.4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
}

.phone-screen {
  border-radius: 1.4rem;
  overflow: hidden;
  background: #0a0d11;
  /* Match BlueStacks shots (~463×823 ≈ 9:16) */
  aspect-ratio: 9 / 16;
}

.phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  background: #0a0d11;
}

/* Legacy mockup helpers (unused when using real shots) */
.shot-evenout,
.shot-spare,
.shot-clear {
  padding: 1.15rem 1rem 1.25rem;
  min-height: 22rem;
  color: #e8eef2;
}

.shot-app {
  margin: 0 0 1.1rem;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: rgba(232, 238, 245, 0.9);
}

.shot-meta {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(180, 196, 210, 0.65);
}

.shot-hero {
  margin: 0.25rem 0 1.15rem;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.04em;
  color: #f2f6f8;
}

.shot-hero.ok {
  font-size: 1.45rem;
  color: #9ad4c4;
}

.shot-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(200, 212, 222, 0.85);
  padding: 0.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shot-pill {
  margin-top: 1.25rem;
  display: inline-flex;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0c1014;
  background: linear-gradient(145deg, #dfe8ee, #8fa8b4);
}

.shot-pill.soft {
  background: rgba(154, 212, 196, 0.95);
}

.shot-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 4.5rem;
  margin: 0 0 1rem;
}

.shot-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 0.25rem 0.25rem 0 0;
  background: linear-gradient(180deg, #c4a574, #6f8f7a);
  opacity: 0.85;
}

.shot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.shot-chips span {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(154, 212, 196, 0.15);
  color: #9ad4c4;
  border: 1px solid rgba(154, 212, 196, 0.25);
}

@media (max-width: 959px) {
  .exotic {
    opacity: 0.32;
    mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 88%, transparent 100%);
  }

  .cta-row {
    width: 100%;
  }

  .btn {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 9.5rem;
    min-height: 2.85rem;
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
  }

  .headline,
  .lede {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .brand-lockup {
    gap: 0.65rem;
  }

  .brand {
    font-size: clamp(1.7rem, 9.5vw, 2.35rem);
  }

  .btn {
    flex: 1 1 100%;
  }

  .app-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

/* —— Below fold —— */
.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
}

.ethos {
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.4rem, 5vw, 4rem);
  max-width: 40rem;
  border-top: 1px solid rgba(197, 208, 220, 0.12);
}

.apps-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.4rem, 5vw, 4rem);
  border-top: 1px solid rgba(197, 208, 220, 0.12);
}

@media (min-width: 960px) {
  .apps-band {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
  }
}

.apps-copy {
  max-width: 40rem;
}

.apps-visual {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.ethos h2,
.apps-copy h2 {
  margin: 0 0 0.85rem;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
  letter-spacing: -0.035em;
  color: var(--chrome-bright);
}

.ethos p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38ch;
}

.app-list {
  list-style: none;
  margin: 1.5rem 0 1rem;
  padding: 0;
  border-top: 1px solid rgba(197, 208, 220, 0.14);
}

.app-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(197, 208, 220, 0.14);
}

.app-list strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--chrome-bright);
}

.app-list span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.app-list em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--mercury);
  white-space: nowrap;
}

.apps-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  opacity: 0.85;
}

footer {
  padding: 2rem clamp(1.4rem, 5vw, 4rem) 2.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(197, 208, 220, 0.12);
}

footer a:hover {
  color: var(--chrome-bright);
}

@media (prefers-reduced-motion: reduce) {
  .liquid,
  .sheen,
  .brand,
  .brand-lockup,
  .headline,
  .lede,
  .cta-row,
  .hero-visual,
  .flow,
  .flow-slow,
  .crystal,
  .facet-shimmer,
  .orb,
  .orb-2,
  .phone-shot,
  .shot-caption {
    animation: none !important;
    transition: none !important;
  }
  /* Entrance anims start at opacity:0 — without them, force visible */
  .brand-lockup,
  .headline,
  .lede,
  .cta-row,
  .hero-visual {
    opacity: 1 !important;
    transform: none !important;
  }
  .shot-caption {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--chrome-bright);
    filter: none;
  }
  .phone-shot:not(.is-active) {
    opacity: 0 !important;
    visibility: hidden !important;
  }
  .phone-shot.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .brand {
    color: var(--chrome-bright);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
  .brand-labs {
    color: #2f6f68;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    animation: none !important;
  }
}
