/*
 * RebyxlAI — shared styles.
 *
 * Static CSS, no build step and no framework. A holding-company site is read
 * a few thousand times by people who matter enormously (investors, senior
 * hires, partners) and edited rarely. Optimising for "cannot break at deploy"
 * and "loads instantly anywhere" beats optimising for developer convenience.
 *
 * The visual language borrows nothing from the product sites on purpose. A
 * parent company that looks like its first product reads as that product
 * wearing a hat. This is quieter, more typographic, more institutional.
 */

:root {
  --ink: #0A0A0B;
  --ink-soft: #131316;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #ECECEE;
  --muted: rgba(236, 236, 238, 0.58);
  --faint: rgba(236, 236, 238, 0.36);
  --accent: #C8A96A;          /* restrained gold — used sparingly, never as fill */
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ── Skip link: keyboard users should not tab through the nav every page ── */
.skip {
  position: absolute; left: -9999px;
}
.skip:focus {
  left: 24px; top: 24px; z-index: 999;
  background: var(--text); color: var(--ink);
  padding: 10px 18px; border-radius: 6px;
}

/* ── Header ─────────────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: baseline; gap: 10px; font-size: 19px; letter-spacing: -0.01em; }
.brand b { font-weight: 600; }
.brand .mark { color: var(--accent); font-size: 15px; }
.nav-links { display: flex; gap: 30px; align-items: center; font-size: 15px; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ── Type ───────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.7rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.7vw, 2.9rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.lede { font-size: clamp(1.06rem, 1.6vw, 1.24rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

section { padding: 104px 0; }
section + section { border-top: 1px solid var(--line); }
@media (max-width: 700px) { section { padding: 72px 0; } }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: 132px 0 108px; position: relative; }
.hero h1 { max-width: 17ch; margin-bottom: 30px; }
.hero .lede { font-size: clamp(1.1rem, 1.8vw, 1.32rem); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 34px;
  margin-top: 46px; padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--faint);
}

/* ── Grids ──────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid > * { background: var(--ink); padding: 38px 34px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.cell h3 { margin-bottom: 12px; }
.cell p { color: var(--muted); font-size: 15.5px; }

/* ── Principles: numbered, editorial ────────────────────────────────── */
.principle { display: grid; grid-template-columns: 62px 1fr; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.principle:last-child { border-bottom: 0; }
.principle .n { font-family: var(--serif); font-size: 1.5rem; color: var(--accent); line-height: 1.2; }
.principle h3 { margin-bottom: 8px; }
.principle p { color: var(--muted); font-size: 15.5px; max-width: 66ch; }
@media (max-width: 620px) { .principle { grid-template-columns: 1fr; gap: 6px; } }

/* ── Product card ───────────────────────────────────────────────────── */
.product {
  border: 1px solid var(--line); padding: 46px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 46px; align-items: start;
}
@media (max-width: 900px) { .product { grid-template-columns: 1fr; padding: 32px; gap: 28px; } }
.tag {
  display: inline-block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(200,169,106,.3);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 20px;
}
.spec { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; font-size: 14.5px; }
.spec:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.spec dt { color: var(--faint); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.spec dd { color: var(--muted); }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-strong); padding: 13px 26px; border-radius: 999px;
  font-size: 15px; transition: all .22s;
}
.btn:hover, .btn:focus-visible { border-color: var(--accent); color: var(--accent); }
.btn-solid { background: var(--text); color: var(--ink); border-color: var(--text); }
.btn-solid:hover, .btn-solid:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* ── Roles (careers) ────────────────────────────────────────────────── */
.role { border: 1px solid var(--line); padding: 30px 32px; margin-bottom: 14px; }
.role h3 { margin-bottom: 6px; }
.role .where { font-size: 13px; color: var(--faint); letter-spacing: .04em; margin-bottom: 14px; }
.role p { color: var(--muted); font-size: 15.5px; }

/* ── Footer ─────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 66px 0 46px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 42px; }
@media (max-width: 780px) { .foot { grid-template-columns: 1fr; gap: 30px; } }
.foot h4 { font-family: var(--sans); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; font-weight: 600; }
.foot ul { list-style: none; }
.foot li { margin-bottom: 9px; }
.foot a { color: var(--muted); font-size: 15px; }
.foot a:hover { color: var(--text); }
.legal { margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); line-height: 1.75; }

::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Logomark. Inherits currentColor so it recolours with whatever it sits in —
   gold in the header, muted in the footer, black on a printed page. */
.logomark { color: var(--accent); flex: 0 0 auto; }
.brand .logomark { margin-right: 2px; }
