/* Brain Digital — charte logo orange / navy */
:root {
  --bd-orange: #e87714;
  --bd-orange-bright: #ff9a3c;
  --bd-orange-deep: #c45f0a;
  --bd-navy: #0b1f3a;
  --bd-navy-mid: #152a4a;
  --bd-navy-soft: #1a3a66;
  --bd-bg: #eef1f5;
  --bd-bg-warm: #f7f5f2;
  --bd-white: #ffffff;
  --bd-text: #1a2332;
  --bd-muted: #5b6472;
  --bd-line: rgba(11, 31, 58, 0.12);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 4px;
  --header-h: 76px;
  --shadow-soft: 0 18px 50px rgba(11, 31, 58, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--bd-text);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(232, 119, 20, 0.08), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(26, 58, 102, 0.08), transparent 50%),
    linear-gradient(180deg, #f4f6f9 0%, var(--bd-bg) 40%, #e8edf3 100%);
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bd-navy);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--bd-navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(244, 246, 249, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--bd-line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-mark {
  width: 46px;
  height: auto;
}

.brand-brain {
  color: var(--bd-orange);
}

.brand-digital {
  color: var(--bd-navy);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-weight: 500;
  color: var(--bd-navy-mid);
  position: relative;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--bd-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:not(.btn):hover::after,
.site-nav a.is-active:not(.btn)::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bd-navy);
  margin: auto;
  transition: 0.25s var(--ease);
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 11px;
}

.nav-toggle-bar::before { top: 14px; }
.nav-toggle-bar::after { bottom: 14px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--bd-orange-bright), var(--bd-orange));
  color: #fff;
  box-shadow: 0 10px 28px rgba(232, 119, 20, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--bd-orange), var(--bd-orange-deep));
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

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

.btn-ghost {
  background: transparent;
  border-color: var(--bd-navy);
  color: var(--bd-navy);
}

.btn-ghost:hover {
  background: var(--bd-navy);
  color: #fff;
}

.btn-nav {
  min-height: 42px;
  padding-inline: 1.1rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(11, 31, 58, 0.92) 0%, rgba(11, 31, 58, 0.72) 42%, rgba(11, 31, 58, 0.45) 100%),
    radial-gradient(ellipse at 70% 40%, rgba(232, 119, 20, 0.25), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23e87714' stroke-opacity='0.18' stroke-width='1'%3E%3Cpath d='M20 40h40M60 40v30M60 70h35M95 70v25M95 95h30'/%3E%3Crect x='55' y='37' width='6' height='6' fill='%23e87714' fill-opacity='0.35' stroke='none'/%3E%3Crect x='92' y='67' width='6' height='6' fill='%23e87714' fill-opacity='0.35' stroke='none'/%3E%3Crect x='122' y='92' width='6' height='6' fill='%23e87714' fill-opacity='0.35' stroke='none'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(145deg, #0b1f3a 0%, #152a4a 45%, #1a3a66 100%);
  background-size: auto, auto, 160px 160px, auto;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(11, 31, 58, 0.55), transparent 35%),
    radial-gradient(circle at 85% 70%, rgba(232, 119, 20, 0.2), transparent 35%);
}

.hero-content {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5rem 0 4.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.1s forwards;
}

.hero-brand .brand-brain { color: var(--bd-orange-bright); }
.hero-brand .brand-digital { color: #fff; }

.hero h1 {
  color: #fff;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 600;
  max-width: 18ch;
  margin-bottom: 0.85rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.25s forwards;
}

.hero-lead {
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.4s forwards;
}

.hero .cta-group {
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.55s forwards;
}

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

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, 1%, 0); }
}

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

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

.section-head p {
  color: var(--bd-muted);
  font-size: 1.08rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bd-orange);
  margin-bottom: 0.75rem;
}

.section-dark {
  background:
    linear-gradient(160deg, var(--bd-navy) 0%, var(--bd-navy-mid) 55%, #0e2748 100%);
  color: rgba(255, 255, 255, 0.86);
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

/* Expertise grid — interaction tiles, not decorative cards */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bd-line);
  border: 1px solid var(--bd-line);
  overflow: hidden;
}

.expertise-link {
  display: block;
  background: rgba(255, 255, 255, 0.72);
  padding: 1.75rem 1.5rem 1.6rem;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
  position: relative;
  min-height: 100%;
}

.expertise-link:hover {
  background: #fff;
  z-index: 1;
  box-shadow: var(--shadow-soft);
}

.expertise-link .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1.1rem;
  color: var(--bd-orange);
}

.expertise-link h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.expertise-link p {
  color: var(--bd-muted);
  margin: 0;
  font-size: 0.98rem;
}

.expertise-link .more {
  display: inline-flex;
  margin-top: 1.1rem;
  font-weight: 600;
  color: var(--bd-orange);
  font-size: 0.92rem;
}

/* Why / values */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 1.35rem;
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--bd-line);
}

.feature-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.feature-num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--bd-orange);
  font-size: 1.15rem;
  line-height: 1.4;
}

