/* ============================================================
   ZIRTRADE — design system v2 (editorial black/white/blue)
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/newsreader-var.woff2') format('woff2');
}

:root {
  --black: #0a0a0a;
  --ink: #111111;
  --paper: #ffffff;
  --panel-bg: #f1f2f2;
  --line: #e4e6e8;
  --muted: #565d66;
  --muted-dark: rgba(255, 255, 255, .68);
  --blue: #2274a5;
  --blue-hover: #1b5d85;
  --blue-deep: #104497;
  --blue-light: #63bce9;
  --radius: 10px;
  --radius-panel: 22px;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* editorial serif display */
.h-display, .h-serif {
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: -0.01em;
}
.h-display { font-size: clamp(2.7rem, 5.5vw, 4.6rem); line-height: 1.04; }
.h-serif   { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.08; }
.h-xl      { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

.lede {
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 46ch;
}

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.on-dark .eyebrow { color: var(--blue-light); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .lede, .on-dark p { color: var(--muted-dark); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  font-size: .85rem;
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand .mark { width: 32px; height: 32px; flex: none; }
.brand .name {
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .22em;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .72);
  transition: color .15s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 18px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }

.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(0, 0, 0, .25); }
.btn-ghost:hover { border-color: var(--ink); }
.on-dark .btn-ghost, .hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.on-dark .btn-ghost:hover, .hero .btn-ghost:hover { border-color: #fff; }

.btn-sm { padding: 9px 16px; font-size: .83rem; }

.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Orb ---------- */

.orb {
  position: absolute;
  left: 50%;
  top: -68%;
  transform: translateX(-50%);
  width: min(1350px, 155vw);
  aspect-ratio: 1;
  background: url('/assets/art/orb.webp') center / contain no-repeat;
  animation: orbfloat 16s ease-in-out infinite;
  pointer-events: none;
}
.orb-bottom { top: auto; bottom: -88%; animation-name: orbfloat-b; }
@keyframes orbfloat   { 50% { transform: translateX(-50%) translateY(20px) scale(1.01); } }
@keyframes orbfloat-b { 50% { transform: translateX(-50%) translateY(-16px) scale(1.01); } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 64px;
  align-items: end;
  padding-block: 110px 96px;
}
.hero-copy h1 { color: #fff; }
.hero-side { padding-bottom: 6px; }
.hero-side .lede { color: rgba(255, 255, 255, .82); font-size: 1rem; }
.hero-side .btn-row { margin-top: 26px; }

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px 16px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .8rem;
  color: rgba(255, 255, 255, .6);
  flex-wrap: wrap;
}
.hero-note .note-item { display: inline-flex; align-items: center; gap: 16px; white-space: nowrap; }
.hero-note .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, .35); }

/* ---------- Stats band (flat color blocks) ---------- */

