/* ============================================================
   Innovax Technology — Corporate Website
   Design system: tokens, base, components, layout, responsive
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette: deep blue + teal + white */
  --brand-950: #061a2e;
  --brand-900: #0a2540;
  --brand-800: #0d3559;
  --brand-700: #0f4c81;
  --brand-600: #1266a8;
  --brand-500: #2b83c4;
  --brand-100: #dcebf7;
  --brand-50:  #eef6fc;

  --teal-700: #0b7a70;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-100: #d3f3ee;
  --teal-50:  #ecfbf8;

  --ink:      #0b1f33;
  --ink-soft: #3d5468;
  --ink-mute: #64798c;

  --bg:       #ffffff;
  --bg-soft:  #f5f8fb;
  --bg-card:  #ffffff;

  --border:      #e3e9f0;
  --border-strong: #cfd9e4;

  --ok:   #15803d;
  --warn: #b45309;
  --danger: #b91c1c;

  /* Type */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  /* Spacing scale */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* Radii */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(11,31,51,.06), 0 1px 3px rgba(11,31,51,.08);
  --sh-2: 0 4px 12px rgba(11,31,51,.08), 0 2px 4px rgba(11,31,51,.06);
  --sh-3: 0 12px 32px rgba(11,31,51,.12), 0 4px 8px rgba(11,31,51,.06);

  /* Layout */
  --container: 1180px;
  --header-h: 68px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--s4); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 var(--s4); }
a  { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-600); text-decoration: underline; }
ul { margin: 0 0 var(--s4); padding-left: 1.2rem; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--brand-100); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s5); }
.section { padding-block: var(--s8); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: linear-gradient(160deg, var(--brand-900), var(--brand-950)); color: #eaf2f9; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #c3d4e2; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal-600); margin-bottom: var(--s3);
}
.section-head { max-width: 720px; margin-bottom: var(--s7); }
.section-head.center { margin-inline: auto; text-align: center; }
.lede { font-size: 1.1rem; color: var(--ink-soft); }
.section--dark .lede { color: #c3d4e2; }
.muted { color: var(--ink-mute); }
.small { font-size: .875rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--r-md);
  padding: .72rem 1.4rem; transition: background .18s, color .18s, border-color .18s, transform .12s, box-shadow .18s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand-700); color: #fff; box-shadow: var(--sh-1); }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-teal { background: var(--teal-600); color: #fff; box-shadow: var(--sh-1); }
.btn-teal:hover { background: var(--teal-700); color: #fff; }
.btn-outline { background: transparent; color: var(--brand-700); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--brand-600); color: var(--brand-600); background: var(--brand-50); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-sm { padding: .45rem .95rem; font-size: .9rem; }
.btn-lg { padding: .9rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand-700), var(--teal-600));
  color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.15rem; color: var(--brand-900); letter-spacing: -0.01em; }
.brand-text small { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-600); font-weight: 700; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  width: 42px; height: 40px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--brand-800); border-radius: 2px; position: relative; transition: transform .2s, opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.primary-nav ul { display: flex; align-items: center; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  display: inline-block; padding: .5rem .8rem; border-radius: var(--r-sm);
  color: var(--ink-soft); font-weight: 600; font-size: .95rem;
}
.primary-nav a:hover { color: var(--brand-700); background: var(--brand-50); text-decoration: none; }
.primary-nav a.active { color: var(--brand-700); }
.primary-nav a.btn { color: #fff; }
.primary-nav a.btn:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(165deg, var(--brand-900) 0%, var(--brand-800) 55%, var(--brand-700) 100%); color: #eaf2f9; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(20,184,166,.22), transparent 60%),
    radial-gradient(500px 260px at 10% 90%, rgba(43,131,196,.25), transparent 60%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s8); align-items: center; padding-block: var(--s9); }
.hero h1 { color: #fff; }
.hero .lede { color: #c3d4e2; font-size: 1.15rem; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); margin-top: var(--s6); list-style: none; padding: 0; }
.hero-points li { display: inline-flex; align-items: center; gap: var(--s2); color: #cfe0ec; font-size: .92rem; font-weight: 600; }
.hero-points .tick { color: var(--teal-500); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s6); box-shadow: var(--sh-1); transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); border-color: var(--border-strong); }
.card-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-md);
  background: var(--brand-50); color: var(--brand-700); margin-bottom: var(--s4);
}
.card-icon svg { width: 24px; height: 24px; }
.card--teal .card-icon { background: var(--teal-50); color: var(--teal-600); }
.card h3 { margin-bottom: var(--s2); }
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card .tag { margin-top: var(--s4); }

