/* =========================================================
   UCC GLOBAL — Identification & Track-and-Trace
   Theme: light technical / blue + orange / precision-grid
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter+Tight:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand palette — Light theme */
  --c-black: #000000;
  --c-bg:        #edf2f9;   /* cool blue-grey page background          */
  --c-surface:   #ffffff;   /* cards, panels, forms                    */
  --c-surface-2: #e2ecf7;   /* hover surface / alternate sections      */
  --c-border:    #c6d6ea;   /* default border                          */
  --c-border-hi: #9ab4cc;   /* stronger border for emphasis            */

  --c-cyan:      #1880b8;   /* darkened brand blue — readable on white */
  --c-blue:      #1465a0;
  --c-blue-deep: #0e3f6e;
  --c-navy:      #0a2d52;

  --c-orange:      #d4762a; /* slightly deepened for light-bg contrast */
  --c-orange-hi:   #e58f3f; /* original logo orange — hover            */
  --c-orange-deep: #a85c18;

  --c-text:      #0c1c2e;   /* deep navy — primary text                */
  --c-text-mute: #3a5470;   /* medium navy-grey — body copy            */
  --c-text-dim:  #6f8fa8;   /* muted — labels, timestamps              */

  /* Type */
  --f-display: 'Sora', system-ui, sans-serif;
  --f-body: 'Inter Tight', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
}

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

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

body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.55;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Subtle grid pattern echoing circuit motif of the logo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(20, 101, 160, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 101, 160, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(20, 101, 160, 0.09), transparent 60%),
    radial-gradient(ellipse 50% 35% at 100% 50%, rgba(212, 118, 42, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer, section { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color .2s ease; }

/* =========================================================
   Typography
   ========================================================= */

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--c-text);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 500; }

p { color: var(--c-text-mute); font-size: 1.02rem; }
p.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--c-text); line-height: 1.6; max-width: 56ch; }

.mono { font-family: var(--f-mono); font-size: .78rem; letter-spacing: 0.05em; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-orange);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--c-orange);
}

