/* ===========================================================
   jaba.us mockup stylesheet
   Brand palette taken from the logo: ink black, signal red, deep blue.
   =========================================================== */
:root {
  --ink: #14161a;
  --ink-soft: #3b4049;
  --muted: #6b7280;
  --line: #e6e8ec;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-deep: #0f1116;
  --red: #e8362a;
  --red-dark: #c52a20;
  --blue: #2b4cdb;
  --blue-dark: #1f3bb0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 22, 26, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 22, 26, 0.14);
  --max: 1140px;
  --font: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.8rem;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232, 54, 42, 0.32); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(20, 22, 26, 0.05); }
.header-inner { display: flex; align-items: center; gap: 1.1rem; height: 74px; }
.brand { flex-shrink: 0; }
.brand img { height: 38px; width: auto; display: block; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); position: relative; padding: 0.3rem 0; white-space: nowrap; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--red); transition: width 0.2s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }
.main-nav a.active { color: var(--ink); font-weight: 700; }
.main-nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }
.lang-toggle { display: flex; gap: 2px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-toggle button {
  font: inherit; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em;
  border: none; background: transparent; color: var(--muted);
  padding: 0.32rem 0.62rem; border-radius: 999px; cursor: pointer; text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button.active { background: var(--ink); color: #fff; }

.nav-toggle { display: none; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: var(--bg-alt); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(43, 76, 219, 0.12), transparent 60%),
    radial-gradient(50% 60% at 5% 90%, rgba(232, 54, 42, 0.10), transparent 60%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.hero h1 span.accent { color: var(--red); }
.hero h1 span.accent2 { color: var(--blue); }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-figure {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #1b2540, #0f1116);
  min-height: 360px; box-shadow: var(--shadow-lg);
  display: grid; place-items: center; padding: 2rem; text-align: center;
}
.hero-figure .glyph { font-size: clamp(3rem, 9vw, 6rem); font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1.05; }
.hero-figure .glyph em { font-style: normal; color: var(--red); }
.hero-figure .langs { margin-top: 1rem; display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.hero-figure .langs span { font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 0.25rem 0.7rem; }

/* ---- Stats strip ---- */
.stats { background: var(--ink); color: #fff; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2.2rem 0; text-align: center; }
.stat .num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: #fff; }
.stat .num em { font-style: normal; color: var(--red); }
.stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* ---- Sections ---- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 62ch; margin-bottom: 2.6rem; }
.bg-alt { background: var(--bg-alt); }

/* ---- Inner-page title band ---- */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: clamp(2.8rem, 6vw, 4.5rem) 0; }
.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-bottom: 0; }
.page-hero .lead { margin-top: 1rem; max-width: 70ch; }
.section-cta { margin-top: 2.4rem; text-align: center; }

/* ---- Legal / prose pages ---- */
.legal { max-width: 75ch; }
.legal h2 { font-size: 1.25rem; margin: 2.2rem 0 0.6rem; }
.legal p { color: var(--ink-soft); margin: 0 0 1rem; }
.legal .legal-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }

/* ---- About split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.about-card ul { list-style: none; margin: 0; padding: 0; }
.about-card li { display: flex; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px dashed var(--line); }
.about-card li:last-child { border-bottom: none; }
.about-card li b { color: var(--ink); }
.tick { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 0.75rem; margin-top: 3px; }

/* ---- Cards grid ---- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow); transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d7dbe2; }
.card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem; font-size: 1.3rem; }
.card .ico.r { background: rgba(232,54,42,0.10); color: var(--red); }
.card .ico.b { background: rgba(43,76,219,0.10); color: var(--blue); }
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; font-size: 0.96rem; }

/* ---- Industries chips ---- */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.industry { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.industry h3 { display: flex; align-items: center; gap: 0.6rem; }
.industry .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.industry:nth-child(3n+2) .dot { background: var(--blue); }
.industry:nth-child(3n) .dot { background: var(--ink); }
.industry p { margin: 0.4rem 0 0; font-size: 0.94rem; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info p { display: flex; gap: 0.7rem; align-items: flex-start; }
.contact-info .k { font-weight: 700; color: var(--ink); min-width: 84px; }
form .field { margin-bottom: 1rem; }
form label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--ink); }
form input, form textarea {
  width: 100%; font: inherit; padding: 0.8rem 0.9rem; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
form input:focus, form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43,76,219,0.15); }
form textarea { min-height: 130px; resize: vertical; }
.form-result { background: rgba(43,76,219,0.08); border: 1px solid rgba(43,76,219,0.3); color: var(--blue-dark); padding: 0.8rem 1rem; border-radius: 10px; font-weight: 600; margin-bottom: 1rem; }
.form-error { background: rgba(232,54,42,0.08); border: 1px solid rgba(232,54,42,0.35); color: #c0291f; padding: 0.8rem 1rem; border-radius: 10px; font-weight: 600; margin-bottom: 1rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: 0.8rem; color: var(--muted); }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); }

/* ---- Footer ---- */
.site-footer { background: var(--bg-deep); color: rgba(255,255,255,0.72); padding: 3rem 0 1.5rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer p { color: rgba(255,255,255,0.72); }
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer a { color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-logo { height: 40px; width: auto; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.2rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; }

/* ---- Standards / trust note ---- */
.iso-note { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.2rem; padding: 0.7rem 1rem; background: rgba(43,76,219,0.07); border: 1px solid rgba(43,76,219,0.22); border-radius: 10px; font-size: 0.9rem; color: var(--ink-soft); }
.iso-note b { color: var(--ink); }

/* ---- Q70 technology band ---- */
.tech-band { background: linear-gradient(135deg, #14161a 0%, #1b2540 100%); color: #fff; }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.tech-band .eyebrow { color: #8fa2ff; }
.tech-band h2 { color: #fff; }
.tech-band p { color: rgba(255,255,255,0.78); }
.tech-name { font-weight: 800; letter-spacing: -0.02em; }
.tech-name .q { color: var(--red); }
.tech-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.tech-features li { display: flex; gap: 0.8rem; align-items: flex-start; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); border-radius: 12px; padding: 0.9rem 1rem; }
.tech-features .fi { flex: 0 0 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: rgba(232,54,42,0.18); color: #ff7a70; font-size: 0.85rem; margin-top: 2px; }
.tech-features b { color: #fff; display: block; }
.tech-features span { color: rgba(255,255,255,0.72); font-size: 0.92rem; }

/* ---- How it works ---- */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.4rem; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 1rem; }
.step:nth-child(2)::before { background: var(--red); }
.step:nth-child(3)::before { background: var(--blue); }
.step h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.step p { margin: 0; font-size: 0.93rem; }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .hero-inner, .split, .contact-grid, .tech-grid { grid-template-columns: 1fr; }
  .grid-3, .industries, .process { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-figure { min-height: 280px; }
}
@media (max-width: 1024px) {
  .main-nav {
    position: fixed; inset: 74px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform 0.25s ease; box-shadow: var(--shadow);
  }
  .main-nav.open { transform: none; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 24px 1rem; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 0.9rem 0; font-size: 1rem; }
  .header-actions { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 4px;
    background: none; border: none; cursor: pointer; padding: 6px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .industries, .process { grid-template-columns: 1fr; }
  .header-actions .btn { display: none; }
  .lang-toggle button { padding: 0.3rem 0.5rem; font-size: 0.72rem; }
}
