/* ============================================================
   APIARIES.AI PLATFORM — Shared design tokens & primitives
   Two-layer palette · system-safe font stacks · no CDN
   ============================================================
   Font policy: no live font-face URLs. fonts.apiaries.ai is
   planned but not verified yet. Use system fallbacks until
   the host is ready. Weights restricted to 400/500/600/700.
   ============================================================ */

:root {
  /* Layer 1 — Business / Operations */
  --navy:#0B1015;
  --panel:#111820;
  --raised:#151F2A;
  --elevated:#1A2535;
  --border:rgba(255,255,255,0.08);
  --border-med:rgba(255,255,255,0.14);
  --text-primary:#F8FAFC;
  --text-secondary:#CBD5E1;
  --text-muted:#9CA3AF;
  --text-dim:#6B7280;

  --teal:#00D4D8;
  --teal-soft:rgba(0,212,216,0.14);
  --teal-deep:#00A8AB;

  --success:#22C55E;
  --success-soft:rgba(34,197,94,0.12);
  --success-border:rgba(34,197,94,0.22);
  --warning:#F59E0B;
  --warning-soft:rgba(245,158,11,0.12);
  --warning-border:rgba(245,158,11,0.22);
  --danger:#EF4444;
  --danger-soft:rgba(239,68,68,0.12);
  --danger-border:rgba(239,68,68,0.22);
  --info:#3B82F6;
  --violet:#8B5CF6;
  --pink:#EC4899;

  /* Agent colors */
  --agent-ebee:var(--teal);
  --agent-hermes:#14B8A6;
  --agent-waz:var(--violet);
  --agent-zero:var(--pink);
  --agent-openclaw:var(--info);
  --agent-system:#6B7280;

  /* Layer 2 — Brand / Tenant */
  --cream:#FFF8E7;
  --cream-panel:#F5EDD8;
  --cream-text:#1C1410;
  --cream-muted:#8B7D6B;
  --gold:#F5A623;
  --gold-soft:rgba(245,166,35,0.12);
  --gold-deep:#C87D0E;

  /* Type */
  --font-ui:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  --font-mono:"JetBrains Mono","SFMono-Regular",Consolas,"Liberation Mono",monospace;

  /* Spacing scale */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px;
  --s-5:20px; --s-6:24px; --s-8:32px; --s-10:40px;
  --s-12:48px; --s-16:64px; --s-20:80px; --s-24:96px;

  /* Radius */
  --r-1:4px; --r-2:6px; --r-3:8px; --r-4:10px; --r-5:14px; --r-6:20px;

  /* Shadows */
  --shadow-1:0 1px 2px rgba(0,0,0,0.4);
  --shadow-2:0 4px 12px rgba(0,0,0,0.35);
  --shadow-3:0 16px 40px rgba(0,0,0,0.5);
  --glow-teal:0 0 0 3px rgba(0,212,216,0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  background: var(--navy);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.t-display-xl { font-size: 64px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
.t-display-lg { font-size: 48px; font-weight: 700; letter-spacing: -0.022em; line-height: 1.1; }
.t-display-md { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.t-h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.t-h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.t-h3 { font-size: 18px; font-weight: 500; line-height: 1.4; }
.t-h4 { font-size: 16px; font-weight: 500; line-height: 1.45; }
.t-body { font-size: 14px; font-weight: 400; line-height: 1.55; }
.t-sm { font-size: 13px; font-weight: 400; line-height: 1.5; }
.t-label { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.t-mono { font-family: var(--font-mono); font-size: 13px; font-weight: 400; }
.t-mono-sm { font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--text-muted); }

/* ============================================================
   GLOBAL HEADER (mega nav)
   ============================================================ */
.gh { position: sticky; top: 0; z-index: 50; background: rgba(11,16,21,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.gh-bar { display: flex; align-items: center; gap: 22px; padding: 0 28px; height: 56px; max-width: 1440px; margin: 0 auto; }
.gh-logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; color: var(--text-primary); letter-spacing: -0.005em; }
.gh-hex { width: 22px; height: 22px; clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%); background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: var(--navy); }
.gh-nav { display: flex; gap: 0; flex: 1; }
.gh-link { padding: 0 14px; height: 56px; display: flex; align-items: center; font-size: 13px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: color 120ms; border-bottom: 2px solid transparent; }
.gh-link:hover { color: var(--text-primary); border-bottom-color: var(--teal); }
.gh-link.active { color: var(--teal); border-bottom-color: var(--teal); }
.gh-actions { display: flex; align-items: center; gap: 10px; }
.gh-search { width: 220px; height: 32px; background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-2); padding: 0 12px; color: var(--text-primary); font-family: var(--font-ui); font-size: 13px; outline: none; transition: all 120ms; }
.gh-search:focus { border-color: var(--teal); box-shadow: var(--glow-teal); }
.gh-tenant { display: flex; align-items: center; gap: 7px; padding: 0 11px; height: 32px; background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-2); cursor: pointer; font-size: 13px; color: var(--text-secondary); }
.gh-tenant:hover { border-color: var(--border-med); }

/* ============================================================
   FOOTER
   ============================================================ */
.gf { background: #08090C; border-top: 1px solid var(--border); padding: 56px 28px 32px; margin-top: 80px; }
.gf-grid { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.gf-brand h4 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin: 0 0 6px; }
.gf-brand p { font-size: 12px; color: var(--text-muted); line-height: 1.6; max-width: 240px; margin: 0 0 16px; }
.gf-news { background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-3); padding: 14px; }
.gf-news .lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 8px; }
.gf-news input { width: 100%; height: 32px; background: var(--navy); border: 1px solid var(--border); border-radius: var(--r-1); padding: 0 10px; color: var(--text-primary); font-family: var(--font-ui); font-size: 12px; outline: none; margin-bottom: 8px; }
.gf-news input:focus { border-color: var(--teal); }
.gf-news button { width: 100%; height: 30px; background: var(--teal); color: var(--navy); border: none; border-radius: var(--r-1); font-family: var(--font-ui); font-size: 12px; font-weight: 600; cursor: pointer; }
.gf-news .micro { font-size: 11px; color: var(--text-muted); margin-top: 7px; line-height: 1.5; }
.gf-col h5 { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-primary); margin: 0 0 14px; }
.gf-col ul { list-style: none; padding: 0; margin: 0; }
.gf-col li { margin-bottom: 9px; font-size: 13px; color: var(--text-muted); cursor: pointer; }
.gf-col li:hover { color: var(--text-primary); }
.gf-foot { max-width: 1440px; margin: 0 auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-dim); }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.section { padding: 64px 0; }
.section.tight { padding: 40px 0; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 80px 28px 64px; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero::before { content:''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; mask-image: radial-gradient(ellipse at center top, black, transparent 70%); }
.hero-inner { position: relative; max-width: 1280px; margin: 0 auto; }
.hero h1 { margin: 0 0 18px; max-width: 880px; }
.hero p { margin: 0; font-size: 17px; color: var(--text-secondary); max-width: 720px; line-height: 1.55; }
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 18px; border-radius: var(--r-2); font-family: var(--font-ui); font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all 120ms; white-space: nowrap; }
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: #14E0E4; }
.btn-secondary { background: var(--raised); color: var(--text-primary); border: 1px solid var(--border-med); }
.btn-secondary:hover { border-color: var(--text-secondary); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--teal); }
.btn-outline { background: transparent; color: var(--teal); border: 1px solid var(--teal); }
.btn-outline:hover { background: var(--teal-soft); }
.btn-gold { background: var(--gold); color: var(--cream-text); }
.btn-gold:hover { background: #F8B53B; }
.btn-lg { height: 44px; padding: 0 24px; font-size: 14px; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }

/* ============================================================
   CARDS
   ============================================================ */
.card { background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-3); padding: 22px; transition: border-color 120ms; }
.card:hover { border-color: var(--border-med); }
.card-tile { background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-3); padding: 24px; cursor: pointer; transition: all 150ms; display: flex; flex-direction: column; gap: 12px; }
.card-tile:hover { border-color: var(--teal); transform: translateY(-1px); }
.card-tile .icon { width: 38px; height: 38px; border-radius: var(--r-2); background: var(--teal-soft); display: flex; align-items: center; justify-content: center; color: var(--teal); }
.card-tile h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-primary); }
.card-tile p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.card-tile .meta { font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); }

