:root {
  color-scheme: dark;
  --bg: #060708;
  --text: #f4f5f4;
  --muted: #b4b6b7;
  --quiet: #747779;
  --line: rgba(255, 255, 255, 0.22);
  --line-strong: rgba(255, 255, 255, 0.32);
  --citron: #e4ff20;
  --max: 1240px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(110% 85% at 78% 18%, rgba(255, 255, 255, 0.032), transparent 52%),
    linear-gradient(180deg, #080a0b 0%, var(--bg) 64%, #050607 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.site-shell {
  width: min(calc(100% - 96px), var(--max));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 38px 0 34px;
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 58px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text);
  font-size: 1.22rem;
  font-weight: 650;
  letter-spacing: 0.105em;
  line-height: 1;
  text-decoration: none;
}

.site-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: clamp(34px, 4vw, 56px);
}

.site-nav a,
.footer-nav a {
  position: relative;
  color: #dedfdf;
  font-size: 0.69rem;
  font-weight: 620;
  letter-spacing: 0.18em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 140ms ease;
}

.site-nav a:hover,
.footer-nav a:hover,
.brand:hover,
.site-nav a.active { color: #fff; }

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 1px;
  background: rgba(255,255,255,.82);
}

.site-nav a:focus-visible,
.footer-nav a:focus-visible,
.brand:focus-visible,
.product-card:focus-visible,
.legal-copy a:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 6px;
}

.home-hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.home-statement { margin-top: -5vh; }

.home-statement p,
.page-eyebrow {
  margin: 0;
  color: #d3d4d4;
  font-size: clamp(0.76rem, 0.69rem + 0.24vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.245em;
  line-height: 1.5;
  text-transform: uppercase;
}

.statement-rule {
  display: block;
  width: 100px;
  height: 1px;
  margin-top: 44px;
  background: rgba(255, 255, 255, 0.78);
}

.inner-shell { grid-template-rows: auto minmax(430px, 1fr) auto; }

.products-main {
  width: 100%;
  align-self: center;
  padding: 78px 0 96px;
}

.product-card {
  width: 100%;
  padding: 26px 0 28px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-decoration: none;
}

.rfh-mark {
  display: block;
  width: 44px;
  height: auto;
  color: var(--citron);
  transition:
    filter 200ms cubic-bezier(.16, 1, .3, 1),
    transform 200ms cubic-bezier(.16, 1, .3, 1);
}

.product-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.product-name {
  color: #e8e9e9;
  font-size: clamp(1.05rem, 1rem + .15vw, 1.16rem);
  font-weight: 570;
  letter-spacing: -.012em;
  transition: color 200ms cubic-bezier(.16, 1, .3, 1);
}

.product-description {
  color: #8f9294;
  font-size: .86rem;
  line-height: 1.45;
  transition: color 200ms cubic-bezier(.16, 1, .3, 1);
}

.product-link {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #aeb1b3;
  white-space: nowrap;
  transition: color 200ms cubic-bezier(.16, 1, .3, 1);
}

.product-domain {
  font-size: .78rem;
  letter-spacing: .015em;
}

.external-arrow {
  display: inline-block;
  color: #bfc1c2;
  font-size: 1rem;
  line-height: 1;
  transition:
    color 200ms cubic-bezier(.16, 1, .3, 1),
    transform 200ms cubic-bezier(.16, 1, .3, 1);
}

.product-card:hover .rfh-mark,
.product-card:focus-visible .rfh-mark {
  filter: brightness(1.08);
  transform: translateX(1px);
}

.product-card:hover .product-name,
.product-card:focus-visible .product-name {
  color: #fff;
}

.product-card:hover .product-description,
.product-card:focus-visible .product-description {
  color: #a7aaac;
}

.product-card:hover .product-link,
.product-card:focus-visible .product-link {
  color: #d4d6d7;
}

.product-card:hover .external-arrow,
.product-card:focus-visible .external-arrow {
  color: #fff;
  transform: translate(4px, -4px);
}

.legal-main {
  width: 100%;
  max-width: 720px;
  align-self: center;
  padding: 78px 0 96px;
}

.page-eyebrow { color: #9a9c9d; }

.legal-main h1 {
  margin: 26px 0 0;
  color: var(--text);
  font-size: clamp(2.25rem, 1.7rem + 2vw, 4rem);
  font-weight: 420;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.legal-date {
  margin: 16px 0 0;
  color: var(--quiet);
  font-size: .78rem;
}

.legal-copy {
  margin-top: 54px;
  display: grid;
  gap: 22px;
}

.legal-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.96rem, .92rem + .12vw, 1.03rem);
  line-height: 1.7;
}

.legal-copy a {
  color: var(--text);
  text-underline-offset: 4px;
}

.site-footer {
  min-height: 84px;
  padding-top: 30px;
  border-top: 1px solid var(--line-strong);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 430;
  letter-spacing: 0.01em;
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 44px), var(--max));
    padding: 24px 0;
    grid-template-rows: auto minmax(340px, 1fr) auto;
  }

  .inner-shell { grid-template-rows: auto minmax(400px, 1fr) auto; }

  .site-header {
    min-height: 52px;
    padding-bottom: 18px;
  }

  .brand { font-size: 1.04rem; }

  .site-header .site-nav {
    display: flex;
    gap: 0;
  }

  .site-header .site-nav a {
    font-size: .61rem;
    letter-spacing: .14em;
  }

  .home-statement { margin-top: -3vh; }
  .home-statement p { max-width: 290px; font-size: .72rem; letter-spacing: .205em; }
  .statement-rule { width: 68px; margin-top: 34px; }

  .products-main,
  .legal-main { padding: 62px 0 74px; }

  .product-card {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 16px;
    padding: 22px 0 24px;
  }

  .rfh-mark { width: 36px; }
  .product-name { font-size: 1rem; }
  .product-description { font-size: .79rem; }
  .product-domain { display: none; }

  .legal-copy { margin-top: 42px; }

  .site-footer {
    min-height: 104px;
    padding-top: 22px;
    align-items: flex-end;
    gap: 20px;
  }

  .site-footer p { font-size: .69rem; }
  .footer-nav { gap: 18px; }
  .footer-nav a { font-size: .58rem; letter-spacing: .12em; }
}

