/* Hive Smart Solutions — brand tokens */
:root {
  --navy: #0C447C;
  --deep: #185FA5;
  --mid: #378ADD;
  --light: #85B7EB;
  --pale: #B5D4F4;
  --mist: #EEF4FB;
  --ink: #16212E;
  --slate: #4A5768;
  --line: #D7E3F0;
  --white: #FFFFFF;
  --font: "Nunito", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--mid); outline-offset: 3px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { font-size: 1.15rem; color: var(--slate); }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-family: var(--font); transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--deep); border-color: var(--deep); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--light); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-sm { padding: 10px 20px; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 44px; height: 44px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-hive { font-weight: 800; font-size: 1.35rem; letter-spacing: .12em; }
.brand-sub {
  font-weight: 700; font-size: .55rem; letter-spacing: .22em; color: var(--mid);
  margin-top: 5px; padding-top: 4px; border-top: 2px solid var(--mid);
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.nav a:hover { color: var(--deep); }
.nav .btn { color: var(--white); }
.nav-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }
.mobile-nav { display: none; flex-direction: column; border-top: 1px solid var(--line); background: var(--white); }
.mobile-nav a { padding: 16px 24px; text-decoration: none; color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--line); }
.site-header.open .mobile-nav { display: flex; }

/* Hero */
.hero { padding: 88px 0 96px; background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .22; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='97' viewBox='0 0 168 97'%3E%3Cg fill='none' stroke='%2385B7EB' stroke-width='2'%3E%3Cpolygon points='28,0 84,0 112,48.5 84,97 28,97 0,48.5'/%3E%3Cpolygon points='112,-48.5 168,-48.5 196,0 168,48.5 112,48.5 84,0'/%3E%3Cpolygon points='112,48.5 168,48.5 196,97 168,145.5 112,145.5 84,97'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 168px 97px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,1) 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,1) 100%);
}
.hero .wrap { position: relative; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.2vw, 3.25rem); }
.hero .btn-primary { background: var(--white); color: var(--navy); border-color: var(--white); }
.hero .btn-primary:hover { background: var(--pale); border-color: var(--pale); }
.hero .btn-ghost { color: var(--white); border-color: var(--light); }
.hero .btn-ghost:hover { border-color: var(--white); }
.hero-art { perspective: 1400px; }
.mock { background: var(--white); border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5), 0 0 0 1px var(--line); transform: rotateY(-8deg) rotateX(3deg); transform-origin: left center; font-size: 13px; color: var(--ink); overflow: hidden; }
.mock-bar { height: 34px; background: #F3F6FA; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D7E3F0; display: block; }
.mock-bar span { margin-left: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; color: var(--slate); font-size: 11px; flex: 1; }
.mock-body { padding: 18px 20px 20px; }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 10px; }
.mock-head strong { font-size: 15px; color: var(--navy); }
.mock-head em { font-style: normal; color: var(--slate); font-size: 11px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-kpis div { background: var(--mist); border-radius: 8px; padding: 10px 12px; }
.mock-kpis small { display: block; color: var(--slate); font-size: 10.5px; margin-bottom: 4px; }
.mock-kpis b { font-size: 17px; color: var(--navy); }
.mock-kpis b.pos { color: #1C7C4F; }
.mock table { width: 100%; border-collapse: collapse; }
.mock th { text-align: left; font-size: 10.5px; color: var(--slate); font-weight: 700; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.mock td { padding: 8px 4px; border-bottom: 1px solid #EEF2F7; font-size: 12px; }
.mock td:last-child, .mock th:last-child { text-align: right; }
.mock tr.tot td { font-weight: 700; color: var(--navy); border-bottom: 0; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.pill.paid { background: #E3F4EA; color: #1C7C4F; }
.pill.pto { background: #E3EEFA; color: var(--deep); }
.pill.inst { background: #FFF1DB; color: #9A5B00; }
.pill.sold { background: #EEF0F3; color: var(--slate); }
.mock-chart { display: flex; align-items: flex-end; gap: 6px; height: 54px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.mock-chart i { flex: 1; background: var(--light); border-radius: 3px 3px 0 0; display: block; }
.mock-chart i.hi { background: var(--mid); }
.mock-tabs { display: flex; gap: 4px; padding: 10px 14px 0; border-bottom: 1px solid var(--line); }
.mock-tabs span { padding: 6px 10px; font-size: 11.5px; font-weight: 700; color: var(--slate); border-bottom: 2px solid transparent; }
.mock-tabs span.on { color: var(--navy); border-color: var(--mid); }
.mock-foot { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--slate); }
.mock-foot b { color: var(--navy); }
.hero-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.lede { font-size: 1.3rem; color: var(--pale); max-width: 34em; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art svg { width: 100%; max-width: 480px; display: block; margin: 0 auto; }
.hx { stroke: var(--white); stroke-width: 6; stroke-linejoin: round; }
.hx-center { fill: var(--deep); }
.hx-a { fill: var(--pale); }
.hx-b { fill: var(--mid); }
.hx-c { fill: var(--light); }
@media (prefers-reduced-motion: no-preference) {
  .hex-cluster .hx { opacity: 0; transform-origin: 260px 260px; animation: hexin .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .hx-center { animation-delay: .1s; }
  .hx-a { animation-delay: .25s; }
  .hx-b { animation-delay: .4s; }
  .hx-c { animation-delay: .55s; }
  @keyframes hexin { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
}

/* Problem */
.problem { background: var(--white); padding-top: 88px; }
.problem h2 { max-width: 22em; }
.pain-list {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px;
}
.pain-list li { display: flex; flex-direction: column; gap: 4px; padding-left: 28px; position: relative; }
.pain-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 16px;
  background: var(--mid); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.pain-list strong { font-size: 1.15rem; color: var(--navy); }
.pain-list span { color: var(--slate); }
.pull { margin: 56px 0 0; font-size: 1.5rem; font-weight: 700; color: var(--deep); }

/* Services — honeycomb */
.honeycomb {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 0;
  max-width: 840px; margin: 0 auto; padding-bottom: 22%; margin-bottom: -6%;
}
.cell { position: relative; aspect-ratio: 1 / 0.88; }
.cell:nth-child(2n) { transform: translateY(calc(50% + 5px)); margin-left: -24.5%; width: 100%; justify-self: start; }
.cell-inner {
  position: absolute; inset: 0;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--navy); color: var(--white);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6% 18%; text-align: center;
}
.cell:nth-child(2) .cell-inner, .cell:nth-child(3) .cell-inner { background: var(--deep); }
.cell h3 { color: var(--white); margin-bottom: .5em; font-size: 1.3rem; }
.cell p { color: var(--pale); font-size: .97rem; line-height: 1.5; margin: 0; }

/* Built */
.built { background: var(--mist); }
.showcase { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px 56px; align-items: center; perspective: 1600px; }
.built .mock { transform: rotateY(6deg) rotateX(2deg); transform-origin: right center; box-shadow: 0 30px 60px -24px rgba(12,68,124,.4), 0 0 0 1px var(--line); }
.built .mock-kpi { transform: rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.show-copy h3 { font-size: 1.5rem; margin-bottom: .7em; }
.mock-goal { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.mock-goal-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.mock-bar-track { height: 8px; background: var(--mist); border-radius: 999px; overflow: hidden; }
.mock-bar-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--mid), var(--deep)); border-radius: 999px; }
.mock-goal small { display: block; margin-top: 6px; color: var(--slate); font-size: 11px; }
.mock-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-tiles div { background: var(--mist); border-radius: 8px; padding: 12px 12px 10px; border-left: 3px solid var(--mid); }
.mock-tiles b { display: block; font-size: 12.5px; color: var(--navy); margin-bottom: 3px; }
.mock-tiles small { display: block; font-size: 10.5px; color: var(--slate); line-height: 1.4; }
.caps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.caps li { position: relative; padding-left: 26px; color: var(--slate); line-height: 1.5; }
.caps li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 14px; background: var(--mid); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.caps strong { color: var(--navy); }
.custom-note { margin-top: 80px; background: var(--navy); color: var(--white); border-radius: 14px; padding: 40px 44px; display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: center; }
.custom-note h3 { color: var(--white); font-size: 1.6rem; margin: 0; }
.custom-note p { color: var(--pale); margin: 0; font-size: 1.05rem; }

/* How */
.how { background: var(--white); }
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  counter-reset: step;
}
.steps li { border-top: 3px solid var(--mid); padding-top: 20px; }
.step-num { display: block; font-weight: 800; font-size: 2.2rem; color: var(--light); line-height: 1; margin-bottom: 8px; }
.steps p { color: var(--slate); margin: 0; }

/* About */
.about-inner { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.photo-frame {
  width: 100%; aspect-ratio: 1 / 1; position: relative;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  background: var(--mist);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-initials { display: none; }
.photo-frame.empty { background: linear-gradient(135deg, var(--pale), var(--light)); }
.photo-frame.empty .photo-initials {
  display: flex; align-items: center; justify-content: center; position: absolute; inset: 0;
  font-size: 4rem; font-weight: 800; color: var(--white); letter-spacing: .05em;
}
.about-copy p { color: var(--slate); font-size: 1.08rem; }
.creds { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.creds li {
  padding: 8px 16px; border: 1.5px solid var(--light); border-radius: 999px;
  font-weight: 700; font-size: .9rem; color: var(--navy);
}

/* Contact */
.contact { background: var(--navy); color: var(--white); }
.contact h2 { color: var(--white); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-copy p { color: var(--pale); font-size: 1.1rem; }
.contact-details { font-style: normal; display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
.contact-details a { color: var(--white); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--mid); width: fit-content; }
.contact-details a:hover { border-color: var(--white); }
.contact-hint { font-weight: 600; font-size: .85rem; color: var(--pale); margin-left: 6px; }
.contact-form { background: var(--white); padding: 36px; border-radius: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 700; color: var(--navy); font-size: .95rem; }
.field input, .field textarea {
  font-family: var(--font); font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius); color: var(--ink); background: var(--white);
}
.field input:focus, .field textarea:focus { border-color: var(--mid); outline: none; box-shadow: 0 0 0 3px rgba(55,138,221,.2); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.contact-form .btn { width: 100%; }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.4em; color: var(--deep); }
.form-status.error { color: #B3261E; }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--slate); font-size: .95rem; }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-mark { width: 36px; height: 36px; }
.copyright { margin: 0; font-size: .85rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: 1; margin-top: 8px; }
  .mock, .built .mock { transform: none; }
  .showcase { grid-template-columns: 1fr; gap: 28px; }
  .showcase > :nth-child(1) { order: 1; } .showcase > :nth-child(2) { order: 2; } .showcase > :nth-child(4) { order: 3; } .showcase > :nth-child(3) { order: 4; } .showcase > :nth-child(5) { order: 5; } .showcase > :nth-child(6) { order: 6; }
  .showcase .show-copy { margin-bottom: 24px; }
  .custom-note { grid-template-columns: 1fr; gap: 12px; padding: 28px; margin-top: 48px; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 280px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .mock-tabs span:nth-child(n+4) { display: none; }
  .mock td:nth-child(3), .mock th:nth-child(3) { display: none; }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .pain-list { grid-template-columns: 1fr; }
  .honeycomb { grid-template-columns: 1fr; gap: 12px; max-width: 400px; padding-bottom: 0; margin-bottom: 0; }
  .cell:nth-child(2n) { transform: none; margin-left: 0; justify-self: stretch; }
  .cell { aspect-ratio: 1 / 1; }
  .cell-inner { padding: 12% 16%; }
  .cell p { font-size: .92rem; }
  .contact-form { padding: 24px; }
}
