/* Orb Home — marketing page. Self-contained: no dependency on the Orb Solutions stylesheet. */
:root {
  --bg: #FBFAF8;
  --card: #FFFFFF;
  --ink: #141414;
  --muted: #6B6B6B;
  --line: #E7E3DC;
  --sand: #F3F0EA;
  --brass: #8A6230;
  --brass-soft: #F6EEE2;
  --radius: 10px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
h1 span, h2 span { color: var(--muted); }
p { margin: 0; }

.wrap {
  --gutter: clamp(20px, 4vw, 32px);
  max-width: calc(1080px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.k {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: #fff;
  font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: #2B2B2B; }
.btn:active { transform: translateY(1px); }
.btn.alt { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.alt:hover { border-color: var(--ink); }
.btn.light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn.light:hover { background: #fff; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 248, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top header { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { flex-shrink: 0; }
.brand img { height: 30px; width: auto; max-width: none; }
.nav .btn { white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .back { white-space: nowrap; padding-right: 24px; border-right: 1px solid var(--line); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px);
}
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); margin-top: 18px; }
.lede { margin-top: 22px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { margin-top: 18px; font-size: 14px; color: var(--muted); }

.hero-art { position: relative; padding: 0 0 56px 28px; }
.hero-art .photo {
  width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover;
  border-radius: 18px;
}
.hero-art .screen {
  position: absolute; left: 0; bottom: 0; margin: 0;
  width: 68%;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 30px 60px -24px rgba(20, 20, 20, .35);
}
.float {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 30px -14px rgba(20, 20, 20, .28);
  font-size: 13px; line-height: 1.3; color: var(--muted);
  white-space: nowrap;
}
.float b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
.float svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 9px; background: var(--sand); color: var(--ink); }
.float.brass svg { background: var(--brass-soft); color: var(--brass); }
.f1 { top: 8%; right: -14px; }
.f2 { top: 36%; right: -26px; }
.f3 { bottom: 20%; right: 4%; }

/* Problem */
.problem { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.problem h2 { font-size: clamp(30px, 4.2vw, 50px); max-width: 17em; }
.problem p { margin-top: 24px; max-width: 40em; font-size: 18px; color: var(--muted); }

/* Benefits */
.benefits {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  padding-bottom: clamp(64px, 9vw, 120px);
}
.benefits article {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 28px;
}
.ic { display: inline-flex; width: 44px; height: 44px; border-radius: 11px; background: var(--sand); align-items: center; justify-content: center; }
.ic svg { width: 22px; height: 22px; }
.benefits h3 { margin-top: 22px; font-size: 21px; letter-spacing: -0.02em; }
.benefits p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* One connected building */
.connected { padding-bottom: clamp(64px, 9vw, 120px); }
.connected .head { margin-bottom: clamp(36px, 5vw, 56px); }
.connected h2 { margin-top: 14px; font-size: clamp(30px, 4.2vw, 50px); max-width: 16em; }
.aud {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-block: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.aud.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.aud.flip .aud-copy { order: 2; }
.tag {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  background: var(--sand); font-size: 13px; font-weight: 500;
}
.aud h3 { margin-top: 16px; font-size: clamp(24px, 2.8vw, 32px); }
.aud ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.aud li { position: relative; padding-left: 30px; color: var(--muted); }
.aud li::before {
  content: ''; position: absolute; left: 0; top: .3em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.shot {
  margin: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--card);
  box-shadow: 0 30px 60px -36px rgba(20, 20, 20, .35);
}

/* Final call to action */
.final {
  margin-bottom: clamp(64px, 9vw, 120px);
  padding-block: clamp(48px, 7vw, 88px);
  background: var(--ink); color: var(--bg);
  border-radius: 20px;
  text-align: center;
}
.final.wrap { max-width: calc(1080px); width: calc(100% - 2 * clamp(20px, 4vw, 32px)); padding-inline: clamp(24px, 5vw, 64px); }
.final h2 { font-size: clamp(30px, 4.4vw, 52px); max-width: 14em; margin-inline: auto; }
.final p { margin-top: 16px; color: #BDBAB4; }
.final .btn { margin-top: 30px; }

/* Demo form */
.demo {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(72px, 10vw, 128px);
}
.demo h2 { margin-top: 14px; font-size: clamp(30px, 3.8vw, 44px); }
.demo-copy p { margin-top: 16px; color: var(--muted); }
.demo-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 3.5vw, 36px); }
form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 500; }
label > span small { margin-left: 4px; }
label small { color: var(--muted); font-weight: 400; font-size: 13px; }
input, textarea {
  width: 100%; min-width: 0;
  font: 400 16px/1.4 var(--font); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 9px;
  padding: 12px 14px;
  transition: border-color .2s, background .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { color: #B42318; font-size: 14px; min-height: 0; }
.err:empty { display: none; }
form .btn { justify-self: start; }
.done h3 { font-size: 24px; }
.done p { margin-top: 10px; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-block: 30px; font-size: 14px; color: var(--muted); }
.foot .brand img { height: 26px; }
.foot a:not(.brand) { color: var(--ink); text-underline-offset: 3px; }

/* Reveal motion */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 620px; }
  .benefits { grid-template-columns: 1fr; }
  .aud, .demo { grid-template-columns: 1fr; }
  .aud.flip { grid-template-columns: 1fr; }
  .aud.flip .aud-copy { order: 0; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .nav { gap: 14px; }
  .nav .back { font-size: 14px; padding-right: 14px; }
  .brand img { height: 26px; }
  .hero-art { padding: 0 0 40px 14px; }
  .hero-art .screen { width: 78%; }
  .float { font-size: 12px; padding: 8px 10px 8px 8px; }
  .float b { font-size: 13px; }
  .float svg { width: 28px; height: 28px; padding: 6px; }
  .f1 { right: 8px; }
  .f2 { display: none; }
  .f3 { right: 8px; bottom: 26%; }
  .row { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 auto; }
  form .btn { justify-self: stretch; }
}
@media (max-width: 380px) {
  .top header { gap: 8px; }
  .brand img { height: 20px; }
  .nav { gap: 8px; }
  .nav .back { font-size: 13px; padding-right: 0; border-right: 0; }
  .nav .btn.sm { padding: 0 10px; }
}
