:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --ink: #0b1320;
  --inkSoft: #3b4658;
  --muted: #7a8696;
  --line: #e5e9ef;
  --primary: #0a3d62;
  --primaryInk: #ffffff;
  --accent: #0bd8fe;
  --accentInk: #03303a;
  --chip: #e6f7fc;
  --gap: 120px;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.55;
}
.hc-mono, .hc-mono.small {
  font-family: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.hc-mono.small { font-size: 10px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-primary {
  background: var(--ink);
  color: var(--surface);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--primary); }
.btn-ghost { color: var(--inkSoft); }
.btn-ghost:hover { color: var(--ink); }
.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { border-color: var(--ink); }
.btn-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
  padding: 14px 4px;
}
.btn-link:hover { text-decoration-color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.brand-logo {
  height: 76px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}
.footer-brand .brand-logo { height: 88px; }
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px solid var(--surface);
  border-radius: 4px;
}
.brand-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 1;
}
.brand-name { font-size: 15px; letter-spacing: -0.01em; }
.brand-name-soft { color: var(--muted); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 6px;
  margin: 0 auto;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--inkSoft);
  font-size: 14px;
}
.nav-links a:hover { color: var(--ink); background: var(--chip); }

.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 16px;
    flex-direction: column;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 4px;
    background: none; border: none; cursor: pointer;
    padding: 8px;
  }
  .nav-toggle span {
    width: 18px; height: 1.5px; background: var(--ink); display: block;
  }
}

/* ---------- typography ---------- */
.display {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 18px 0 22px;
  text-wrap: balance;
}
.display em {
  font-style: normal;
  color: var(--primary);
  position: relative;
  display: inline-block;
}
.display em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 0.16em;
  background: var(--accent);
  opacity: 0.35;
  border-radius: 2px;
}
.h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 12px 0 14px;
  text-wrap: balance;
}
h3 {
  font-size: 19px;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 8px;
}
h4 {
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 14px;
}
.lede {
  color: var(--inkSoft);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
  max-width: 56ch;
}
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.sec-head { max-width: 720px; margin: 0 0 56px; }
.sec-head.center { text-align: center; margin: 0 auto 56px; }
.sec-head.center .lede { margin: 14px auto 0; }
.sec-head.left { text-align: left; }

/* ---------- hero ---------- */
.hero {
  padding: 56px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 64px;
}
.hero-centered .hero-inner {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.hero-centered .lede { margin: 0 auto; }

.hero-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 32px 0 0;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.stat-num {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-num span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-label { font-size: 13px; color: var(--muted); }

/* hero visual */
.hero-visual {
  position: relative;
  height: 460px;
}
.hero-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 20px 60px -30px rgba(11, 19, 32, 0.18), 0 2px 6px -2px rgba(11, 19, 32, 0.06);
}
.hero-card-main {
  top: 24px;
  left: 0;
  width: 78%;
  z-index: 2;
}
.hero-card-side {
  bottom: 0;
  right: 0;
  width: 60%;
  z-index: 3;
}
.hero-glyph {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.12;
  z-index: 0;
}
.hc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.hc-tag {
  background: var(--primary);
  color: var(--primaryInk);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 500;
}
.hc-tag.alt {
  background: var(--accent);
  color: var(--accentInk);
}
.hc-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.hc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.hc-pill {
  font-size: 11px;
  font-family: "Geist Mono", monospace;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.hc-pill.ok { background: color-mix(in oklab, var(--accent) 25%, var(--surface)); color: var(--accentInk); }
.hc-pill.warn { background: #fff3e0; color: #8a4f00; }

.hc-bar {
  height: 6px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-top: 4px;
}
.hc-bar-fill {
  height: 100%;
  width: 87%;
  background: var(--primary);
  border-radius: inherit;
}
.hc-bar + .hc-mono,
.hc-bar .hc-mono {
  position: absolute;
  bottom: -22px;
  left: 0;
}
.hero-card-main .hc-bar { margin-bottom: 26px; }

.hc-kpi { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.hc-kpi strong { font-size: 26px; letter-spacing: -0.02em; font-weight: 600; }
.hc-trend { font-size: 12px; color: #1f8a5b; font-weight: 500; }
.hc-spark {
  height: 56px;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--accent) 25%, transparent), transparent),
    repeating-linear-gradient(90deg, var(--line) 0, var(--line) 1px, transparent 1px, transparent 24px);
  border-radius: var(--radius-sm);
  position: relative;
}
.hc-spark::after {
  content: "";
  position: absolute;
  inset: 8px 8px 8px 8px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 60%, var(--primary) 100%);
  -webkit-mask: linear-gradient(180deg, #000 30%, transparent 100%);
  mask: linear-gradient(180deg, #000 30%, transparent 100%);
  clip-path: polygon(0 70%, 8% 60%, 18% 65%, 28% 50%, 38% 55%, 48% 38%, 58% 42%, 68% 28%, 78% 32%, 88% 18%, 100% 22%, 100% 100%, 0 100%);
  opacity: 0.55;
}

.hero-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 28px;
  justify-content: center;
  background: var(--surface);
}
.strip-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--line);
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; }
}

