/* ============================================================
   Elitics Capital — brand tokens v2 "Holo Indigo"
   Aligned to the algoacquisition.ai design language:
   deep indigo ground, warm cream type, holographic periwinkle
   accent, pill geometry, serif-italic editorial accents.
   Variable + class NAMES are kept stable from v1 so all three
   apps (website / pitch-deck / funnel) re-theme automatically.
   ============================================================ */

:root {
  /* Ground + surfaces */
  --color-stone: #090917;            /* page ground — deep indigo-black */
  --color-walnut: #0E0E22;           /* raised card surface */
  --color-ivory: #F7EFE4;            /* warm cream — primary type */

  /* Accent — holographic periwinkle family (replaces brass) */
  --color-brass: #8FA8FF;            /* primary accent, readable on ground */
  --color-brass-deep: #0055FE;       /* electric cobalt — fills, large marks */
  --color-brass-light: #C7D4FF;      /* pale halo highlight */
  --color-brass-muted: rgba(143, 168, 255, 0.6);
  --color-ivory-muted: rgba(247, 239, 228, 0.6);
  --color-ivory-faint: rgba(247, 239, 228, 0.12);
  --color-brass-faint: rgba(143, 168, 255, 0.16);

  /* Holo ribbon hues — used by aurora fields + iridescent text */
  --holo-teal: #6EE7D8;
  --holo-sky: #7CB8FF;
  --holo-violet: #A78BFA;
  --holo-rose: #F0A3C8;
  --holo-mint: #A7F3D0;
  --holo-amber: #F2B76C;          /* rare warm pop — one per page max */

  /* Geometry */
  --radius-card: 28px;
  --radius-card-sm: 20px;
  --radius-pill: 999px;

  --font-display: 'Geist', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-serif: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
}

.font-display { font-family: var(--font-display); letter-spacing: -0.04em; }
.font-body { font-family: var(--font-body); }
.font-serif { font-family: var(--font-serif); }

/* Editorial typography */
.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.serif-italic-bold {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.serif-display {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.018em;
  font-feature-settings: 'liga' on, 'dlig' on, 'kern' on;
}

/* Numerals — oldstyle for body / proportional, lining for tables */
.tabular-nums { font-variant-numeric: tabular-nums; }
.lining-nums { font-variant-numeric: lining-nums tabular-nums; }
.oldstyle-nums { font-variant-numeric: oldstyle-nums proportional-nums; }
.fin-stat { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: 'tnum' on, 'lnum' on; }

::selection {
  background: rgba(143, 168, 255, 0.35);
  color: var(--color-ivory);
}

/* Subtle 40px grid overlay for hero/dark panels — fainter in v2 */
.grid-overlay {
  position: relative;
}
.grid-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent 0, transparent calc(100% - 1px), rgba(247, 239, 228, 0.035) calc(100% - 1px)),
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(247, 239, 228, 0.035) calc(100% - 1px));
  background-size: 40px 40px;
  pointer-events: none;
}

/* Filmic grain — kept from v1, hue-neutralised for the indigo ground */
.paper-grain {
  position: relative;
}
.paper-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.88  0 0 0 0 0.89  0 0 0 0 0.95  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.45'/></svg>");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  opacity: 0.16;
  pointer-events: none;
  z-index: 1;
}

/* Fine ring decoration — right side of hero panels (recolored) */
.brass-arc::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -80px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(143, 168, 255, 0.35);
  border-radius: 50%;
  pointer-events: none;
}
.brass-arc-lg::after {
  content: '';
  position: absolute;
  right: -200px;
  bottom: -200px;
  width: 640px;
  height: 640px;
  border: 1px solid rgba(143, 168, 255, 0.28);
  border-radius: 50%;
  pointer-events: none;
}
.brass-arc-lg::before {
  content: '';
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(143, 168, 255, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

/* Editorial kicker — short accent rule + uppercase tracking */
.kicker-rule {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--color-brass);
  font-weight: 500;
}
.kicker-rule::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--color-brass);
  opacity: 0.7;
}

/* Hairline accent divider */
.brass-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(143, 168, 255, 0.55) 30%, rgba(143, 168, 255, 0.55) 70%, transparent 100%);
}
.brass-rule-left {
  height: 1px;
  background: linear-gradient(90deg, rgba(143, 168, 255, 0.65) 0%, rgba(143, 168, 255, 0.28) 60%, transparent 100%);
}

/* Ornamental serif drop cap — used on lead paragraphs */
.drop-cap::first-letter {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 4.2em;
  line-height: 0.85;
  float: left;
  padding: 0.05em 0.12em 0 0;
  color: var(--color-brass);
}

/* Hover lift with indigo-tinted shadow */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -20px rgba(3, 3, 18, 0.85);
}

/* Underline reveal — for nav links */
.link-reveal {
  position: relative;
  transition: color 0.3s ease;
}
.link-reveal::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--color-brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.link-reveal:hover::after { transform: scaleX(1); }

