/* ===== Layout primitives ===== */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

@media (max-width: 767px) {
  .container {
    padding-inline: 20px;
  }
}

.section {
  padding-block: var(--space-xl);
}

.section--white {
  background: var(--color-white);
}

.section--off-white {
  background: var(--color-off-white);
}

.section--black {
  background: var(--color-black);
  color: var(--color-white);
}

@media (max-width: 767px) {
  .section {
    padding-block: var(--space-lg);
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (max-width: 1023px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ===== Typography ===== */

.eyebrow {
  display: inline-block;
  font-weight: 500;
  font-size: var(--text-label-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-black);
}

.eyebrow--bold {
  font-weight: 800;
}

.eyebrow--accent {
  color: var(--color-accent);
}

.h-hero {
  font-weight: 900;
  font-size: var(--text-hero);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-black);
  margin-block-start: var(--space-md);
}

.h-section {
  font-weight: 800;
  font-size: var(--text-section-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.h-headline-md {
  font-weight: 700;
  font-size: var(--text-headline-md);
  color: var(--color-black);
}

@media (max-width: 1023px) {
  .h-section {
    font-size: 40px;
  }
}

@media (max-width: 767px) {
  .h-hero {
    font-size: var(--text-hero-mobile);
  }
  .h-section {
    font-size: var(--text-section-heading-mobile);
  }
}

.body-lg {
  font-size: var(--text-body-lg);
  color: var(--color-gray-deep);
  font-weight: 400;
}

.body-md {
  font-size: var(--text-body-md);
  color: var(--color-gray-deep);
}

.microcopy {
  font-weight: 300;
  font-size: 15px;
  color: var(--color-gray-muted-body);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--color-black);
  text-decoration: underline;
}

.text-link:hover {
  color: var(--color-accent);
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--radius-default);
  padding: 14px 28px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background: #0044cc;
}

.btn--block {
  width: 100%;
  justify-content: center;
  font-weight: 700;
  padding: 16px 28px;
}

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-hairline);
  transition: none;
  animation: none;
}

.logo,
.logo img,
.logo svg,
.logo__wordmark {
  transition: none;
  animation: none;
}

.site-header__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--color-black);
}

.logo img,
.logo svg {
  width: 42px;
  height: 42px;
}

.logo__wordmark {
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.04em;
}

@media (max-width: 767px) {
  .logo {
    gap: var(--space-sm);
  }

  .logo img,
  .logo svg {
    width: 32px;
    height: 32px;
  }

  .logo__wordmark {
    font-size: 20px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-weight: 500;
  font-size: 15px;
  color: var(--color-black);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  border-bottom-color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  color: var(--color-black);
}

.nav-toggle:hover {
  color: var(--color-accent);
}

@media (max-width: 767px) {
  .nav {
    display: none;
  }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-hairline);
    padding: var(--space-md);
    gap: var(--space-md);
  }
  .nav-toggle {
    display: block;
  }
  .site-header__cta {
    display: none;
  }
}

/* ===== Footer ===== */

.site-footer {
  background: var(--color-white);
  border-top: 2px solid var(--color-accent);
}

.site-footer__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-lg) var(--space-md);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-footer__brand img,
.site-footer__brand svg {
  width: 28px;
  height: 28px;
}

.site-footer__tagline {
  font-weight: 300;
  font-size: 14px;
  color: var(--color-gray-muted-body);
  margin: 0;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  font-size: 14px;
  color: var(--color-gray-muted-body);
  text-align: center;
}

.site-footer__links a {
  color: var(--color-gray-muted-body);
  text-decoration: underline;
}

.site-footer__social {
  display: flex;
  justify-content: flex-end;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-off-white);
  color: var(--color-black);
}

.social-icon:hover {
  color: var(--color-accent);
}

@media (max-width: 767px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .site-footer__social {
    justify-content: center;
  }
}

/* ===== Cards ===== */

.card {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
}

