/* ============================================================
   LENO — site stylesheet (sits on top of the xAI design tokens)
   Monochrome, dark-canvas only. Responsive type + layout helpers.
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(255,255,255,0.16); }

a { color: inherit; }

/* --- Layout primitives --- */
.leno-container { max-width: var(--container-max, 1200px); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.leno-section { padding-top: 88px; padding-bottom: 88px; }
.leno-section--tight { padding-top: 64px; padding-bottom: 64px; }

/* --- Display type: faithful to the token scale, but fluid so it
       never blows out on small screens. Caps at the token value. --- */
.t-display-xl { font-size: clamp(46px, 8.2vw, 96px); line-height: 1.02; letter-spacing: -0.025em; }
.t-display-xxl { font-size: clamp(48px, 8.6vw, 104px); line-height: 1.01; letter-spacing: -0.025em; }
.t-display-lg { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.03; letter-spacing: -0.022em; }
.t-display-md { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.05; letter-spacing: -0.02em; }
.t-display-sm { font-size: clamp(24px, 3vw, 32px);  line-height: 1.12; letter-spacing: -0.014px; }
.t-display-xs { font-size: 20px; line-height: 28px; letter-spacing: 0; }

.t-balance { text-wrap: balance; }
.t-pretty  { text-wrap: pretty; }

/* --- Eyebrow as code-comment --- */
.leno-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--color-body-mid);
  display: inline-block;
}

/* --- Links / text --- */
.leno-link {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  transition: gap .15s ease, opacity .15s ease;
}
.leno-link:hover { gap: 12px; opacity: 0.82; }

/* --- NavBar --- */
.leno-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--color-hairline);
}
.leno-nav__inner {
  max-width: var(--container-max, 1200px); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px 24px;
}
.leno-nav__logo { height: 24px; width: auto; display: block; }
.leno-nav__links { display: flex; align-items: center; gap: 28px; }
.leno-nav__link {
  font-size: 14px; color: var(--color-body); text-decoration: none;
  transition: color .15s ease; white-space: nowrap;
}
.leno-nav__link:hover { color: var(--color-ink); }
.leno-nav__link--active { color: var(--color-ink); }
.leno-nav__menu-btn { display: none; }

.leno-nav__menu-btn { display: none; }
@media (max-width: 860px) {
  .leno-nav__links { display: none; }
  .leno-nav__cta { display: none !important; }
  .leno-nav__menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; padding: 0;
    background: transparent; border: 0; border-radius: 0;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
}
.leno-nav__burger, .leno-nav__burger::before, .leno-nav__burger::after {
  content: ""; display: block; width: 18px; height: 1.6px; background: var(--color-ink);
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.leno-nav__burger { position: relative; }
.leno-nav__burger::before { position: absolute; top: -6px; left: 0; }
.leno-nav__burger::after  { position: absolute; top: 6px; left: 0; }
.leno-nav__burger.is-open { background: transparent; }
.leno-nav__burger.is-open::before { transform: translateY(6px) rotate(45deg); }
.leno-nav__burger.is-open::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile overlay menu */
.leno-mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.leno-mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.leno-mobile-menu__panel {
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--color-canvas-card);
  border-bottom: 1px solid var(--color-hairline);
  padding: 88px 24px 32px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-12px); transition: transform .25s ease;
}
.leno-mobile-menu.is-open .leno-mobile-menu__panel { transform: none; }
.leno-mobile-menu__link {
  font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em;
  color: var(--color-body); text-decoration: none; padding: 14px 0;
  border-bottom: 1px solid var(--color-hairline);
}
.leno-mobile-menu__link.is-active { color: var(--color-ink); }
.leno-mobile-menu__close {
  position: absolute; top: 22px; right: 20px;
  width: 42px; height: 42px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 0;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.leno-mobile-menu__close span {
  position: absolute; width: 18px; height: 1.6px; background: var(--color-ink); border-radius: 2px;
}
.leno-mobile-menu__close span:first-child { transform: rotate(45deg); }
.leno-mobile-menu__close span:last-child { transform: rotate(-45deg); }
@media (min-width: 861px) { .leno-mobile-menu { display: none; } }

/* --- Pills --- */
.leno-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: 14px; line-height: 20px;
  padding: 10px 20px; border-radius: 9999px; text-decoration: none;
  cursor: pointer; white-space: nowrap; min-height: 40px;
  transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
  box-sizing: border-box;
}
.leno-pill--outline {
  background: transparent; color: var(--color-ink);
  border: 1px solid var(--border-outline);
}
.leno-pill--outline:hover { background: var(--color-canvas-soft); border-color: rgba(255,255,255,0.42); }
.leno-pill--primary {
  background: var(--color-primary); color: var(--color-on-primary);
  border: 1px solid var(--color-primary);
}
.leno-pill--primary:hover { opacity: 0.88; }

