/* ============================================================
   Novinzar Trading — design system
   Cinematic editorial: monochrome architecture, whisper-weight
   display type, full-bleed dark frames, pill controls, no shadows.
   ============================================================ */

:root {
  /* Colors */
  --color-paper-white: #ffffff;
  --color-ink-black: #000000;
  --color-carbon: #181818;
  --color-ash: #6d6d6d;
  --color-smoke: #9a9a9a;
  --color-pewter: #808080;
  --color-graphite: #636363;
  --color-mercury-flow: #a0e0ab;
  --gradient-mercury-flow: linear-gradient(90deg, rgb(160, 224, 171), rgb(255, 172, 46) 50%, rgb(165, 45, 37));
  /* Atmospheric gold — reserved for hero/feature renders only */
  --gradient-bullion: radial-gradient(120% 120% at 30% 20%, #2a2317 0%, #0c0a06 55%, #000000 100%);
  --gradient-gold-flow: linear-gradient(120deg, #5b4a1f 0%, #c79a3c 38%, #f4d27a 52%, #9c6b2a 70%, #3a2c12 100%);

  /* Typography — Roobert substituted with Inter; Raleway secondary */
  --font-roobert: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-raleway: 'Raleway', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-system-ui: 'system-ui', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Typography — Scale */
  --text-body: 16px;
  --leading-body: 1.39;
  --text-body-lg: 18px;
  --leading-body-lg: 1.36;
  --text-subheading: 30px;
  --leading-subheading: 1.25;
  --text-heading-sm: 45px;
  --leading-heading-sm: 1.22;
  --text-heading: 54px;
  --leading-heading: 1.21;
  --text-heading-lg: 78px;
  --leading-heading-lg: 1.15;
  --text-display: 94px;
  --leading-display: 1.1;
  --text-hero: 225px;
  --leading-hero: 0.76;

  /* Weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;

  /* Spacing */
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-28: 28px;
  --spacing-40: 40px;
  --spacing-48: 48px;
  --spacing-64: 64px;
  --spacing-68: 68px;
  --spacing-152: 152px;

  /* Layout */
  --page-max-width: 1440px;
  --gutter: 40px;

  /* Radius */
  --radius-full: 75.024px;
}

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

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

body {
  margin: 0;
  background: var(--color-paper-white);
  color: var(--color-carbon);
  font-family: var(--font-roobert);
  font-size: var(--text-body-lg);
  line-height: var(--leading-body-lg);
  font-weight: var(--font-weight-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: var(--color-ink-black); color: var(--color-paper-white); }

/* ---------- Utilities ---------- */
.shell {
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: 11px;
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ash);
}

.eyebrow.on-dark { color: var(--color-smoke); }

.display {
  font-weight: var(--font-weight-light);
  letter-spacing: -0.02em;
}

/* Type scale — exact token values (DESIGN.md Type Scale) */
.t-hero {
  font-size: var(--text-hero);          /* 225px */
  line-height: var(--leading-hero);     /* 0.76 */
  font-weight: var(--font-weight-light);
}
.t-display {
  font-size: var(--text-display);       /* 94px */
  line-height: var(--leading-display);  /* 1.1 */
  font-weight: var(--font-weight-light);
}
.t-heading-lg {
  font-size: var(--text-heading-lg);    /* 78px */
  line-height: var(--leading-heading-lg); /* 1.15 */
  font-weight: var(--font-weight-light);
}
.t-heading {
  font-size: var(--text-heading);       /* 54px */
  line-height: var(--leading-heading);  /* 1.21 */
  font-weight: var(--font-weight-light);
}
.t-heading-sm {
  font-size: var(--text-heading-sm);    /* 45px */
  line-height: var(--leading-heading-sm); /* 1.22 */
  font-weight: var(--font-weight-light);
}
.t-subheading {
  font-size: var(--text-subheading);    /* 30px */
  line-height: var(--leading-subheading); /* 1.25 */
  font-weight: var(--font-weight-light);
}
/* Raleway secondary display — 54px tier (token: 5xl-2) */
.t-quote {
  font-family: var(--font-raleway);
  font-size: var(--text-heading);       /* 54px */
  line-height: 1.39;                     /* Raleway token 5xl-2 */
  font-weight: var(--font-weight-regular);
}
.lead {
  font-size: var(--text-body-lg);       /* 18px */
  line-height: var(--leading-body-lg);  /* 1.36 */
  color: var(--color-carbon);
}
.muted { color: var(--color-ash); }
.on-dark { color: var(--color-paper-white); }

/* ---------- Pill button ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-full);
  padding: 12px 24px;
  font-size: 12px;
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.pill--solid-light { background: var(--color-paper-white); color: var(--color-ink-black); }
.pill--solid-light:hover { background: var(--color-carbon); color: var(--color-paper-white); }
.pill--solid-dark { background: var(--color-ink-black); color: var(--color-paper-white); }
.pill--solid-dark:hover { background: var(--color-carbon); }
.pill--ghost-light { border-color: rgba(0,0,0,.25); color: var(--color-carbon); }
.pill--ghost-light:hover { background: var(--color-ink-black); color: var(--color-paper-white); border-color: var(--color-ink-black); }
.pill--ghost-dark { border-color: rgba(255,255,255,.35); color: var(--color-paper-white); }
.pill--ghost-dark:hover { background: var(--color-paper-white); color: var(--color-ink-black); border-color: var(--color-paper-white); }
.pill--utility { background: var(--color-graphite); color: var(--color-paper-white); padding: 6px 16px; letter-spacing: .04em; }
.pill--utility:hover { background: var(--color-carbon); }

/* ============================================================
   Top navigation
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  color: var(--color-paper-white);
  transition: background-color .4s ease, color .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--color-paper-white);
  color: var(--color-carbon);
  border-bottom-color: rgba(0,0,0,.08);
}
.nav__brand {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: var(--font-weight-semibold);
}
.nav__brand span { font-weight: var(--font-weight-regular); opacity: .6; }
.nav__cluster { display: flex; align-items: center; gap: 28px; }
.nav__menu { display: flex; gap: 22px; }
.nav__link {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .35s ease;
}
.nav__link:hover::after { width: 100%; }
.nav__toggle { display: none; background: none; border: 0; color: inherit; cursor: pointer; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* ============================================================
   Hero — full-bleed dark immersive frame
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--gradient-bullion);
  color: var(--color-paper-white);
  overflow: hidden;
}
.hero__atmos {
  position: absolute;
  inset: -10% -10% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: var(--gradient-gold-flow);
  filter: blur(60px) saturate(115%);
  opacity: .55;
  border-radius: 50%;
  transform: translate3d(0,0,0);
  animation: drift 18s ease-in-out infinite alternate, atmosPulse 9s ease-in-out infinite;
  pointer-events: none;
}
.hero__grain {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 50% 120%, rgba(0,0,0,.65), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 30%);
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-4%, 4%, 0) scale(1.08); }
}
@keyframes atmosPulse {
  0%, 100% { opacity: .5; }
  50%      { opacity: .62; }
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes goldShimmer {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__eyebrow { margin-bottom: 28px; animation: heroRise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 { margin-bottom: 40px; animation: heroRise .9s cubic-bezier(.2,.7,.2,1) .12s both; }
.hero h1 em { font-style: normal; display: block; color: var(--color-mercury-flow); background: var(--gradient-gold-flow); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: goldShimmer 7s ease-in-out infinite alternate; }
.hero__sub {
  max-width: 620px;
  font-size: var(--text-body-lg);       /* 18px */
  line-height: var(--leading-body-lg);  /* 1.36 */
  color: rgba(255,255,255,.78);
  margin-bottom: 40px;
  animation: heroRise .9s cubic-bezier(.2,.7,.2,1) .24s both;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; animation: heroRise .9s cubic-bezier(.2,.7,.2,1) .36s both; }
.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-system-ui);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  animation: heroRise .9s cubic-bezier(.2,.7,.2,1) .6s both;
}
.hero__scroll::before {
  content: "";
  width: 38px; height: 1px;
  background: rgba(255,255,255,.5);
  animation: scrollline 2.4s ease-in-out infinite;
  transform-origin: left;
}
@keyframes scrollline { 0%,100% { transform: scaleX(.4); opacity:.4 } 50% { transform: scaleX(1); opacity:1 } }
.hero__ticker {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  z-index: 2;
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  animation: heroRise .9s cubic-bezier(.2,.7,.2,1) .72s both;
}
.hero__ticker strong { color: var(--color-paper-white); font-weight: var(--font-weight-semibold); }

