/* ============================================================
   Social-Fame — one-page landing (single viewport, no scroll)
   Brand kit: #FFFFFF · #D5006D · #000000 — canvas: flat white.
   Typefaces: Google Sans (display/logo) · Roboto (text).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Google+Sans:400,500,700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@700&display=swap'); /* logo only */

:root {
  --white: #FFFFFF;
  --pink: #D5006D;
  --canvas: #FFFFFF;              /* page background (was navy) */
  --ink: #000000;                 /* text & dark tiles (was white-on-navy) */
  --black: #000000;
  --ink-70: rgba(0,0,0,.7);
  --ink-08: rgba(0,0,0,.07);
  --font: 'Roboto', 'Segoe UI', sans-serif;
  --font-display: 'Google Sans', 'Product Sans', 'Roboto', 'Segoe UI', sans-serif;
}

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

html, body { height: 100%; }

body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;                 /* strictly one screen — no scroll */
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

::selection { background: var(--pink); color: var(--white); }

a { color: inherit; text-decoration: none; }
img { display: block; }
b, strong { font-weight: 700; }

/* ============================================================
   HEADER
   ============================================================ */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;   /* logo left · lang + cart right */
  padding: clamp(18px, 3svh, 30px) clamp(20px, 4vw, 56px);
}
/* header logo: the SocialFame logo image (S tile + wordmark) */
.brand-logo {
  flex: none;
  min-width: 0;
  transition: opacity .2s;
}
.brand-logo:hover { opacity: .8; }
.brand-logo img {
  height: clamp(34px, 6.5vw, 60px);
  width: auto;
}
@media (max-width: 480px) {
  .brand-logo img { height: 28px; }   /* keep room for lang + cart */
}
/* logo: Clash Display 700 · 45px · -.02em (shrinks on narrow screens) */
.brand { font-family: 'Clash Display', var(--font-display); font-weight: 700; font-size: clamp(28px, 8vw, 45px); letter-spacing: -.02em; color: var(--pink); text-transform: uppercase; }
.brand i { font-style: normal; color: var(--pink); }
.top-right { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); }
.langs {
  display: inline-flex;
  gap: 2px;
  background: var(--ink-08);
  border-radius: 999px;
  padding: 3px;
}
.langs button {
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--ink-70);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 4px 9px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.langs button:hover { color: var(--ink); }
.langs button:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
.langs button[aria-pressed="true"] { background: var(--pink); color: var(--white); }
/* pink cart icon (replaces the old text link); the count sits
   as a small ink bubble on the icon's top-right corner */
.cart-link,
.account-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--pink);
  transition: color .2s, transform .2s;
}
.cart-link svg, .account-link svg { width: 22px; height: 22px; }
.cart-link:hover, .account-link:hover { color: #b00059; transform: scale(1.08); }
.cart-link:focus-visible, .account-link:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 8px; }
.cart-count:not([data-count="0"]):not([data-count=""]) {
  position: absolute;
  top: -3px;
  right: -5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  line-height: 1;
}

/* ============================================================
   MAIN — headline + platform icons with titles
   ============================================================ */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(14px, 3svh, 30px);
  justify-content: flex-start;               /* measure from the top */
  /* vertical rhythm scales with viewport height so 12"–18" screens
     and iPads all keep clear air between hero and dock */
  padding: clamp(88px, 16svh, 200px) clamp(20px, 4vw, 56px) clamp(140px, 22svh, 240px);
  min-height: 0;
}
.headline {
  font-family: var(--font-display);
  font-weight: 700;
  /* min(svh, vw) keeps the longest rolling text ("GET FAMOUS",
     "DEVIENS CÉLÈBRE") inside narrow screens without clipping */
  font-size: clamp(30px, min(9svh, 8.5vw), 96px);
  line-height: 1.05;
  letter-spacing: .02em;
}
.headline em { font-style: normal; color: var(--pink); }

/* ---- rolling text reveal (logo + headline) ----
   Two stacked rows clipped to 1em; chars roll up with a stagger.
   Triggered once on load via .roll, afterwards on :hover only. */
.reveal {
  display: inline-grid;
  overflow: hidden;
  height: 1em;
  line-height: 1;
  vertical-align: bottom;
}
.reveal .row { grid-area: 1 / 1; justify-self: center; white-space: nowrap; }
.reveal .rowB { transform: translateY(1em); }
.reveal .ch {
  display: inline-block;
  transition: transform .25s ease-in-out;
  transition-delay: calc(var(--i) * 28ms);
  will-change: transform;
}
.reveal-host:hover .ch,
.reveal-host.roll .ch { transform: translateY(-1em); }
.reveal .p { color: var(--pink); }
@media (prefers-reduced-motion: reduce) {
  .reveal .ch { transition: none; }
}