/* --- Cards --- */
.leno-card {
  background: var(--color-canvas-card);
  border: 1px solid var(--color-hairline);
  border-radius: 8px;
  transition: border-color .18s ease, background-color .18s ease;
}
.leno-card--link:hover { border-color: rgba(255,255,255,0.22); background: #1c1c1c; }

/* --- Image slots --- */
image-slot {
  display: block; width: 100%;
  background: var(--color-canvas-soft);
  border: 1px solid var(--color-hairline);
}

/* --- FAQ --- */
.leno-faq__item { border-top: 1px solid var(--color-hairline); }
.leno-faq__item:last-child { border-bottom: 1px solid var(--color-hairline); }
.leno-faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 4px;
  font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: -0.01em; color: var(--color-ink);
}
.leno-faq__q::-webkit-details-marker { display: none; }
.leno-faq__sign { flex: none; width: 22px; height: 22px; position: relative; opacity: 0.7; transition: transform .2s ease; }
.leno-faq__sign::before, .leno-faq__sign::after {
  content: ""; position: absolute; background: var(--color-ink);
  left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.leno-faq__sign::before { width: 14px; height: 1.5px; }
.leno-faq__sign::after  { width: 1.5px; height: 14px; transition: transform .2s ease; }
details[open] .leno-faq__sign::after { transform: translate(-50%, -50%) scaleY(0); }
.leno-faq__a {
  padding: 0 60px 28px 4px;
  color: var(--color-body); font-size: 16px; line-height: 26px; max-width: 760px;
  text-wrap: pretty;
}

/* --- Numbered process --- */
.leno-step__n {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 1.2px;
  color: var(--color-body-mid);
}

/* --- Grid helpers --- */
.leno-grid { display: grid; gap: 16px; }
.leno-grid--2 { grid-template-columns: repeat(2, 1fr); }
.leno-grid--3 { grid-template-columns: repeat(3, 1fr); }
.leno-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .leno-grid--3, .leno-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .leno-grid--2, .leno-grid--3, .leno-grid--4 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .leno-footer-entities { grid-template-columns: 1fr !important; gap: 24px !important; }
}

.leno-divider { border: 0; height: 1px; background: var(--color-hairline); margin: 0; width: 100%; }