/* ============================================================
   Sections — generic rhythm
   ============================================================ */
.section { padding-block: clamp(80px, 9vw, 120px); }  /* DESIGN section gap 80–120px */
.section--dark { background: var(--color-ink-black); color: var(--color-paper-white); }
.section--carbon { background: var(--color-carbon); color: var(--color-paper-white); }

.section__head { max-width: 900px; margin-bottom: 64px; }
.section__head .eyebrow { display: block; margin-bottom: 24px; }

/* Two-column editorial split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.split__aside { position: sticky; top: 120px; }

/* Manifest list */
.manifest { display: grid; gap: 36px; }
.manifest__row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(0,0,0,.1);
}
.section--dark .manifest__row,
.section--carbon .manifest__row { border-bottom-color: rgba(255,255,255,.14); }
.manifest__row:last-child { border-bottom: 0; padding-bottom: 0; }
.manifest__num { font-size: 12px; letter-spacing: .1em; color: var(--color-ash); padding-top: 8px; }
.manifest__row h3 { font-size: var(--text-subheading); line-height: var(--leading-subheading); font-weight: var(--font-weight-light); margin-bottom: 12px; }
.manifest__row p { color: var(--color-ash); font-size: 16px; line-height: 1.5; max-width: 56ch; }
.section--dark .manifest__row p,
.section--carbon .manifest__row p { color: var(--color-smoke); }

