/* ==========================================================================
   LevelLynk — site.css
   Direction B: Graphite + Safety Orange. Rugged. Industrial. Bold.

   Dark theme throughout. Orange is an ACCENT, never a background: one CTA
   colour, thin rules, and the bar-graph in the status card. Restraint is what
   reads as "rugged" — resist adding more orange.

   No external requests anywhere in this file: system font stack, no @import,
   no url() to any host. Everything self-hosted.
   ========================================================================== */

:root {
  /* --- OFFICIAL BRAND PALETTE. Do not add colours here. --- */
  --ll-black:  #1B1F24;   /* page background, primary dark   */
  --ll-orange: #FF6A00;   /* accent, CTA, "LYNK"             */
  --ll-slate:  #3B434C;   /* cards, borders, secondary dark  */
  --ll-light:  #F1F2F4;   /* body text on dark               */
  --ll-white:  #FFFFFF;   /* headings on dark                */

  /* --- Derived, not new brand colours: the same five with alpha, used for
         hairlines, hovers and surfaces so nothing off-palette creeps in. --- */
  --ll-surface:     #232830;                    /* black lifted toward slate  */
  --ll-surface-alt: #1F242B;
  --ll-border:      rgba(241, 242, 244, 0.12);
  --ll-border-str:  rgba(241, 242, 244, 0.22);
  --ll-muted:       rgba(241, 242, 244, 0.72);
  --ll-orange-dim:  rgba(255, 106, 0, 0.18);

  /* --- FUNCTIONAL STATUS COLOUR — deliberately outside the brand palette.
         The status card needs a green "Normal" dot, and green cannot be
         expressed in a black/orange/slate palette without meaning something
         else. Used ONLY for the status dot, never for text, never for brand.
         4.4:1 against the card surface, so it passes non-text contrast. --- */
  --ll-ok: #35C46A;

  --wrap:      1180px;
  --radius:    10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

/* ------------------------------- 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(--ll-black);
  color: var(--ll-light);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--ll-white); margin: 0 0 .5em; line-height: 1.15; }
p  { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: var(--ll-light); text-decoration: none; }
a:hover { color: var(--ll-white); }

/* Visible focus everywhere. Never remove this without a replacement. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ll-orange);
  outline-offset: 2px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 720px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ll-orange); color: var(--ll-black);
  padding: .75rem 1.25rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ------------------------------- buttons -------------------------------- */

.btn {
  display: inline-block;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  text-align: center;
  transition: background-color .15s ease, transform .15s ease;
}
.btn-accent {
  /* Black-on-orange, not white-on-orange: 8.1:1 vs 3.2:1. */
  background: var(--ll-orange);
  color: var(--ll-black);
}
.btn-accent:hover { background: #FF7D1F; color: var(--ll-black); transform: translateY(-1px); }
.btn-lg    { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn-block { display: block; width: 100%; }

/* ------------------------------- header --------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 31, 36, 0.94);
  border-bottom: 1px solid var(--ll-border);
  backdrop-filter: saturate(140%) blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ll-white); }
.brand-mark { flex: none; color: var(--ll-light); }
.brand-logo  { display: block; height: 34px; width: auto; }

.wordmark {
  font-size: 1.32rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--ll-white); white-space: nowrap;
}
.wordmark-accent { color: var(--ll-orange); }
.wordmark-sm { font-size: 1.15rem; }

.nav-desktop { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.nav-desktop ul { display: flex; gap: 1.6rem; }
.nav-desktop a  { font-size: .95rem; font-weight: 600; color: var(--ll-muted); }
.nav-desktop a:hover { color: var(--ll-white); }

.nav-burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 1px solid var(--ll-border); border-radius: 6px;
  cursor: pointer;
}
.nav-burger span {
  display: block; height: 2px; background: var(--ll-light); border-radius: 2px;
  margin: 4px 0;
}

.nav-mobile { display: none; padding: 1rem 20px 1.5rem; border-top: 1px solid var(--ll-border); }
.nav-mobile ul { margin-bottom: 1rem; }
.nav-mobile a  { display: block; padding: .8rem 0; font-size: 1.05rem; font-weight: 600;
                 border-bottom: 1px solid var(--ll-border); }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-burger  { display: block; }
  .nav-mobile:not([hidden]) { display: block; }
}

/* -------------------------------- hero ---------------------------------- */

.hero { position: relative; overflow: hidden; }

/* Layer 1 — dark gradient ground. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 520px at 78% 12%, rgba(255,106,0,.10), transparent 62%),
    linear-gradient(165deg, #232830 0%, var(--ll-black) 58%, #16191E 100%);

  /* ===== HERO PHOTO HOOK ===================================================
     Scott: drop a dark industrial photo at /img/hero.jpg and uncomment the two
     lines below. Nothing else changes — the contour layer and text contrast
     are already tuned to sit on top of a photo.
       background-image: linear-gradient(165deg, rgba(27,31,36,.86), rgba(27,31,36,.94)), url("/img/hero.jpg");
       background-size: cover; background-position: center;
     ======================================================================== */
}

/* Layer 2 — faint contour/grid texture. Pure CSS, no image request. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    repeating-linear-gradient(0deg,   var(--ll-border) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg,  var(--ll-border) 0 1px, transparent 1px 64px);
  opacity: .5;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 78%);
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 3.5rem; align-items: center;
  padding: 5.5rem 20px 6rem;
}

.eyebrow {
  margin-bottom: 1rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ll-orange);
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -.025em; }
.h1-accent { color: var(--ll-light); }
.lede { max-width: 34em; font-size: 1.1rem; color: var(--ll-muted); }
.hero-cta { margin-top: 2rem; }

/* thin orange rule with a small angled notch */
.rule-notch { position: relative; height: 3px; background: var(--ll-orange); z-index: 1; }
.rule-notch::after {
  content: ""; position: absolute; left: 12%; top: -9px;
  width: 22px; height: 22px;
  background: var(--ll-orange);
  transform: rotate(45deg);
  border-radius: 3px;
}

/* --------------------------- status card -------------------------------- */

.hero-card { display: flex; justify-content: center; }

.status-card {
  width: 100%; max-width: 340px;
  background: var(--ll-slate);
  border: 1px solid var(--ll-border-str);
  border-radius: 14px;
  padding: 1.4rem 1.5rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}

.status-asset {
  margin: 0 0 1.1rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  color: var(--ll-white);
}
.status-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .18em;
  color: var(--ll-light); opacity: .8;
}
.status-level { display: flex; align-items: baseline; justify-content: space-between; }
.status-pct {
  font-size: 3.1rem; font-weight: 800; letter-spacing: -.03em;
  color: var(--ll-white); line-height: 1;
}
.status-pct-sign { font-size: 1.5rem; font-weight: 700; margin-left: .06em; }

.status-bars {
  display: flex; align-items: flex-end; gap: 3px;
  height: 62px; margin: 1.1rem 0 1.2rem;
}
.status-bars .bar {
  flex: 1 1 0;
  min-width: 2px;
  background: var(--ll-orange);
  border-radius: 1px;
  opacity: .55;
}
/* Last four bars are "now" — full strength, so the eye lands on the present. */
.status-bars .bar:nth-last-child(-n+4) { opacity: 1; }

.status-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid var(--ll-border-str);
}
.status-state { display: inline-flex; align-items: center; gap: .5rem;
                font-weight: 600; color: var(--ll-white); font-size: .95rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-ok { background: var(--ll-ok); }

/* ------------------------------ sections -------------------------------- */

.section { padding: 5rem 0; }
.section-alt { background: var(--ll-surface-alt); border-block: 1px solid var(--ll-border); }

.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 2.5rem; padding-bottom: .85rem; position: relative;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 3px; background: var(--ll-orange);
}
.section-lede { max-width: 46em; color: var(--ll-muted); margin-top: -1.5rem; margin-bottom: 2.5rem; }

