/* FlickFlor base: fonts, tokens, motion vocabulary and the components every page shares.
   Loaded by every page. Page-specific styles live in home.css (landing) and pages.css (inner pages). */

@font-face { font-family: "Red Hat Display"; src: url("../fonts/RedHatDisplay-Variable.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Red Hat Display"; src: url("../fonts/RedHatDisplay-Italic-Variable.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("../fonts/RedHatText-Variable.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  /* ground */
  --bg-950: #04070d; --bg-900: #071320; --bg-800: #0c1f33; --bg-700: #13304d;
  --glass: rgba(18, 44, 74, .55);
  /* electric blue + turquoise */
  --blue-600: #0b6fd6; --blue-500: #1e9bff; --cyan-400: #27c4f5; --cyan-300: #7fe3ff; --teal-600: #0a7f96;
  /* minimal gold */
  --gold-600: #f29a17; --gold-500: #ffb62e; --gold-400: #ffc94d; --gold-300: #ffe08a; --on-gold: #0b1220;
  /* accents */
  --red-400: #f25a70; --red-500: #de2743; --rose-500: #e63a5c; --violet-500: #6146e6;
  /* ink */
  --ink: #ffffff; --ink-muted: #d0d8e4; --ink-subtle: #93a1b8;
  --line: rgba(255, 255, 255, .16); --line-strong: rgba(255, 255, 255, .6);
  --shadow-card: 0 22px 44px rgba(0, 0, 0, .5);
  --glow-gold: 0 0 28px rgba(255, 182, 46, .55);
  --glow-blue: 0 0 32px rgba(30, 155, 255, .6);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px;
  --radius-sm: 10px; --radius-md: 14px; --radius-lg: 22px; --radius-xl: 54px; --radius-pill: 999px;
  --font-display: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --font-sans: "Red Hat Text", "Segoe UI", system-ui, sans-serif;
  /* motion */
  --tf-ease-out: cubic-bezier(.16, 1, .3, 1);
  --tf-ease-float: cubic-bezier(.45, 0, .55, 1);
  --tf-dur-fast: 180ms;
  --tf-dur-enter: 900ms;
  --tf-stagger: 90ms;
  /* layout */
  --lp-black: #020409; --lp-panel: #0a1828; --lp-panel-2: #0e2136; --lp-rule: rgba(255, 255, 255, .10);
  --lp-max: 1240px;
  color-scheme: dark;
}

@keyframes tf-rise { from { opacity: 0; translate: 0 26px; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes tf-pop { 0% { opacity: 0; scale: .6; } 70% { opacity: 1; scale: 1.04; } 100% { opacity: 1; scale: 1; } }
@keyframes tf-float { 0%, 100% { transform: translateY(calc(var(--amp, 10px) * -1)); } 50% { transform: translateY(var(--amp, 10px)); } }
@keyframes tf-shine { 0%, 55% { translate: -160% 0; } 100% { translate: 260% 0; } }
@keyframes tf-sheen-text { to { background-position: -200% 0; } }
@keyframes tf-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes tf-border-run { to { background-position: 0 0, 200% 0; } }
@keyframes tf-twinkle { 0%, 100% { opacity: .45; scale: .8; } 50% { opacity: 1; scale: 1.25; } }
@keyframes tf-flicker { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.07); } }
@keyframes tf-glint { from { stroke-dashoffset: 1; } to { stroke-dashoffset: -1; } }
@keyframes tf-swell { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-8px) scaleY(1.04); } }
@keyframes tf-grow-x { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes tf-dot-bounce { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes tf-wave { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }

/* ---------- base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg-950); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan-300); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: var(--cyan-300); color: var(--on-gold); font: 700 15px/1 var(--font-display); text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- lockup ---------- */
.tf-lockup { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); text-decoration: none; }
.tf-lockup img { width: 68px; height: 68px; display: block; transition: rotate var(--tf-dur-enter) var(--tf-ease-out), scale var(--tf-dur-enter) var(--tf-ease-out); }
.tf-lockup:hover img { rotate: -8deg; scale: 1.08; }
.tf-lockup__name { display: block; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 36px; letter-spacing: -.02em; }
.tf-lockup__name sup { font-size: 9px; font-weight: 600; vertical-align: top; position: relative; top: -4px; letter-spacing: 0; }
.tf-lockup__tag { display: block; font-size: 15px; line-height: 20px; font-weight: 500; padding-left: 3px; }

/* ---------- buttons ---------- */
.tf-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3); height: 54px; padding: 0 var(--space-6); border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none; overflow: hidden; isolation: isolate; transition: translate var(--tf-dur-fast) var(--tf-ease-out), box-shadow var(--tf-dur-fast) var(--tf-ease-out), background-color var(--tf-dur-fast), border-color var(--tf-dur-fast); }
.tf-btn:hover { translate: 0 -2px; background: var(--line); border-color: var(--ink); }
.tf-btn:active { translate: 0 0; scale: .98; }
.tf-btn svg { width: 18px; height: 18px; flex: none; transition: translate var(--tf-dur-fast) var(--tf-ease-out); }
.tf-btn:hover .tf-btn__arrow { translate: 3px -3px; }
.tf-btn:hover .tf-btn__play { translate: 2px 0; }
/* primary: electric blue into turquoise (kept dark enough under the label for white text) */
.tf-btn--gold { border: 0; color: #fff; font-weight: 800; background: linear-gradient(135deg, #0047d6 0%, #0068d9 45%, #0083c7 75%, #00a2b8 100%); box-shadow: 0 0 28px rgba(0, 150, 253, .55); text-shadow: 0 1px 2px rgba(0, 30, 80, .35); }
.tf-btn--gold:hover { background: linear-gradient(135deg, #1a5cff 0%, #1a7cf0 45%, #0a96dc 75%, #0ab6c8 100%); box-shadow: 0 0 44px rgba(0, 170, 253, .8); }
.tf-btn--gold::after { content: ""; position: absolute; inset: 0; width: 40%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); translate: -160% 0; animation: tf-shine 4.5s var(--tf-ease-float) infinite; }
.tf-btn--lg { height: 61px; padding: 0 var(--space-8); font-size: 19px; }
.tf-btn--sm { height: 45px; padding: 0 var(--space-5); font-size: 16px; }
.tf-btn--ghost { border-color: transparent; }
.tf-btn--ghost:hover { border-color: var(--line-strong); }

/* ---------- type ---------- */
.tf-eyebrow { margin: 0; font-size: 12.5px; line-height: 16px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--ink); }
.tf-eyebrow::after { content: ""; display: block; width: 106px; height: 2px; margin-top: var(--space-3); background: linear-gradient(90deg, var(--gold-500), transparent); transform-origin: left; animation: tf-grow-x 1.2s var(--tf-ease-out) .5s both; }
.tf-display { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 63px; line-height: 68px; letter-spacing: -.025em; color: var(--ink); }
.tf-display span { display: block; white-space: nowrap; }
.tf-display em, .gold-sheen { font-style: italic; padding-right: .06em; background: linear-gradient(100deg, var(--gold-500) 0%, var(--gold-400) 30%, var(--gold-300) 45%, var(--gold-400) 60%, var(--gold-500) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: tf-sheen-text 6s linear infinite; }
.tf-lead { margin: 0; font-size: 20px; line-height: 27px; color: var(--ink-muted); }

/* ---------- platforms ---------- */
.tf-platforms { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tf-platform { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 98px; font-size: 13px; line-height: 16px; color: var(--ink); }
.tf-platform__tile { display: grid; place-items: center; width: 83px; height: 47px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--glass); transition: translate var(--tf-dur-fast) var(--tf-ease-out), border-color var(--tf-dur-fast), box-shadow var(--tf-dur-fast); }
.tf-platform__tile svg { width: 26px; height: 26px; fill: var(--ink); }
.tf-platform:hover .tf-platform__tile, a.tf-platform:focus-visible .tf-platform__tile { translate: 0 -4px; border-color: var(--cyan-400); box-shadow: var(--glow-blue); }
a.tf-platform { text-decoration: none; border-radius: 14px; }
a.tf-platform .tf-platform__tile { border-color: rgba(127, 227, 255, .6); box-shadow: 0 0 18px -6px rgba(39, 196, 245, .7); }
.tf-platform__txt { display: block; text-align: center; }
.tf-platform__txt b { display: block; font: 600 14px/18px var(--font-sans); color: var(--ink); }
.tf-platform__txt i { display: block; font: 500 12px/16px var(--font-sans); font-style: normal; color: var(--ink-subtle); }
.tf-platform__txt i.soon { color: var(--cyan-300); }
.tf-platform__txt i.now { color: #6ff0c4; }

/* ---------- shared section scaffolding ---------- */
.lp-wrap { max-width: var(--lp-max); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.lp-scene { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg-950) 0%, var(--bg-900) 58%, var(--bg-950) 100%); }
.lp-scene > .lp-wrap { position: relative; z-index: 1; }
.lp-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(640px 440px at 16% 34%, rgba(20, 110, 190, .42), transparent 70%), radial-gradient(560px 340px at 92% 22%, rgba(255, 182, 46, .04), transparent 70%), radial-gradient(760px 240px at 70% 96%, rgba(255, 182, 46, .07), transparent 70%), radial-gradient(760px 260px at 20% 98%, rgba(30, 155, 255, .28), transparent 70%); animation: tf-breathe 7s var(--tf-ease-float) infinite; }
.lp-glow--final { background: radial-gradient(700px 420px at 50% 36%, rgba(20, 110, 190, .40), transparent 70%), radial-gradient(520px 300px at 88% 14%, rgba(255, 182, 46, .04), transparent 70%), radial-gradient(820px 240px at 60% 98%, rgba(255, 182, 46, .08), transparent 70%), radial-gradient(760px 260px at 12% 96%, rgba(30, 155, 255, .30), transparent 70%); }
.lp-stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--cyan-300); box-shadow: 0 0 8px var(--cyan-400); animation: tf-twinkle 3s var(--tf-ease-float) infinite; }
.lp-stars i:nth-child(3n) { background: var(--gold-300); box-shadow: 0 0 8px var(--gold-500); }