/* ===== Checklist ===== */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.checklist--row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  color: var(--color-gray-deep);
}

.checklist .check-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}

/* ===== Stat ring ===== */

.stat-ring-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 160px;
  flex-shrink: 0;
}

.stat-ring {
  position: relative;
  width: 140px;
  height: 140px;
}

.stat-ring svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.stat-ring__track {
  fill: none;
  stroke: var(--color-hairline);
  stroke-width: 6;
}

.stat-ring__progress {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 6;
  stroke-linecap: round;
}

.stat-ring__body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
}

.stat-ring__value {
  font-weight: 900;
  font-size: 28px;
  color: var(--color-black);
  font-variant-numeric: tabular-nums;
}

.stat-ring-block__caption {
  font-weight: 400;
  font-size: 12px;
  color: var(--color-gray-deep);
  line-height: 1.3;
  margin-top: var(--space-sm);
}

.stat-ring-block__source {
  font-weight: 400;
  font-size: 10px;
  color: var(--color-gray-muted-body);
  margin-top: 2px;
}

/* ===== Stat cards (Home 1.4) ===== */

.stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.stat-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
}

.stat-card__value {
  font-weight: 900;
  font-size: 32px;
  color: var(--color-accent);
}

.stat-card__caption {
  font-weight: 400;
  font-size: 13px;
  color: var(--color-gray-deep);
  margin-top: 4px;
}

.stat-card__source {
  font-weight: 400;
  font-size: 11px;
  color: var(--color-gray-muted-body);
  margin-top: 6px;
}

/* ===== Tool logos ===== */

.powered-by {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-muted-body);
  gap: 2px;
}

.powered-by__divider {
  width: 1px;
  height: 32px;
  background: rgba(142, 142, 147, 0.2);
  flex-shrink: 0;
}

