:root {
  --canvas: #f4f6f8;
  --canvas-deep: #e8edf2;
  --ink: #12161c;
  --text: #1a212b;
  --muted: rgba(26, 33, 43, 0.62);
  --accent: #1f5f8b;
  --accent-soft: rgba(31, 95, 139, 0.12);
  --stroke: rgba(18, 22, 28, 0.1);
  --stroke-strong: rgba(18, 22, 28, 0.16);
  --font: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pad: clamp(1.1rem, 4vw, 2.5rem);
  --max: 980px;
  --header-h: 4.25rem;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--canvas);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Header / nav —— */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem var(--pad);
}

.brand {
  position: relative;
  z-index: 42;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.88;
}

.nav-toggle {
  position: relative;
  z-index: 42;
  width: 44px;
  height: 44px;
  border: 1px solid var(--stroke-strong);
  border-radius: 12px;
  background: rgba(244, 246, 248, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

body.nav-open .nav-toggle__bars { background: transparent; }
body.nav-open .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 41;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.15rem;
  padding: 5.5rem var(--pad) 2rem;
  background:
    linear-gradient(165deg, #f7f9fb 0%, #e9eef4 55%, #e4ebf2 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.nav-open .site-menu {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.site-menu a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-menu a:hover { color: var(--accent); }

@media (min-width: 820px) {
  .nav-toggle { display: none; }

  .site-menu {
    position: static;
    inset: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1.35rem;
    padding: 0;
    background: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(18, 22, 28, 0.62);
  }

  .site-menu a:hover {
    color: var(--ink);
    text-decoration: none;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 88svh;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--stroke);
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #f7f9fb 0%, var(--canvas) 48%, var(--canvas-deep) 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(18, 22, 28, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 22, 28, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}

.hero__glow--a {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  top: 8%;
  right: 6%;
  background: rgba(31, 95, 139, 0.16);
  animation: drift-a 18s ease-in-out infinite alternate;
}

.hero__glow--b {
  width: min(44vw, 340px);
  height: min(44vw, 340px);
  bottom: 6%;
  left: 4%;
  background: rgba(90, 120, 140, 0.14);
  animation: drift-b 22s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate(0, 0); }
  to { transform: translate(-18px, 22px); }
}

@keyframes drift-b {
  from { transform: translate(0, 0); }
  to { transform: translate(16px, -14px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__glow--a,
  .hero__glow--b {
    animation: none;
  }
}

.hero__content {
  width: min(680px, calc(100% - 2 * var(--pad)));
  margin: 0 auto;
  padding: 5.75rem 0 3rem;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.55rem, 9vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--ink);
  max-width: 10ch;
}

.hero .lede {
  margin: 0 0 1.5rem;
  max-width: 30rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.4vw, 1.16rem);
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.25rem;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.button:hover {
  text-decoration: none;
  background: #184d72;
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--stroke-strong);
  color: var(--ink);
}

.button.secondary:hover {
  background: rgba(18, 22, 28, 0.04);
}

@media (prefers-reduced-motion: no-preference) {
  .button:active {
    transform: translateY(1px);
  }
}

/* —— Sections —— */
.section {
  padding: clamp(3.25rem, 8vw, 5.5rem) 0;
  border-top: 1px solid var(--stroke);
}

.section__inner {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin: 0 auto;
}

.section-label {
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.65rem, 3.8vw, 2.25rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
}

.section p,
.section-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 38rem;
  font-size: 1.02rem;
}

.section-intro {
  margin-bottom: 2rem;
}

.section--products {
  background:
    linear-gradient(180deg, transparent, rgba(232, 237, 242, 0.55) 40%, transparent),
    var(--canvas);
}

.section--contact .cta-row {
  margin-top: 1.35rem;
}

/* —— Products (list, not cards) —— */
.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product {
  padding: 1.65rem 0;
  border-top: 1px solid var(--stroke);
}

.product:last-child {
  border-bottom: 1px solid var(--stroke);
}

.product__meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-bottom: 0.55rem;
}

.product h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.product__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.product p {
  max-width: 42rem;
}

/* —— Footer —— */
.site-footer {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-footer__brand strong {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.site-footer a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* —— Reveal motion —— */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