/* ============================================================
   Services grid — three core capabilities
   ============================================================ */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.14); }
.service {
  background: var(--color-ink-black);
  padding: 48px 40px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: background-color .4s ease;
}
.service:hover { background: #0e0e0e; }
.service__index { font-size: 12px; letter-spacing: .12em; color: var(--color-smoke); }
.service__body h3 { font-size: var(--text-heading-sm); line-height: var(--leading-heading-sm); font-weight: var(--font-weight-light); margin-bottom: 18px; }
.service__body p { color: var(--color-smoke); font-size: 16px; line-height: 1.5; max-width: 34ch; }
.service__tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-ash); }
.service__glow {
  position: absolute; right: -30%; top: -30%;
  width: 80%; aspect-ratio: 1;
  background: var(--gradient-gold-flow);
  filter: blur(70px);
  opacity: 0; transition: opacity .5s ease;
  border-radius: 50%;
  pointer-events: none;
}
.service:hover .service__glow { opacity: .35; }

/* ============================================================
   Corridors — import/export routes
   ============================================================ */
.corridors { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(0,0,0,.12); }
.corridor {
  background: var(--color-paper-white);
  padding: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.corridor__route {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-ash);
  margin-bottom: 28px;
}
.corridor__route span:nth-child(2) { flex: 1; height: 1px; background: rgba(0,0,0,.18); }
.corridor h3 { font-size: var(--text-heading-lg); line-height: var(--leading-heading-lg); font-weight: var(--font-weight-light); margin-bottom: 24px; }
.corridor p { color: var(--color-ash); max-width: 46ch; margin-bottom: 32px; font-size: 16px; line-height: 1.55; }
.corridor__meta { display: flex; gap: 40px; }
.corridor__meta dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-smoke); margin-bottom: 6px; }
.corridor__meta dd { margin: 0; font-size: 18px; font-weight: var(--font-weight-light); }

/* Corridor card imagery — full-bleed top, framed by the card padding */
.corridor__media {
  aspect-ratio: 16 / 9;
  margin: calc(-1 * clamp(40px, 6vw, 80px)) calc(-1 * clamp(32px, 4vw, 56px)) 36px;
  background-size: cover;
  background-position: center;
  filter: contrast(1.06) saturate(1.06);
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.corridor:hover .corridor__media { transform: scale(1.03); }

/* ============================================================
   Breakers — full-bleed cinematic image interludes
   ============================================================ */
.breaker {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-paper-white);
}
.breaker__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(.25) brightness(.78) contrast(1.05);
  transform: scale(1.06);
  transition: transform 14s ease-out;
}
.breaker.is-in .breaker__media { transform: scale(1.16); }
.breaker__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,7,4,.42) 0%, rgba(0,0,0,.84) 100%),
    linear-gradient(120deg, rgba(199,154,60,.16) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
}
.breaker__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.breaker__inner .eyebrow { display: block; margin-bottom: 20px; }
.breaker__inner .t-heading-lg { max-width: 22ch; }

