/* ============================================================
   RefUAI LLP — company site
   Identity: cool neutral ground, graphite ink, teal accent,
   grotesque sans throughout, monospace micro-labels,
   squared geometry. Independent of any product brand.
   ============================================================ */

:root {
  --bg:          #ffffff;
  --bg-alt:      #f5f7f8;
  --bg-deep:     #0d1117;
  --ink:         #0d1117;
  --fg:          #1c2128;
  --muted:       #5c6570;
  --faint:       #8c959f;
  --border:      #e3e7ea;
  --border-firm: #d3d9dd;
  --accent:      #0d7c6b;
  --accent-deep: #095f52;
  --accent-tint: #eef7f5;

  --radius:      6px;
  --radius-lg:   10px;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 1120px;
  --gutter: 24px;
}

/* ── Reset ─────────────────────────────────────────────── */

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

::selection { background: #0d7c6b22; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: .875rem;
}
.skip:focus { left: 24px; }

/* ── Layout ────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 80px; }
.section.alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

@media (min-width: 900px) {
  .section { padding-block: 112px; }
}

.section-head { margin-bottom: 48px; }

/* ── Typography ────────────────────────────────────────── */

.label {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.h1 {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.032em;
  color: var(--ink);
  margin-top: 24px;
}

.h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.375rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin-top: 16px;
}

.lede {
  margin-top: 26px;
  max-width: 36rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.62;
  color: var(--muted);
}

.body {
  margin-top: 20px;
  max-width: 34rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
}

/* ── Buttons ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.btn-sm { padding: 8px 15px; font-size: .875rem; }

.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--accent-deep); }

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-firm);
}
.btn-line:hover { border-color: var(--ink); background: var(--bg-alt); }

.arrow { width: 14px; height: 14px; flex: none; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

/* ── Nav ───────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffffeb;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}
.brand-mark { width: 23px; height: 23px; flex: none; color: var(--accent); }
.brand-word {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .9375rem;
  color: var(--muted);
}
.nav-links > a:not(.btn) { transition: color .16s ease; }
.nav-links > a:not(.btn):hover { color: var(--ink); }

@media (max-width: 820px) {
  .nav-links > a:not(.btn) { display: none; }
}

/* ── Hero ──────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-block: clamp(60px, 10vw, 116px) clamp(44px, 6.5vw, 72px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--accent-tint) 0%, transparent 52%),
    radial-gradient(46ch 26ch at 88% 0%, #0d7c6b14, transparent 70%);
}
.hero-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--border-firm), transparent);
}

/* ── Products ──────────────────────────────────────────── */

.products {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .products { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
}

.product {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: clamp(26px, 3.4vw, 38px);
  transition: border-color .18s ease;
}
.product:hover { border-color: var(--border-firm); }

.product-next {
  background: var(--bg-alt);
  border-style: dashed;
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.product-name {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.product-next .product-name { color: var(--faint); }

.product-kicker {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .02em;
  color: var(--faint);
}

.status {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-firm);
  border-radius: 999px;
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--faint);
}
.status-live {
  border-color: #0d7c6b3d;
  background: var(--accent-tint);
  color: var(--accent-deep);
}
.status-live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.product-body {
  margin-top: 22px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}
.tags li {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted);
}

.link-out {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 500;
  color: var(--accent-deep);
  align-self: flex-start;
  transition: gap .16s ease;
}
.link-out:hover { gap: 11px; }

/* ── Principles ────────────────────────────────────────── */

.principles {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 760px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.principles li {
  background: var(--bg);
  padding: 30px 28px 32px;
}

.num {
  display: block;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--accent);
}

.principles h3 {
  margin-top: 16px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--ink);
}
.principles p {
  margin-top: 9px;
  font-size: .9688rem;
  font-weight: 300;
  line-height: 1.68;
  color: var(--muted);
}

/* ── Company ───────────────────────────────────────────── */

.company-grid {
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .company-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }
}

.facts {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 560px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.facts > div { background: var(--bg); padding: 20px 22px; }
.facts dt {
  font-family: var(--font-mono);
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--faint);
}
.facts dd {
  margin-top: 7px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

.office {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.office-label {
  font-family: var(--font-mono);
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--faint);
}
.office-address {
  margin-top: 10px;
  font-style: normal;
  font-size: .9375rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
}

/* ── Contact ───────────────────────────────────────────── */

.contact {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.mailto {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 34px;
  padding: 18px 24px;
  border: 1px solid var(--border-firm);
  border-radius: var(--radius-lg);
  background: var(--bg);
  max-width: 100%;
  transition: border-color .16s ease, background-color .16s ease;
}
.mailto:hover { border-color: var(--accent); background: var(--accent-tint); }

.mailto-label {
  font-family: var(--font-mono);
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--faint);
  flex: none;
}
.mailto-value {
  font-size: clamp(.9375rem, 2.6vw, 1.1875rem);
  font-weight: 500;
  color: var(--ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.mailto .arrow { color: var(--accent-deep); align-self: center; }

/* ── Footer ────────────────────────────────────────────── */

.footer {
  background: var(--bg-deep);
  color: #c9d1d9;
  padding-block: 52px 26px;
}
.footer .brand { color: #fff; }
.footer .brand-mark { color: #4db6a4; }

.footer-inner {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; }
}

.footer-tag {
  margin-top: 14px;
  font-size: .9375rem;
  font-weight: 300;
  color: #8b949e;
  max-width: 22rem;
}

.footer-links {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.footer-links h4 {
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #6e7681;
  margin-bottom: 13px;
}
.footer-links a {
  display: block;
  font-size: .9375rem;
  color: #c9d1d9;
  padding-block: 5px;
  transition: color .16s ease;
}
.footer-links a:hover { color: #fff; }

.footer-mail {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.footer-address {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #21262d;
  font-style: normal;
  font-size: .8125rem;
  font-weight: 300;
  line-height: 1.7;
  color: #6e7681;
  max-width: 22rem;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid #21262d;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: #6e7681;
}
