/* Webacus — corporate site */

:root {
  --ink: #0d1220;
  --ink-soft: #4a5468;
  --ink-faint: #6b7488;
  --bg: #ffffff;
  --surface: #f6f7fb;
  --line: #e4e7ef;
  --accent: #4f46e5;
  --accent-soft: #eef0ff;
  --radius: 14px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1f7;
    --ink-soft: #a7b0c2;
    --ink-faint: #7b8499;
    --bg: #0b0e16;
    --surface: #121724;
    --line: #232a3a;
    --accent: #8b8cf9;
    --accent-soft: #1b1f38;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover { color: var(--ink); text-decoration: none; }

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 4px;
}
.lang a, .lang span {
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.lang a:hover { color: var(--ink); text-decoration: none; }
.lang .is-active { background: var(--accent-soft); color: var(--accent); }

/* ---------- hero ---------- */

.hero { padding: 96px 0 72px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 700;
  max-width: 16ch;
}

.hero p {
  margin: 22px 0 0;
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--ink-soft);
  max-width: 58ch;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }

/* ---------- sections ---------- */

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }

.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 680; }
.section-head p { margin: 14px 0 0; color: var(--ink-soft); }

/* ---------- products ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.card-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
}
.card-top-text { display: flex; flex-direction: column; gap: 3px; }
.card h3 { font-size: 20px; font-weight: 660; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

.card .lede { color: var(--ink); font-weight: 550; margin: 0 0 10px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.card li { padding-left: 18px; position: relative; margin-bottom: 4px; }
.card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.card .link {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 600;
}

/* ---------- services ---------- */

.services { counter-reset: s; }
.service { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 20px; }
.service:first-child { border-top: 0; }
.service::before {
  counter-increment: s;
  content: "0" counter(s);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-faint);
  padding-top: 4px;
}
.service h3 { font-size: 18px; font-weight: 640; margin-bottom: 6px; }
.service p { margin: 0; color: var(--ink-soft); font-size: 15.5px; max-width: 62ch; }

/* ---------- contact ---------- */

.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.contact-box h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 680; }
.contact-box p { color: var(--ink-soft); max-width: 56ch; }
.contact-mail {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 640;
  letter-spacing: -0.02em;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  font-size: 14px;
  color: var(--ink-faint);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}
.legal { max-width: 46ch; line-height: 1.7; }
.legal strong { color: var(--ink-soft); font-weight: 600; }
.footer-links { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.footer-links a { color: var(--ink-soft); }
.copyright { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 64px 0 52px; }
  section { padding: 56px 0; }
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 10px; gap: 10px; }
  .nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; gap: 10px; }
  .nav a { font-size: 14px; }
  .lang { margin-left: auto; }
  .contact-box { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 16px; }
}