/* --------------------------------- cards -------------------------------- */

.cards { display: grid; gap: 1.25rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--ll-surface);
  border: 1px solid var(--ll-border);
  border-top: 3px solid var(--ll-orange);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.card h3 { font-size: 1.25rem; }
.card p  { margin: 0; color: var(--ll-muted); }

/* --------------------------------- steps -------------------------------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.step { position: relative; padding-top: 2.6rem; }
.step-num {
  position: absolute; top: 0; left: 0;
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--ll-orange);
}
.step h3 { font-size: 1.2rem; }
.step p  { margin: 0; color: var(--ll-muted); }

/* -------------------------------- product ------------------------------- */

.product-card {
  background: var(--ll-surface);
  border: 1px solid var(--ll-border);
  border-left: 4px solid var(--ll-orange);
  border-radius: var(--radius);
  padding: 2.25rem;
  max-width: 780px;
}
.product-name { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; }
.product-lede { color: var(--ll-muted); max-width: 42em; }

.ticks { margin: 1.75rem 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--ll-light); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--ll-orange);
  border-bottom: 2px solid var(--ll-orange);
  transform: rotate(-45deg);
}
.product-cta { margin: 0; }

/* -------------------------------- chips --------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: .75rem; }
.chips li {
  padding: .6rem 1.15rem;
  background: var(--ll-slate);
  border: 1px solid var(--ll-border-str);
  border-radius: 999px;
  font-size: .95rem; font-weight: 600;
  color: var(--ll-light);
}

/* --------------------------------- form --------------------------------- */

