/* Fenhive landing page — standalone. Shares the company-site palette in
   company/brand.md ("Company-site palette") but none of web/'s files. */

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #0d0c0c;
  --surface: #151413;
  --surface-2: #1c1a19;
  --surface-3: #262422;
  --ink: #f3eadb;
  --ink-2: #c9c0b3;
  --muted: #9a9187;
  --blue: #4d90fe;
  --blue-hi: #82b1ff;
  --amber: #f5a623;
  --amber-hi: #ffb840;
  --amber-ink: #0d0c0c;
  --amber-ink-2: #2a1d0a;
  --amber-grad:
    radial-gradient(130% 115% at 50% 122%, #ffe08a 0%, #ffc94d 30%, rgba(245, 166, 35, 0) 66%),
    linear-gradient(180deg, #e37417 0%, #ec8c1c 38%, #f5a623 100%);
  --border: rgba(243, 234, 219, 0.12);
  --border-strong: rgba(243, 234, 219, 0.2);
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--page); color: var(--ink-2);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-hi); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--amber); color: var(--amber-ink); }

.svg-defs { position: absolute; width: 0; height: 0; }
.warm { filter: url(#fh-warm); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--amber); color: var(--amber-ink); border-radius: 8px; font-weight: 600; }
.skip-link:focus { left: 8px; }

h1, h2, h3 { color: var(--ink); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow { color: var(--blue-hi); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 36em; margin-top: 22px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px;
  border-radius: 999px; font-weight: 600; font-size: 16px; line-height: 1;
  text-decoration: none; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: var(--amber-hi); color: var(--amber-ink); }
.btn-ghost { border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-dark { background: var(--page); color: var(--ink); }
.btn-dark:hover { background: var(--surface-3); color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 15px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(13, 12, 12, 0.92);
  backdrop-filter: blur(10px); border-bottom: 1px dashed var(--border);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand img { height: 72px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover { color: var(--ink); }

/* Hero — flat #0d0c0c, never a gradient (company/brand.md). */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 .accent { color: var(--amber); }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
  padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(245, 166, 35, 0.45);
  color: var(--ink); font-size: 15px; font-weight: 600;
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-visual { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; justify-self: end; }
.hero-visual svg.rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rings .ring { fill: none; stroke: rgba(243, 234, 219, 0.2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rings .ring.dashed { stroke-dasharray: 2 5; }
.rings .axis { stroke: rgba(243, 234, 219, 0.1); stroke-width: 1; stroke-dasharray: 1 4; vector-effect: non-scaling-stroke; }
.rings .ping {
  fill: none; stroke: var(--amber); stroke-width: 1.25; vector-effect: non-scaling-stroke;
  transform-box: fill-box; transform-origin: center; opacity: 0;
  animation: ping 4.8s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.rings .ping:nth-of-type(2) { animation-delay: 1.6s; }
.rings .ping:nth-of-type(3) { animation-delay: 3.2s; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.85; } 100% { transform: scale(5.5); opacity: 0; } }
.tile {
  position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: var(--surface-2); display: grid; place-items: center;
  clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
}
.tile img { width: 62%; height: auto; }

/* Sections */
.section { padding: clamp(72px, 8vw, 112px) 0; border-top: 1px dashed var(--border); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p:not(.eyebrow) { margin-top: 18px; font-size: 18px; }

.cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px dashed var(--border-strong); border-left: 1px dashed var(--border-strong);
}
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 30px 28px 32px; border-right: 1px dashed var(--border-strong); border-bottom: 1px dashed var(--border-strong); }
.card .ico { width: 40px; height: 40px; color: var(--blue-hi); margin-bottom: 20px; }
.card .ico svg { width: 100%; height: 100%; }
.card p { margin-top: 10px; }
.card .q { margin-top: 16px; color: var(--muted); font-size: 15px; }
.card .q b { color: var(--ink-2); font-weight: 600; }

/* Principles list — the amber hex is the recurring marker (brand.md). */
.hex-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.hex-list li { position: relative; padding-left: 30px; }
.hex-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 16px; background: var(--amber);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hex-list h3 { margin-bottom: 8px; }

/* Pilot steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px dashed var(--border-strong); }
.steps li { padding: 28px 24px 8px 0; }
.steps li + li { padding-left: 24px; border-left: 1px dashed var(--border-strong); }
.steps .n { display: block; color: var(--blue-hi); font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.steps h3 { margin-bottom: 8px; }
.note { margin-top: 36px; color: var(--muted); font-size: 15px; max-width: 46em; }

/* Closing panel — the one amber gradient surface. Dark ink only. */
.panel {
  margin: 0 8px clamp(56px, 6vw, 88px); border-radius: var(--radius); background: var(--amber-grad);
  color: var(--amber-ink); padding: clamp(56px, 7vw, 96px) 0;
}
.panel h2 { color: var(--amber-ink); }
.panel p { color: var(--amber-ink-2); font-size: 19px; margin-top: 16px; max-width: 34em; }
.panel a:not(.btn) { color: var(--amber-ink); font-weight: 600; }
.panel .cta-row { margin-top: 28px; }

/* Footer */
.site-footer { border-top: 1px dashed var(--border); padding: 56px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); max-width: 22em; }
.site-footer h4 { color: var(--ink); font-size: 15px; font-weight: 600; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--ink-2); text-decoration: none; }
.site-footer ul a:hover { color: var(--ink); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--border); color: var(--muted); font-size: 14px;
}

/* Responsive */
@media (max-width: 980px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 320px; justify-self: center; order: -1; }
  .cards, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bar { height: 68px; }
  .brand img { height: 56px; }
  .site-header .btn-sm { padding: 9px 14px; font-size: 14px; }
  .hero-visual { max-width: 240px; }
  .cards, .cards.four, .cards.two { grid-template-columns: 1fr; }
  .hex-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0 6px; border-left: 0; }
  .steps li + li { border-top: 1px dashed var(--border-strong); }
  .cta-row .btn { width: 100%; justify-content: center; }
  .panel { margin: 0 0 48px; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rings .ping { animation: none; opacity: 0; }
}