.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .22rem .6rem; border-radius: var(--r-pill);
}
.tag--live { background: var(--teal-100); color: var(--teal-700); }
.tag--plan { background: #eef1f5; color: var(--ink-mute); }
.tag--info { background: var(--brand-100); color: var(--brand-700); }

/* ---------- Dashboard mockup ---------- */
.dash {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); overflow: hidden; color: var(--ink);
}
.dash-bar { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); background: var(--brand-900); color: #dbe8f3; }
.dash-bar .dots { display: flex; gap: 6px; }
.dash-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); }
.dash-bar .title { font-size: .82rem; font-weight: 600; }
.dash-bar .badge { margin-left: auto; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-500); background: rgba(20,184,166,.14); padding: .2rem .55rem; border-radius: var(--r-pill); }
.dash-body { padding: var(--s5); display: grid; gap: var(--s4); }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s3); }
.kpi { border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s3); background: var(--bg-soft); }
.kpi .label { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-mute); }
.kpi .value { font-size: 1.3rem; font-weight: 800; color: var(--brand-900); line-height: 1.2; }
.kpi .delta { font-size: .7rem; font-weight: 700; }
.kpi .delta.up { color: var(--ok); }
.kpi .delta.down { color: var(--danger); }
.dash-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s4); }
.panel { border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s4); }
.panel h4 { margin: 0 0 var(--s3); font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-mute); }
.legend { display: flex; gap: var(--s4); font-size: .72rem; color: var(--ink-soft); margin-top: var(--s2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }
.bars { display: flex; align-items: flex-end; gap: var(--s3); height: 130px; }
.bars .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s2); height: 100%; }
.bars .bar { background: linear-gradient(180deg, var(--brand-500), var(--brand-700)); border-radius: 4px 4px 0 0; height: var(--h); }
.bars .col span { font-size: .66rem; text-align: center; color: var(--ink-mute); }
.dash-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.dash-table th, .dash-table td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--border); }
.dash-table th { font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-mute); }
.dash-table td:last-child, .dash-table th:last-child { text-align: right; }
.pill { font-size: .68rem; font-weight: 700; padding: .12rem .5rem; border-radius: var(--r-pill); }
.pill--paid { background: var(--teal-100); color: var(--teal-700); }
.pill--pend { background: #fdf0dd; color: var(--warn); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; margin-bottom: var(--s3); overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s4) var(--s5); font-weight: 600; color: var(--brand-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--teal-600); font-weight: 700; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 var(--s5) var(--s5); color: var(--ink-soft); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
.field { display: flex; flex-direction: column; gap: var(--s2); }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  padding: .65rem .8rem; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100);
}
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(185,28,28,.12); }
.field .error { font-size: .8rem; color: var(--danger); min-height: 1em; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--r-md); padding: var(--s4); margin-top: var(--s4); font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--teal-50); color: var(--teal-700); border: 1px solid var(--teal-100); }
.form-status.err { background: #fdecec; color: var(--danger); border: 1px solid #f6cfcf; }
.form-status.info { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }

/* ---------- Misc blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.stat { text-align: center; }
.stat .num { font-size: 2.2rem; font-weight: 800; color: var(--teal-500); line-height: 1; }
.stat .lbl { color: #c3d4e2; font-size: .9rem; margin-top: var(--s2); }
.steps { counter-reset: step; display: grid; gap: var(--s5); }
.step { position: relative; padding-left: var(--s8); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand-700), var(--teal-600));
}
.cta-band { border-radius: var(--r-lg); padding: var(--s8); text-align: center; background: linear-gradient(135deg, var(--brand-800), var(--teal-700)); color: #fff; box-shadow: var(--sh-2); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7e6ef; max-width: 46rem; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; margin-top: var(--s5); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-950); color: #b9c9d8; padding-block: var(--s8) var(--s5); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s7); }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: var(--s4); }
.site-footer a { color: #b9c9d8; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.footer-brand .brand-text strong { color: #fff; }
.footer-note { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--s7); padding-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; font-size: .85rem; color: #8ba0b3; }
.social { display: flex; gap: var(--s3); margin-top: var(--s4); }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm); background: rgba(255,255,255,.08); }
.social a:hover { background: var(--teal-600); }
.social svg { width: 18px; height: 18px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--brand-900), var(--brand-800)); color: #eaf2f9; padding-block: var(--s8); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.page-hero .lede { color: #c3d4e2; max-width: 46rem; }
.crumbs { font-size: .82rem; color: #9fb6c8; margin-bottom: var(--s4); }
.crumbs a { color: #c3d4e2; }

/* ---------- Tables (content) ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table thead th { background: var(--bg-soft); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-mute); }

/* ---------- 404 ---------- */
.err-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.err-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: var(--brand-100); line-height: 1; }

/* ---------- Centered hero variant ---------- */
.hero--center .hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; padding-block: var(--s9) var(--s7); }
.hero--center .lede { margin-inline: auto; }
.hero--center .hero-cta, .hero--center .hero-points { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding-block: var(--s8); }
  .split { grid-template-columns: 1fr; gap: var(--s7); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .container { padding-inline: var(--s4); }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--sh-2);
    display: none; padding: var(--s4);
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: var(--s1); }
  .primary-nav a { display: block; padding: .7rem .9rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .dash-row { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding-block: var(--s7); }
}