.feature-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.feature-item p {
  margin: 0;
  color: var(--bd-muted);
}

.panel-visual {
  position: relative;
  min-height: 380px;
  background:
    linear-gradient(145deg, rgba(232, 119, 20, 0.12), transparent 40%),
    linear-gradient(200deg, var(--bd-navy) 0%, var(--bd-navy-soft) 100%);
  overflow: hidden;
}

.panel-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23e87714' stroke-opacity='0.35' stroke-width='1.2'%3E%3Cpath d='M10 30h28M38 30v24M38 54h28M66 54v20M66 74h24'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.55;
  animation: circuitPulse 6s ease-in-out infinite;
}

.panel-visual-inner {
  position: absolute;
  inset: auto 1.75rem 1.75rem 1.75rem;
  color: #fff;
}

.panel-visual-inner strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

@keyframes circuitPulse {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 0.7; transform: translateY(-6px); }
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step {
  position: relative;
  padding-top: 0.5rem;
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 3px;
  background: var(--bd-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}

.step.is-visible::before {
  transform: scaleX(1);
}

.step-index {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.15rem;
}

.step p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.98rem;
}

/* CTA band */
.cta-band {
  padding: 4.5rem 0;
  text-align: center;
  background:
    radial-gradient(600px 220px at 50% 0%, rgba(232, 119, 20, 0.18), transparent 70%),
    linear-gradient(180deg, #fff 0%, #f3f5f8 100%);
  border-block: 1px solid var(--bd-line);
}

.cta-band h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  max-width: 16ch;
  margin-inline: auto;
}

.cta-band p {
  color: var(--bd-muted);
  max-width: 36ch;
  margin: 0 auto 1.5rem;
}

/* Page hero compact */
.page-hero {
  padding: 4rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 200px at 100% 0%, rgba(232, 119, 20, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(11, 31, 58, 0.04), transparent);
  pointer-events: none;
}

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

.page-hero p {
  max-width: 42ch;
  color: var(--bd-muted);
  font-size: 1.1rem;
}

/* Content prose */
.prose {
  max-width: 48rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
}

.prose ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.prose li {
  margin-bottom: 0.4rem;
  color: var(--bd-muted);
}

/* Expertise detail */
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.bullet-board {
  display: grid;
  gap: 0.85rem;
}

.bullet-board li {
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.65);
  border-left: 3px solid var(--bd-orange);
  color: var(--bd-text);
}

.side-cta {
  padding: 1.75rem;
  background: linear-gradient(160deg, var(--bd-navy), var(--bd-navy-soft));
  color: #fff;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.side-cta h2 {
  color: #fff;
  font-size: 1.35rem;
}

.side-cta p {
  color: rgba(255, 255, 255, 0.75);
}

.side-cta .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-channels {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-channel {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--bd-line);
}

.contact-channel span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bd-muted);
  font-weight: 600;
}

.contact-channel a {
  font-weight: 600;
  color: var(--bd-navy);
  font-size: 1.05rem;
}

.contact-channel a:hover {
  color: var(--bd-orange);
}

.form {
  display: grid;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.7);
  padding: 1.75rem;
  border: 1px solid var(--bd-line);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--bd-navy);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--bd-line);
  background: #fff;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--bd-text);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--bd-orange);
  box-shadow: 0 0 0 3px rgba(232, 119, 20, 0.18);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-alert {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
}

.form-alert.success {
  background: rgba(22, 130, 80, 0.1);
  color: #14633d;
}

.form-alert.error {
  background: rgba(180, 40, 40, 0.1);
  color: #8f1f1f;
}

/* Footer */
.site-footer {
  position: relative;
  background: var(--bd-navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 4rem 0 1.5rem;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: -160px;
  background: radial-gradient(circle, rgba(232, 119, 20, 0.22), transparent 65%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  position: relative;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.68);
  max-width: 28ch;
}

.brand-footer .brand-digital {
  color: #fff;
}

.footer-title {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-list {
  display: grid;
  gap: 0.55rem;
}

.footer-list a:hover,
.footer-contact-links a:hover,
.footer-bottom a:hover {
  color: var(--bd-orange-bright);
}

.footer-contact-links {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
}

.footer-address,
.footer-meta {
  color: rgba(255, 255, 255, 0.68);
  margin: 0 0 0.5rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  position: relative;
}

.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  z-index: 90;
  transition: transform 0.25s var(--ease);
}

.whatsapp-fab:hover {
  transform: scale(1.06);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legal */
.legal {
  padding-bottom: 4rem;
}

/* Responsive */
@media (max-width: 960px) {
  .expertise-grid,
  .steps,
  .footer-grid,
  .split,
  .detail-grid,
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--bd-line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.35rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 0.25rem;
  }

  .site-nav .btn-nav {
    margin-top: 0.5rem;
  }

  .expertise-grid,
  .steps,
  .footer-grid,
  .split,
  .detail-grid,
  .contact-layout,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 3.5rem 0 3rem;
  }

  .panel-visual {
    min-height: 260px;
  }

  .section {
    padding: 3.75rem 0;
  }
}
