/*
 * custosassets.com — public site. Same design language as the Keeper
 * console (clients/web/src/admin/ds/README.md): neutral graphite, flat
 * CUSTOS Gold, IBM Plex Sans bold, 4/6/8px corners. Premium and serious;
 * no glows, gradients-as-decoration or ornament.
 */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  font-stretch: 75% 100%;
  src: url("fonts/ibm-plex-sans-latin-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  font-stretch: 75% 100%;
  src: url("fonts/ibm-plex-sans-latin-ext-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --sunken: #0b0b0c;
  --canvas: #111113;
  --surface: #16161a;
  --raised: #1b1b1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f2;
  --text-2: #b6b6b2;
  --text-3: #85857f;
  --gold: #c5b081;
  --gold-bright: #ddc99b;
  --on-gold: #1b170f;
  --jade: #8cc0a0;
  --amber: #e0b066;
  --coral: #e08a7a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

::selection {
  background: rgba(197, 176, 129, 0.35);
}

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

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.display {
  font-weight: 700;
  font-stretch: 92%;
  font-variation-settings: "wdth" 92;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
}

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--text-2);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
}

.btn-gold:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header[data-scrolled="true"] {
  background: rgba(17, 17, 19, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
}

.lang button {
  height: 38px;
  min-width: 42px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: flex;
  align-items: flex-end;
  padding: 140px 0 88px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  transform: scale(1.04);
  animation: settle 2.4s var(--ease) forwards;
}

@keyframes settle {
  to {
    transform: scale(1);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 11, 12, 0.94) 0%, rgba(11, 11, 12, 0.72) 42%, rgba(11, 11, 12, 0.15) 100%),
    linear-gradient(0deg, rgba(17, 17, 19, 1) 0%, rgba(17, 17, 19, 0) 34%);
}

.hero-content {
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(42px, 6.4vw, 84px);
  margin: 22px 0 26px;
}

.hero h1 .accent {
  color: var(--gold);
}

.hero .lead {
  max-width: 580px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: start;
  gap: 20px 48px;
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.stats div {
  display: grid;
  gap: 4px;
}

.stats dt {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  font-stretch: 92%;
  font-variation-settings: "wdth" 92;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--gold);
}

.stats dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-2);
  max-width: 17ch;
}

/* ---- Sections ---- */
section {
  scroll-margin-top: 80px;
}

.section {
  padding: clamp(80px, 10vw, 128px) 0;
}

.section-head {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.section-head .lead {
  max-width: 640px;
}

/* Capabilities */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.cap {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 36px 32px 40px;
  background: var(--surface);
  transition: background 0.25s var(--ease);
}

.cap:hover {
  background: var(--raised);
}

.cap-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  margin-bottom: 8px;
}

.cap-icon svg {
  width: 22px;
  height: 22px;
}

.cap h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cap p {
  color: var(--text-2);
  font-size: 15px;
}

/* Who it's for */
.audiences {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.aud {
  display: grid;
  gap: 18px;
  align-content: start;
}

.aud-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.aud-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.aud:hover .aud-media img {
  transform: scale(1.03);
}

.aud h3 {
  font-size: 22px;
  font-weight: 700;
}

.aud p {
  color: var(--text-2);
  font-size: 15px;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: var(--line-strong);
}

.step {
  position: relative;
  padding-right: 28px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.step-n {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--canvas);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
}

.step p {
  color: var(--text-2);
  font-size: 15px;
}

/* Band with full-width photo */
.band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(96px, 12vw, 160px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(11, 11, 12, 0.9), rgba(11, 11, 12, 0.6) 55%, rgba(11, 11, 12, 0.35));
}

.band h2 {
  font-size: clamp(32px, 4.4vw, 58px);
  max-width: 760px;
}

.band .lead {
  max-width: 560px;
  margin-top: 22px;
}

/* CTA */
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 40px;
  padding: 56px;
  border-radius: 8px;
  background: var(--raised);
  border: 1px solid var(--line);
}

.cta h2 {
  font-size: clamp(28px, 3.4vw, 42px);
}

.cta p {
  margin-top: 14px;
  color: var(--text-2);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Footer */
.site-footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
}

.foot-brand {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 24px 0 56px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.foot-brand img {
  height: clamp(96px, 12vw, 140px);
  width: auto;
}

.foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.foot img {
  height: 34px;
  width: auto;
}

.foot-links {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  color: var(--text-2);
  font-size: 14px;
}

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

.credits {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

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

/* Image credits page */
.legal {
  max-width: 720px;
  padding: 48px 0 80px;
  color: var(--text-2);
}

.legal .nav-logo img {
  height: 40px;
}

.legal h1 {
  margin: 64px 0 20px;
  font-size: clamp(32px, 4vw, 44px);
  color: var(--text);
}

.legal ul {
  margin: 28px 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.legal a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
}

.legal .nav-logo {
  text-decoration: none;
}

.legal-foot {
  margin-top: 48px;
  font-size: 13px;
  color: var(--text-3);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal[data-shown="true"] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-media img {
    animation: none;
    transform: none;
  }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }
  .steps::before {
    display: none;
  }
  .cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
  .nav-actions {
    margin-left: auto;
  }
  .nav-signin-label {
    display: none;
  }
  .audiences {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot {
    grid-template-columns: 1fr;
  }
  .foot-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }
  .nav-logo img {
    height: 30px;
  }
  .hero {
    padding-bottom: 64px;
  }
  .cta {
    padding: 32px 24px;
  }
  .hero-cta .btn {
    flex: 1 1 100%;
  }
}