.stats-band { background: var(--black); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.stat {
  min-height: 250px;
  padding: 30px 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stat .num {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.stat .lbl { font-size: .82rem; line-height: 1.5; max-width: 24ch; opacity: .85; }
.stat-a { background: var(--blue); color: #fff; }
.stat-b { background: var(--blue-light); color: var(--black); }
.stat-c { background: var(--blue-deep); color: #fff; }
.stat-d { background: var(--panel-bg); color: var(--black); }

/* ---------- Dark intro band ---------- */

.intro-band { position: relative; background: var(--black); text-align: center; padding: 110px 0; }
.intro-band .eyebrow { margin-bottom: 22px; }
.intro-band .lede { margin: 22px auto 0; max-width: 58ch; }
.intro-band .btn-row { justify-content: center; margin-top: 32px; }

/* ---------- Panels zone ---------- */

.panels-zone { background: var(--panel-bg); padding: 28px 0; }
.panel-stack { display: grid; gap: 24px; }

.panel {
  background: var(--paper);
  border-radius: var(--radius-panel);
  padding: clamp(36px, 5vw, 72px);
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.panel-copy h3 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  letter-spacing: -.025em;
  margin-bottom: 16px;
  max-width: 18ch;
}
.panel-copy p { color: var(--muted); font-size: .97rem; max-width: 52ch; }
.panel-copy .btn { margin-top: 26px; }
.panel-art { display: grid; place-items: center; min-height: 240px; }
.panel-art svg { width: min(340px, 80%); height: auto; }
.panel-art img { width: min(400px, 88%); height: auto; }

/* ---------- Section scaffolding ---------- */

.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lede { margin-top: 14px; }
.section-head.center .lede { margin-inline: auto; }
.bg-soft { background: var(--panel-bg); }

.dark { position: relative; background: var(--black); overflow: hidden; }

/* ---------- Steps (inside white panel) ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.step { border-top: 2px solid var(--black); padding-top: 20px; }
.step .n {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: .95rem;
  color: var(--blue);
  margin-bottom: 12px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; letter-spacing: -.01em; }
.step p { font-size: .88rem; color: var(--muted); }

/* ---------- Feature list (why us) ---------- */

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split.start { align-items: start; }

.flist { display: grid; gap: 26px; }
.fitem { display: flex; gap: 16px; }
.fitem .tick {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  margin-top: 2px;
}
.fitem h3 { font-size: .98rem; margin-bottom: 4px; }
.fitem p { font-size: .9rem; color: var(--muted); }

/* ---------- Values (about) ---------- */

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value {
  background: var(--paper);
  border-radius: var(--radius-panel);
  padding: 34px 28px;
}
.value .glyph {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--blue);
  margin-bottom: 14px;
}
.value h3 { font-size: 1.05rem; margin-bottom: 8px; }
.value p { font-size: .88rem; color: var(--muted); }

/* ---------- Facts card (about) ---------- */

.facts-card {
  position: sticky;
  top: 96px;
  background: var(--black);
  border-radius: var(--radius-panel);
  padding: 34px 32px;
}
.facts-card .fc-title {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 24px;
}
.facts-card ul { list-style: none; display: grid; gap: 16px; }
.facts-card li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  padding-bottom: 14px;
}
.facts-card li:last-child { border-bottom: none; padding-bottom: 0; }
.facts-card .k {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.7rem;
  letter-spacing: -.02em;
  color: #fff;
}
.facts-card .v { font-size: .84rem; color: var(--muted-dark); }

/* ---------- Prose ---------- */

.prose { max-width: 700px; margin-inline: auto; }
.prose p { margin-bottom: 20px; color: #333a42; }
.prose p strong { color: var(--ink); }
.prose h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: -.01em;
  margin: 44px 0 14px;
}
.prose h3 { font-size: 1.1rem; margin: 30px 0 10px; }
.prose ul { margin: 0 0 20px 22px; color: #333a42; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--blue); font-weight: 500; }
.prose a:hover { text-decoration: underline; }

.split .prose { margin-inline: 0; }

/* ---------- Page hero (interior) ---------- */

.page-hero {
  position: relative;
  background: var(--black);
  overflow: hidden;
  padding: 88px 0 72px;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  color: #fff;
}
.page-hero .lede { margin-top: 18px; color: rgba(255, 255, 255, .75); }
.crumb {
  position: relative;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 26px;
}
.crumb a:hover { color: #fff; }
.crumb .sep { margin: 0 8px; opacity: .5; }
.page-hero .wrap { position: relative; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  background: var(--black);
  overflow: hidden;
  padding: 130px 0 150px;
  text-align: center;
}
.cta-band .wrap { position: relative; }
.cta-band h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  color: #fff;
}
.cta-band .lede { margin: 18px auto 34px; color: rgba(255, 255, 255, .75); }
.cta-band .btn-row { justify-content: center; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; }

.contact-cards { display: grid; gap: 24px; align-content: space-between; }
.ccard {
  display: flex;
  gap: 18px;
  padding: 30px 28px;
  background: var(--paper);
  border-radius: var(--radius-panel);
}
.ccard .ico {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(34, 116, 165, .1);
  color: var(--blue);
}
.ccard h3 { font-size: .98rem; margin-bottom: 4px; }
.ccard p { font-size: .9rem; color: var(--muted); }
.ccard a { color: var(--blue); font-weight: 600; }
.ccard a:hover { text-decoration: underline; }

.form-card {
  padding: clamp(32px, 4vw, 52px);
  background: var(--paper);
  border-radius: var(--radius-panel);
}
.form-card h2 { font-size: 1.4rem; margin-bottom: 6px; letter-spacing: -.02em; }
.form-card > p { font-size: .9rem; color: var(--muted); margin-bottom: 26px; }

.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fgroup { margin-bottom: 16px; }
.fgroup label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.fgroup label .opt { color: var(--muted); font-weight: 500; }
.fgroup input, .fgroup textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d4d8dc;
  border-radius: 9px;
  font: inherit;
  font-size: .93rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fgroup input:focus, .fgroup textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(34, 116, 165, .15);
}
.fgroup textarea { min-height: 130px; resize: vertical; }

.form-status { margin-top: 16px; font-size: .9rem; color: #135c48; }
.form-status.show {
  padding: 13px 16px;
  border-radius: 9px;
  background: rgba(34, 116, 165, .08);
  border: 1px solid rgba(34, 116, 165, .25);
  color: #17567c;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  background: var(--black);
  color: var(--muted-dark);
  padding: 72px 0 0;
  overflow: hidden;
}
.site-footer .wrap { position: relative; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-grid .blurb { margin-top: 18px; font-size: .9rem; max-width: 34ch; }
.fcol h3 {
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.fcol ul { list-style: none; display: grid; gap: 10px; }
.fcol a { font-size: .9rem; color: var(--muted-dark); transition: color .15s ease; }
.fcol a:hover { color: #fff; }
.fcol .faddr { font-size: .9rem; font-style: normal; line-height: 1.8; }
.fcol .faddr a { color: var(--blue-light); }

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: rgba(255, 255, 255, .45);
}
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Panel art ---------- */

.art-spin { animation: artspin 46s linear infinite; transform-origin: center; transform-box: fill-box; }
@keyframes artspin { to { transform: rotate(360deg); } }
.art-float { animation: artfloat 7s ease-in-out infinite; }
@keyframes artfloat { 50% { transform: translateY(-10px); } }
.art-float-slow { animation: artfloat 10s ease-in-out infinite; }

/* ---------- Reveal animations ---------- */

html.js .reveal:not(.in) { opacity: 0; }
.reveal.in {
  animation: rise .7s cubic-bezier(.2, .65, .3, 1) both;
}
.reveal-d1.in { animation-delay: .08s; }
.reveal-d2.in { animation-delay: .16s; }
.reveal-d3.in { animation-delay: .24s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal:not(.in) { opacity: 1; }
  .reveal.in { animation: none; }
  .orb, .art-spin, .art-float, .art-float-slow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; padding-block: 72px 64px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 200px; }
  .panel-grid { grid-template-columns: 1fr; gap: 40px; }
  .panel-art { min-height: 0; order: -1; }
  .panel-art svg { width: min(280px, 70%); }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 76px 0; }
  .facts-card { position: static; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--black);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding: 12px 16px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { min-height: 170px; }
  .steps { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-note { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-note .dot { display: none; }
  .orb { width: 900px; top: -42%; }
  .orb-bottom { top: auto; bottom: -58%; }
}
