:root {
  --bg: #f5f5f7;
  --paper: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --brand: #0071e3;
  --brand-dark: #0051a2;
  --accent-soft: #e8f0fe;
  --line: #d2d2d7;
  --ok: #34c759;
  --radius-lg: 24px;
  --radius-md: 14px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
  --bg: #000000;
  --paper: #1d1d1f;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --brand: #2997ff;
  --brand-dark: #0071e3;
  --accent-soft: #1c2e4a;
  --line: #424245;
  --ok: #34c759;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.015em;
}

.btn,
.nav-links a,
.step-num,
.tech-chip,
.footer-col h4 {
  font-weight: 500;
}

.site-shell {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

[data-theme="dark"] .topbar {
  background: rgba(0, 0, 0, 0.85);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark,
.brand-mark {
  display: block;
  width: auto;
}

.logo-mark {
  height: 44px;
  transition: opacity 0.2s ease;
}

.brand-mark {
  height: 40px;
}

.logo:hover img {
  opacity: 0.82;
}

.mobile-menu-brand {
  display: none;
}

/* ── Theme-based asset swap (logo, favicons, brand marks) ── */
.icon-dark {
  display: none;
}

[data-theme="dark"] .icon-light {
  display: none;
}

[data-theme="dark"] .icon-dark {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 10px;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(0, 113, 227, 0.1);
  color: var(--brand);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
}

.hero {
  padding: 78px 0 48px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: stretch;
}

.hero-copy {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.hero-copy::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(0, 113, 227, 0.15),
    transparent 66%
  );
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--brand);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.84rem;
}

.hero h1,
.page-head h1 {
  margin: 14px 0 10px;
  line-height: 1.15;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.hero p,
.page-head p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.cta-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  text-decoration: none;
  border: 0;
  border-radius: 11px;
  padding: 12px 16px;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--brand);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.3);
}

.btn-secondary {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.15);
}

.hero-panel {
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.grid-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.stat strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 700;
}

.section {
  padding: 30px 0 12px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.9vw, 2rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.card:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 32px rgba(0, 113, 227, 0.12);
  transform: translateY(-4px);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
}

.list li {
  margin: 6px 0;
}

/* ── Icon system ── */
.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-sm {
  width: 17px;
  height: 17px;
}

.icon-lg {
  width: 26px;
  height: 26px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  transition:
    background-color 0.3s ease,
    color 0.2s ease;
}

.icon-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
}

.icon-list .icon {
  color: var(--brand);
  margin-top: 2px;
  width: 18px;
  height: 18px;
}

/* ── Link-style cards (home pillars, product teasers) ── */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--brand);
  text-decoration: none;
  font-size: 0.92rem;
  transition: gap 0.2s ease;
}

.card-link .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.card-link:hover {
  gap: 10px;
}

.card-link:hover .icon {
  transform: translateX(2px);
}

/* ── Process steps ── */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-step {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 16px;
  padding: 18px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.process-step:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 28px rgba(0, 113, 227, 0.1);
  transform: translateY(-3px);
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.process-step h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ── Tech chips ── */
.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tech-chip {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── CTA banner ── */
.cta-banner {
  margin: 40px 0 0;
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
}

.cta-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 52ch;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--brand-dark);
  flex-shrink: 0;
}

.cta-banner .btn-primary:hover {
  background: #f2f2f2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.page-head {
  padding: 64px 0 18px;
}

.timeline {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 18px 18px;
}

.timeline li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  position: absolute;
  left: -6px;
  top: 7px;
}

.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.value {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  padding: 16px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.value:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 24px rgba(0, 113, 227, 0.1);
  transform: translateY(-3px);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info-box,
.form-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
}

.contact-detail .icon {
  color: var(--brand);
  margin-top: 3px;
}

.contact-detail strong {
  display: block;
}

.contact-detail p {
  margin: 2px 0 0;
  color: var(--muted);
}

label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px;
  font: inherit;
  background: var(--bg);
  color: var(--ink);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.note {
  color: var(--ok);
  min-height: 1.2em;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  margin-top: 50px;
  border-top: 1px solid var(--line);
  padding: 34px 0 26px;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 22px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
}

.footer-logo {
  height: 28px;
  width: auto;
}

.footer-tagline {
  margin: 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col h4 {
  margin: 0 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 0.85rem;
}

@media (max-width: 1040px) {
  .hero,
  .cards,
  .contact-layout,
  .values,
  .process {
    grid-template-columns: 1fr;
  }

  .logo-mark {
    height: 34px;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    right: 4vw;
    width: min(280px, 90vw);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-radius: 8px;
  }

  .mobile-menu-brand {
    display: flex;
    justify-content: center;
    padding: 4px 0 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
  }

  .footer-grid {
    flex-direction: column;
  }
}

/* ── Nav right group ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Theme toggle ── */
.theme-toggle {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  width: 52px;
  height: 28px;
  padding: 0;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

[data-theme="dark"] .toggle-thumb {
  transform: translateX(24px);
  background: var(--brand);
}

/* ── Smooth theme transitions ── */
.card,
.hero-copy,
.hero-panel,
.value,
.stat,
.info-box,
.form-box,
.process-step,
input,
textarea,
select {
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}
