/* ============================================================
   ZIRCONSUITE — Order-to-Cash Suite · site styles
   Palette & rules per BRAND_MINI.md (v1)
   ============================================================ */

:root {
  --navy:        #142B45;
  --navy-raise:  #1B3A5E;
  --navy-deep:   #0F2138;
  --canvas:      #F6F7F9;
  --white:       #FFFFFF;
  --ink:         #17212B;
  --text:        #344250;
  --muted:       #6B7785;
  --teal:        #0F766E;
  --cyan:        #22D3EE;  /* on navy only */
  --emerald:     #059669;  /* large/bold text & graphics only */
  --gold:        #D4A017;
  --line:        #E3E7EC;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow-sm:   0 1px 2px rgba(20, 43, 69, .06), 0 4px 16px rgba(20, 43, 69, .06);
  --shadow-md:   0 8px 32px rgba(20, 43, 69, .14);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --container: 1160px;
  --nav-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.0625rem; font-weight: 600; }
p { margin: 0 0 16px; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}
.section-white :focus-visible, .section-canvas :focus-visible {
  outline-color: var(--teal);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container.narrow { max-width: 780px; }
.container.center { text-align: center; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -48px;
  background: var(--navy); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius-sm);
  z-index: 200; transition: top .2s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-white { background: var(--white); }
.section-canvas { background: var(--canvas); }
.section-navy { background: var(--navy); color: #DCE4EE; overflow: hidden; }
.section-navy h2, .section-navy h3 { color: var(--white); }

.kicker {
  font-size: .8125rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 12px;
}
.kicker-cash { color: var(--emerald); }
.kicker-cyan { color: var(--cyan); }
.lead { font-size: 1.125rem; color: var(--text); }
.muted { color: var(--muted); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center, .center .section-head { margin-inline: auto; text-align: center; }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-nav.scrolled {
  background: rgba(20, 43, 69, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 8px 24px rgba(15, 33, 56, .25);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand img { width: 150px; height: auto; }
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  color: #C9D4E2; font-size: .9375rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 16px; }

.lang-toggle {
  display: flex; align-items: center;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: 600 .8125rem/1 var(--font); letter-spacing: .04em;
  color: #C9D4E2; padding: 6px 11px; border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
}
.lang-btn:hover { color: var(--white); }
.lang-btn[aria-pressed="true"] { background: var(--cyan); color: var(--navy); }
.lang-divider { width: 1px; height: 14px; background: rgba(255, 255, 255, .22); }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px;
  background: transparent; border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-sm); cursor: pointer;
}
.nav-burger span {
  display: block; height: 2px; width: 100%;
  background: var(--white); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9375rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-cyan { background: var(--cyan); color: var(--navy); }
.btn-cyan:hover { box-shadow: 0 6px 20px rgba(34, 211, 238, .35); }
.btn-cash { background: var(--emerald); color: var(--white); }
.btn-cash:hover { box-shadow: 0 6px 20px rgba(5, 150, 105, .35); }
.btn-ghost {
  background: transparent; color: var(--white);
  border-color: rgba(255, 255, 255, .35);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); }
.btn-outline {
  background: transparent; color: var(--navy);
  border-color: #C6CFD9;
}
.btn-outline:hover { border-color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  background: linear-gradient(180deg, #17304E 0%, var(--navy) 56%, var(--navy-deep) 100%);
  color: #DCE4EE;
  padding: calc(var(--nav-h) + 88px) 0 112px;
  overflow: hidden;
}
.hero-facets {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; }
.hero-lockup { width: min(380px, 72vw); height: auto; margin-bottom: 40px; }
.hero-kicker {
  font-size: .8125rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 16px;
}
.hero h1 { color: var(--white); max-width: 17ch; }
.hero-sub { font-size: 1.125rem; max-width: 62ch; color: #C9D4E2; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero-ctas.center { justify-content: center; }

/* ---------- Solution ---------- */
.question-chips {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.question-chips li {
  padding: 10px 18px; border-radius: 999px;
  background: var(--canvas); border: 1px solid var(--line);
  font-weight: 500; font-size: .9375rem; color: var(--ink);
}

/* ---------- Product spotlight ---------- */
.product-band { border-block: 1px solid var(--line); }
.product-inner {
  display: grid; grid-template-columns: 1.15fr .85fr;
  align-items: center; gap: 64px;
}
.product-lockup { width: min(340px, 80%); height: auto; margin-bottom: 8px; }
.product-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.product-art { display: flex; justify-content: center; }
.product-art img {
  width: min(320px, 70%); height: auto;
  filter: drop-shadow(0 24px 48px rgba(20, 43, 69, .18));
}

/* ---------- Capabilities ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cap-card {
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5DE;
}
.cap-glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 20px;
  border-radius: 10px;
  background: rgba(5, 150, 105, .1);
  color: var(--emerald);
  font-size: 1.25rem; line-height: 1;
}
.cap-card p { margin: 0; font-size: .9375rem; color: var(--text); }

/* ---------- Workspace band ---------- */
.band-facets {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.workspace-inner {
  position: relative;
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: 72px; align-items: center;
}
.check-list { list-style: none; margin: 24px 0 0; padding: 0; }
.check-list li {
  position: relative; padding-left: 32px; margin-bottom: 16px;
  color: #DCE4EE;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background:
    linear-gradient(var(--navy), var(--navy)) center/8px 8px no-repeat,
    var(--cyan);
  -webkit-mask: none;
  clip-path: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%2322D3EE'/%3E%3Cpath d='M4.6 8.4l2.2 2.2 4.6-4.8' fill='none' stroke='%23142B45' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 16px 16px;
}

/* Mock UI card */
.mock-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(8, 20, 36, .45);
  padding: 28px;
  color: var(--text);
  font-size: .875rem;
}
.mock-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.mock-customer { display: flex; align-items: center; gap: 12px; }
.mock-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-weight: 600; font-size: .8125rem; letter-spacing: .02em;
}
.mock-name { font-weight: 600; color: var(--ink); margin: 0; font-size: .9375rem; }
.mock-meta { margin: 0; color: var(--muted); font-size: .8125rem; }
.mock-score { text-align: right; }
.mock-score-num {
  display: block; font-weight: 700; font-size: 1.5rem;
  color: var(--emerald); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mock-score-label { font-size: .75rem; color: var(--muted); }
.mock-rec {
  margin: 18px 0; padding: 14px 16px;
  background: var(--canvas); border-left: 3px solid var(--emerald);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.mock-rec-tag {
  margin: 0 0 4px; font-size: .6875rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--emerald);
}
.mock-rec-text { margin: 0; color: var(--ink); font-weight: 500; }
.mock-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.mock-tab {
  padding: 8px 12px; font-weight: 500; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.mock-tab.is-active { color: var(--navy); border-bottom-color: var(--navy); font-weight: 600; }
.mock-timeline { list-style: none; margin: 0; padding: 0; }
.mock-timeline li {
  display: flex; gap: 12px; padding: 8px 0;
}
.mock-timeline li:not(:last-child) { border-bottom: 1px dashed var(--line); }
.mock-dot {
  flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); margin-top: 7px;
}
.mock-dot-gold { background: var(--gold); }
.mock-timeline p { margin: 0; color: var(--ink); }
.mock-timeline time { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }

/* ---------- Stats ---------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  background: var(--canvas);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
}
.stat-value {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700;
  color: var(--emerald); line-height: 1.1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-card h3 { margin: 0 0 6px; }
.stat-note { margin: 0; font-size: .875rem; color: var(--muted); }

/* ---------- About ---------- */
.about-inner {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 72px; align-items: start;
}
.about-owned { font-weight: 600; color: var(--ink); }
.fact-list {
  margin: 0; padding: 32px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.fact-list div {
  display: grid; grid-template-columns: 128px 1fr; gap: 16px;
  padding: 12px 0;
}
.fact-list div:not(:last-child) { border-bottom: 1px solid var(--line); }
.fact-list dt { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.fact-list dd { margin: 0; color: var(--ink); font-weight: 500; }
.fact-brand { font-weight: 700; color: var(--teal); }
.fact-cash { color: var(--emerald); }

/* ---------- CTA band ---------- */
.cta-band h2 { color: var(--white); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #AEBBCB;
  padding: 56px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer-inner { display: flex; flex-direction: column; gap: 16px; }
.footer-inner img { width: 150px; height: auto; }
.footer-tagline { margin: 0; font-weight: 500; color: #C9D4E2; }
.footer-legal p { margin: 0 0 4px; font-size: .8125rem; color: var(--muted); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive — mobile-first breakpoints
   ============================================================ */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-inner { grid-template-columns: 1fr; gap: 40px; }
  .product-art { order: -1; }
  .product-art img { width: min(220px, 56%); }
  .workspace-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav-links {
    position: fixed; top: var(--nav-h); right: 0; left: 0;
    flex-direction: column; gap: 0;
    background: rgba(15, 33, 56, .97);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    padding: 12px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 8px; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-burger { display: flex; }
  .hero { padding: calc(var(--nav-h) + 64px) 0 80px; }
  .hero-lockup { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .container { padding-inline: 20px; }
  .card-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn, .product-ctas .btn { width: 100%; }
  .fact-list div { grid-template-columns: 1fr; gap: 4px; }
  .mock-card { padding: 20px; }
  .mock-head { flex-direction: column; align-items: flex-start; }
  .lang-btn { padding: 6px 9px; }
  .nav-brand img { width: 128px; }
}
