/* Shared styles for the Influxar concept subpages (about, advertisers, affiliates).
   Follows the brand book: Paper/Mist/Light sheets, Syne + Figtree, Signal used sparingly. */

:root {
  color-scheme: dark;
  --paper: #050505;
  --ink: #f4f6f8;
  --ink-soft: #9aa8b8;
  --mist: #1a222e;
  --signal: #1fbf8f;
  --signal-bright: #3dd9a8;
  --signal-deep: #087556;
  --light-page: #edf1f4;
  --light-ink: #0c1117;
  --light-soft: #5d6a79;
  --line: #27313d;
  --line-light: #cdd5dc;
  --display: "Syne", "Arial Black", sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-synthesis: none;
  overflow-x: clip;
}

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

a { color: inherit; }

::selection { background: rgba(31, 191, 143, 0.35); }

/* film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- nav ---------- */
.site-nav {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid transparent;
  transition: background 300ms ease-out, border-color 300ms ease-out;
}

.site-nav.scrolled {
  border-color: rgba(39, 49, 61, 0.7);
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(16px);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.nav-logo img { height: 26px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:not(.btn) {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 220ms ease-out;
}

.nav-links a:not(.btn):hover { color: var(--ink); }

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--signal-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 22px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 220ms ease-out, background 220ms ease-out,
    border-color 220ms ease-out, color 220ms ease-out, box-shadow 220ms ease-out;
}

.btn:hover { transform: translateY(-2px); border-color: var(--ink-soft); }

.btn.primary {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--paper);
}

.btn.primary:hover {
  background: var(--signal-bright);
  border-color: var(--signal-bright);
  box-shadow: 0 10px 34px rgba(31, 191, 143, 0.3);
}

.nav-links .btn { padding: 9px 18px; }

/* ---------- page hero ---------- */
.hero {
  position: relative;
  display: flex;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 18% 25%, rgba(31, 191, 143, 0.11), transparent 60%),
    radial-gradient(ellipse 60% 45% at 85% 80%, rgba(255, 255, 255, 0.035), transparent 55%),
    linear-gradient(160deg, #050505 0%, #0a0c10 45%, #0d1118 100%);
}

.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(154, 168, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 168, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
  padding: 168px 0 140px;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  margin: 0 0 22px;
  color: var(--signal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 14em;
  font-family: var(--display);
  font-size: clamp(40px, 5.2vw, 76px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero h1 .word { display: block; will-change: transform, opacity, filter; }

.hero h1 .word + .word { margin-top: 0.1em; }

.hero h1 .accent { color: var(--signal-bright); }

.hero-sub {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.6;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-cube {
  position: absolute;
  z-index: 1;
  top: 24%;
  right: 2%;
  display: grid;
  width: min(280px, 20vw);
  place-items: center;
  opacity: 0.85;
}

.hero-cube img {
  width: 100%;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.55));
  will-change: transform;
}

.hero-cube::before {
  content: "";
  position: absolute;
  width: 136%;
  aspect-ratio: 1;
  border: 1px solid rgba(61, 217, 168, 0.14);
  border-radius: 50%;
}

/* ---------- sections ---------- */
section.block { padding: 130px 0; }

/* Hero + first content block each fill a viewport so the next sheet does not peek. */
section.block.screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 168px 0;
}

section.block.light {
  background:
    radial-gradient(ellipse 55% 45% at 88% 8%, rgba(31, 191, 143, 0.07), transparent 60%),
    var(--light-page);
  color: var(--light-ink);
}

section.block.mist {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 70% at 80% 30%, rgba(31, 191, 143, 0.08), transparent 60%),
    linear-gradient(150deg, rgba(31, 191, 143, 0.05), transparent 40%),
    var(--mist);
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  color: var(--signal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-eyebrow::after {
  content: "";
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--signal), transparent);
}

.light .section-eyebrow { color: var(--signal-deep); }

.light .section-eyebrow::after {
  background: linear-gradient(90deg, var(--signal-deep), transparent);
}

h2 {
  margin: 0 0 28px;
  font-family: var(--display);
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.94;
}

h2 .line { display: block; overflow: hidden; }
h2 .line > span { display: block; will-change: transform; }

.lead {
  max-width: 640px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.6;
}

.light .lead { color: var(--light-soft); }

.copy { max-width: 640px; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.copy p { margin: 0 0 18px; }
.copy p:last-child { margin-bottom: 0; }
.copy strong { color: var(--ink); }
.light .copy { color: var(--light-soft); }
.light .copy strong { color: var(--light-ink); }

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
}

.card-grid.four { grid-template-columns: repeat(2, 1fr); }

.info-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 30px 38px;
  background: rgba(244, 246, 248, 0.025);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), border-color 320ms ease-out, background 320ms ease-out;
  will-change: transform, opacity;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--signal-bright), transparent 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.info-card:hover {
  transform: translateY(-6px);
  border-color: rgba(61, 217, 168, 0.4);
  background: rgba(244, 246, 248, 0.045);
}

