:root {
  --bg: #ffffff;
  --surface: #f6f8f9;
  --text: #2b2b2b;
  --muted: #5d6268;
  --line: #e4e7ea;
  --accent: #0078a8;        /* readable blue for links and text */
  --accent-bright: #1ecbef; /* logo cyan, decorative only */
  --accent-soft: #e0f7fd;
  --neutral-soft: #ececec;
  --neutral: #3a3a3a;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0e;
    --surface: #181818;
    --text: #f3f3f3;
    --muted: #a6a6a6;
    --line: #2b2b2b;
    --accent: #3fd4f5;
    --accent-bright: #1ecbef;
    --accent-soft: #0e2b33;
    --neutral-soft: #262626;
    --neutral: #d6d6d6;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand svg { flex: none; }
.nav {
  display: flex;
  gap: 22px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.nav a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 88px 0 72px;
}
.hero .hl {
  text-decoration: underline;
  text-decoration-color: var(--accent-bright);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: none;
}
.hero h1 {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.hero p.lede {
  margin: 22px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 19px;
}

/* Sections */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.015em;
}
.section-intro {
  margin: 0 0 32px;
  color: var(--muted);
  max-width: 60ch;
}

/* Products */
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.product {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.product h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.badge {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.badge.live { background: var(--accent-soft); color: var(--accent); }
.badge.dev { background: var(--neutral-soft); color: var(--neutral); }
.product p { margin: 0 0 16px; color: var(--muted); }
.product ul {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.product li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.about-grid p { margin: 0 0 14px; color: var(--muted); }
.facts {
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { text-align: right; }

/* Contact */
.contact-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.contact-list strong { display: block; font-size: 15px; }
.contact-list span { display: block; color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.contact-list a { overflow-wrap: anywhere; }

/* Footer */
.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); }

/* Legal pages */
.legal { padding: 56px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 {
  margin: 0 0 6px;
  font-size: clamp(30px, 5vw, 40px);
  letter-spacing: -0.02em;
}
.legal .updated { margin: 0 0 36px; color: var(--muted); font-size: 15px; }
.legal h2 { margin: 36px 0 10px; font-size: 21px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }

/* Small screens */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 16px; }
  .hero { padding: 56px 0 48px; }
  .hero p.lede { font-size: 17px; }
  section { padding: 48px 0; }
  .products, .about-grid, .contact-list { grid-template-columns: 1fr; }
  .about-grid { gap: 24px; }
  .product, .contact-card { padding: 22px; }
}
@media (max-width: 440px) {
  .nav a.hide-sm { display: none; }
}
