/* ============================================================
   KSENZ GLOBAL LIMITED — corporate site
   Accent color is a single variable: change --accent to rebrand.
   ============================================================ */

:root {
  --accent: #D90429;
  --accent-dark: #B00321;
  --ink: #0E1116;
  --ink-soft: #3A414B;
  --ink-mute: #6B7280;
  --bg: #FFFFFF;
  --bg-alt: #F6F7F9;
  --bg-dark: #0E1116;
  --line: #E5E7EB;
  --line-dark: #232932;
  --radius: 10px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }

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

address { font-style: normal; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
}

.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 760px;
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}
.logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  margin-left: 3px;
  border-radius: 1px;
}
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.site-nav a:not(.btn):hover { color: var(--accent); }
.nav-cta { margin-left: 0.4rem; }
.nav-toggle { display: none; background: none; border: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 7.5rem 0 8rem;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(217, 4, 41, 0.06), transparent 60%),
    var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  color: #D8DCE2;
  pointer-events: none;
}
.hero-bg svg { width: 100%; height: 100%; }
.hero-arcs path { stroke: var(--accent); opacity: 0.35; }
.hero-nodes circle { fill: var(--accent); opacity: 0.55; }
.hero-inner { position: relative; max-width: 860px; }
.hero-sub {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 1.4rem 0 2.2rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Stat bar ---------- */
.statbar {
  background: var(--bg-dark);
  color: #fff;
  padding: 2.6rem 0;
}
.statbar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.85rem;
  color: #9AA3AE;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--bg-dark);
  color: #fff;
}
.section-dark .lead { color: #B7BEC8; }

.grid { display: grid; gap: 1.6rem; margin-top: 3rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Pillars */
.pillar { padding-top: 1.4rem; border-top: 2px solid var(--ink); }
.pillar-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}
.pillar p { color: var(--ink-soft); font-size: 0.97rem; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(14, 17, 22, 0.08);
}
.card p { color: var(--ink-soft); font-size: 0.95rem; }

/* Tech */
.tech-item {
  border-left: 2px solid var(--accent);
  padding: 0.3rem 0 0.3rem 1.4rem;
}
.tech-item p { color: #B7BEC8; font-size: 0.97rem; }

/* Regions */
.regions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  list-style: none;
  margin-top: 2.2rem;
}
.regions li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink-soft);
  transition: border-color 0.2s, color 0.2s;
}
.regions li:hover { border-color: var(--accent); color: var(--accent); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  align-items: start;
}
.address-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(14, 17, 22, 0.05);
}
.address-card h3 { color: var(--accent); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; }
.address-card address { line-height: 1.9; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.address-inline { margin-top: 2.4rem; }
.address-inline h3 { color: var(--accent); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.6rem; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: 0 14px 40px rgba(14, 17, 22, 0.06);
}
.form-row { margin-bottom: 1.2rem; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.12);
}
.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { margin-top: 1rem; font-size: 0.92rem; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #15803D; }
.form-status.err { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: #B7BEC8;
  padding: 4rem 0 0;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.logo-footer { color: #fff; }
.footer-tag { margin-top: 0.8rem; color: #8A93A0; }
.site-footer h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.site-footer nav a {
  display: block;
  margin-bottom: 0.55rem;
  color: #B7BEC8;
  transition: color 0.2s;
}
.site-footer nav a:hover { color: #fff; }
.site-footer address { color: #8A93A0; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  color: #8A93A0;
  font-size: 0.85rem;
}

/* ---------- Legal pages ---------- */
.legal-main { padding: 4.5rem 0 6rem; }
.legal-main .container { max-width: 820px; }
.legal-main h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.6rem; }
.legal-meta { color: var(--ink-mute); font-size: 0.92rem; margin-bottom: 2.6rem; }
.legal-main h2 {
  font-size: 1.35rem;
  margin: 2.6rem 0 0.8rem;
  padding-top: 0.4rem;
}
.legal-main h3 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; }
.legal-main p, .legal-main li { color: var(--ink-soft); font-size: 0.98rem; }
.legal-main p { margin-bottom: 0.9rem; }
.legal-main ul, .legal-main ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.legal-main li { margin-bottom: 0.45rem; }
.legal-main a { color: var(--accent); font-weight: 500; }
.legal-main a:hover { text-decoration: underline; }
.legal-main strong { color: var(--ink); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .section { padding: 4rem 0; }
  .hero { padding: 5rem 0 5.5rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .statbar-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .footer-grid { grid-template-columns: 1fr; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.25s, opacity 0.25s;
  }
  .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); }

  .site-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 24px 1.2rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 0.7rem 0; width: 100%; }
  .nav-cta { margin: 0.8rem 0 0; }
}
