@font-face {
  font-family: "Satoshi";
  src: url("fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "Satoshi", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #0e0e0e;
  --surface: #171717;
  --surface-2: #202020;
  --ink: #f5f5f5;
  --muted: #b8b8b8;
  --line: #303030;
  --line-strong: #4a4a4a;
  --gold: #e9c45c;
  --gold-hover: #f4d779;
  --gold-soft: #e9c45c12;
  --focus: #f1d88b;
  --green: #93cfaf;
  --radius: 22px;
  --shadow: 0 28px 80px #0007;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --ink: #171a21;
  --muted: #56606e;
  --line: #dce1e8;
  --line-strong: #b9c1cc;
  --gold: #8a6414;
  --gold-hover: #6f500f;
  --gold-soft: #f5c94414;
  --focus: #6b5a20;
  --green: #307253;
  --shadow: 0 20px 55px #1e273314;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 88% 3%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: -80px;
  left: 16px;
  padding: 10px 16px;
  border-radius: 9px;
  background: var(--gold);
  color: #17130b;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 32px 18px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 142px; height: auto; }
.brand-light { display: none; }
.brand span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 17px; }
.site-nav a { color: var(--muted); font-size: 12px; font-weight: 650; text-decoration: none; }
.site-nav a:hover { color: var(--gold); }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.theme-light { display: none; }
:root[data-theme="light"] .theme-dark { display: none; }
:root[data-theme="light"] .theme-light { display: inline; }
:root[data-theme="light"] .brand-dark { display: none; }
:root[data-theme="light"] .brand-light { display: block; }

main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 70px;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 10%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 34%),
    linear-gradient(145deg, var(--surface), var(--bg));
  box-shadow: var(--shadow);
}
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .12;
  background-image: linear-gradient(#ffffff18 1px, transparent 1px), linear-gradient(90deg, #ffffff18 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to left, #000, transparent 70%);
}
.eyebrow {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--gold);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 16px 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.hero-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 8px;
  margin-top: 28px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.catalog { padding-top: 52px; }
.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 17px;
}
.catalog-heading h2, .guide-principles h2 {
  margin: 5px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(360px, 100%);
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search input::placeholder { color: var(--muted); }

.integration-list { display: grid; gap: 9px; }
.integration-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto 20px;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  text-decoration: none;
  transition: transform .16s, border-color .16s, background .16s;
}
.integration-row:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); background: var(--surface-2); }
.integration-row[hidden] { display: none; }
.integration-icon { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 12px; background: #fff; }
.integration-icon img { width: 40px; height: 40px; object-fit: contain; }
.integration-row strong { font-size: 15px; }
.integration-row .status { color: var(--green); font-size: 11px; font-weight: 650; }
.integration-row .arrow { color: var(--gold); font-size: 18px; text-align: right; }
.empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}
.empty[hidden] { display: none; }
.empty strong { color: var(--ink); }
.empty-link { color: var(--gold); font-size: 12px; font-weight: 700; }

.guide-principles {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.principle-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.principle-grid article > span { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.principle-grid h3 { margin: 10px 0 5px; font-size: 17px; }
.principle-grid p { margin: 0; color: var(--muted); font-size: 13px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.site-footer > div { display: grid; gap: 3px; }
.site-footer strong { color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 17px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

@media (max-width: 760px) {
  .topbar { padding: 18px 16px 14px; }
  .brand span, .site-nav a { display: none; }
  main { width: min(100% - 32px, 1180px); padding-top: 22px; }
  .hero { padding: 28px 22px; border-radius: 22px; }
  .hero h1 { font-size: clamp(38px, 12vw, 56px); }
  .catalog { padding-top: 42px; }
  .catalog-heading { align-items: stretch; flex-direction: column; gap: 15px; }
  .search { width: 100%; }
  .integration-row { grid-template-columns: 48px minmax(0, 1fr) 18px; min-height: 68px; padding: 9px 11px; }
  .integration-icon { width: 44px; height: 44px; }
  .integration-row .status { display: none; }
  .principle-grid { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