/* Tile grid */
.tile-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ============================================================
   BADGES
   ============================================================ */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: var(--r-1); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.badge-ok { background: var(--success-soft); color: var(--success); border: 1px solid var(--success-border); }
.badge-wa { background: var(--warning-soft); color: var(--warning); border: 1px solid var(--warning-border); }
.badge-er { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger-border); }
.badge-nu { background: rgba(107,114,128,0.1); color: var(--text-muted); border: 1px solid rgba(107,114,128,0.2); }
.badge-tc { background: var(--teal-soft); color: var(--teal); border: 1px solid rgba(0,212,216,0.2); }
.badge-info { background: rgba(59,130,246,0.12); color: var(--info); border: 1px solid rgba(59,130,246,0.22); }
.badge-cert { background: rgba(245,166,35,0.12); color: var(--gold); border: 1px solid rgba(245,166,35,0.22); }

/* Status dot */
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-ok { background: var(--success); box-shadow: 0 0 5px rgba(34,197,94,0.5); animation: pulse 2s infinite; }
.dot-wa { background: var(--warning); }
.dot-er { background: var(--danger); }
.dot-nu { background: var(--text-dim); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ============================================================
   eBee panel — turquoise edged operational concierge
   ============================================================ */
.ebee-panel { background: linear-gradient(135deg, var(--raised), rgba(0,212,216,0.04)); border: 1px solid rgba(0,212,216,0.22); border-radius: var(--r-3); padding: 22px; }
.ebee-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ebee-mark { width: 32px; height: 32px; clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%); background: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--navy); flex-shrink: 0; }
.ebee-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.ebee-role { font-size: 12px; color: var(--text-muted); }
.ebee-msg { font-size: 13px; color: var(--text-secondary); line-height: 1.6; padding: 10px 0; border-top: 1px solid var(--border); }
.ebee-prompt { display: flex; gap: 8px; margin-top: 12px; }
.ebee-prompt input { flex: 1; height: 36px; background: var(--navy); border: 1px solid var(--border); border-radius: var(--r-2); padding: 0 12px; color: var(--text-primary); font-family: var(--font-ui); font-size: 13px; outline: none; }
.ebee-prompt input:focus { border-color: var(--teal); box-shadow: var(--glow-teal); }

