:root {
  color-scheme: dark;
  --color-background: #000000;
  --color-surface: rgba(0, 0, 0, 0.96);
  --color-surface-strong: #15181f;
  --color-text: #ffffff;
  --color-muted: #8b92a5;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-accent: #1a6bdc;
  --color-accent-strong: #6aaeff;
  --color-accent-soft: rgba(26, 107, 220, 0.15);
  --color-panel: #0f1117;
  --color-card: #15181f;
  --color-card-strong: #0f1117;
  --color-card-border: rgba(255, 255, 255, 0.08);
  --color-panel-soft: #1a1f2e;
  --color-ink-soft: #000000;
  --shadow-soft: 0 22px 48px rgba(0, 0, 0, 0.28);
  --shadow-card: 0 12px 28px rgba(0, 0, 0, 0.18);
  --shadow-card-hover: 0 16px 34px rgba(0, 0, 0, 0.24);
  --radius-card: 26px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content-width: 1180px;
  --header-offset: 6rem;
  --anchor-offset: 6.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-text);
  font-family: 'Manrope', 'Segoe UI Variable', 'Helvetica Neue', sans-serif;
  background: var(--color-background);
}

button,
input,
textarea,
select {
  font: inherit;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', 'Avenir Next', 'Segoe UI Variable', sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

p,
li {
  font-size: 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.shell__header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.96);
  border-bottom: 1px solid var(--color-border);
}

.admin-bar .shell__header {
  top: 32px;
}

.shell__header-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
}

.shell__brand {
  display: grid;
  align-items: start;
  min-width: 0;
}

.shell__brand-copy {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.shell__brand-lockup {
  display: block;
  width: min(100%, 10rem);
  height: auto;
}

.shell__brand-tagline {
  color: var(--color-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.shell__nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.shell__menu-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
}

.shell__nav-link {
  position: relative;
  padding: 0.25rem 0;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.shell__nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.shell__nav-link:hover::after {
  transform: scaleX(1);
}

.shell__menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #15181f;
  cursor: pointer;
}

.shell__menu-button span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.16rem 0;
  background: var(--color-text);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.shell__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0 1.15rem;
  border: 1px solid var(--color-accent);
  border-radius: 10px;
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 700;
  box-shadow: none;
}

.shell__main {
  padding-bottom: 2rem;
}

.shell__whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 24;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.5rem;
  padding: 0 1rem;
  border: 1px solid rgba(37, 211, 102, 0.26);
  border-radius: 999px;
  background: linear-gradient(180deg, #29d366, #1fb154);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.shell__whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.34);
  filter: brightness(1.02);
}

.shell__whatsapp svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: currentColor;
  flex-shrink: 0;
}

.shell__whatsapp span {
  line-height: 1;
}

.shell__footer {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  background: #000000;
}

.shell__footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 19rem) max-content max-content minmax(0, 22rem);
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.shell__footer-brand {
  max-width: 19rem;
}

.shell__footer-brand strong,
.shell__footer-heading,
.shell__footer-contact-title {
  display: block;
  margin: 0 0 1rem;
  color: #ffffff;
  font-family: 'Space Grotesk', 'Avenir Next', 'Segoe UI Variable', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.shell__footer-brand p,
.shell__footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.shell__footer-note {
  margin-top: 1rem;
}

.shell__footer-social {
  justify-self: start;
  width: max-content;
}

.shell__footer-contact {
  justify-self: start;
  width: max-content;
}

.shell__social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.shell__social-button,
.shell__footer-phone-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(21, 24, 31, 0.92);
  color: rgba(255, 255, 255, 0.86);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.shell__social-button:hover,
.shell__footer-phone-button:hover {
  border-color: rgba(26, 107, 220, 0.3);
  background: rgba(26, 107, 220, 0.15);
  transform: translateY(-1px);
}

.shell__social-button svg,
.shell__footer-phone-button svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: #6aaeff;
}

.shell__footer-location {
  justify-self: end;
  width: min(100%, 22rem);
}

.shell__footer-address {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  font-style: normal;
}

.shell__footer-address span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.shell__footer-map {
  display: block;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: #15181f;
}

.shell__footer-map iframe {
  display: block;
  width: 100%;
  height: 13rem;
  border: 0;
}

