/* Fulcrum · Construction Intelligence Platform landing */
:root {
  --ink: #0e1013; --ink-2: #15181d; --ink-3: #1d2128; --steel: #2b3139;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --text: #e9ecef; --muted: #98a1ab;
  --paper: #f4f2ee; --paper-2: #e9e6e0; --paper-text: #15181c; --paper-muted: #5b636d;
  --yellow: #ffb800; --yellow-2: #ffcc3d; --yellow-dk: #b37f00;
  --red: #ff5a3c; --green: #3ddc84; --blue: #6ec1ff;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--ink); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; text-transform: uppercase; line-height: .95; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(3rem, 6.5vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
h3 { font-size: 1.6rem; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
.mono { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; }
.muted { color: var(--muted); }
.hl { color: var(--yellow); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--yellow); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 54ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; padding: 13px 24px; border-radius: 4px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: var(--yellow-2); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: none; }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--dark { background: var(--ink); color: var(--yellow); }
.btn--dark:hover { background: var(--ink-3); }
.btn--sm { padding: 8px 16px; font-size: .95rem; }
.btn--block { width: 100%; }

/* Pills & lock */
.pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; padding: 4px 9px; border-radius: 2px; background: var(--steel); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--live { background: rgba(61,220,132,.12); color: var(--green); }
.pill--live i { animation: ping 2s infinite; }
.pill--onboarding { background: rgba(255,184,0,.14); color: var(--yellow); }
.pill--complete { color: var(--muted); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.55);} 70% { box-shadow: 0 0 0 7px rgba(61,220,132,0);} 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0);} }
.lock { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.lock svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(14,16,19,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 1.55rem; letter-spacing: .08em; }
.logo svg { width: 28px; height: 28px; fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.logo em { font-style: normal; font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; padding-left: 12px; margin-left: 2px; border-left: 1px solid var(--line-2); line-height: 1.3; max-width: 15ch; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 500; }
.nav__links a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: 88px 0 104px; overflow: hidden; }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); }
.hero::after { content: ""; position: absolute; right: -10%; top: -20%; width: 60%; height: 120%; background: radial-gradient(circle, rgba(255,184,0,.12), transparent 60%); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 26px; }

.codebox { margin-top: 36px; max-width: 520px; }
.codebox label { display: block; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.codebox__row { display: flex; gap: 10px; }
input { font: 600 1.15rem var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text); background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 12px 16px; width: 100%; min-width: 0; }
input::placeholder { color: var(--steel); }
input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,184,0,.18); }
input[aria-invalid="true"] { border-color: var(--red); }
.codebox__msg { min-height: 1.5em; margin-top: 10px; font-size: .9rem; color: var(--muted); }
.codebox__msg.err { color: var(--red); }
.codebox__msg.ok { color: var(--green); }

