/* LOOPLX — single stylesheet. No build step, no external requests. */

:root {
  color-scheme: dark;

  --bg: #0a0b0d;
  --bg-raised: #101115;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  --text: #e9ebee;
  --text-muted: #9ba1a9;
  --text-dim: #7c838c;

  --accent-a: #7c5cff;
  --accent-b: #22d3ee;

  --wrap: 1080px;
  --prose: 40rem;
  --pad-x: clamp(1.25rem, 5vw, 2.5rem);
  --gap: clamp(3.5rem, 9vw, 7rem);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background: a faint grid plus one soft glow. CSS only, no images. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
}

body::after {
  content: "";
  position: fixed;
  top: -20vh;
  left: 50%;
  z-index: -1;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  translate: -50% 0;
  pointer-events: none;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent-a) 16%, transparent) 0%,
    transparent 62%
  );
}

/* ---------- typography ---------- */

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
}

h2 {
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem);
}

h3 {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

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

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--text);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.22em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: #fff;
  text-decoration-color: var(--accent-b);
}

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

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* Caps the measure of the children rather than the container itself, so text
   columns stay flush with the header and footer instead of drifting centre. */
.prose > * {
  max-width: var(--prose);
}

main {
  flex: 1;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  text-decoration: none;
  translate: 0 -200%;
}

.skip-link:focus-visible {
  translate: 0 0;
}

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

.site-header {
  padding-block: 1.5rem;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.brand-name {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.nav {
  display: flex;
  gap: clamp(1rem, 4vw, 2rem);
  font-size: 0.9375rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.nav a[aria-current="page"] {
  color: var(--text);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 11vw, 8rem) var(--gap);
}

.hero .wrap {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}

.hero-figure {
  order: -1;
  justify-self: center;
  width: min(340px, 78vw);
  aspect-ratio: 1;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero h1 span {
  background: linear-gradient(100deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  margin-top: 1.5rem;
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-raised);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.button:hover {
  border-color: color-mix(in srgb, var(--accent-b) 55%, transparent);
  background: #16181d;
}

.button svg {
  width: 14px;
  height: 14px;
  flex: none;
}

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

.section {
  padding-block: 0 var(--gap);
}

.section-head {
  margin-bottom: 2.5rem;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 var(--gap);
}

.cards {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.card {
  padding: clamp(1.5rem, 4vw, 2rem);
  background: var(--bg-raised);
}

.card svg {
  width: 22px;
  height: 22px;
  margin-bottom: 1.1rem;
  color: var(--accent-b);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ---------- page header (inner pages) ---------- */

.page-head {
  padding-block: clamp(2.5rem, 8vw, 5rem) clamp(2rem, 5vw, 3rem);
}

.page-body {
  padding-bottom: var(--gap);
}

.page-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
}

.page-body h2:first-child {
  margin-top: 0;
}

.page-body ul {
  margin: 0 0 1.15em;
  padding-left: 1.15em;
  color: var(--text-muted);
}

.page-body li {
  margin-bottom: 0.4em;
}

/* Legal entity / contact detail block */
.entity {
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 4vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raised);
}

.entity dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem 1.5rem;
  margin: 0;
  font-size: 0.9375rem;
}

.entity dt {
  color: var(--text-dim);
}

.entity dd {
  margin: 0 0 0.75rem;
}

.entity dd:last-child {
  margin-bottom: 0;
}

.mail {
  font-size: clamp(1.125rem, 1rem + 1vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem 2.5rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--text-dim);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--text);
}

/* ---------- 404 ---------- */

.centered {
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(4rem, 14vw, 9rem);
}

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

@media (min-width: 46rem) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .entity dl {
    grid-template-columns: 10rem 1fr;
  }

  .entity dd {
    margin-bottom: 0;
  }
}

@media (min-width: 60rem) {
  .hero .wrap {
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
  }

  .hero-figure {
    order: 0;
    width: 100%;
    max-width: 420px;
    justify-self: end;
  }
}