.tool-logos {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex: 1;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.tool-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tool-logo__mark {
  width: 28px;
  height: 28px;
  opacity: 0.6;
  filter: grayscale(1);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.tool-logo:hover .tool-logo__mark {
  opacity: 1;
  filter: grayscale(0);
}

.tool-logo__name {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-gray-muted-body);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.tool-logo:hover .tool-logo__name {
  color: var(--color-black);
}

@media (max-width: 767px) {
  .tool-logos {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tool-logos::-webkit-scrollbar {
    display: none;
  }

  .tool-logo {
    flex-shrink: 0;
  }
}

/* ===== Hero ===== */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero__octopus {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: 65vw;
  max-width: 900px;
  opacity: 0.07;
  pointer-events: auto;
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
}

.hero__octopus-svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 1023px) {
  .hero__octopus {
    display: none;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 72rem;
}

/* ===== Service tabs (Home 1.3) ===== */

.service-module {
  display: grid;
  grid-template-columns: 40% 60%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

@media (max-width: 1023px) {
  .service-module {
    grid-template-columns: 1fr;
  }
}

.service-tabs {
  background: var(--color-black);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  list-style: none;
  margin: 0;
}

.service-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 20px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
}

.service-tab:hover {
  background: rgba(255, 255, 255, 0.08);
}

.service-tab[aria-selected="true"],
.service-tab[aria-selected="true"]:hover {
  background: var(--color-accent);
}

.service-panels {
  background: var(--color-off-white);
  padding: var(--space-lg);
  display: grid;
}

.service-panel {
  grid-area: 1 / 1;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.service-panel[data-active="entering"] {
  opacity: 0;
  transform: translateX(10px);
}

.service-panel[data-active="false"] {
  opacity: 0;
  transform: translateX(-10px);
}

.service-panel__top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  align-items: flex-start;
}

@media (max-width: 767px) {
  .service-panel__top {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== Why Octeo grid ===== */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (min-width: 768px) {
  .why-grid--center {
    grid-template-columns: repeat(3, minmax(0, 300px));
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-item {
  text-align: left;
}

.why-item__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.why-item__heading {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 14px;
  color: var(--color-black);
  margin-bottom: var(--space-xs);
}

.why-item__body {
  font-size: 15px;
  color: var(--color-gray-deep);
}

/* ===== Service blocks (Services page) ===== */

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (max-width: 1023px) {
  .service-block {
    grid-template-columns: 1fr;
  }
}

.service-block__card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ===== Breadcrumbs ===== */

.breadcrumbs {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--color-gray-muted-body);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--color-hairline);
}

.breadcrumbs a {
  color: var(--color-gray-muted-body);
  text-decoration: underline;
}

.breadcrumbs li[aria-current="page"] {
  color: var(--color-black);
}

/* ===== FAQ ===== */

.faq-item {
  border-bottom: 1px solid var(--color-hairline);
  padding-block: var(--space-md);
}

.faq-item h3 {
  font-weight: 700;
  font-size: 19px;
  color: var(--color-black);
  margin-bottom: var(--space-sm);
}

.faq-item p {
  color: var(--color-gray-deep);
}

/* ===== Team grid (About) ===== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1023px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.team-card__image {
  aspect-ratio: 4 / 5;
  background: var(--color-off-white);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card__image svg {
  width: 30%;
  height: 30%;
  color: var(--color-hairline);
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__name {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-black);
  margin-top: 1rem;
}

.team-card__role {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-gray-deep);
  margin-top: 0.25rem;
}

.team-card__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: 4px;
  color: var(--color-gray-system);
  transition: color 0.2s ease;
}

.team-card__linkedin:hover {
  color: var(--color-accent);
}

/* ===== Values list (About) ===== */

.value-item {
  display: flex;
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--color-hairline);
}

.value-item__number {
  font-weight: 800;
  font-size: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.value-item__title {
  font-weight: 700;
  font-size: 17px;
  color: var(--color-black);
  margin-bottom: 4px;
}

/* ===== Forms ===== */

.form-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.form-field label {
  font-weight: 500;
  font-size: 14px;
  color: var(--color-black);
}

.form-field input,
.form-field textarea {
  border: none;
  border-bottom: 1px solid var(--color-hairline);
  border-radius: 0;
  padding: 10px 2px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  background: transparent;
  color: var(--color-black);
}

.form-field textarea {
  min-height: 135px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--color-accent);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block: var(--space-md);
}

.form-consent input {
  margin-top: 4px;
  accent-color: var(--color-accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-consent label {
  font-size: 14px;
  color: var(--color-gray-deep);
}

.form-consent a {
  color: var(--color-accent);
  text-decoration: underline;
}

.form-error {
  color: #b3261e;
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

.form-error.is-visible {
  display: block;
}

.form-status {
  margin-top: var(--space-md);
  font-weight: 500;
}

/* Honeypot - visually hidden, not display:none/type=hidden, so bots that skip
   hidden inputs but fill visible-looking ones still get caught. */
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ===== Utilities =====
   CSP forbids inline style="" attributes (style-src 'self', no unsafe-inline).
   These small utility classes cover the one-off spacing/layout tweaks that
   would otherwise need inline styles. */

.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }

.max-w-480 { max-width: 480px; }
.max-w-560 { max-width: 560px; }
.max-w-600 { max-width: 600px; }
.max-w-700 { max-width: 700px; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.mx-auto { margin-inline: auto; }

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.justify-center { justify-content: center; }

/* ===== Legal pages ===== */

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-weight: 800;
  font-size: 24px;
  color: var(--color-black);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-content p,
.legal-content li {
  color: var(--color-gray-deep);
  margin-bottom: var(--space-sm);
}

.legal-content ul {
  padding-left: 20px;
}

.legal-notice {
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-size: 14px;
  color: var(--color-gray-muted-body);
  margin-bottom: var(--space-lg);
}

/* ===== 404 ===== */

.not-found {
  text-align: center;
  padding-block: var(--space-xl);
}
