:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --muted-surface: #eef2f8;
  --text: #141a24;
  --muted: #657286;
  --line: #dbe2ed;
  --brand: #0f4aa3;
  --brand-soft: #e6efff;
}

html[data-theme="dark"] {
  --bg: #0b121d;
  --surface: #111b2a;
  --muted-surface: #0d1624;
  --text: #ebf0f7;
  --muted: #a3b1c6;
  --line: #24344d;
  --brand: #8ab7ff;
  --brand-soft: #1a2940;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, strong { font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.9rem); margin: 0.5rem 0 1rem; line-height: 1.12; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.5rem); margin: 0.3rem 0 1rem; }
h3 { margin: 0 0 0.45rem; font-size: 1.05rem; }

.wrap { width: min(1180px, 92%); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.82rem 0;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); font-weight: 500; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: transparent;
  overflow: hidden;
}
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}
.bar-actions { display: flex; align-items: center; gap: 0.9rem; font-weight: 400; }
.bar-actions a { font-size: 0.92rem; color: var(--muted); }
.bar-actions a:hover { color: var(--text); }

.theme-switch {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 0 0 0 0.9rem;
  margin-left: 0.2rem;
  border-left: 1px solid var(--line);
}
.theme-switch-track {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 24%, var(--surface));
  border: 1px solid var(--line);
  position: relative;
}
.theme-switch-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  position: absolute;
  top: 2px;
  left: 2px;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
}
html[data-theme="dark"] .theme-switch-thumb { transform: translateX(22px); }
.icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }
.theme-switch-label { font-size: 0.82rem; color: var(--muted); font-weight: 500; min-width: 38px; }

.hero {
  min-height: 72vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(94, 143, 224, 0.24), transparent 30%),
    radial-gradient(circle at 85% 75%, rgba(15, 74, 163, 0.18), transparent 36%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 90%, transparent), var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 30px, rgba(138, 183, 255, 0.08) 30px 31px, transparent 31px 62px);
  opacity: 0.22;
}
.hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -42%;
  height: 92%;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(112, 183, 255, 0.98) 1.35px, transparent 2.1px);
  background-size: 26px 26px;
  transform-origin: center top;
  transform: perspective(1000px) rotateX(72deg) scale(1.08);
  opacity: 0.56;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.3) 52%, transparent 88%);
}
html[data-theme="light"] .hero::after {
  background-image: radial-gradient(circle, rgba(52, 149, 255, 0.95) 1.3px, transparent 2.05px);
  opacity: 0.46;
}
.hero-grid { max-width: 800px; padding: 5rem 0; position: relative; z-index: 1; }
.hero-grid h1 {
  background: linear-gradient(130deg, var(--text), color-mix(in srgb, var(--text) 78%, var(--brand)));
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="light"] .hero-grid h1 { color: transparent; }
.kicker { margin: 0; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; color: var(--brand); font-weight: 500; }
.lead { color: var(--muted); font-size: 1.06rem; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem; padding: 1rem 0; }
.trust-grid article { border-left: 2px solid var(--line); padding-left: 0.8rem; }
.trust-grid strong { display: block; font-size: 0.94rem; margin-bottom: 0.1rem; }
.trust-grid span { color: var(--muted); font-size: 0.92rem; }

.ticker { border-bottom: 1px solid var(--line); background: var(--surface); }
.ticker-track { display: flex; gap: 0.8rem; padding: 0.7rem 0; white-space: nowrap; overflow-x: auto; color: var(--muted); font-size: 0.86rem; }

.btn {
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font-weight: 500;
  padding: 0.62rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(15, 74, 163, 0.24); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--brand-soft); box-shadow: none; }

.section { padding: 4.2rem 0; position: relative; }
.section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(420px, 72%);
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 42%, transparent), transparent);
}
.muted { background: var(--muted-surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.9rem; margin-top: 1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card p { margin: 0; color: var(--muted); }
.card strong { display: block; margin-bottom: 0.2rem; font-size: 1rem; color: var(--text); }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10, 23, 40, 0.08); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }

.service-card { position: relative; padding-top: 1.6rem; }
.service-no { position: absolute; top: 0.7rem; right: 0.8rem; font-size: 0.72rem; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.team-card h3 { margin: 0 0 0.25rem; font-size: 1.08rem; color: var(--text); }
.team-role { margin: 0 0 0.65rem; color: var(--brand); font-weight: 500; font-size: 0.92rem; }
.team-detail { margin: 0 0 0.45rem; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.team-detail strong { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); margin-bottom: 0.15rem; font-weight: 500; }
.team-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 0.85rem; background: var(--muted-surface); }

.about-card { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 0.8rem; align-items: center; }
.about-card-copy { min-width: 0; }
.about-card-copy p { color: var(--muted); margin: 0 0 0.75rem; }
.about-card-icon { display: grid; place-items: center; color: color-mix(in srgb, var(--brand) 62%, var(--text)); border-left: 1px solid var(--line); padding-left: 0.8rem; }
.engineering-svg { width: min(100%, 300px); height: auto; filter: drop-shadow(0 8px 20px color-mix(in srgb, var(--brand) 22%, transparent)); }
.focus-list { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.focus-list li { margin-bottom: 0.38rem; color: var(--muted); }

.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer { border-top: 1px solid var(--line); padding: 1.1rem 0; color: var(--muted); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-copy { margin: -0.2rem 0 0.9rem; color: var(--muted); }

@media (max-width: 900px) {
  .two-col, .about-card { grid-template-columns: 1fr; }
  .contact-box { flex-direction: column; align-items: flex-start; }
  .bar-actions a { display: none; }
  .theme-switch-label { display: none; }
  .about-card-icon { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 0.8rem; }
}
