:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --text: #0b1f33;
  --muted: #4a5d70;
  --line: #dde5ec;
  --brand: #0f766e;
  --brand-strong: #0c3b66;
  --accent: #14b8a6;
  --hero-from: #e6f4f2;
  --hero-to: #f7f9fb;
  --radius: 16px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07131f;
    --surface: #0d1d2d;
    --text: #e6eef5;
    --muted: #9fb2c4;
    --line: #1c3146;
    --brand: #2dd4bf;
    --brand-strong: #7dd3fc;
    --accent: #5eead4;
    --hero-from: #0b2533;
    --hero-to: #07131f;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-strong);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 20px;
}

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--hero-from), var(--hero-to));
  padding-block: 88px 72px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero h1 {
  margin: 0 0 20px;
  max-width: 17ch;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero p.lead {
  margin: 0 0 32px;
  max-width: 60ch;
  font-size: 1.15rem;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand-strong);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.12);
}

@media (prefers-color-scheme: dark) {
  .btn-primary,
  .btn-primary:hover {
    color: #07131f;
  }
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--muted);
}

/* Sections */
section {
  padding-block: 72px;
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
}

/* Product cards */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 20px;
}

.product {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.product-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-top img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex: none;
}

.product h3 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.product .domain {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.product p.desc {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.product a.visit {
  font-weight: 600;
  text-decoration: none;
}

.product a.visit:hover {
  text-decoration: underline;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}

.point {
  padding: 24px;
  border-top: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 0 var(--radius) var(--radius);
}

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

.point p {
  margin: 0;
  color: var(--muted);
}

/* Company details */
.company {
  border-top: 1px solid var(--line);
}

.details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.details div {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.details dt {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.details dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* Legal pages */
.legal {
  padding-block: 56px 72px;
}

.legal article {
  max-width: 72ch;
}

.legal h1 {
  margin: 0 0 6px;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}

.legal .updated {
  margin: 0 0 32px;
  color: var(--muted);
}

.legal h2 {
  margin: 36px 0 10px;
  font-size: 1.25rem;
}

.legal p,
.legal li {
  color: var(--text);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 32px;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 560px) {
  .nav {
    gap: 14px;
    font-size: 0.9rem;
  }

  .nav .nav-optional {
    display: none;
  }

  .hero {
    padding-block: 56px 48px;
  }

  section {
    padding-block: 52px;
  }

  .product {
    padding: 22px;
  }
}
