:root {
  --bg: #ffffff;
  --bg-alt: #f7f9f9;
  --fg: #131a1e;
  --fg-muted: #566269;
  --border: #e2e8e9;
  --border-strong: #cdd8da;

  --brand: #12796a;
  --brand-deep: #0c5a4f;
  --brand-tint: #e6f4f1;

  --grow: #2f8f3e;
  --grow-tint: #e9f5ea;
  --delegyn: #2563c9;
  --delegyn-tint: #e7effb;
  --shift: #7c53c4;
  --shift-tint: #f0eafa;

  --shadow: 0 1px 2px rgba(16, 30, 34, .04), 0 8px 24px rgba(16, 30, 34, .05);
  --max: 940px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1214;
    --bg-alt: #131b1e;
    --fg: #e8eef0;
    --fg-muted: #97a5ab;
    --border: #222e32;
    --border-strong: #314146;

    --brand: #4ecdb4;
    --brand-deep: #7fdcc8;
    --brand-tint: #10312c;

    --grow: #6cc878;
    --grow-tint: #14301a;
    --delegyn: #6da5f5;
    --delegyn-tint: #12243f;
    --shift: #b394e8;
    --shift-tint: #241a3a;

    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* Header */

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
  margin-right: auto;
}

.brand .mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--grow));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: none;
}

nav.site a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 15px;
  margin-left: 22px;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

nav.site a:first-child { margin-left: 0; }
nav.site a:hover { color: var(--fg); }
nav.site a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--brand); }

/* Hero */

.hero {
  background:
    radial-gradient(60% 120% at 8% 0%, var(--brand-tint) 0%, transparent 62%),
    radial-gradient(50% 110% at 92% 10%, var(--grow-tint) 0%, transparent 60%),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 68px 0 60px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 15ch;
}

.hero .lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 54ch;
  margin: 0;
}

main { flex: 1; }
main .wrap { padding-top: 56px; padding-bottom: 72px; }

.page-head { padding: 52px 0 8px; }
.page-head h1 { font-size: 34px; letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 6px; }

h2 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 44px 0 18px;
}

h2:first-child { margin-top: 0; }

.legal h2 {
  font-size: 19px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--fg);
  margin: 34px 0 10px;
}

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--fg-muted); }
.small { font-size: 14px; }

a { color: var(--brand-deep); text-underline-offset: 2px; }
a:hover { color: var(--brand); }

ul { padding-left: 20px; margin: 0 0 16px; }
li { margin-bottom: 8px; }

/* Brand cards */

.brands {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.brands li {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}

.brands li:hover { transform: translateY(-2px); border-color: var(--border-strong); }

.brands li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent, var(--brand));
}

.brands .badge {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--tint, var(--brand-tint));
  color: var(--accent, var(--brand));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 14px;
}

.brands .name {
  display: block;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.brands .desc {
  display: block;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.55;
}

.brands .visit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent, var(--brand));
  text-decoration: none;
}

.brands .visit span { transition: transform .18s ease; }
.brands .visit:hover { text-decoration: underline; }
.brands li:hover .visit span { transform: translateX(3px); }

.b-grow { --accent: var(--grow); --tint: var(--grow-tint); }
.b-delegyn { --accent: var(--delegyn); --tint: var(--delegyn-tint); }
.b-shift { --accent: var(--shift); --tint: var(--shift-tint); }

/* Info card */

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
}

.card h2 { margin-top: 0; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px 40px;
}

address { font-style: normal; line-height: 1.75; }

dl.contact { margin: 0; }
dl.contact dt {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 20px;
}
dl.contact dt:first-child { margin-top: 0; }
dl.contact dd { margin: 3px 0 0; font-size: 16px; }

/* Footer */

footer.site {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 30px 0 38px;
  font-size: 14px;
  color: var(--fg-muted);
}

footer.site .row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
footer.site a { color: var(--fg-muted); text-decoration: none; }
footer.site a:hover { color: var(--fg); }
footer.site .legal { margin-top: 14px; }

@media (max-width: 620px) {
  .hero { padding: 46px 0 42px; }
  .hero h1 { font-size: 33px; max-width: none; }
  .hero .lead { font-size: 17px; }
  .page-head h1 { font-size: 28px; }
  main .wrap { padding-top: 40px; padding-bottom: 52px; }
  .wrap { padding: 0 20px; }
}

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