/* ============================================================
   ConeqtX shared design tokens (v2, v3, v4)
   Imported by content/v2.html, content/v3.html, content/v4.html.
   v1 is intentionally not affected.
   ============================================================ */

:root {
  /* Color */
  --color-bg: #0b1117;          /* lifted blue-black so it doesn't read as pure black */
  --color-surface: #141d27;      /* card layer, clearly above bg */
  --color-surface-2: #1a2330;    /* deeper card / hover */
  --color-accent: #1cabb0;
  --color-accent-dim: #127c80;
  --color-accent-soft: rgba(28, 171, 176, 0.12);
  --color-warm: #d4a574;         /* sandstone accent, used sparingly */
  --color-warm-soft: rgba(212, 165, 116, 0.14);
  --color-white: #ebedef;
  --color-mid: #a8b0b7;          /* secondary text, ~18% brighter than before */
  --color-mid-strong: #c4cad0;   /* paragraph copy that needs more presence */
  --color-mid-soft: rgba(168, 176, 183, 0.2);
  --color-border: #1f2a36;
  --color-border-strong: #2a3a48;

  /* Typography stacks
     Per the standing brand directive, Barlow is the display family
     across every version. Body copy is Manrope. Stacks mirror v1
     exactly so all four versions render identical type. */
  --font-display: "Barlow", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Weights */
  --weight-display-light: 300;
  --weight-display-regular: 400;
  --weight-display-medium: 500;
  --weight-display-bold: 700;
  --weight-display-extra: 800;
  --weight-button: 600;

  /* Layout */
  --container-width: 1200px;
  --section-pad-y: clamp(72px, 9vw, 120px);

  /* Motion */
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient base: lifted blue-black with two soft teal wells that bleed
   between sections so transitions never feel like dead black space. */
body {
  background:
    radial-gradient(
      ellipse 70% 50% at 18% 18%,
      rgba(28, 171, 176, 0.07),
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 50% at 82% 90%,
      rgba(28, 171, 176, 0.05),
      transparent 60%
    ),
    var(--color-bg);
  background-attachment: fixed;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-display-light);
  margin: 0;
  color: var(--color-white);
  letter-spacing: 0.005em;
}

p {
  margin: 0;
}

/* ---------- Shared utility primitives ---------- */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-weight: var(--weight-button);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-soft),
    background-color 0.2s var(--ease-soft), color 0.2s var(--ease-soft),
    border-color 0.2s var(--ease-soft);
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: #0b0c0d;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dim);
  border-color: var(--color-accent-dim);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-border-strong);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ---------- Shared nav + footer skeletons ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 13, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-nav__logo,
.site-footer__logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--color-white);
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav__logo sup,
.site-footer__logo sup {
  display: inline-block;
  color: var(--color-accent);
  font-size: 0.58em;
  font-weight: 700;
  line-height: 0;
  vertical-align: super;
  margin-left: 2px;
  letter-spacing: 0;
  transform: translateY(-0.2em);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--color-white);
  opacity: 0.82;
  transition: opacity 0.2s var(--ease-soft), color 0.2s var(--ease-soft);
}

.site-nav__links a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav__login {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--color-white);
  opacity: 0.78;
}

.site-nav__login:hover {
  opacity: 1;
  color: var(--color-accent);
}

@media (max-width: 880px) {
  .site-nav__links {
    display: none;
  }
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 64px 0 40px;
  background: var(--color-bg);
}

.site-footer__inner {
  display: grid;
  gap: 32px;
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.site-footer__logo {
  font-size: 1.25rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links a {
  font-size: 0.86rem;
  color: var(--color-mid);
  transition: color 0.2s var(--ease-soft);
}

.site-footer__links a:hover {
  color: var(--color-accent);
}

.site-footer__social {
  display: flex;
  gap: 14px;
}

.site-footer__social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  color: var(--color-mid);
  font-size: 0.78rem;
  transition: border-color 0.2s var(--ease-soft), color 0.2s var(--ease-soft);
}

.site-footer__social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.site-footer__legal {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--color-mid);
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__legal p + p {
  margin-top: 8px;
}

/* ---------- Section ambient + sticky lead pattern ---------- */

/* Drop into any section to add a soft teal wash behind it,
   so cards and headings sit on something instead of pure black. */
.ambient-wash {
  position: relative;
  isolation: isolate;
}

.ambient-wash::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      ellipse 60% 60% at 20% 10%,
      rgba(28, 171, 176, 0.06),
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 50% at 90% 90%,
      rgba(212, 165, 116, 0.04),
      transparent 60%
    );
  pointer-events: none;
}

/* v4 mission pattern, lifted into a shared utility:
   In a 2-col grid, the lead column pins to top while the
   body column scrolls past. align-items: start on the grid
   is required for this to engage. */
.sticky-lead {
  position: sticky;
  top: 96px;
  align-self: start;
}

@media (max-width: 880px) {
  .sticky-lead {
    position: static;
    top: auto;
  }
}

/* Warm accent helpers (used sparingly, one moment per page) */
.accent-warm {
  color: var(--color-warm);
}

.accent-warm-line {
  width: 32px;
  height: 1.5px;
  background: var(--color-warm);
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
}

/* ---------- Clean minimal stock ticker (shared across v2, v3, v4) ----------
   The canonical pattern lives on v1; this is the same DOM/keyframe so all
   four rebuilds run an identical ribbon. Two flavors:
   - .tape (default): teal up / coral down chevrons, used on v3
   - .tape.tape--quiet: monochrome, no color, used on v2 and v4 */

.tape {
  position: relative;
  z-index: 60;
  height: 28px;
  background: rgba(11, 17, 23, 0.92);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  white-space: nowrap;
}

.tape__track {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding-left: 100%;
  gap: 28px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
  font-size: 0.72rem;
  color: var(--color-mid);
  animation: tapeRoll 60s linear infinite;
  will-change: transform;
}

.tape__track span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tape__track .sym {
  color: var(--color-white);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.tape__track .up {
  color: var(--color-accent);
}

.tape__track .down {
  color: #ff7a6a; /* coral, mirrors v1 */
}

@keyframes tapeRoll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Editorial / Story register: no color, no green/red — symbol stays white,
   price and change render in --color-mid-strong so it reads as a hairline
   information ribbon, not a markets HUD. */
.tape--quiet {
  background: rgba(11, 17, 23, 0.6);
  border-bottom-color: rgba(235, 237, 239, 0.06);
}

.tape--quiet .tape__track {
  color: var(--color-mid);
}

.tape--quiet .tape__track .up,
.tape--quiet .tape__track .down {
  color: var(--color-mid-strong);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