/* ============================================================
   TABLES
   ============================================================ */
.table { width: 100%; border-collapse: collapse; background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-3); overflow: hidden; }
.table th { text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); background: var(--panel); }
.table td { padding: 11px 14px; font-size: 13px; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--elevated); }

/* ============================================================
   CTA bands
   ============================================================ */
.cta-band { background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-4); padding: 36px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h3 { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.cta-band p { margin: 0; font-size: 13px; color: var(--text-muted); max-width: 480px; }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; cursor: pointer; }
.faq-q { font-size: 14px; font-weight: 500; color: var(--text-primary); display: flex; justify-content: space-between; }
.faq-a { font-size: 13px; color: var(--text-muted); margin-top: 8px; line-height: 1.6; display: none; }
.faq-item.open .faq-a { display: block; }

/* ============================================================
   Filter sidebar
   ============================================================ */
.filter-side { width: 240px; flex-shrink: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-3); padding: 18px; }
.filter-side h4 { margin: 0 0 12px; font-size: 12px; font-weight: 600; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.06em; }
.filter-grp { padding: 12px 0; border-top: 1px solid var(--border); }
.filter-grp .lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 8px; }
.filter-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.filter-row input { accent-color: var(--teal); }

/* ============================================================
   Directory cards (installer / service / partner)
   ============================================================ */
.dir-card { background: var(--raised); border: 1px solid var(--border); border-radius: var(--r-3); padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 18px; }
.dir-card .name { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.dir-card .addr { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.dir-card .desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.55; }
.dir-card .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dir-card .right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.dir-card .dist { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

/* ============================================================
   Stepper
   ============================================================ */
.stepper { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--r-3); background: var(--raised); overflow: hidden; }
.step { flex: 1; padding: 14px 18px; border-right: 1px solid var(--border); position: relative; }
.step:last-child { border-right: none; }
.step .num { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.step .ttl { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.step.done { background: rgba(34,197,94,0.04); }
.step.done .num { color: var(--success); }
.step.active { background: var(--teal-soft); border-bottom: 2px solid var(--teal); }
.step.active .num { color: var(--teal); }

/* ============================================================
   Misc utility
   ============================================================ */
.hex { clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