/* Animated brand-accent gradient headline (Home hero) */
.leno-hero-gradient {
  background-image: linear-gradient(
    100deg,
    #ffffff 0%,
    #ffffff 14%,
    var(--color-accent-sunset) 30%,
    #36c692 44%,
    var(--color-accent-breeze) 58%,
    var(--color-accent-twilight) 70%,
    #ffffff 86%,
    #ffffff 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.12em;
}
@media (prefers-reduced-motion: no-preference) {
  .leno-hero-gradient { animation: leno-hero-sweep 11s ease-in-out infinite; }
}
@keyframes leno-hero-sweep {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Eyebrow "//" carries the same animated brand gradient as the headline */
.leno-eyebrow-slash {
  background-image: linear-gradient(
    100deg,
    var(--color-accent-sunset) 0%,
    #36c692 38%,
    var(--color-accent-breeze) 64%,
    var(--color-accent-twilight) 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .leno-eyebrow-slash { animation: leno-hero-sweep 11s ease-in-out infinite; }
}

/* Electric animated gradient border on the nav CTA */
.leno-nav__cta {
  border: 1px solid transparent !important;
  border-radius: 9999px !important;
  background-image:
    linear-gradient(#101012, #101012),
    linear-gradient(90deg, #ff7a17, #36c692, #a0c3ec, #c4b5fd, #ff7a17) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  background-size: 100% 100%, 300% 100% !important;
  background-position: 0 0, 0% 0 !important;
  background-repeat: no-repeat !important;
}
@media (prefers-reduced-motion: no-preference) {
  .leno-nav__cta { animation: leno-cta-sweep 4s linear infinite; }
}
.leno-nav__cta:hover {
  background-image:
    linear-gradient(#17181b, #17181b),
    linear-gradient(90deg, #ff7a17, #36c692, #a0c3ec, #c4b5fd, #ff7a17) !important;
}
@keyframes leno-cta-sweep {
  to { background-position: 0 0, -300% 0; }
}

/* --- Form fields --- */
.leno-field { display: flex; flex-direction: column; gap: 9px; }
.leno-field__label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--color-body-mid);
}
.leno-input, .leno-textarea, .leno-select {
  width: 100%; box-sizing: border-box;
  background: var(--color-canvas-soft);
  color: var(--color-ink);
  border: 1px solid var(--color-hairline);
  border-radius: 8px;
  padding: 13px 15px;
  font-family: var(--font-body); font-size: 16px; line-height: 24px;
  outline: none;
  transition: border-color .15s ease;
}
.leno-textarea { resize: vertical; min-height: 132px; }
.leno-select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.5 7 9l3.5-3.5' stroke='%237d8187' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.leno-input::placeholder, .leno-textarea::placeholder { color: var(--color-body-mid); }
.leno-input:focus, .leno-textarea:focus, .leno-select:focus { border-color: rgba(255,255,255,0.4); }

/* Fade-up entrance. Content is visible by DEFAULT — the hidden start state
   is gated behind html.js-ready so that no-JS, prerender, or hidden-tab
   loads (where rAF/IO never fire) always show content. */
@media (prefers-reduced-motion: no-preference) {
  html.js-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
  html.js-ready .reveal.is-in { opacity: 1; transform: none; }
}

/* ============================================================
   STATIC COMPONENT CLASSES
   These reproduce the design-system primitives the prototype used
   to compose at runtime (the DS <Eyebrow> and <Button>), so the
   pre-rendered HTML matches the original output pixel-for-pixel
   without the React/Babel runtime.
   ============================================================ */

/* Eyebrow — mono uppercase label (DS <Eyebrow>). */
.leno-eb {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--color-body-mid);
  display: inline-block;
}

/* Button — the brand's universal pill (DS <Button>). */
.leno-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
  box-sizing: border-box;
  min-height: 36px;
}
.leno-btn--sm { padding: 4px 12px; min-height: 28px; }
.leno-btn--outline {
  background: transparent; color: var(--color-ink);
  border: 1px solid var(--border-outline);
}
.leno-btn--primary {
  background: var(--color-primary); color: var(--color-on-primary);
  border: 1px solid var(--color-primary);
}
.leno-btn--primary:disabled { opacity: 0.45; cursor: not-allowed; }
.leno-btn--ghost {
  background: transparent; color: var(--color-ink);
  border: 1px solid transparent;
}

/* FAQ + Contact two-column grids stack on narrow screens. */
@media (max-width: 760px) {
  .leno-faq-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
}
@media (max-width: 880px) {
  .leno-contact-grid { grid-template-columns: 1fr !important; gap: 48px !important; }
}

/* Footer LinkedIn glyph — brighten on hover. */
.leno-footer__social {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-body); transition: color .15s ease;
}
.leno-footer__social:hover { color: var(--color-ink); }
