:root {
  --bg: #fbfcfd;
  --surface: #ffffff;
  --surface-muted: #eef4f6;
  --ink: #102033;
  --muted: #657286;
  --line: #dce5ea;
  --primary: #0d8abc;
  --primary-dark: #08627f;
  --accent: #2fbf71;
  --accent-warm: #f28c52;
  --shadow: 0 18px 45px rgba(16, 32, 51, 0.14);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: 0;
}

img,
iframe,
svg {
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: #ffffff;
  background: var(--ink);
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 252, 253, 0.94);
  box-shadow: 0 1px 0 rgba(16, 32, 51, 0.08);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #ffffff;
}

.site-header.is-scrolled .brand {
  color: var(--ink);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(13, 138, 188, 0.28);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-header.is-scrolled .nav-menu {
  color: var(--ink);
}

.nav-menu a {
  transition: color 180ms ease;
}

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

.nav-cta {
  padding: 10px 16px;
  color: #ffffff;
  background: var(--primary);
  border-radius: var(--radius);
}

.site-header.is-scrolled .nav-menu .nav-cta {
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.is-scrolled .nav-toggle {
  background: #e9f2f5;
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--ink);
}

.section {
  padding: 88px 0;
}

.section-compact {
  padding: 28px 0;
}

.section-muted {
  background: var(--surface-muted);
}

.hero {
  position: relative;
  min-height: 78svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #0d1b2a url("assets/hero-workspace.png") center / cover no-repeat;
  padding: 108px 0 58px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 18, 30, 0.92) 0%, rgba(8, 18, 30, 0.74) 43%, rgba(8, 18, 30, 0.2) 100%),
    linear-gradient(0deg, rgba(8, 18, 30, 0.28), rgba(8, 18, 30, 0.28));
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow,
.cta-band .eyebrow {
  color: #8ce8ff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5.8vw, 4.65rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 610px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.trust-row {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-primary {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 14px 32px rgba(13, 138, 188, 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.btn-light {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.metrics {
  background: #ffffff;
  box-shadow: 0 -1px 0 rgba(16, 32, 51, 0.06), 0 1px 0 rgba(16, 32, 51, 0.06);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric {
  padding: 20px 0;
}

.metric strong {
  display: block;
  color: var(--primary-dark);
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 64px;
  align-items: start;
}

.section-heading p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading.narrow {
  max-width: 760px;
  margin-bottom: 42px;
}

.service-list,
.steps,
.portfolio-grid {
  display: grid;
  gap: 18px;
}

.service-list {
  grid-template-columns: repeat(2, 1fr);
}

.service-card,
.project-card,
.step,
.faq-item,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.service-card,
.step {
  padding: 26px;
}

.service-card .icon {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.service-card:nth-child(2) .icon,
.step:nth-child(2) span {
  color: var(--accent);
}

.service-card:nth-child(4) .icon,
.step:nth-child(3) span {
  color: var(--accent-warm);
}

.service-card p,
.project-content p,
.step p,
.faq-item p,
.form-note {
  color: var(--muted);
}

.portfolio-grid {
  grid-template-columns: repeat(2, 1fr);
}

.project-card {
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(16, 32, 51, 0.08);
}

.project-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d6e2e7;
}

.project-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(16, 32, 51, 0.08);
}

.project-preview iframe {
  width: 1280px;
  height: 800px;
  border: 0;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
}

.project-content {
  padding: 24px;
}

.project-type {
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--primary-dark);
  font-weight: 900;
}

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

.steps {
  grid-template-columns: repeat(3, 1fr);
}

.step span {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--primary-dark);
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
}

.cta-band {
  color: #ffffff;
  background: #0d1b2a;
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.cta-grid h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0 20px;
}

.faq-item summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-weight: 900;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.4rem;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin-bottom: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.72fr);
  gap: 64px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbd9df;
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
  transition: border 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 138, 188, 0.12);
}

.form-note {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.74);
  background: #07111f;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-grid p {
  margin-bottom: 0;
}

.footer-grid a {
  color: #ffffff;
  font-weight: 800;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 16px;
  color: #ffffff;
  background: #1fbd60;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(31, 189, 96, 0.36);
  font-weight: 900;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .section {
    padding: 68px 0;
  }

  .hero {
    min-height: 76svh;
    background-position: 58% center;
  }

  .split,
  .faq-layout,
  .contact-grid,
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .metrics-grid,
  .service-list,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: 68px;
    left: 12px;
    right: 12px;
    display: grid;
    gap: 4px;
    padding: 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .nav-menu a {
    padding: 12px;
  }

  .nav-menu .nav-cta {
    text-align: center;
  }

  .hero {
    min-height: 76svh;
    padding: 94px 0 42px;
    background-position: 64% center;
  }

  .hero-overlay {
    background: rgba(8, 18, 30, 0.76);
  }

  h1 {
    font-size: clamp(2.08rem, 10.8vw, 3.25rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .trust-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics-grid,
  .service-list,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .project-preview iframe {
    transform: scale(0.35);
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    padding: 12px;
  }

  .whatsapp-float span {
    display: none;
  }
}

@media (max-width: 430px) {
  .project-preview iframe {
    transform: scale(0.29);
  }

  .service-card,
  .step,
  .project-content,
  .contact-form {
    padding: 22px;
  }
}