/* both logo words render at the same size; the default .reveal
   roll (1em clip) applies to the brand like any other host */

/* ---- pixel hero: glass headline over a twinkling pixel field
       (vanilla port of the PixelHero component, light-theme) ---- */
.pixel-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 920px;
  margin-top: clamp(44px, 7svh, 64px);   /* ≥50px below the AI prompt bar */
  padding: clamp(20px, 4svh, 40px) 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2.4svh, 22px);
  pointer-events: none;
}
.ph-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: .18em;
  line-height: 1;
  /* scales with the smaller of width/height so it grows on big screens
     and stays safe on short ones: phones ~48px, laptops/desktop up to 124px */
  font-size: clamp(48px, min(10vw, 11.5svh), 124px);
}
/* glass shimmer text — the tahoe effect inverted for a white canvas */
.ph-serif, .ph-sans {
  color: transparent;
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: ph-shimmer 8s linear infinite;
}
.ph-serif {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
  background-image: linear-gradient(135deg, #000 0%, rgba(0,0,0,.5) 25%, rgba(0,0,0,.2) 45%, rgba(0,0,0,.9) 55%, rgba(0,0,0,.35) 75%, #000 100%);
  -webkit-text-stroke: 1.5px rgba(0,0,0,.22);
  filter: drop-shadow(0 12px 26px rgba(0,0,0,.16));
}
.ph-sans {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.04em;
  background-image: linear-gradient(135deg, #D5006D 0%, rgba(213,0,109,.45) 25%, rgba(213,0,109,.18) 45%, rgba(213,0,109,.95) 55%, rgba(213,0,109,.35) 75%, #D5006D 100%);
  -webkit-text-stroke: 1.5px rgba(213,0,109,.28);
  filter: drop-shadow(0 12px 26px rgba(213,0,109,.22));
}
@keyframes ph-shimmer {
  0% { background-position: 200% center; }
  100% { background-position: 0% center; }
}
.ph-sub {
  font-size: clamp(13px, 1.8vw, 18px);
  font-weight: 300;
  color: rgba(0,0,0,.72);
  max-width: 580px;
  line-height: 1.6;
}
/* desktop: keep the slogan on a single line (font scales with vw) */
@media (min-width: 641px) {
  .ph-sub { white-space: nowrap; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-serif, .ph-sans { animation: none; }
}
/* short viewports (14"/15" laptops, iPads landscape): tighter hero
   so it never reaches the dock zone */
@media (max-height: 780px) {
  .pixel-hero { margin-top: clamp(26px, 5svh, 44px); padding-top: 12px; padding-bottom: 12px; }
  .ph-title { font-size: clamp(40px, min(8.8vw, 9.8svh), 100px); }
}

/* ---- hero: rotating icon cloud centered on the GO VIRAL headline ---- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 100px;   /* headline + sphere sit 100px below the prompt */
}
.hero .headline { position: relative; z-index: 120; }
/* the sphere orbits the SOCIAL-FAME logo (fixed; centered by cloud.js) */
.top { position: relative; z-index: 150; }
.cloud {
  position: fixed;
  transform: translate(-50%, -50%);
  width: min(34svh, 320px);
  max-width: 70vw;
  aspect-ratio: 1 / 1;
  touch-action: pan-y;
  pointer-events: none;         /* never blocks the prompt or header */
}
.cloud .ci { pointer-events: auto; }
.cloud .ci {
  position: absolute;
  top: 50%;
  left: 50%;
  will-change: transform, opacity;
  user-select: none;
  white-space: nowrap;
}
.cloud .ci img { width: 34px; height: 34px; display: block; }
.cloud .ci-glyph { color: var(--pink); display: block; }
.cloud .ci-glyph svg { width: 28px; height: 28px; display: block; }
@media (max-width: 640px) {
  .cloud { width: min(26svh, 220px); }
}

/* ---- platform dock: macOS-style magnification ----
   Tile widths animate with the dock-nav component's curve
   (base 1x · far 1.2x · close 1.4x · active 1.6x,
    cubic-bezier(0.16,1,0.3,1) over .5s); tiles grow upward
   from a shared baseline; the label slides out from behind. */
.dock-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: 0 clamp(12px, 3vw, 40px) clamp(84px, 16svh, 200px);
  pointer-events: none;            /* only the tiles catch the pointer */
}
.dock-nav > * { pointer-events: auto; }
.dock {
  --size: clamp(78px, 13.5svh, 114px);   /* 50% up from the previous size */
  --dock-ease: cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  list-style: none;
}
.dock li {
  position: relative;
  width: calc(var(--size) * var(--s, 1));
  transition: width .5s var(--dock-ease);
}
.dock a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  margin: 0 clamp(3px, .4vw, 5px);
  border-radius: 24%;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(0,0,0,.12);
  transition: background .2s;
}
.dock a img { width: 52%; height: 52%; object-fit: contain; }

