@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400&family=Manrope:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  --bg: #080a0d;
  --surface: #0d1015;
  --text: #f1f2ed;
  --muted: #888d93;
  --dim: #5f656d;
  --line: rgba(255, 255, 255, 0.11);
  --line-soft: rgba(255, 255, 255, 0.055);
  --signal: #b9f5d0;
  --signal-bright: #dcffe8;
  --max: 1440px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 70% 45%, rgba(91, 183, 133, 0.035), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.home {
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 1px solid var(--signal);
  outline-offset: 6px;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
}

/* Shared header */
.site-header {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 30px clamp(24px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 25px;
  height: 25px;
  overflow: visible;
}

.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.header-contact svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  transition: transform 180ms ease;
}

.header-contact:hover { color: var(--text); }
.header-contact:hover svg { transform: translate(2px, -2px); }

/* Homepage */
.splash {
  position: relative;
  display: grid;
  place-content: center;
  padding: clamp(56px, 8vh, 96px) 32px;
  text-align: center;
}

.splash::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(76vw, 820px);
  aspect-ratio: 1.8;
  border-radius: 50%;
  background: rgba(146, 255, 196, 0.04);
  filter: blur(90px);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.splash h1 {
  position: relative;
  margin: 0;
  font-size: clamp(3.6rem, 8.5vw, 8.2rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.91;
}

.splash h1 span {
  color: #777d83;
}

.splash p {
  position: relative;
  margin: clamp(34px, 5vh, 52px) 0 0;
  color: #7f858c;
  font-family: "DM Mono", monospace;
  font-size: clamp(0.62rem, 0.8vw, 0.72rem);
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

/* Shared footer */
.site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 24px clamp(24px, 4vw, 64px) 30px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--dim);
  font-family: "DM Mono", monospace;
  font-size: 0.61rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.company-line { margin: 0; }

.footer-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
}

.footer-nav a { transition: color 180ms ease; }
.footer-nav a:hover { color: var(--text); }

.home-footer { border-top-color: rgba(255, 255, 255, 0.075); }

/* Legal pages */
body:not(.home) {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

body:not(.home) main {
  width: min(100%, 840px);
  flex: 1;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 110px) 28px 100px;
}

body:not(.home) .site-header,
body:not(.home) .site-footer {
  max-width: var(--max);
}

body:not(.home) .site-nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body:not(.home) .site-nav a:hover { color: var(--text); }

.legal { max-width: 700px; }

.legal h1 {
  margin: 0 0 12px;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1;
}

.legal .updated {
  margin: 0 0 64px;
  color: var(--dim);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal h2 {
  margin: 42px 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.legal p,
.legal li {
  color: #999da1;
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal strong { color: #c8c9c5; font-weight: 500; }
.legal a { color: var(--signal); }
.legal a:hover { text-decoration: underline; }

.back-link {
  display: inline-block;
  margin-top: 52px;
  color: var(--signal);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .site-header { padding-top: 22px; }
  .brand { font-size: 0.84rem; }

  .splash { padding: 64px 24px; }
  .splash h1 { font-size: clamp(3.25rem, 16vw, 5rem); }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 22px;
  }

  .home-footer .footer-nav { flex-wrap: wrap; }

  body:not(.home) main { padding-top: 62px; }
  body:not(.home) .site-nav { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