.demo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 700; letter-spacing: .08em;
               text-transform: uppercase; color: var(--ll-light); }

.demo-form input,
.demo-form textarea {
  width: 100%;
  padding: .8rem .9rem;
  background: var(--ll-surface);
  border: 1px solid var(--ll-border-str);
  border-radius: 6px;
  color: var(--ll-light);
  font-family: inherit; font-size: 1rem;
}
.demo-form input:focus,
.demo-form textarea:focus { border-color: var(--ll-orange); }
.demo-form textarea { resize: vertical; }

/* .field is a flex column, which would otherwise stretch the button to the full
   width of the form and make Submit look like a banner. */
.demo-form button[type="submit"] { align-self: flex-start; }

.form-note {
  margin-top: 1.25rem; padding: 1rem 1.25rem;
  background: var(--ll-orange-dim);
  border-left: 3px solid var(--ll-orange);
  border-radius: 4px;
  font-weight: 600; color: var(--ll-white);
}

/* -------------------------------- footer -------------------------------- */

.site-footer { border-top: 1px solid var(--ll-border); background: var(--ll-surface-alt); }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 2rem;
  align-items: flex-start; justify-content: space-between;
  padding-block: 3rem 2rem;
}
.footer-tagline { margin: .5rem 0 0; font-size: .82rem; font-weight: 600;
                  letter-spacing: .16em; text-transform: uppercase; color: var(--ll-muted); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav a  { font-size: .95rem; font-weight: 600; color: var(--ll-muted); }
.footer-nav a:hover { color: var(--ll-white); }

.footer-legal { padding-bottom: 2.5rem; border-top: 1px solid var(--ll-border); padding-top: 1.5rem; }
.footer-legal p { margin: 0; font-size: .85rem; color: var(--ll-muted); }

/* ------------------------------ responsive ------------------------------ */

@media (max-width: 980px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .steps   { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 820px) {
  /* Status card stacks UNDER the headline and CTA on phones — the copy and
     the call to action own the fold, the card is the reward for scrolling. */
  .hero-inner { grid-template-columns: 1fr; gap: 2.75rem; padding: 3.5rem 20px 4rem; }
  .hero-card  { justify-content: flex-start; }
  .status-card { max-width: 100%; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .section { padding: 3.5rem 0; }
  .cards-3 { grid-template-columns: 1fr; }
  .demo-form { grid-template-columns: 1fr; }
  .product-card { padding: 1.5rem; }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
}