/* ---------- footer (every page) ---------- */
.lp-final { position: relative; text-align: center; padding-block: 0 24px; }
.lp-final h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 6vw, 84px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.lp-final h2 em { font-style: italic; }
.lp-final > p { margin: 22px auto 40px; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.4; color: var(--ink-muted); }
.lp-foot { position: relative; z-index: 1; text-align: left; padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); }
.lp-foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 24px 0; border-top: 1px solid var(--lp-rule); }
.lp-foot__brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 800 19px/1 var(--font-display); letter-spacing: -.01em; }
.lp-foot__brand img { width: 30px; height: 30px; }
.lp-foot__brand em { font-style: normal; color: var(--cyan-400); }
.lp-foot__brand small { display: block; margin-top: 4px; font: 500 12.5px/1 var(--font-sans); letter-spacing: .02em; color: var(--ink-subtle); }
.lp-foot__nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.lp-foot__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-size: 15px; color: var(--ink-muted); }
.lp-foot__nav a:hover, .lp-foot__nav a[aria-current="page"] { color: var(--cyan-300); }
.lp-foot__legal { margin: 0; font-size: 13.5px; line-height: 18px; color: var(--ink-subtle); }
@media (max-width: 820px) {
  .lp-foot__in { flex-direction: column; text-align: center; }
  .lp-foot__nav { justify-content: center; }
}

/* ---------- motion preferences ---------- */
.is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