.shell__footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-block {
  padding: 1.5rem 0;
  scroll-margin-top: var(--anchor-offset);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.section-heading--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.9fr);
  gap: 2rem;
  align-items: end;
}

.section-heading__eyebrow {
  margin: 0 0 0.85rem;
  color: var(--color-accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.96;
}

.section-heading p {
  margin: 1rem 0 0;
  color: var(--color-muted);
  line-height: 1.75;
}

.hero {
  min-height: calc(100svh - var(--header-offset));
  display: flex;
  align-items: center;
  padding: clamp(1rem, 2.2svh, 1.75rem) 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.95fr);
  gap: 2rem;
  align-items: center;
  min-height: min(42rem, calc(100svh - var(--header-offset) - 2rem));
}

.hero__content {
  animation: rise-in 700ms ease both;
}

.hero__eyebrow {
  margin: 0 0 1rem;
  color: var(--color-accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3rem, 6.2vw, 5.4rem);
  line-height: 0.95;
}

.hero__copy {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.2rem;
  border-radius: 14px;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: none;
}

.button--secondary {
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
}

.hero__artboard {
  position: relative;
  min-height: clamp(20rem, 42svh, 30rem);
}

.hero__artboard::before {
  content: "";
  position: absolute;
  inset: 1.5rem 0.75rem 0.75rem 2.5rem;
  border-radius: 1.5rem;
  background: var(--color-panel-soft);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  position: absolute;
  display: grid;
  overflow: hidden;
  gap: 0.85rem;
  padding: 1.25rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-card-border);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  animation: card-float 7s ease-in-out infinite;
}