@media (max-width: 820px) {
  .breaker { min-height: 56vh; }
  .breaker__inner .t-heading-lg { max-width: 18ch; }
}

/* ============================================================
   Stats band
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat__num { font-size: var(--text-display); line-height: var(--leading-display); font-weight: var(--font-weight-light); }
.stat__label { margin-top: 16px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-smoke); }

/* ============================================================
   CTA
   ============================================================ */
.cta { text-align: center; }
.cta .t-display { margin-bottom: 40px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--color-ink-black); color: var(--color-paper-white); padding-block: 80px 40px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 80px; }
.footer__brand .t-heading { margin-bottom: 24px; }
.footer__brand p { color: var(--color-smoke); max-width: 34ch; font-size: 15px; line-height: 1.5; }
.footer__col h4 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-ash); margin-bottom: 20px; }
.footer__col a, .footer__col p { display: block; font-size: 15px; color: rgba(255,255,255,.8); margin-bottom: 12px; }
.footer__col a:hover { color: var(--color-paper-white); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12px; letter-spacing: .06em; color: var(--color-smoke); }
.footer__bottom .footer__legal { display: flex; gap: 24px; }

/* ============================================================
   Cookie banner
   ============================================================ */
.cookie {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 120;
  max-width: 360px;
  background: var(--color-paper-white);
  color: var(--color-carbon);
  padding: 24px;
  border: 1px solid rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity .4s ease, transform .4s ease;
}
.cookie[hidden] { display: none; }
.cookie.is-hiding { opacity: 0; transform: translateY(12px); }
.cookie p { font-size: 12px; line-height: 1.5; }
.cookie a { text-decoration: underline; }
.cookie__row { display: flex; align-items: center; gap: 12px; }
.cookie__dismiss { background: none; border: 0; cursor: pointer; font-size: 12px; color: var(--color-ash); margin-left: auto; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
/* Type step-downs — desktop (>=1024px) stays pixel-exact to the tokens;
   smaller viewports scale the monumental sizes to prevent overflow. */
@media (max-width: 1024px) {
  .services { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 56px 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .t-hero { font-size: 120px; }
  .t-display { font-size: 64px; }
  .t-heading-lg { font-size: 54px; }
  .corridor h3 { font-size: 54px; }
  .stat__num { font-size: 64px; }
}
@media (max-width: 820px) {
  :root { --gutter: 24px; }
  .nav__menu { display: none; }
  .nav__cluster.is-open { display: flex; }
  .nav__toggle { display: block; }
  .nav.is-open {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    background: var(--color-paper-white);
    color: var(--color-carbon);
    padding-bottom: 32px;
  }
  .nav.is-open .nav__cluster { flex-direction: column; align-items: flex-start; gap: 20px; width: 100%; }
  .nav.is-open .nav__menu { display: flex; flex-direction: column; gap: 18px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split__aside { position: static; }
  .corridors { grid-template-columns: 1fr; }
  .manifest__row { grid-template-columns: 40px 1fr; gap: 16px; }
}
@media (max-width: 820px) {
  .t-hero { font-size: 78px; }
  .t-display { font-size: 54px; }
  .t-heading-lg { font-size: 45px; }
  .t-heading { font-size: 39px; }
  .t-quote { font-size: 39px; }
  .service__body h3 { font-size: 39px; }
  .corridor h3 { font-size: 45px; }
  .stat__num { font-size: 54px; }
}
@media (max-width: 560px) {
  .t-hero { font-size: 54px; }
  .t-display { font-size: 39px; }
  .stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
  .corridor__meta { flex-direction: column; gap: 20px; }
  .cookie { right: 16px; left: 16px; bottom: 16px; max-width: none; }
}