.gradient-text {
  background: linear-gradient(110deg, var(--c-cyan) 0%, var(--c-blue) 45%, var(--c-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent { color: var(--c-orange); }

/* =========================================================
   Layout primitives
   ========================================================= */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }

/* =========================================================
   Header / Navigation
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(237, 242, 249, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand img { height: 38px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { color: var(--c-orange); font-weight: 700; }
.brand-text span { color: var(--c-text-mute); font-size: .68rem; font-family: var(--f-mono); letter-spacing: 0.15em; text-transform: uppercase; margin-top: 4px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--c-text-mute);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--c-text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--c-orange);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--c-orange);
  color: var(--c-black);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: .9rem;
  transition: all .2s ease;
}
.nav-cta:hover { background: var(--c-orange-hi); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--c-border-hi);
  color: var(--c-text);
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--c-orange);
  color: var(--c-black);
}
.btn-primary:hover { background: var(--c-orange-hi); transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(229, 143, 63, 0.45); }

.btn-secondary {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border-hi);
}
.btn-secondary:hover { border-color: var(--c-blue); color: var(--c-blue); }

.btn-arrow::after {
  content: "→";
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .btn-arrow::after, .btn-arrow:hover::after { transform: translateX(4px); }

/* =========================================================
   Hero
   ========================================================= */

.hero {
  padding: clamp(80px, 11vw, 140px) 0 clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: end;
}

.hero h1 {
  margin: 18px 0 22px;
}
.hero h1 span.line { display: block; }

.hero-meta {
  border-left: 1px solid var(--c-border);
  padding-left: 24px;
  font-family: var(--f-mono);
  font-size: .78rem;
  color: var(--c-text-dim);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-meta .row { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .label { color: var(--c-orange); letter-spacing: 0.12em; text-transform: uppercase; font-size: .7rem; }
.hero-meta .value { color: var(--c-text); font-size: .85rem; }

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

.hero-codes {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.hero-codes .code-item {
  padding: 22px 24px;
  border-right: 1px solid var(--c-border);
  font-family: var(--f-mono);
}
.hero-codes .code-item:last-child { border-right: none; }
.hero-codes .code-num {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--c-cyan);
  letter-spacing: 0;
}
.hero-codes .code-label {
  font-size: .68rem;
  color: var(--c-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 4px;
}

/* =========================================================
   Section headers
   ========================================================= */

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* =========================================================
   Feature grid
   ========================================================= */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.feature {
  background: var(--c-surface);
  padding: 38px 34px;
  transition: background .25s ease;
  position: relative;
}
.feature:hover { background: var(--c-surface-2); }
.feature-num {
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--c-orange);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  color: var(--c-cyan);
}
.feature h3 { margin-bottom: 12px; }
.feature p { font-size: .96rem; line-height: 1.6; }

/* =========================================================
   Stat band
   ========================================================= */

.stat-band {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%);
  padding: 56px 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat .num {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.02em;
}
.stat .num .suffix { color: var(--c-orange); }
.stat .label {
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--c-text-mute);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 8px;
}

/* =========================================================
   Compliance / Integration / two-column generic
   ========================================================= */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col.reverse > :first-child { order: 2; }

.checklist { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.checklist li {
  padding-left: 30px;
  position: relative;
  color: var(--c-text);
  font-size: 1rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 16px;
  height: 8px;
  border-left: 2px solid var(--c-orange);
  border-bottom: 2px solid var(--c-orange);
  transform: rotate(-45deg);
}

/* Visual panels — integration ERP cards, compliance badges */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.panel {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 24px;
  transition: all .25s ease;
}
.panel:hover { border-color: var(--c-cyan); transform: translateY(-2px); }
.panel .tag {
  font-family: var(--f-mono);
  font-size: .68rem;
  color: var(--c-orange);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.panel .title { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 6px; }
.panel .sub { font-size: .88rem; color: var(--c-text-mute); }

/* =========================================================
   CTA Band
   ========================================================= */

.cta-band {
  position: relative;
  margin: 0 var(--pad-x);
  padding: clamp(56px, 8vw, 96px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(212, 118, 42, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(20, 101, 160, 0.10), transparent 60%),
    var(--c-surface);
  border: 1px solid var(--c-border-hi);
  overflow: hidden;
  text-align: center;
}
.cta-band h2 { max-width: 720px; margin: 0 auto 16px; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; color: var(--c-text-mute); }
.cta-band-actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  border-top: 1px solid var(--c-border);
  background: var(--c-bg);
  margin-top: 80px;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand img { height: 52px; margin-bottom: 18px; }
.footer-brand p { font-size: .92rem; max-width: 32ch; }

.footer-col h4 {
  font-family: var(--f-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-orange);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .92rem; color: var(--c-text-mute); }
.footer-col a:hover { color: var(--c-text); }

.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: .76rem;
  color: var(--c-text-dim);
}

/* =========================================================
   Page header (inner pages)
   ========================================================= */

.page-header {
  padding: clamp(80px, 10vw, 130px) 0 clamp(50px, 7vw, 80px);
  border-bottom: 1px solid var(--c-border);
  position: relative;
}
.page-header h1 { max-width: 18ch; margin-top: 18px; }
.page-header p.lead { margin-top: 24px; }

.breadcrumb {
  font-family: var(--f-mono);
  font-size: .76rem;
  color: var(--c-text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.breadcrumb a:hover { color: var(--c-orange); }
.breadcrumb .sep { margin: 0 8px; color: var(--c-border-hi); }

/* =========================================================
   Contact form
   ========================================================= */

.form-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 38px;
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label {
  font-family: var(--f-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-text-mute);
}
.field input, .field select, .field textarea {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 13px 14px;
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 1rem;
  transition: border .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-orange);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.info-block { padding: 28px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); margin-bottom: 16px; }
.info-block .tag { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--c-orange); margin-bottom: 10px; }
.info-block h3 { font-size: 1.1rem; margin-bottom: 8px; }
.info-block p { font-size: .94rem; }

/* =========================================================
   FAQ / Definition rows used in compliance & compatibility
   ========================================================= */

.def-row {
  border-top: 1px solid var(--c-border);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 28px 0;
}
.def-row:last-child { border-bottom: 1px solid var(--c-border); }
.def-row .term { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; color: var(--c-text); }
.def-row .term .ix { color: var(--c-orange); font-family: var(--f-mono); font-size: .82rem; margin-right: 8px; }
.def-row .desc { font-size: .98rem; color: var(--c-text-mute); }

/* =========================================================
   Animations
   ========================================================= */

@keyframes fadeup {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Reveal is JS-only opt-in: without JS (or for crawlers), content stays visible.
   The .js class is added by an inline script in <head>. */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-meta { border-left: none; border-top: 1px solid var(--c-border); padding-left: 0; padding-top: 24px; flex-direction: row; flex-wrap: wrap; gap: 24px 36px; }
  .hero-codes { grid-template-columns: repeat(2, 1fr); }
  .hero-codes .code-item:nth-child(2) { border-right: none; }
  .hero-codes .code-item:nth-child(1), .hero-codes .code-item:nth-child(2) { border-bottom: 1px solid var(--c-border); }

  .feature-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; gap: 36px; }
  .two-col.reverse > :first-child { order: initial; }
  .form-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .def-row { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    padding: 20px var(--pad-x);
    gap: 16px;
  }
  .nav-links.open .nav-cta { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
}