.hero-card p,
.hero-card strong,
.hero-card li {
  margin: 0;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-card strong {
  max-width: 14ch;
  font-size: 1.35rem;
  line-height: 1.1;
}

.hero-card ul {
  padding-left: 1rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  display: grid;
  gap: 0.4rem;
}

.hero-card--primary {
  top: 0;
  left: 0;
  width: min(100%, 18rem);
  border-color: var(--color-card-border);
  background: var(--color-card);
  color: #ffffff;
  box-shadow: var(--shadow-card);
}

.hero-card--primary p,
.hero-card--primary li {
  color: rgba(255, 255, 255, 0.82);
}

.hero-card--accent {
  top: 7.25rem;
  right: 0;
  width: min(100%, 16.5rem);
  border-color: rgba(26, 107, 220, 0.44);
  background: #1f2b45;
  color: #ffffff;
  animation-delay: 0.7s;
  box-shadow: var(--shadow-card);
}

.hero-card--accent p {
  color: var(--color-accent-strong);
}

.hero-card--surface {
  bottom: -1rem;
  left: 4rem;
  width: min(100%, 17rem);
  background: var(--color-card);
  animation-delay: 1.3s;
}

.hero-card--surface strong {
  color: #ffffff;
}

.hero-card__bars {
  display: flex;
  align-items: end;
  gap: 0.5rem;
  min-height: 4.5rem;
}

.hero-card__bars span {
  flex: 1;
  border-radius: 999px;
  background: rgba(26, 107, 220, 0.42);
}

.hero-card__bars span:nth-child(1) {
  height: 52%;
}

.hero-card__bars span:nth-child(2) {
  height: 76%;
}

.hero-card__bars span:nth-child(3) {
  height: 100%;
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card,
.benefit-card,
.service-card,
.process-step,
.work-card {
  position: relative;
  overflow: hidden;
}

.metric-card > *,
.benefit-card > *,
.service-card > *,
.process-step > *,
.work-card > * {
  position: relative;
  z-index: 1;
}

.metric-card,
.benefit-card {
  padding: 1.5rem;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.metric-card__value {
  margin: 0;
  color: var(--color-accent);
  font-size: 2.5rem;
  line-height: 1;
}

.metric-card h2,
.benefit-card h3,
.service-card h3,
.work-card h3,
.process-step h3 {
  margin: 0.7rem 0 0;
  font-size: 1.25rem;
}

.metric-card p:last-child,
.benefit-card p,
.service-card p,
.work-card p,
.process-step p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  padding: 1.55rem;
  border-radius: var(--radius-card);
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-card);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.service-card__eyebrow,
.work-card__category,
.process-step__number {
  margin: 0;
  color: var(--color-accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-card ul,
.work-card ul {
  display: grid;
  gap: 0.55rem;
  padding-left: 1rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.work-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--color-card-border);
  background: var(--color-card-strong);
  box-shadow: var(--shadow-card);
  transition:
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.work-card:hover {
  border-color: rgba(151, 173, 209, 0.4);
  box-shadow: var(--shadow-card-hover);
}

.work-card__visual {
  position: relative;
  overflow: hidden;
  height: clamp(14rem, 18vw, 18rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.work-card__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-card) - 1.15rem);
  object-fit: cover;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

.work-card__body {
  padding: 1.5rem;
  border-top: 1px solid var(--color-card-border);
  background: var(--color-panel);
}

.work-card--sunset .work-card__visual {
  background: linear-gradient(135deg, #000000, #1a1f2e 45%, #1a6bdc 100%);
}

.work-card--teal .work-card__visual {
  background: linear-gradient(135deg, #0f1117, #15181f 40%, #1254b5 100%);
}

.work-card--sand .work-card__visual {
  background: linear-gradient(135deg, #15181f, #1a1f2e 48%, #6aaeff 100%);
}

.process__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.process__steps {
  display: grid;
  gap: 1rem;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-card-border);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.process-step__number {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(26, 107, 220, 0.14);
}

.metric-card:hover,
.benefit-card:hover,
.service-card:hover,
.process-step:hover {
  border-color: rgba(26, 107, 220, 0.2);
  box-shadow: var(--shadow-card-hover);
}

.page-fallback__content {
  max-width: 48rem;
  padding: 1.5rem;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes scroll-fade-up {
  from {
    opacity: 0.2;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero__grid,
  .process__grid,
  .section-heading--split,
  .work__grid,
  .services__grid,
  .metrics__grid,
  .benefits__grid {
    grid-template-columns: 1fr;
  }

  .hero__artboard {
    min-height: 22rem;
  }
}

@media (max-width: 1040px) {
  .shell__footer-grid,
  .shell__footer-bottom {
    grid-template-columns: 1fr;
    justify-content: normal;
  }

  .shell__footer-social,
  .shell__footer-contact,
  .shell__footer-location {
    justify-self: stretch;
    width: 100%;
  }

  .shell__footer-brand {
    max-width: none;
  }
}

@media (max-width: 782px) {
  .admin-bar .shell__header {
    top: 46px;
  }
}

@media (max-width: 720px) {
  .shell__header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
  }

  .shell__brand {
    align-items: start;
  }

  .shell__brand-lockup {
    width: min(100%, 13.5rem);
  }

  .shell__brand-tagline {
    max-width: 22rem;
    display: none;
  }

  .shell__menu-button {
    display: inline-flex;
    flex-direction: column;
  }

  .shell__menu-panel {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    z-index: 30;
    width: auto;
    padding: 0.85rem 1rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 1.25rem;
    background: rgba(15, 17, 23, 0.98);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
    justify-content: stretch;
    align-items: stretch;
  }

  .shell__menu-panel--open {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .shell__nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
    padding: 0;
    justify-self: stretch;
  }

  .shell__nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 3.5rem;
    padding: 0.95rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .shell__nav-link:last-child {
    border-bottom: 0;
  }

  .shell__nav-link::after {
    display: none;
  }

  .shell__cta {
    display: none;
  }

  .shell__whatsapp {
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    min-height: 3.2rem;
    padding-inline: 0.95rem;
  }

  .shell__whatsapp span {
    display: none;
  }

  .shell__footer-grid {
    padding-top: 2.25rem;
  }

  .shell__footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .shell__main {
    padding-bottom: 1rem;
  }

  .shell__footer {
    margin-top: 1rem;
  }

  .hero {
    min-height: auto;
    padding-top: 1.5rem;
  }

  .hero__content {
    padding-inline: 0.5rem;
  }

  .section-heading {
    padding-inline: 0.5rem;
  }

  .hero__artboard {
    display: none;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card {
    animation: none;
  }

  .work-card {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

@supports (animation-timeline: view()) {
  .metric-card,
  .service-card,
  .work-card,
  .process-step,
  .benefit-card,
  .section-heading {
    animation: scroll-fade-up linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 32%;
  }
}