.info-card:hover::before { transform: scaleX(1); }

.info-card .num {
  display: block;
  margin-bottom: 36px;
  color: var(--signal);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
}

.info-card h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.info-card p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

.info-card .behaviour {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 13.5px;
}

.info-card .behaviour strong { color: var(--ink); }

/* ---------- expect rows (light sheet) ---------- */
.expect-list { margin-top: 56px; }

.expect-row {
  display: grid;
  grid-template-columns: 90px 260px 1fr;
  gap: 28px;
  align-items: baseline;
  border-top: 1px solid var(--line-light);
  padding: 30px 0;
  will-change: transform, opacity;
}

.expect-row:last-child { border-bottom: 1px solid var(--line-light); }

.expect-row .num {
  color: var(--signal-deep);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
}

.expect-row h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.expect-row p { margin: 0; color: var(--light-soft); font-size: 15.5px; line-height: 1.6; }

/* ---------- expanders (FAQ) ---------- */
.faq { margin-top: 48px; max-width: 820px; }

.expander { border-top: 1px solid var(--line); }

.expander-heading { margin: 0; font-size: inherit; font-weight: inherit; }

.expander:last-child { border-bottom: 1px solid var(--line); }

.expander-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 26px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
}

.expander-toggle .chev {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(31, 191, 143, 0.16);
  transform-origin: 50% 50%;
  transition: background 220ms ease-out;
}

.expander-toggle:hover .chev { background: rgba(31, 191, 143, 0.32); }

.expander-toggle .chev::before,
.expander-toggle .chev::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--signal-bright);
  transform: translate(-50%, -50%);
}

.expander-toggle .chev::before { width: 12px; height: 2px; }
.expander-toggle .chev::after { width: 2px; height: 12px; }

.expander.open .expander-toggle .chev { background: var(--signal); }

.expander.open .expander-toggle .chev::before,
.expander.open .expander-toggle .chev::after { background: var(--paper); }

.expander-detail { overflow: hidden; }

.expander-detail p {
  max-width: 680px;
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ---------- company details ---------- */
.company-card {
  margin-top: 48px;
  border: 1px solid var(--line-light);
  border-radius: 20px;
  padding: 36px;
  background: rgba(255, 255, 255, 0.55);
}

.company-card dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 0;
}

.company-card dt {
  margin-bottom: 8px;
  color: var(--light-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.company-card dd {
  margin: 0;
  color: var(--light-ink);
  font-size: 15.5px;
  line-height: 1.55;
}

.company-card a { color: var(--signal-deep); text-underline-offset: 3px; }

/* ---------- cta band ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: 150px 0; }

.cta-band .grid-lines { mask-image: radial-gradient(ellipse at center, black, transparent 75%); }

.cta-band .section-eyebrow { justify-content: center; }

.cta-band .section-eyebrow::after { display: none; }

.cta-band h2 { margin-bottom: 36px; will-change: transform; }

.cta-band .cta-email {
  display: block;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  text-decoration-color: rgba(31, 191, 143, 0.5);
  text-underline-offset: 4px;
}

.cta-cube {
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 360px;
  opacity: 0.06;
  pointer-events: none;
  will-change: transform;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 40px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.6fr);
  gap: 40px;
  margin-bottom: 56px;
}

.footer-grid img { height: 24px; margin-bottom: 18px; }

.footer-grid p { max-width: 300px; margin: 0; color: var(--ink-soft); line-height: 1.6; }

.footer-col strong {
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 200ms ease-out;
}

.footer-col a:hover { color: var(--signal-bright); }

.footer-wordmark {
  overflow: hidden;
  margin: 16px 0 52px;
  text-align: center;
}

.footer-wordmark img {
  width: 55%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  will-change: transform;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { padding-top: 130px; }
  .hero h1 { font-size: clamp(32px, 8vw, 48px); }
  .hero-cube { top: 8%; width: 120px; opacity: 0.5; }
  .card-grid, .card-grid.four { grid-template-columns: 1fr; }
  .expect-row { grid-template-columns: 60px 1fr; }
  .expect-row p { grid-column: 2; }
  .company-card dl { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-wordmark img { width: 100%; }
  .nav-links { gap: 14px; font-size: 13px; }
  .nav-links .btn { padding: 8px 14px; font-size: 13px; }
  .nav-logo img { height: 22px; }
  section.block { padding: 90px 0; }
  section.block.screen { padding: 120px 0; }
}

@media (max-width: 480px) {
  .site-nav .wrap { width: calc(100% - 24px); }
  .nav-links { gap: 8px; font-size: 12px; }
  .nav-links .btn { padding: 6px 11px; font-size: 12px; }
  .nav-logo img { height: 17px; }
}

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