:root {
  --hb-blue: #449ad0;
  --hb-blue-deep: #2f7fad;
  --hb-blue-soft: #d7ebf6;
  --hb-gray: #9b9c9b;
  --hb-ink: #1c2330;
  --hb-muted: #5c6472;
  --hb-line: rgba(28, 35, 48, 0.12);
  --hb-surface: #f4f7fa;
  --hb-white: #ffffff;
  --hb-footer: #303541;
  --hb-orange: #f16732;
  --hb-max: 70rem;
  --hb-font: "Manrope", system-ui, sans-serif;
  --hb-display: "Sora", "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--hb-font);
  color: var(--hb-ink);
  background: var(--hb-surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--hb-blue-deep);
  text-decoration: none;
}

a:hover {
  color: var(--hb-blue);
}

h1, h2, h3, h4 {
  font-family: var(--hb-display);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--hb-ink);
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: min(100% - 2rem, var(--hb-max));
  margin-inline: auto;
}

.hex { color: var(--hb-gray); }
.brain { color: var(--hb-blue); font-weight: 700; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 247, 250, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hb-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}

.nav-logo {
  display: block;
  width: 9.5rem;
  height: 2.25rem;
  background: url("../img/logo.svg") left center / contain no-repeat;
  text-indent: -9999px;
  overflow: hidden;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--hb-line);
  background: var(--hb-white);
  color: var(--hb-ink);
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--hb-ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--hb-blue-deep);
}

.nav-links a.is-active {
  box-shadow: inset 0 -2px 0 var(--hb-blue);
  padding-bottom: 0.15rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: grid;
  align-items: end;
  color: var(--hb-white);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(28, 35, 48, 0.9) 8%, rgba(28, 35, 48, 0.55) 48%, rgba(68, 154, 208, 0.35) 100%),
    url("../img/slide1.jpg") center / cover no-repeat;
  z-index: -1;
  transform: scale(1.03);
  animation: heroDrift 20s ease-in-out infinite alternate;
}

.hero-content {
  width: min(100% - 2rem, var(--hb-max));
  margin: 0 auto;
  padding: 8rem 0 5.5rem;
}

.hero-brand {
  margin: 0 0 1.1rem;
  font-family: var(--hb-display);
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 0.95;
  color: var(--hb-white);
  animation: rise 0.8s ease both;
}

.hero-brand .hex { color: #c8cac9; }
.hero-brand .brain { color: #7fc3eb; }

.hero h1 {
  max-width: 16ch;
  margin: 0 0 1rem;
  color: var(--hb-white);
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  animation: rise 0.9s ease 0.05s both;
}

.hero-lead {
  max-width: 36rem;
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  animation: rise 1s ease 0.1s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 1s ease 0.16s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  background: var(--hb-blue);
  color: var(--hb-white) !important;
  font-family: var(--hb-font);
  font-weight: 700;
  font-size: 0.98rem;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--hb-blue-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-ink {
  background: var(--hb-ink);
}

.btn-ink:hover {
  background: #10151d;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background:
    linear-gradient(180deg, #e9eef3 0%, #f4f7fa 100%);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--hb-blue-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section-head p,
.prose {
  color: var(--hb-muted);
  font-size: 1.05rem;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.feature,
.team-card,
.cred-card,
.quote-card {
  padding-top: 1.25rem;
  border-top: 1px solid var(--hb-line);
}

.feature h3,
.team-card h3,
.cred-card h3,
.quote-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.feature p,
.team-card p,
.cred-card p,
.quote-card p {
  color: var(--hb-muted);
  margin: 0;
}

.team-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 40rem) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

.team-card {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  align-items: start;
}

.team-card img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 50%;
}

.badge {
  display: inline-block;
  margin-top: 0.35rem;
  margin-right: 0.25rem;
  padding: 0.15rem 0.45rem;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-orange { background: var(--hb-orange); }
.badge-blue { background: #1f6f9c; }

.cred-grid,
.quote-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 56rem) {
  .cred-grid,
  .quote-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cred-card,
.quote-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--hb-line);
  border-top: 3px solid var(--hb-blue);
  padding: 1.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.cred-card:hover,
.quote-card:hover {
  transform: translateY(-3px);
  border-color: rgba(68, 154, 208, 0.45);
}

.cred-card img {
  margin: 0 0 0.85rem;
  max-height: 5.5rem;
  width: auto;
}

.quote-card .client {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.quote-card .client img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}

.page-hero {
  padding: 4.5rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.content-block {
  padding-bottom: 4.5rem;
}

.content-block .prose,
.blog-item {
  max-width: 48rem;
}

.blog-list {
  display: grid;
  gap: 1.25rem;
}

.blog-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--hb-line);
}

.blog-item h2 {
  font-size: 1.35rem;
}

.blog-meta {
  color: var(--hb-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 56rem) {
  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.contact-aside {
  padding-top: 1.25rem;
  border-top: 1px solid var(--hb-line);
}

.contact-aside h3 {
  font-size: 1.05rem;
}

.contact-aside p,
.contact-aside li {
  color: var(--hb-muted);
}

.contact-aside li + li {
  margin-top: 0.35rem;
}

form .form-field,
form .form-group {
  margin-bottom: 1rem;
}

form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

form input,
form textarea,
form select {
  width: 100%;
  border: 1px solid var(--hb-line);
  background: var(--hb-white);
  color: var(--hb-ink);
  font: inherit;
  padding: 0.8rem 0.9rem;
}

form input:focus,
form textarea:focus {
  outline: 2px solid var(--hb-blue-soft);
  border-color: var(--hb-blue);
}

form button,
form .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  border: 0;
  background: var(--hb-blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

form button:hover,
form .button:hover {
  background: var(--hb-blue-deep);
}

/* Footer */
.site-footer {
  background: var(--hb-footer);
  color: #b7bcc6;
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 56rem) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer h2 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.site-footer a {
  color: #b7bcc6;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer li + li {
  margin-top: 0.4rem;
}

.footer-brand {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  margin: 2rem auto 1rem;
  background: url("../img/logo-small.svg") center / contain no-repeat;
}

.footer-copy {
  text-align: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.social {
  display: flex;
  gap: 0.75rem;
}

.social a {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroDrift {
  from { transform: scale(1.03); }
  to { transform: scale(1.08); }
}

@media (max-width: 47.99rem) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    inset: 4.25rem 1rem auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--hb-white);
    border: 1px solid var(--hb-line);
  }

  .nav-links.is-open { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media,
  .hero-brand,
  .hero h1,
  .hero-lead,
  .cta-row,
  .cred-card,
  .quote-card {
    animation: none !important;
    transition: none !important;
  }
}