/* ---------- sections ---------- */
.section { padding: var(--gap) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

/* solutions */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
}
.sol-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.sol-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 20px 40px -28px rgba(11, 19, 32, 0.2);
}
.sol-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.sol-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.2s ease;
}
.sol-card:hover .sol-arrow {
  background: var(--ink); color: var(--surface); border-color: var(--ink);
}
.sol-card h3 { margin-bottom: 10px; }
.sol-card p { color: var(--inkSoft); margin: 0 0 20px; line-height: 1.55; }
.sol-card ul {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}
.sol-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--inkSoft);
}
.sol-card li svg { color: var(--accent); flex-shrink: 0; }

/* about */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--inkSoft);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line);
}
.about-visual { position: relative; }
.placeholder {
  aspect-ratio: 6 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--chip);
}
.placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-quote {
  position: absolute;
  bottom: -28px;
  right: -8px;
  background: var(--ink);
  color: var(--surface);
  padding: 22px 24px;
  border-radius: var(--radius);
  max-width: 320px;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 20px 50px -30px rgba(11, 19, 32, 0.4);
}
.quote-mark {
  display: block;
  font-size: 36px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 4px;
  font-family: Georgia, serif;
}

/* services */
.srv-grid { gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.srv-card {
  background: var(--surface);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.2s ease;
}
.srv-card:hover { background: var(--chip); }
.srv-num {
  color: var(--accent) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  margin-bottom: 14px;
}
.srv-card h3 { margin: 0 0 4px; }
.srv-card p { margin: 0; color: var(--inkSoft); font-size: 14.5px; line-height: 1.55; }

/* partner */
.partner { background: var(--ink); color: var(--surface); }
.partner .h2, .partner .lede { color: var(--surface); }
.partner .lede { color: color-mix(in oklab, var(--surface) 75%, transparent); max-width: 50ch; }
.partner .eyebrow { color: color-mix(in oklab, var(--surface) 60%, transparent); }
.partner-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 48px;
}
.partner-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.partner .btn-primary { background: var(--accent); color: var(--accentInk); }
.partner .btn-primary:hover { background: var(--surface); color: var(--ink); }
.partner .btn-outline { color: var(--surface); border-color: color-mix(in oklab, var(--surface) 30%, transparent); }
.partner .btn-outline:hover { border-color: var(--surface); }
@media (max-width: 880px) {
  .partner-inner { grid-template-columns: 1fr; }
  .partner-actions { justify-content: flex-start; }
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border: none; padding-bottom: 0; }
.contact-list a { font-size: 16px; font-weight: 500; }
.contact-list a:hover { color: var(--primary); }

.map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 220px;
}
.map iframe { width: 100%; height: 100%; border: 0; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form h3 { margin: 0; }
.contact-form .muted { margin: -4px 0 8px; font-size: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form label span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--surface);
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }
.contact-form .btn { align-self: flex-start; margin-top: 4px; }

/* footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 64px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .muted { margin-top: 14px; max-width: 36ch; font-size: 14px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-cols a {
  display: block;
  color: var(--inkSoft);
  font-size: 14px;
  padding: 4px 0;
}
.footer-cols a:hover { color: var(--ink); }
.footer-base {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 880px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
