/* ============================================================
   Alpheios landing — globals
   Adapted from the scraped static-site scaffold (loader / cursor /
   noise / scroll-reveal / magnet are brand-neutral UI mechanics; the
   JS depends on these class names). Palette is the hybrid direction:
   warm-white text on near-black, with steel-blue (#4E9BDE) as the
   single brand accent on a whitelist.
   ============================================================ */

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

html, body {
  height: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; }
body a:hover { text-decoration: none; }
ul { list-style: none; }

body {
  background-color: #06070A;
  color: var(--text-color-light);
  font-family: var(--font-secondary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::-webkit-scrollbar { display: none; }

p { margin-bottom: 0; }


/* ---------------- FONTS ---------------- */
@font-face {
  font-family: "ID Grotesk";
  src: url(../fonts/IDGrotesk-Regular.ttf);
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url(../fonts/Geist-Variable.ttf);
  font-display: swap;
}


/* ---------------- VARIABLES ---------------- */
:root {
  /* surfaces (lightness-led depth, no shadows) */
  --bg-0: #06070A;   /* page floor      */
  --bg-1: #0B0D11;   /* panel           */
  --bg-2: #13151A;   /* raised panel    */
  --bg-3: #1A1D21;   /* hover / popover */

  /* text */
  --global-color-light: #FFFEEA;
  --global-color-dark: #06070A;
  --text-color-light: #FFFEEA;
  --text-dim: rgba(255, 254, 234, 0.55);
  --text-faint: rgba(255, 254, 234, 0.34);
  --hairline: rgba(255, 254, 234, 0.10);
  --hairline-strong: rgba(255, 254, 234, 0.18);

  /* the one brand accent — whitelist use only */
  --accent: #4E9BDE;
  --accent-soft: rgba(78, 155, 222, 0.14);
  --accent-line: rgba(78, 155, 222, 0.45);

  /* market semantics (used sparingly, text only) */
  --up: #34C77E;
  --down: #F0545C;

  /* fonts */
  --font-primary: 'Host Grotesk', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --font-tertiary: 'ID Grotesk', sans-serif;
  --font-quaternary: 'Geist', sans-serif;
  --font-mono: 'Geist', ui-monospace, monospace;
}


/* ---------------- SCROLL-REVEAL KEYFRAMES (.animate) ---------------- */
.animate { opacity: 0; }

@keyframes fade-down { from { transform: translateY(-75px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fade-up   { from { transform: translateY(40px);  opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fade-right{ from { transform: translateX(-35px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fade-left { from { transform: translateX(75px);  opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes zoom-in   { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out  { from { opacity: 1; } to { opacity: 0; } }


/* ---------------- NOISE TEXTURE ---------------- */
.noise-effect {
  position: fixed;
  left: -25%;
  top: -25%;
  height: 150%;
  width: 150%;
  pointer-events: none;
  z-index: 99;
  background-image: url("https://5nlfspadzfekupqz.public.blob.vercel-storage.com/noise.png");
  opacity: 0.09;
  animation: noise 0.24s infinite;
  will-change: transform;
}
@keyframes noise {
  0%{transform:translate(0,0)}10%{transform:translate(2%,2%)}20%{transform:translate(2%,-2%)}
  30%{transform:translate(2%,0)}40%{transform:translate(0,2%)}50%{transform:translate(2%,1%)}
  60%{transform:translate(1%,-2%)}70%{transform:translate(2%,-1%)}80%{transform:translate(1%,2%)}
  90%{transform:translate(1%,0)}100%{transform:translate(0,0)}
}
@media (max-width: 768px) { .noise-effect { opacity: 0.05; } }


/* (custom dot/ring cursor removed — native cursor + hero mouse-light only) */


/* ---------------- LINK ROLL-UP HOVER ---------------- */
.link .mask {
  position: relative; display: block; height: 15px; overflow: hidden;
}
.link-container { transition: transform 0.4s ease; }
.link-text { display: block; font-size: 1em; line-height: 1em; transition: transform 0.4s ease; }
.link-text-1 { transform-origin: right center; }
.link-text-2 { transform-origin: left center; transform: rotate(20deg); }
.link:hover .link-container { transform: translateY(-15px); }
.link:hover .link-text-1 { transform: rotate(20deg); }
.link:hover .link-text-2 { transform: rotate(0); }

.magnet-effect { transition: transform 2.6s cubic-bezier(0.94, 0, 0.06, 1); }


/* ---------------- PAGE REVEAL ---------------- */
/* No loading screen. The page fades in on load (opacity via body.loaded).
   Deliberately no transform/filter on #main-content: those would make it a
   containing block and break Locomotive's smooth-scroll layout. */
#main-content {
  opacity: 0;
  transition: opacity 1.1s ease;
  transition-delay: 0.05s;
}
body.loaded #main-content { opacity: 1; }

@media (max-width: 768px) { main { overflow-x: hidden !important; } }
@media (prefers-reduced-motion: reduce) {
  #main-content { transition: opacity 0.4s ease; }
}


/* ---------------- SHARED PRIMITIVES ---------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-faint);
}
.eyebrow .idx { color: var(--accent); }

/* underlined "action" link with chevron (reused across sections) */
.action-button { position: relative; }
.action-button hr {
  border: none; height: 1px; background-color: var(--text-color-light);
  opacity: 0.22; margin-bottom: 18px;
}
.action-button-cont { display: flex; flex-direction: row; justify-content: space-between; align-items: center; cursor: pointer; }
.action-button-cont p {
  font-family: var(--font-primary); font-size: 1.25em; font-weight: 200;
  letter-spacing: 0.01em; color: var(--text-color-light); transition: .3s;
}
.action-button-cont img { height: 18px; opacity: 0; margin-right: -10px; transition: all .3s ease-out; }
.action-button-cont:hover > img { opacity: .9; margin-right: 0; height: 22px; }

/* primary pill CTA — the only place a filled accent is allowed */
.cta-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-quaternary); font-size: 15px; font-weight: 400;
  letter-spacing: 0.01em; color: var(--global-color-dark);
  background: var(--global-color-light);
  padding: 14px 26px; border-radius: 2px;
  transition: transform .4s cubic-bezier(0.16,1,0.3,1), background .3s ease;
}
.cta-pill:hover { background: #fff; }
.cta-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-quaternary); font-size: 15px; font-weight: 300;
  letter-spacing: 0.01em; color: var(--text-color-light);
  border: 1px solid var(--hairline-strong); padding: 13px 24px; border-radius: 2px;
  transition: border-color .3s ease, color .3s ease;
}
.cta-ghost:hover { border-color: var(--accent-line); }
