@import url("fonts.css");

:root {
  --paper: #ffffff;
  --ink: #0b1220;
  --muted: #4a5568;
  --cobalt: #1b3bff;
  --cobalt-deep: #1429c7;
  --mist: #f3f6ff;
  --line: #d9e0f0;
  --focus: #1b3bff;

  --font-display: "Unbounded", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 76rem;
  --radius: 0.5rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--cobalt-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt); }

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  z-index: 100;
}
.skip:focus { top: 0.75rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 2rem; height: 2rem; flex: none; }

.nav { display: flex; align-items: center; gap: 0.25rem; }

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
}
.nav a:hover { background: var(--mist); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--cobalt-deep); box-shadow: inset 0 -2px 0 var(--cobalt); border-radius: 0; }
.nav .btn { margin-left: 0.5rem; }
.nav a.lang { font-weight: 600; font-size: 0.85rem; border: 1.5px solid var(--line); padding: 0.35rem 0.6rem; margin-left: 0.5rem; }
.nav a.lang:hover { border-color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 2.75rem;
  height: 2.75rem;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { margin: auto; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: 600 1rem/1 var(--font-body);
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--cobalt);
  background: var(--cobalt);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--quiet:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.nav .btn { padding: 0.7rem 1.1rem; color: #fff; }
.nav a.btn[aria-current="page"] { color: #fff; box-shadow: none; border-radius: var(--radius); }
.nav .btn:hover { background: var(--cobalt-deep); color: #fff; }

/* ---------- hero with 3D stage ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  min-height: min(82vh, 52rem);
}

.hero--compact .wrap { min-height: min(62vh, 38rem); }

.hero__copy { padding-block: clamp(3rem, 8vh, 6rem); max-width: 36rem; }

.hero h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.hero--compact h1 { font-size: clamp(1.9rem, 3.8vw, 3rem); }

.hero__lede {
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 32rem;
}

.hero__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }

.stage {
  position: relative;
  align-self: stretch;
  min-height: 24rem;
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

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

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tint { background: var(--mist); }

.section__head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.section__head p { margin-top: 1.1rem; color: var(--muted); font-size: 1.15rem; max-width: 38rem; }

/* what we do: three rows, title left, text right */

.rows { margin: 0; padding: 0; list-style: none; }
.rows > li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem 3rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}
.rows > li:last-child { border-bottom: 1px solid var(--line); }
.rows h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.rows p { color: var(--muted); max-width: 38rem; }

/* products: two large blocks */

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1.5px solid var(--ink);
  border-radius: 1rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.product h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.product p { color: var(--muted); flex: 1; max-width: 30rem; }
.product__go { font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; }
.product__go svg { transition: transform 0.15s; }
.product:hover { background: var(--ink); color: #fff; }
.product:hover p { color: #cdd5e5; }
.product:hover .product__go svg { transform: translateX(4px); }

.product__mark { width: 4.5rem; height: 4.5rem; color: var(--cobalt); }
.product:hover .product__mark { color: #8fa0ff; }

.more-soon {
  margin-top: clamp(1rem, 2.5vw, 2rem);
  padding: 1.25rem 1.5rem;
  background: var(--mist);
  border-radius: 1rem;
  color: var(--muted);
}
.more-soon strong { color: var(--ink); font-weight: 600; }

/* method: real sequence */

.steps { counter-reset: step; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.steps li { counter-increment: step; padding-top: 1.25rem; border-top: 3px solid var(--cobalt); }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
  color: var(--cobalt-deep);
  margin-bottom: 1rem;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.steps p { color: var(--muted); font-size: 1rem; }

/* closing band */

.band { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.band canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.band::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--ink) 0%, rgb(11 18 32 / 0.8) 34%, rgb(11 18 32 / 0) 66%); }
.band .wrap { position: relative; z-index: 1; }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.band h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); max-width: 34rem; }
.band p { margin-top: 0.9rem; color: #cdd5e5; max-width: 32rem; }
.band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.band .btn:hover { background: var(--mist); border-color: var(--mist); color: var(--ink); }

/* ---------- product pages ---------- */

.caps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); }
.caps > li { padding-block: 1.75rem; border-top: 1px solid var(--line); }
.caps h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.caps p { color: var(--muted); }
.caps ul { margin: 0.9rem 0 0; padding-left: 1.1rem; color: var(--ink); }
.caps li li { padding: 0.15rem 0; }
.caps li li::marker { color: var(--cobalt); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.split__body > * + * { margin-top: 1.1rem; }
.split__body p { color: var(--muted); }

.checks { margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: 0.55rem 0 0.55rem 1.9rem; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 2.5px solid var(--cobalt);
  border-bottom: 2.5px solid var(--cobalt);
  transform: rotate(-45deg);
}

.networks { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.networks li { border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.4rem 1rem; font-weight: 500; }

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

.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__aside > * + * { margin-top: 1.5rem; }
.contact__aside p, .contact__aside address { color: var(--muted); font-style: normal; }
.contact__aside dt { font-weight: 600; color: var(--ink); }
.contact__aside dd { margin: 0 0 1rem; color: var(--muted); }

.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field label, .legend { font-weight: 600; font-size: 0.97rem; }
.field .hint { font-weight: 400; color: var(--muted); }

.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #8892a6;
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
}
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--cobalt); }

.check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; color: var(--muted); font-size: 0.97rem; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--cobalt); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { min-height: 1.5rem; font-weight: 500; }
.form-status[data-state="error"] { color: #b00020; }
.form-status[data-state="ok"] { color: #0a6b3d; }

/* ---------- legal pages ---------- */

.legal { max-width: 46rem; padding-block: clamp(3rem, 7vw, 5.5rem); }
.legal h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.legal .updated { margin-top: 1rem; color: var(--muted); }
.legal h2 { font-size: 1.35rem; margin-top: 2.75rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.75rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.legal p, .legal ul { margin-top: 0.9rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { padding: 0.15rem 0; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-size: 0.97rem; }
.legal th, .legal td { text-align: left; padding: 0.7rem 0.8rem 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 600; }

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

.site-footer { border-top: 1px solid var(--line); padding-block: 3.5rem 2.5rem; font-size: 0.97rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr)); gap: 2rem 3rem; }
.site-footer p, .site-footer address { color: var(--muted); font-style: normal; margin-top: 1rem; max-width: 22rem; }
.site-footer h2 { font-family: var(--font-body); font-size: 0.97rem; font-weight: 600; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.site-footer li + li { margin-top: 0.45rem; }
.site-footer ul a { color: var(--ink); }
.site-footer ul a:hover { color: var(--cobalt); }
.site-footer .legalline { grid-column: 1 / -1; max-width: none; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 1rem; }

/* ---------- responsive ---------- */

@media (max-width: 62rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 52rem) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--gutter) 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 0.9rem 0.25rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--cobalt-deep); }
  .nav .btn { margin: 1rem 0 0; border-bottom: 1.5px solid var(--cobalt); text-align: center; }

  .hero .wrap { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero__copy { display: contents; }
  .hero h1 { order: 1; padding-top: 2.5rem; }
  .stage { order: 2; min-height: 18rem; height: 18rem; align-self: auto; }
  .hero__lede { order: 3; margin-top: 0.5rem; }
  .hero__actions { order: 4; padding-bottom: 3rem; }

  .rows > li, .split, .contact { grid-template-columns: 1fr; }
  .products, .caps { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 34rem) {
  .steps { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .band .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
