:root {
  --ink: #0f211d;
  --paper: #f6f4ef;
  --paper-2: #eef2ee;
  --white: #fff;
  --muted: #3e514b;
  --line: rgba(15, 33, 29, 0.14);
  --sage: #dce7df;
  --accent: #9a865c;
  --shadow: 0 18px 40px rgba(15, 33, 29, 0.08);
  --radius: 14px;
  --max: 1120px;
  --header: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: auto; }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 80; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(246, 244, 239, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.nav { width: min(var(--max), calc(100% - 48px)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.04em; font-size: 14px; }
.mark { width: 32px; height: 32px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.navlinks { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; }
.navlinks a { color: #3e514b; }
.navlinks a:hover, .navlinks a.active { color: var(--ink); }
.navlinks a.active { box-shadow: inset 0 -1px 0 var(--ink); }
.nav-cta { display: none; }
.actions { display: flex; align-items: center; gap: 8px; }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.langs a { font-size: 11px; font-weight: 700; padding: 6px 9px; border-radius: 999px; color: #5c6b66; }
.langs a.active { background: var(--ink); color: #fff; }
.btn {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #193a31; }
.btn.light { border-color: var(--line); background: #fff; color: var(--ink); }
.menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #3e514b;
}
.eyebrow:before { content: ""; width: 22px; height: 1px; background: currentColor; }

.hero { padding: 36px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; }
h1, h2 { text-wrap: balance; }
.nowrap { white-space: nowrap; }
.hero h1, .page-hero h1 {
  font-size: clamp(32px, 2.8vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 12px 0 14px;
  max-width: 18em;
}
.hero p, .page-hero p { font-size: 17px; color: var(--muted); max-width: 62ch; margin: 0; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 16px; }
.hero-points, .audience { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-points { margin-top: 14px; }
.hero-points span, .audience span, .region {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  color: #243833;
}
.audience { margin: 0 0 16px; }
.hero-image, .photo {
  position: relative;
  min-height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1c3330;
  box-shadow: var(--shadow);
}
.hero-image img, .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade, .photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 18, 15, 0.05), rgba(8, 18, 15, 0.62));
}
.hero-card, .photo-copy { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; }
.hero-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 16px 16px 14px;
}
.hero-card .label, .usecase .label, .card .num {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #5c6d67;
}
.hero-card h3 { font-size: 18px; line-height: 1.3; margin: 6px 0 10px; letter-spacing: -0.02em; }
.hero-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.photo-copy { color: #fff; }
.photo-copy h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.02em; }
.photo-copy p { margin: 0; max-width: 46ch; color: #e7eeea; font-size: 14px; }

.section { padding: 72px 0; }
.section.soft { background: var(--paper-2); }
.section.dark { background: var(--ink); color: #fff; }
.section h2, .cta h2, .split h2 {
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 12px 0 14px;
  max-width: 22em;
}
.lead { font-size: 17px; color: var(--muted); max-width: 68ch; margin: 0; }
.dark .lead, .dark .eyebrow { color: #d5e0db; }
.page-hero { padding: 36px 0 12px; }
.page-hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: center; }
.page-hero.plain .wrap { grid-template-columns: 1fr; }
.page-hero h1 { max-width: 20em; }

.grid-3, .grid-4, .grid-2 { display: grid; gap: 12px; margin-top: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card, .callout, .architecture, .notice {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3, .callout h3 { font-size: 18px; letter-spacing: -0.02em; margin: 0 0 8px; }
.card p, .callout p, .notice p { margin: 0; color: var(--muted); font-size: 14px; }
.card .num { display: block; margin-bottom: 18px; }
.card + .card { margin-top: 0; }

.architecture { margin-top: 22px; padding: 8px 20px; }
.arch-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.arch-row:last-child { border-bottom: 0; }
.arch-title { font-weight: 700; font-size: 14px; padding-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #f8faf8; border-radius: 999px; padding: 7px 10px; font-size: 12px; color: #243833; }

.flow { margin-top: 22px; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); overflow: hidden; }
.flow-step { padding: 18px; border-right: 1px solid rgba(255, 255, 255, 0.14); }
.flow-step:last-child { border-right: 0; }
.flow-step .n { font-size: 11px; letter-spacing: 0.08em; color: #b7c7c0; }
.flow-step h3 { font-size: 16px; margin: 16px 0 6px; }
.flow-step p { margin: 0; font-size: 13px; color: #d5e0db; }
.section:not(.dark) .flow { border-color: var(--line); }
.section:not(.dark) .flow-step { border-right-color: var(--line); }
.section:not(.dark) .flow-step .n, .section:not(.dark) .flow-step p { color: var(--muted); }

.media-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 12px; }
.media-grid + .media-grid { margin-top: 12px; }
.usecase { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px; min-height: 460px; }
.wrap > .usecase { min-height: 0; }
.usecase h3 { font-size: 26px; line-height: 1.2; letter-spacing: -0.03em; margin: 14px 0 12px; }
.usecase p { color: #d5e0db; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; }
.kv span:first-child { color: #b7c7c0; }
.regions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.note { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 78ch; }
.dark .note { color: #d5e0db; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.bullets { display: grid; gap: 10px; margin-top: 16px; }
.bullet { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--muted); }
.bullet b { width: 26px; height: 26px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; font-size: 11px; color: var(--ink); }
.cta { background: var(--ink); color: #fff; }
.cta .lead, .cta .bullet { color: #d5e0db; }
.cta-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 36px; align-items: start; }
.form { position: relative; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); padding: 16px; }
.form .contact-honeypot { position: absolute; left: -10000px; top: 0; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; border: 0; }
.field { display: grid; gap: 6px; margin-bottom: 10px; }
.field span { font-size: 12px; font-weight: 600; color: #d5e0db; }
.form input, .form textarea, .form select {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 12px 12px;
  outline: none;
}
.form textarea { min-height: 120px; resize: vertical; }
.form .btn { width: 100%; background: #fff; color: var(--ink); border-color: #fff; }
.form .btn:disabled { opacity: 0.6; cursor: wait; }
.micro, .form-status { font-size: 12px; color: #d5e0db; margin: 8px 0 0; }
.form-status:empty { display: none; }
.form-status.is-success { color: #d7efe4; }
.form-status.is-error { color: #ffd2c8; }
.footer { padding: 28px 0 40px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 22px; }
.footer small, .footer-links { color: #3e514b; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.notice { max-width: 760px; }
.notice h2 { font-size: 22px; max-width: none; }
.notice ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }

html.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.45s ease, transform 0.45s ease; }
html.js .reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1040px) {
  .navlinks {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #f6f4ef;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 45;
  }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .navlinks a:last-child { border-bottom: 0; }
  .navlinks a.active { box-shadow: none; }
  .nav-cta { display: block; font-weight: 700; }
  .menu { display: inline-grid; place-items: center; }
  .actions .btn { display: none; }
  .hero-grid, .page-hero .wrap, .split, .cta-grid, .media-grid, .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-step { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .section:not(.dark) .flow-step { border-bottom-color: var(--line); }
  .usecase, .hero-image, .photo { min-height: 380px; }
}

@media (max-width: 720px) {
  :root { --header: 64px; }
  .wrap, .nav { width: min(var(--max), calc(100% - 28px)); }
  .hero, .page-hero { padding-top: 24px; }
  .hero h1, .page-hero h1 { font-size: 32px; max-width: none; }
  .section { padding: 56px 0; }
  .section h2 { font-size: 28px; max-width: none; }
  .grid-3, .grid-4, .grid-2, .flow { grid-template-columns: 1fr; }
  .flow-step { border-right: 0; }
  .arch-row { grid-template-columns: 1fr; gap: 8px; }
  .hero-actions .btn, .page-hero .btn { width: 100%; }
  .footer-row { flex-direction: column; }
  .usecase h3 { font-size: 22px; }
  .kv { flex-direction: column; gap: 2px; }
}