/* Preview mock */
.preview { background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 40px 80px -20px rgba(0,0,0,.7); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.preview__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--steel); }
.preview__bar .lock { margin-left: auto; color: var(--yellow); }
.preview__body { padding: 18px; display: grid; gap: 14px; }
.pv-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pv-kpis i { height: 64px; border-radius: 4px; background: var(--ink-3); border: 1px solid var(--line); position: relative; }
.pv-kpis i::before, .pv-kpis i::after { content: ""; position: absolute; left: 12px; height: 6px; border-radius: 3px; background: var(--steel); }
.pv-kpis i::before { top: 14px; width: 50%; }
.pv-kpis i::after { top: 32px; width: 35%; height: 16px; background: #3a414b; }
.pv-kpis i.hl { border-color: rgba(255,184,0,.4); }
.pv-kpis i.hl::after { background: var(--yellow); }
.pv-chart { height: 170px; display: flex; align-items: flex-end; gap: 8px; padding: 14px; border-radius: 4px; background: var(--ink); border: 1px solid var(--line); }
.pv-chart span { flex: 1; height: var(--h); background: var(--yellow); border-radius: 2px 2px 0 0; opacity: .9; transform-origin: bottom; animation: rise 1s cubic-bezier(.2,.8,.2,1) backwards; }
.pv-chart span.dn { background: var(--red); opacity: .75; }
.pv-chart span:nth-child(n) { animation-delay: calc(var(--h) * 0); }
@keyframes rise { from { transform: scaleY(0); } }
.pv-rows { display: grid; gap: 8px; }
.pv-rows i { height: 12px; border-radius: 2px; background: var(--ink-3); }
.pv-rows i:nth-child(2) { width: 82%; }
.pv-rows i:nth-child(3) { width: 64%; }

/* Sections */
.section { padding: 112px 0; background: var(--paper); color: var(--paper-text); }
.section .eyebrow { color: var(--yellow-dk); }
.section .hl { color: #d99a00; }
.section .lead { color: var(--paper-muted); }
.section--alt { background: var(--paper-2); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }

/* Site cards */
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.site { background: var(--ink); color: var(--text); border-radius: 6px; padding: 26px; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--yellow); box-shadow: 0 24px 48px -28px rgba(0,0,0,.6); transition: transform .2s; }
.site:hover { transform: translateY(-3px); }
.site__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.site__client { color: var(--yellow); text-transform: uppercase; font-size: .78rem; }
.site h3 { font-size: 2.3rem; margin-bottom: 6px; }
.site__meta { margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.site__meta dt { font-family: var(--mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.site__meta dd { margin: 2px 0 0; font-size: .9rem; }
.site .btn { margin-top: auto; }
.site--new { background: transparent; color: var(--paper-text); border: 2px dashed rgba(0,0,0,.18); border-top-width: 2px; box-shadow: none; justify-content: center; }
.site--new p { color: var(--paper-muted); margin-bottom: 14px; }
.site--new .btn--ghost { color: var(--paper-text); border-color: rgba(0,0,0,.25); }
.site--new .btn--ghost:hover { color: var(--yellow-dk); border-color: var(--yellow-dk); }
.site__plus { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(0,0,0,.2); font-size: 1.6rem; color: var(--paper-muted); margin-bottom: 6px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(0,0,0,.1); border: 1px solid rgba(0,0,0,.1); }
.feat { background: var(--paper-2); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.feat svg { width: 34px; height: 34px; fill: none; stroke: var(--yellow-dk); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat p { color: var(--paper-muted); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { position: relative; padding-top: 26px; border-top: 3px solid var(--paper-text); }
.steps li::before { content: ""; position: absolute; top: -3px; left: 0; width: 40%; height: 3px; background: var(--yellow); }
.steps .mono { color: var(--yellow-dk); }
.steps h3 { font-size: 2.1rem; margin: 8px 0 10px; }
.steps p { color: var(--paper-muted); }
.principle { margin-top: 72px; padding: 40px; background: var(--ink); color: var(--text); border-radius: 6px; }
.principle p { font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.05; }
.principle .hl { color: var(--yellow); }

/* CTA */
.cta { background: var(--yellow); color: var(--ink); padding: 80px 0; }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta .eyebrow { color: var(--ink); }
.cta h2 { margin-bottom: 14px; }
.cta .lead { color: rgba(14,16,19,.75); }

/* Footer */
.footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.footer .logo { font-size: 1.2rem; color: var(--text); }
.footer .logo svg { width: 22px; height: 22px; }

/* Access dialog */
.access { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-2); border-top: 4px solid var(--yellow); border-radius: 8px; background: var(--ink-2); color: var(--text); box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.access::backdrop { background: rgba(8,9,11,.75); backdrop-filter: blur(4px); }
.access__close-form { position: absolute; top: 10px; right: 10px; margin: 0; }
.access__close { background: none; border: 0; color: var(--muted); font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 4px 10px; }
.access__close:hover { color: var(--text); }
.access__form { padding: 36px 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.access__form .eyebrow { margin-bottom: 0; }
.access__form h2 { font-size: 2.2rem; }
.access__site { font-size: .92rem; margin-bottom: 8px; }
.access__help { font-size: .82rem; margin-top: -4px; }
.lock--lg { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,184,0,.12); color: var(--yellow); margin-bottom: 6px; }
.lock--lg svg { width: 22px; height: 22px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero__inner, .sec-head { grid-template-columns: 1fr; gap: 32px; }
  .preview { transform: none; max-width: 620px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .logo em { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 72px; }
  .section { padding: 80px 0; }
  .codebox__row { flex-direction: column; }
  .features, .steps { grid-template-columns: 1fr; }
  .sites { grid-template-columns: 1fr; }
  .principle { padding: 28px 22px; }
  .preview { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
