:root {
  --ink: #0b1f2a;
  --ink-soft: #163a4a;
  --teal: #14b8a6;
  --teal-deep: #0f766e;
  --mist: #e8f7f4;
  --sand: #f3f6f4;
  --paper: #fbfcfb;
  --line: rgba(11, 31, 42, 0.12);
  --muted: #5a7180;
  --text: #1a2e38;
  --shadow: 0 24px 60px rgba(11, 31, 42, 0.12);
  --radius: 18px;
  --max: 1120px;
  --font-display: "Syne", "Arial Black", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(20, 184, 166, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(22, 58, 74, 0.12), transparent 50%),
    linear-gradient(180deg, #eef5f3 0%, var(--paper) 38%, #f7faf9 100%);
  min-height: 100vh;
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(251, 252, 251, 0.82);
  border-bottom: 1px solid var(--line);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand-link img {
  width: 40px;
  height: 40px;
}

.brand-link strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(11, 31, 42, 0.92) 0%, rgba(11, 31, 42, 0.72) 48%, rgba(15, 118, 110, 0.55) 100%),
    url("../assets/logo-mark.svg") right 8% center / min(42vw, 420px) no-repeat;
  opacity: 1;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, var(--paper));
  z-index: 1;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  color: #f7fffc;
  max-width: 720px;
  margin-left: max(calc((100% - var(--max)) / 2), 1.2rem);
  margin-right: auto;
  width: min(720px, calc(100% - 2.4rem));
}

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  font-weight: 600;
  color: #9fe8dc;
  font-size: 0.72em;
  margin-top: 0.12em;
}

.hero-lead {
  margin: 1.2rem 0 1.8rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  max-width: 34ch;
  color: rgba(247, 255, 252, 0.9);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal);
  color: var(--ink);
}

.btn-primary:hover {
  background: #2dd4bf;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ——— Sections ——— */
section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  color: var(--ink);
  letter-spacing: -0.02em;
}

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

.panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

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

.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 1.35rem 1.4rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.product-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 1.4rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff, var(--mist));
  text-decoration: none;
  color: inherit;
}

.product-link strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.2rem;
}

.product-link span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-link .product-url {
  margin-top: 0.35rem;
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 0.92rem;
  word-break: break-all;
}

.product-link .arrow {
  font-size: 1.4rem;
  color: var(--teal-deep);
}

.product-cta-wrap {
  margin: 1.1rem 0 0;
}

.legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.legal-list li {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.legal-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.legal-list dt,
.legal-list .label {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.legal-list .value {
  color: var(--text);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

/* ——— Footer ——— */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  background: var(--ink);
  color: rgba(247, 255, 252, 0.86);
}

.site-footer a {
  color: #9fe8dc;
}

.site-footer .wrap {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
}

.footer-brand strong {
  font-family: var(--font-display);
  display: block;
  color: #fff;
}

.footer-brand span {
  font-size: 0.9rem;
  color: rgba(247, 255, 252, 0.7);
}

.footer-legal {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(247, 255, 252, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.92rem;
}

/* ——— Legal page ——— */
.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.legal-page .meta {
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  color: var(--ink);
  margin-top: 2rem;
}

/* ——— Motion ——— */
@media (prefers-reduced-motion: no-preference) {
  .hero h1,
  .hero-lead,
  .cta-row {
    animation: rise 0.8s ease both;
  }
  .hero-lead { animation-delay: 0.1s; }
  .cta-row { animation-delay: 0.18s; }

  .card,
  .product-link,
  .panel {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .card:hover,
  .product-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .legal-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .hero::before {
    background:
      linear-gradient(160deg, rgba(11, 31, 42, 0.94), rgba(15, 118, 110, 0.65)),
      url("../assets/logo-mark.svg") right -10% top 18% / 280px no-repeat;
  }
  .nav a.hide-sm {
    display: none;
  }
}