/* Vertical accent tick — used as section markers */
.tick-brass {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent 0%, var(--color-brass) 50%, transparent 100%);
}

/* Soft radial glow — section atmosphere (periwinkle) */
.brass-glow-tl {
  background-image: radial-gradient(ellipse 60% 40% at 0% 0%, rgba(143, 168, 255, 0.07) 0%, transparent 60%);
}
.brass-glow-tr {
  background-image: radial-gradient(ellipse 60% 40% at 100% 0%, rgba(143, 168, 255, 0.07) 0%, transparent 60%);
}
.brass-glow-c {
  background-image: radial-gradient(ellipse 50% 35% at 50% 50%, rgba(143, 168, 255, 0.06) 0%, transparent 65%);
}

/* Keyboard focus indicator */
:where(a, button, [role="button"]):focus-visible {
  outline: 2px solid var(--color-brass);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Subtle entrance animation — staggered with CSS variables */
@keyframes editorial-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.editorial-rise {
  animation: editorial-rise 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes brass-shimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.brass-shimmer { animation: brass-shimmer 3.2s ease-in-out infinite; }

@keyframes brass-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(143, 168, 255, 0); }
  50% { box-shadow: 0 0 0 8px rgba(143, 168, 255, 0.08); }
}
.brass-pulse { animation: brass-pulse 2.8s ease-in-out infinite; }

/* ============================================================
   v2 additions — pill geometry, glass surfaces, aurora fields
   ============================================================ */

/* Primary pill — cream fill, indigo type */
.pill-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-pill);
  background: var(--color-ivory);
  color: #0B0B1E;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.25s ease, background 0.25s ease;
}
.pill-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -12px rgba(247, 239, 228, 0.35);
  background: #FFFFFF;
}
.pill-primary:active { transform: translateY(0) scale(0.98); }

/* Frosted glass pill — secondary actions */
.pill-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--color-ivory);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.pill-glass:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.pill-glass:active { transform: translateY(0) scale(0.98); }

/* Small frosted badge pill — sits above headlines */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-ivory-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Glass card surface — cobalt breathes up from the bottom edge */
.glass-card {
  background: linear-gradient(0deg, rgba(0, 85, 254, 0.06) 0%, rgba(255, 255, 255, 0.04) 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.glass-card-solid {
  background: var(--color-walnut);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-card);
}

/* Two-tone heading — trailing span dims (reference: "Frequently / Asked Questions") */
.two-tone > .dim { color: rgba(255, 255, 255, 0.55); }

/* Iridescent holo text — reserve for one hero stat / word per page */
.holo-text {
  background: linear-gradient(100deg,
    var(--holo-teal) 0%, var(--holo-sky) 28%,
    var(--color-brass-light) 50%, var(--holo-violet) 72%,
    var(--holo-rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: holo-drift 9s ease-in-out infinite alternate;
}
@keyframes holo-drift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

/* ------------------------------------------------------------
   Aurora field — the signature iridescent-ribbon atmosphere.
   Layered blurred gradient sheets, slow drift, masked edges.
   Usage: <div class="aurora-field" aria-hidden="true" /> inside a
   position:relative overflow:hidden section. Sits behind content.
   ------------------------------------------------------------ */
.aurora-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora-field::before,
.aurora-field::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px) saturate(1.35);
  will-change: transform;
}
/* Main ribbon sweep — top-left entering, diagonal */
.aurora-field::before {
  width: 130%;
  height: 68%;
  left: -25%;
  top: -22%;
  background:
    radial-gradient(42% 58% at 24% 40%, rgba(110, 231, 216, 0.34) 0%, transparent 62%),
    radial-gradient(38% 52% at 46% 52%, rgba(124, 184, 255, 0.30) 0%, transparent 64%),
    radial-gradient(34% 48% at 66% 38%, rgba(167, 139, 250, 0.26) 0%, transparent 60%),
    radial-gradient(30% 44% at 84% 58%, rgba(240, 163, 200, 0.18) 0%, transparent 58%);
  transform: rotate(-14deg);
  animation: aurora-drift-a 26s ease-in-out infinite alternate;
}
/* Counter-sweep — bottom-right exiting */
.aurora-field::after {
  width: 120%;
  height: 60%;
  right: -30%;
  bottom: -26%;
  background:
    radial-gradient(40% 56% at 70% 55%, rgba(124, 184, 255, 0.26) 0%, transparent 62%),
    radial-gradient(36% 50% at 44% 46%, rgba(167, 243, 208, 0.20) 0%, transparent 60%),
    radial-gradient(30% 46% at 24% 60%, rgba(167, 139, 250, 0.20) 0%, transparent 58%);
  transform: rotate(-12deg);
  animation: aurora-drift-b 32s ease-in-out infinite alternate;
}
@keyframes aurora-drift-a {
  from { transform: rotate(-14deg) translate3d(0, 0, 0) scale(1); }
  to { transform: rotate(-10deg) translate3d(4%, 6%, 0) scale(1.06); }
}
@keyframes aurora-drift-b {
  from { transform: rotate(-12deg) translate3d(0, 0, 0) scale(1); }
  to { transform: rotate(-16deg) translate3d(-4%, -5%, 0) scale(1.05); }
}
/* Dim variant for content-heavy sections */
.aurora-field.aurora-dim { opacity: 0.5; }

@media (prefers-reduced-motion: reduce) {
  .aurora-field::before,
  .aurora-field::after,
  .holo-text { animation: none; }
}

/* ============================================================
   v2.1 premium elements — bezels, spotlight borders, sheen,
   thread drift, holo hairlines, strong easing tokens
   ============================================================ */

:root {
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-glide: cubic-bezier(0.32, 0.72, 0, 1);
}

/* Double-bezel card architecture — outer machined tray + inner glass core.
   Wrap: <div class="bezel"><div class="bezel-core …">content</div></div> */
.bezel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 6px;
  box-shadow: 0 24px 60px -32px rgba(3, 3, 18, 0.9);
}
.bezel-core {
  background:
    linear-gradient(0deg, rgba(0, 85, 254, 0.07) 0%, rgba(0, 85, 254, 0) 55%),
    var(--color-walnut);
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

/* Cursor-tracked spotlight border — pair with JS setting --mx/--my (px).
   The glow lives on a masked ::before so only the 1px ring illuminates,
   plus a soft interior wash on ::after. Hover-capable pointers only. */
.spotlight-card {
  position: relative;
}
.spotlight-card::before,
.spotlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 260ms var(--ease-out-strong);
  pointer-events: none;
}
.spotlight-card::before {
  padding: 1px;
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 50%),
    rgba(199, 212, 255, 0.85),
    rgba(143, 168, 255, 0.28) 38%,
    transparent 72%
  );
  -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;
}
.spotlight-card::after {
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(143, 168, 255, 0.08),
    transparent 65%
  );
}
@media (hover: hover) and (pointer: fine) {
  .spotlight-card:hover::before,
  .spotlight-card:hover::after { opacity: 1; }
}

