:root {
  --bg: #ffffff;
  --surface: #f5f7f9;
  --ink: #15191f;         /* graphite text, 17.9:1 on white */
  --ink-muted: #525b67;   /* secondary text, 6.9:1 on white */
  --line: #e2e6eb;
  --line-strong: #cfd5dc;
  --accent: #00c2e0;      /* decorative + button fill (graphite text on it: 9.6:1) */
  --accent-ink: #00788a;  /* accent for text on white, 5.1:1 */
  --accent-soft: #e6f9fc;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 11vw, 140px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.logo-mark {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); }

.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang button {
  min-width: 40px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font: 600 13px/1 var(--font);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    gap: 0;
    padding-top: 12px;
  }
  .lang { margin-left: auto; }
  .nav {
    order: 3;
    width: 100%;
    margin: 8px 0 0;
    padding: 10px 0 12px;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid var(--line);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 14px; }
  html { scroll-padding-top: 120px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 14vw, 180px) 0 clamp(80px, 12vw, 160px);
  border-bottom: 1px solid var(--line);
}

.hero-geometry {
  position: absolute;
  top: 50%;
  right: max(-180px, calc((100vw - var(--container)) / 2 - 220px));
  width: min(720px, 90vw);
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
}
.g-line { stroke: var(--line-strong); }
.g-accent {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 362;
  stroke-dashoffset: 0;
}
.g-dot { fill: var(--accent); stroke: none; }

.js .g-accent { animation: draw 1.6s 0.3s var(--ease) both; }
.js .g-dot { animation: fade 0.6s 1.6s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 362; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.hero-inner { position: relative; }

.hero-title {
  max-width: 13ch;
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-sub {
  max-width: 34em;
  margin-top: 28px;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: var(--ink-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

@media (max-width: 760px) {
  .hero-geometry {
    top: 0;
    right: -45%;
    width: 110vw;
    transform: none;
    opacity: 0.55;
  }
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #00b0cc; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }

.text-link {
  display: inline-flex;
  gap: 6px;
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.text-link:hover { color: var(--ink); }

/* ---------- Sections ---------- */

.section {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.eyebrow span:first-child {
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.eyebrow span:first-child::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  margin-left: 10px;
  vertical-align: middle;
  background: var(--accent);
}

h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lead {
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.55;
  color: var(--ink);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- Product card ---------- */

.card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.card-main { padding: clamp(28px, 4vw, 48px); }
.card-desc {
  max-width: 28em;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.features li {
  padding-top: 18px;
  border-top: 2px solid var(--accent);
}
.features h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.features p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-muted);
}

.card-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 36px);
  background: var(--surface);
  border-left: 1px solid var(--line);
}
.side-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.platforms li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.platforms li:first-child { padding-top: 0; }
.badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.card-side .text-link { align-self: flex-start; margin-top: auto; }

.card-owner {
  grid-column: 1 / -1;
  padding: 18px clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

@media (max-width: 860px) {
  .card { grid-template-columns: 1fr; }
  .card-side { border-left: 0; border-top: 1px solid var(--line); }
  .features { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Contact ---------- */

#contact .lead { margin-top: 20px; color: var(--ink-muted); }

.contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 760px;
  margin-top: 56px;
}
.contacts > div {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.contacts dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.contacts dd {
  margin-top: 10px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.contact-link {
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s var(--ease), color 0.2s var(--ease);
}
.contact-link:hover { color: var(--accent-ink); }

@media (max-width: 860px) {
  .contacts { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0 48px;
  font-size: 14px;
  color: var(--ink-muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .g-accent, .js .g-dot { animation: none; }
}