/* moving-border glow: a pink light orbiting each tile's edge
   (vanilla port of the MovingBorder component — slow lap) */
@property --sf-orbit {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes sf-orbit-spin { to { --sf-orbit: 360deg; } }
.dock a::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--sf-orbit),
    transparent 0deg 280deg,
    rgba(213, 0, 109, .45) 315deg,
    var(--pink) 340deg,
    rgba(213, 0, 109, .45) 352deg,
    transparent 360deg);
  /* clip the conic to a 3px ring so only the border band glows */
  padding: 3px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  filter: blur(4px);
  animation: sf-orbit-spin 10s linear infinite;
}
/* stagger the laps so the lights don't travel in lock-step */
.dock li:nth-child(2n)  a::before { animation-delay: -2.5s; }
.dock li:nth-child(3n)  a::before { animation-delay: -5s; }
.dock li:nth-child(3n+1) a::before { animation-delay: -7.5s; }
.dock li.is-hover a,
.dock a:hover,
.dock a:focus-visible { background: var(--pink); }
.dock li.is-hover a img,
.dock a:hover img,
.dock a:focus-visible img { filter: brightness(0) invert(1); }
.dock a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* label: sits behind the tile, slides up + fades in on hover/focus */
.dock-tip {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  white-space: nowrap;
  padding: .35em .6em;
  border-radius: .25em;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, -60%);
  transition: opacity .5s var(--dock-ease), transform .5s var(--dock-ease);
}
.dock li.is-hover .dock-tip,
.dock li:focus-within .dock-tip {
  opacity: 1;
  transform: translate(-50%, -135%);
}

/* touch screens: flat wrapping grid, no magnification */
@media (hover: none), (pointer: coarse) {
  .dock { flex-wrap: wrap; gap: 8px; justify-content: center; }
  .dock li { width: var(--size); }
}
/* small screens: two rows of five tiles */
@media (max-width: 640px) {
  .dock {
    --size: clamp(48px, 16vw, 72px);
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: calc(5 * var(--size) + 4 * 8px + 1px); /* exactly 5 per row */
  }
  .dock li { width: var(--size); }
  /* clear the whole footer height (menu + copyright + socials) */
  .dock-nav { padding-bottom: 156px; }
}
@media (prefers-reduced-motion: reduce) {
  .dock li, .dock-tip { transition: none; }
  .dock a::before { animation: none; }
}

/* ============================================================
   FOOTER — white text · menu left · social logos right
   ============================================================ */
.footer {
  padding: clamp(16px, 3svh, 28px) clamp(20px, 4vw, 56px);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
}
.footer-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.footer-left a {
  font-size: 13px;
  color: var(--ink);
  transition: color .2s;
}
.footer-left a:hover { color: var(--pink); }
.footer-copy { font-size: 12px; color: var(--ink-70); }
/* social profile icons — right side of the footer */
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: var(--ink-70);
  transition: color .2s, transform .2s;
}
.footer-social a:hover { color: var(--pink); transform: scale(1.15); }

/* mobile footer: compact so it fits the band below the dock */
@media (max-width: 640px) {
  .footer { padding: 8px 16px calc(10px + env(safe-area-inset-bottom)); }
  .footer-inner { justify-content: center; gap: 6px 16px; }
  .footer-left { justify-content: center; gap: 5px 14px; }
  .footer-left a { font-size: 11px; }
  .footer-copy { width: 100%; text-align: center; font-size: 10px; }
  .footer-social { justify-content: center; gap: 15px; }
  .footer-social a { font-size: 17px; }
}
/* short phones (iPhone SE, small Androids ≤700px tall) */
@media (max-width: 640px) and (max-height: 700px) {
  .dock { --size: clamp(44px, 14vw, 58px); }
  .dock-nav { padding-bottom: 128px; }
  .pixel-hero { margin-top: 18px; }
}
/* tall phones (iPhone 14/15 Pro Max, large Androids ≥840px tall) */
@media (max-width: 640px) and (min-height: 840px) {
  .dock-nav { padding-bottom: 172px; }
}