/* Sheen sweep — one diagonal light pass across a pill on hover */
.sheen {
  position: relative;
  overflow: hidden;
}
.sheen::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    115deg,
    transparent 32%,
    rgba(255, 255, 255, 0.35) 48%,
    rgba(199, 212, 255, 0.45) 52%,
    transparent 68%
  );
  transform: translateX(-110%);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .sheen:hover::after {
    transform: translateX(110%);
    transition: transform 700ms var(--ease-glide);
  }
}

/* Electric cobalt hairline — center-glow seam for CTA-adjacent boundaries */
.hairline-cobalt {
  height: 1px;
  border: none;
  background: linear-gradient(
    90deg,
    rgba(0, 85, 254, 0) 0%,
    rgba(0, 85, 254, 0.9) 50%,
    rgba(0, 85, 254, 0) 100%
  );
  box-shadow: 0 0 14px rgba(0, 85, 254, 0.35);
}

/* Iridescent hairline divider — replaces flat 1px borders on key seams */
.holo-hairline {
  height: 1px;
  border: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(110, 231, 216, 0.25) 22%,
    rgba(143, 168, 255, 0.5) 50%,
    rgba(240, 163, 200, 0.25) 78%,
    transparent 100%
  );
}

/* Slow lateral drift for HoloThread's line group */
@keyframes thread-drift {
  from { transform: translate3d(-1.5%, 0.6%, 0); }
  to { transform: translate3d(1.5%, -0.6%, 0); }
}
.thread-drift {
  animation: thread-drift 26s var(--ease-glide) infinite alternate;
  will-change: transform;
}

/* Drifting data numerals — hero atmosphere detail */
@keyframes numeral-drift {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.55; }
  50% { transform: translate3d(0, -14px, 0); opacity: 1; }
}
.numeral-drift {
  animation: numeral-drift 11s ease-in-out infinite;
  will-change: transform, opacity;
}

/* Cinematic vignette — grounds a hero without darkening its centre */
.vignette::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 120% 90% at 50% 42%,
    transparent 55%,
    rgba(4, 4, 16, 0.55) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .thread-drift { animation: none; }
  .sheen:hover::after { transition: none; transform: translateX(-110%); }
  .numeral-drift { animation: none; opacity: 0.7; }
}

/* The aurora is two very large blurred layers on an infinite drift. On a phone that
   is continuous GPU compositing for an effect nobody watches for 26 seconds, so the
   drift stops and the blur radius drops below the tablet breakpoint. Same for anyone
   who has asked the OS for reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .aurora-field::before,
  .aurora-field::after { animation: none; }
}
@media (max-width: 768px) {
  .aurora-field::before,
  .aurora-field::after {
    animation: none;
    filter: blur(44px) saturate(1.2);
  }
}
