/* ── Test Chain marketing site — shared across landing + blog ─────────────── */
/* Same base palette as the app itself (login.html, style.css), plus a       */
/* distinctive display wordmark font and a few atmospheric touches.          */

/* Google Fonts loaded via <link> in the page <head> (not @import here) so the
   browser can fetch it in parallel with this stylesheet instead of only
   discovering it after this file downloads and parses. */

:root {
  --bg:        #0f0f13;
  --bg2:       #1a1a22;
  --bg3:       #23232f;
  --bg4:       #2c2c3a;
  --border:    #2e2e3d;
  --text:      #e8e8f0;
  --text2:     #b0b0c8;
  --text3:     #9090aa;
  --accent:    #7c6af7;
  --accent-h:  #9a8afb;
  --success:   #34d399;
  --pink:      #f472b6;
  --cyan:      #22d3ee;
  --amber:     #fbbf24;
  --lime:      #a3e635;
  /* playful multi-hue ramp — reused for gradient text, buttons, glows */
  --grad:      linear-gradient(100deg, #7c6af7 0%, #b06ff2 28%, #f472b6 55%, #22d3ee 100%);
  --grad-soft: linear-gradient(100deg, #7c6af7, #f472b6 60%, #22d3ee);
  /* button-only ramp: purple at BOTH ends with a pink accent through the
     middle, so neither the left edge nor the hover background-position slide
     exposes a saturated colored sliver at a corner */
  --grad-btn:  linear-gradient(100deg, #7c6af7 0%, #c86ff0 55%, #8b74f7 100%);
  --light-bg:  #e9e8ec;
  --light-bg2: #dedce3;
  --light-text: #14131a;
  --light-text2: #55536a;
  --light-border: #c9c7d1;
  --display:   'Gasoek One', -apple-system, sans-serif;
  --mono:      'IBM Plex Mono', ui-monospace, monospace;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}
a { color: inherit; }

/* grain — for depth rather than a flat fill */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Motion (our own, not extracted from any reference) ─────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

.split-word { display: inline-block; white-space: nowrap; }
.split-char { display: inline-block; opacity: 0; transform: translateY(0.4em); transition: opacity 0.45s ease, transform 0.45s ease; }
.split-char.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .split-char { opacity: 1; transform: none; transition: none; }
}

/* faint vertical column guides behind full-bleed dark sections */
.cols { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cols i {
  position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border);
  left: var(--x);
}

/* eyebrow tag used above section headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text3);
}
.eyebrow::before { content: '◆'; font-size: 9px; color: var(--accent); }
.light .eyebrow { color: var(--light-text2); }

/* light band utility — sections that flip to the pale side, like the reference */
.light { background: var(--light-bg); color: var(--light-text); }
.light .wrap { color: inherit; }

/* ── Nav (minimal: logo + menu toggle only, like the reference) ────────────── */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  padding: 16px 32px;
  background: rgba(15,15,19,0.75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
.brand { display: flex; align-items: center; gap: 9px; font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; flex-shrink: 0; }
.brand svg { color: var(--accent); flex-shrink: 0; }
.brand .brand-logo { display: block; flex-shrink: 0; }

/* Inline desktop nav — links + CTAs, shown at wider widths */
.nav-links, .nav-ctas { display: none; }

.menu-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; border: none; background: none; cursor: pointer; padding: 0;
  margin-left: auto;
}
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: transform 0.2s, opacity 0.2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Desktop nav (≥760px): show inline links + CTAs, hide the hamburger ──── */
@media (min-width: 760px) {
  .nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
  .nav-links a {
    font-family: var(--mono); font-size: 13px; letter-spacing: 0.01em;
    color: var(--text2); text-decoration: none; position: relative; padding: 4px 0;
    transition: color 0.15s;
  }
  .nav-links a::after {
    content: ''; position: absolute; left: 0; right: 100%; bottom: -1px; height: 1.5px;
    background: var(--grad); transition: right 0.22s ease;
  }
  .nav-links a:hover { color: var(--text); }
  .nav-links a:hover::after { right: 0; }
  .nav-ctas { display: flex; align-items: center; gap: 10px; }
  .nav-ctas .btn-2 { padding: 9px 15px; font-size: 13px; box-shadow: 0 4px 16px -9px rgba(124,106,247,0.85); }
  .nav-ctas .btn-2:hover { box-shadow: 0 9px 22px -9px rgba(124,106,247,0.95); }
  .menu-toggle { display: none; }
}

/* ── Fullscreen overlay menu ────────────────────────────────────────────── */
.menu-overlay {
  position: fixed; inset: 0; z-index: 40;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 90px 40px 40px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.menu-open .menu-overlay { transform: translateY(0); }
.menu-overlay .tag { font-family: var(--mono); font-size: 12px; color: var(--text3); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 30px; }
.menu-overlay nav { display: flex; flex-direction: column; gap: 6px; margin-bottom: auto; }
.menu-overlay nav a {
  font-family: var(--mono); font-size: clamp(28px, 6vw, 48px); font-weight: 500; color: var(--text);
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--border);
  transition: color 0.15s, padding-left 0.15s;
}
.menu-overlay nav a:hover { color: var(--accent); padding-left: 10px; }
.menu-overlay .overlay-ctas { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
@media (max-width: 640px) { .menu-overlay { padding: 80px 20px 30px; } }

/* ── Button — solid gradient primary + outlined secondary ─────────────────── */
.btn-2 {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; text-decoration: none; cursor: pointer; line-height: 1;
  border-radius: 10px; font-size: 14px; font-weight: 700;
  color: #fff; border: 1px solid transparent;
  background: var(--grad-btn); background-size: 160% 100%; background-position: 0 0;
  box-shadow: 0 8px 22px -10px rgba(124,106,247,0.85);
  transition: transform 0.16s cubic-bezier(.2,.8,.2,1.4), box-shadow 0.2s, background-position 0.5s ease;
}
.btn-2:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(124,106,247,0.95); background-position: 100% 0; }
.btn-2:active { transform: translateY(0); box-shadow: 0 5px 14px -10px rgba(124,106,247,0.9); }
.btn-2 .icon { display: inline-flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; }
.btn-2 .label { display: inline-flex; align-items: center; }
@keyframes btnHue { to { background-position: 200% 0; } }

/* secondary / ghost — reads clearly as a button, just lower emphasis */
.btn-2.ghost {
  color: var(--text); background: var(--bg2); border-color: var(--border);
  box-shadow: none;
}
.btn-2.ghost:hover { background: var(--bg3); border-color: var(--accent-h); box-shadow: none; transform: translateY(-2px); }
.btn-2.ghost .icon { color: var(--accent-h); }

/* ── Animated gradient text ─────────────────────────────────────────────── */
.gradient-text {
  background: var(--grad); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: hueShift 6s ease-in-out infinite;
}
@keyframes hueShift { 0%,100% { background-position: 0 0; } 50% { background-position: 100% 0; } }

/* ── Aurora — floating colour blobs behind hero / CTA ───────────────────── */
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 130%; z-index: 0; pointer-events: none; overflow: hidden; filter: blur(60px); opacity: 0.55; }
.aurora b {
  position: absolute; display: block; width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  border-radius: 50%; mix-blend-mode: screen; will-change: transform;
}
.aurora b:nth-child(1) { background: #7c6af7; top: -12%; left: -6%; animation: drift1 18s ease-in-out infinite; }
.aurora b:nth-child(2) { background: #f472b6; top: 8%; right: -8%; left: auto; animation: drift2 22s ease-in-out infinite; }
.aurora b:nth-child(3) { background: #22d3ee; bottom: -18%; left: 30%; animation: drift3 26s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(14%,10%) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1.05); } 50% { transform: translate(-12%,14%) scale(.9); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8%,-12%) scale(1.2); } }

/* ── Marquee (looping horizontal scroller) ──────────────────────────────── */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .gradient-text, .btn-2 .icon, .aurora b { animation: none !important; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* generic containers */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
@media (max-width: 640px) { .wrap, .nav { padding-left: 20px; padding-right: 20px; } }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  position: relative;
  overflow: hidden;
}
footer.site-footer .footer-top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--text3);
  padding: 0 32px 28px;
}
footer.site-footer a { color: var(--text3); text-decoration: none; }
footer.site-footer a:hover { color: var(--text2); }
footer.site-footer .links { display: flex; gap: 22px; }
footer.site-footer .wordmark {
  font-family: var(--display); font-size: clamp(64px, 14vw, 168px); line-height: 0.8;
  text-align: center; letter-spacing: -0.01em;
  padding-bottom: 6px; user-select: none;
  background: linear-gradient(180deg, var(--bg3) 0%, var(--bg2) 60%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  transition: opacity 0.4s;
}
footer.site-footer:hover .wordmark {
  background: var(--grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hueShift 6s ease-in-out infinite;
}
@media (max-width: 640px) { footer.site-footer .footer-top { padding: 0 20px 22px; } }