@media (max-width: 460px) {
  .site-shell { width: calc(100% - 32px); }

  .brand { font-size: .98rem; }

  .site-header .site-nav a {
    font-size: .56rem;
    letter-spacing: .12em;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
    align-content: end;
  }

  .footer-nav {
    grid-row: 1;
    justify-content: flex-start;
    margin-bottom: 6px;
  }

  .site-footer p { grid-row: 2; }

  .product-card {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 13px;
    padding: 20px 0 22px;
  }

  .rfh-mark { width: 32px; }
  .product-name { font-size: .96rem; }
  .product-description { font-size: .76rem; }
}

@media (max-height: 640px) and (min-width: 761px) {
  .site-shell {
    padding-top: 24px;
    padding-bottom: 22px;
    grid-template-rows: auto minmax(250px, 1fr) auto;
  }

  .home-statement { margin-top: 0; }
  .site-footer { min-height: 66px; padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; }
}


/* Navigation hierarchy */
.footer-nav a {
  color: #7f8387;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #b8bcc0;
}

.footer-nav a.active,
.footer-nav a[aria-current="page"] {
  color: #9a9ea2;
}

.site-nav a {
  color: #f2f3f4;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active,
.site-nav a[aria-current="page"] {
  color: #ffffff;
}


/* MindFirm signature motion V2 — slower resolve, exact final line length */
@media (prefers-reduced-motion: no-preference) {
  .home-statement p {
    -webkit-mask-image: linear-gradient(
      90deg,
      #000 0%,
      #000 44%,
      transparent 60%,
      transparent 100%
    );
    -webkit-mask-size: 245% 100%;
    -webkit-mask-position: 100% 0;
    -webkit-mask-repeat: no-repeat;

    mask-image: linear-gradient(
      90deg,
      #000 0%,
      #000 44%,
      transparent 60%,
      transparent 100%
    );
    mask-size: 245% 100%;
    mask-position: 100% 0;
    mask-repeat: no-repeat;

    animation: mf-statement-resolve-v2 1050ms cubic-bezier(.16, 1, .3, 1) 140ms forwards;
    will-change: mask-position, -webkit-mask-position;
  }

  .statement-rule {
    position: relative;
    overflow: visible;
    transform: none;
    clip-path: inset(0 100% 0 0);
    animation: mf-rule-reveal-v2 820ms cubic-bezier(.16, 1, .3, 1) 920ms forwards;
    will-change: clip-path;
  }

  .statement-rule::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -1px;
    width: 12px;
    height: 5px;
    border-radius: 999px;
    background: radial-gradient(
      ellipse at center,
      rgba(255,255,255,.72) 0%,
      rgba(255,255,255,.20) 48%,
      rgba(255,255,255,0) 76%
    );
    opacity: 0;
    transform: translateX(-54px);
    animation: mf-rule-edge-v2 820ms cubic-bezier(.16, 1, .3, 1) 920ms forwards;
    pointer-events: none;
  }

  @keyframes mf-statement-resolve-v2 {
    to {
      -webkit-mask-position: 0 0;
      mask-position: 0 0;
    }
  }

  @keyframes mf-rule-reveal-v2 {
    to {
      clip-path: inset(0 0 0 0);
    }
  }

  @keyframes mf-rule-edge-v2 {
    0% {
      opacity: 0;
      transform: translateX(-54px);
    }
    18% {
      opacity: .58;
    }
    76% {
      opacity: .32;
    }
    100% {
      opacity: 0;
      transform: translateX(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-statement p {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    animation: none !important;
  }

  .statement-rule {
    clip-path: none !important;
    transform: none !important;
    animation: none !important;
  }

  .statement-rule::after {
    display: none !important;
  }
}
