:root {
  --electric-blue: #0099ff;
  --deep-blue: #071b4d;
  --night-blue: #030b24;
  --purple: #6c2bff;
  --white: #ffffff;
  --light-gray: #f4f7fb;
  --line: rgba(7, 27, 77, 0.12);
  --text: #0a1633;
  --muted: #5d6882;
  --shadow: 0 18px 50px rgba(3, 11, 36, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

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

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

section {
  scroll-margin-top: 88px;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--white);
  color: var(--deep-blue);
  padding: 10px 14px;
  box-shadow: var(--shadow);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(7, 27, 77, 0.08);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  transition:
    box-shadow 220ms ease,
    background 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 35px rgba(3, 11, 36, 0.09);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 186px;
  height: auto;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #18264a;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-panel a {
  position: relative;
  transition: color 180ms ease;
}

.nav-panel a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--electric-blue), var(--purple));
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-panel a:hover,
.nav-panel a:focus-visible {
  color: var(--electric-blue);
}

.nav-panel a:hover::after,
.nav-panel a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--electric-blue), var(--purple));
  color: var(--white);
  padding: 0 18px;
  box-shadow: 0 14px 28px rgba(0, 153, 255, 0.22);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: var(--white);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(7, 27, 77, 0.12);
  border-radius: 8px;
  background: var(--white);
}

.menu-toggle span {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--deep-blue);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: rotate(45deg);
}

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

.menu-toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(3, 11, 36, 0.98) 0%, rgba(7, 27, 77, 0.95) 48%, rgba(3, 11, 36, 1) 100%),
    linear-gradient(90deg, rgba(0, 153, 255, 0.26), rgba(108, 43, 255, 0.22));
  isolation: isolate;
}

.hero-grid,
.hero-lines,
.hero-mark {
  position: absolute;
  pointer-events: none;
}

.hero-grid {
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.35));
}

.hero-lines {
  inset: 0;
  z-index: -2;
  background:
    repeating-linear-gradient(116deg, transparent 0 62px, rgba(0, 153, 255, 0.12) 63px 64px, transparent 65px 140px),
    repeating-linear-gradient(24deg, transparent 0 90px, rgba(108, 43, 255, 0.12) 91px 92px, transparent 93px 180px);
  opacity: 0.72;
}

.hero-mark {
  right: max(40px, calc((100vw - 1160px) / 2));
  bottom: 54px;
  z-index: -1;
  width: min(430px, 38vw);
  opacity: 0.2;
  filter: drop-shadow(0 0 42px rgba(0, 153, 255, 0.45));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 810px;
  padding: 118px 0 104px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--electric-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #b8e5ff;
  padding: 0 14px;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: 4rem;
  line-height: 1.03;
  font-weight: 900;
}

h2 {
  margin-bottom: 14px;
  color: var(--deep-blue);
  font-size: 2.45rem;
  line-height: 1.12;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  color: var(--deep-blue);
  font-size: 1.12rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 34px;
  color: #d9e8ff;
  font-size: 1.18rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--electric-blue), var(--purple));
  color: var(--white);
  box-shadow: 0 18px 34px rgba(0, 153, 255, 0.3);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn-whatsapp {
  background: #0fae62;
  color: var(--white);
  box-shadow: 0 18px 34px rgba(15, 174, 98, 0.18);
}

.btn-email {
  border: 1px solid rgba(7, 27, 77, 0.13);
  background: var(--white);
  color: var(--deep-blue);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.hero-proof span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #eaf5ff;
  padding: 0 14px;
  font-size: 0.92rem;
  font-weight: 750;
}

.section {
  padding: 98px 0;
}

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

.section-heading p:not(.section-kicker),
.about-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.03rem;
}

.service-grid,
.project-grid,
.process-grid {
  display: grid;
  gap: 18px;
}

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

.service-card,
.project-card,
.process-step,
.contact-form {
  border: 1px solid rgba(7, 27, 77, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(3, 11, 36, 0.08);
}

.service-card {
  min-height: 242px;
  padding: 26px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 153, 255, 0.36);
  box-shadow: 0 20px 45px rgba(3, 11, 36, 0.12);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 153, 255, 0.14), rgba(108, 43, 255, 0.14)),
    var(--white);
  color: var(--electric-blue);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.service-card p,
.project-card p,
.process-step p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.project-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-card {
  overflow: hidden;
}

.project-visual {
  position: relative;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  font-size: 1.55rem;
  font-weight: 900;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(135deg, var(--deep-blue), var(--electric-blue));
  background-size: 34px 34px, 34px 34px, auto;
}

.project-visual span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-width: 62px;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(3, 11, 36, 0.42);
  padding: 0 12px;
}

.project-visual-purple {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(135deg, var(--purple), var(--night-blue));
  background-size: 34px 34px, 34px 34px, auto;
}

.project-visual-dark {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, var(--night-blue), #0d2d6b);
  background-size: 34px 34px, 34px 34px, auto;
}

.project-visual-light {
  color: var(--deep-blue);
  background:
    linear-gradient(90deg, rgba(7, 27, 77, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(7, 27, 77, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #eef7ff, #d9e7ff);
  background-size: 34px 34px, 34px 34px, auto;
}

.project-visual-light span {
  border-color: rgba(7, 27, 77, 0.12);
  background: rgba(255, 255, 255, 0.75);
}

.project-content {
  min-height: 236px;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.project-content p {
  flex: 1;
}

.project-preview {
  position: absolute;
  inset: 0;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 8px;
  background: rgba(3, 11, 36, 0.28);
}

.project-visual.has-screenshots .project-preview {
  display: grid;
}

.project-visual.has-screenshots > span {
  display: none;
}

.project-preview img {
  width: 100%;
  height: 100%;
  min-height: 116px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(3, 11, 36, 0.28);
}

.project-tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(0, 153, 255, 0.11);
  color: var(--deep-blue);
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 850;
}

.project-gallery-button {
  width: fit-content;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  border: 1px solid rgba(0, 153, 255, 0.24);
  border-radius: 999px;
  background: rgba(0, 153, 255, 0.1);
  color: var(--deep-blue);
  padding: 0 14px;
  font-size: 0.88rem;
  font-weight: 850;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.project-gallery-button:hover,
.project-gallery-button:focus-visible {
  border-color: rgba(0, 153, 255, 0.5);
  background: rgba(0, 153, 255, 0.16);
  transform: translateY(-1px);
}

.project-gallery-button.is-empty {
  border-color: rgba(7, 27, 77, 0.1);
  background: rgba(7, 27, 77, 0.04);
  color: #6a748b;
}

.project-gallery-button:disabled {
  cursor: not-allowed;
  transform: none;
}

.project-gallery-button:disabled:hover {
  border-color: rgba(7, 27, 77, 0.1);
  background: rgba(7, 27, 77, 0.04);
  transform: none;
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 11, 36, 0.78);
  backdrop-filter: blur(12px);
}

.gallery-dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 90px rgba(3, 11, 36, 0.38);
}

.gallery-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(7, 27, 77, 0.12);
  border-radius: 8px;
  background: var(--white);
  color: var(--deep-blue);
  font-size: 1.75rem;
  line-height: 1;
}

.gallery-header {
  padding: 34px 86px 22px 34px;
}

.gallery-header h2 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.gallery-header p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.gallery-viewer {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 14px;
  align-items: center;
  padding: 0 34px 24px;
}

.gallery-viewer figure {
  margin: 0;
}

.gallery-viewer img {
  width: 100%;
  max-height: 470px;
  border: 1px solid rgba(7, 27, 77, 0.1);
  border-radius: 8px;
  background: #eef3fb;
  object-fit: contain;
}

.gallery-viewer figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.gallery-arrow {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(7, 27, 77, 0.12);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--deep-blue);
  font-size: 2rem;
  line-height: 1;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible,
.gallery-close:hover,
.gallery-close:focus-visible {
  border-color: rgba(0, 153, 255, 0.34);
  background: rgba(0, 153, 255, 0.08);
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  padding: 0 34px 34px;
}

.gallery-thumb {
  width: 96px;
  height: 64px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #eef3fb;
  padding: 0;
}

.gallery-thumb.is-active {
  border-color: var(--electric-blue);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-empty {
  display: none;
  margin: 0;
  padding: 0 34px 34px;
  color: var(--muted);
  font-weight: 750;
}

.gallery-modal.is-empty .gallery-viewer,
.gallery-modal.is-empty .gallery-thumbs {
  display: none;
}

.gallery-modal.is-empty .gallery-empty {
  display: block;
}

.about-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(3, 11, 36, 0.98), rgba(7, 27, 77, 0.96)),
    var(--night-blue);
}

.about-section::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 153, 255, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(108, 43, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
}

.about-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 56px;
  align-items: center;
}

.about-copy h2,
.about-highlights strong {
  color: var(--white);
}

.about-copy p {
  max-width: 720px;
  color: #d7e5ff;
}

.about-highlights {
  display: grid;
  gap: 14px;
}

.about-highlights div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  padding: 18px;
}

.about-highlights strong {
  color: #9ad7ff;
  font-size: 1.16rem;
}

.about-highlights span {
  color: #eff6ff;
}

.process-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.process-step {
  min-height: 214px;
  padding: 24px;
}

.process-step span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--electric-blue);
  font-size: 0.86rem;
  font-weight: 900;
}

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

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 54px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 110px;
}

.contact-copy h2 {
  max-width: 480px;
}

.contact-copy p {
  max-width: 500px;
}

.contact-actions {
  margin-top: 28px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row-wide,
.form-submit,
.form-status {
  grid-column: 1 / -1;
}

label {
  color: #243154;
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(7, 27, 77, 0.14);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--text);
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 132px;
  resize: vertical;
  padding: 12px 14px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--electric-blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 153, 255, 0.12);
}

.form-submit {
  width: fit-content;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--deep-blue);
  font-size: 0.95rem;
  font-weight: 750;
}

.form-consent {
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}

.form-consent input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 3px 0 0;
  accent-color: var(--electric-blue);
}

.form-consent label {
  color: var(--muted);
  line-height: 1.5;
}

.form-consent a,
.legal-document a {
  color: var(--electric-blue);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.privacy-brief {
  border: 1px solid rgba(0, 153, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 153, 255, 0.06);
  padding: 16px;
}

.privacy-brief p {
  margin: 0;
  color: #4c5874;
  font-size: 0.86rem;
}

.privacy-brief strong {
  color: var(--deep-blue);
}

.site-footer {
  background: var(--night-blue);
  color: #dbe9ff;
  padding: 46px 0;
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(180px, 0.7fr) minmax(220px, 0.8fr);
  gap: 26px;
  align-items: start;
}

.footer-main {
  display: grid;
  gap: 16px;
}

.footer-brand img {
  width: 168px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 153, 255, 0.22));
}

.footer-main p {
  margin: 0;
  color: #eaf4ff;
  font-weight: 750;
}

.footer-links,
.footer-contact,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #adc7ee;
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-links,
.footer-contact {
  align-content: start;
}

.footer-contact {
  justify-content: flex-end;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-legal a:hover,
.footer-legal button:hover,
.footer-links a:focus-visible,
.footer-contact a:focus-visible,
.footer-legal a:focus-visible,
.footer-legal button:focus-visible {
  color: var(--electric-blue);
}

.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
}

.footer-legal button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font-weight: 700;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(3, 11, 36, 0.98), rgba(7, 27, 77, 0.94)),
    var(--night-blue);
}

.legal-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 153, 255, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(108, 43, 255, 0.1) 1px, transparent 1px);
  background-size: 62px 62px;
  content: "";
}

.legal-hero-content {
  position: relative;
  max-width: 820px;
  padding: 100px 0 82px;
}

.legal-hero h1 {
  margin-bottom: 18px;
  font-size: 3.35rem;
}

.legal-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: #d9e8ff;
  font-size: 1.08rem;
}

.legal-section {
  background: var(--light-gray);
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(7, 27, 77, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 16px;
  box-shadow: 0 14px 34px rgba(3, 11, 36, 0.07);
}

.legal-sidebar a {
  border-radius: 8px;
  color: #34405f;
  padding: 8px 10px;
  font-size: 0.9rem;
  font-weight: 800;
}

.legal-sidebar a:hover,
.legal-sidebar a:focus-visible {
  background: rgba(0, 153, 255, 0.09);
  color: var(--deep-blue);
}

.legal-document {
  border: 1px solid rgba(7, 27, 77, 0.1);
  border-radius: 8px;
  background: var(--white);
  padding: 34px;
  box-shadow: 0 16px 42px rgba(3, 11, 36, 0.08);
}

.legal-document section {
  padding-top: 4px;
  scroll-margin-top: 104px;
}

.legal-document section + section {
  margin-top: 34px;
  border-top: 1px solid rgba(7, 27, 77, 0.08);
  padding-top: 30px;
}

.legal-document h2 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.legal-document p,
.legal-document li {
  color: #4f5b78;
}

.legal-document ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.legal-note {
  border-left: 4px solid var(--electric-blue);
  border-radius: 8px;
  background: rgba(0, 153, 255, 0.08);
  color: var(--deep-blue) !important;
  padding: 14px 16px;
  font-weight: 800;
}

.legal-cookie-button {
  width: fit-content;
  margin-top: 8px;
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 120;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(3, 11, 36, 0.98), rgba(7, 27, 77, 0.96)),
    var(--night-blue);
  color: var(--white);
  padding: 20px;
  box-shadow: 0 24px 70px rgba(3, 11, 36, 0.34);
}

.cookie-banner strong {
  display: block;
  margin-bottom: 6px;
}

.cookie-banner p {
  margin: 0;
  color: #dceaff;
}

.cookie-banner a,
.cookie-policy-link {
  display: inline-flex;
  margin-top: 10px;
  color: #9ad7ff;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner-actions,
.cookie-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 850;
}

.cookie-btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--electric-blue), var(--purple));
  color: var(--white);
}

.cookie-btn-secondary {
  border: 1px solid rgba(7, 27, 77, 0.14);
  background: var(--white);
  color: var(--deep-blue);
}

.cookie-modal[hidden] {
  display: none;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 24px;
}

.cookie-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 11, 36, 0.78);
  backdrop-filter: blur(12px);
}

.cookie-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--white);
  padding: 30px;
  box-shadow: 0 28px 90px rgba(3, 11, 36, 0.38);
}

.cookie-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(7, 27, 77, 0.12);
  border-radius: 8px;
  background: var(--white);
  color: var(--deep-blue);
  font-size: 1.75rem;
  line-height: 1;
}

.cookie-dialog-header {
  padding-right: 58px;
}

.cookie-dialog-header h2 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.cookie-dialog-header p:not(.section-kicker) {
  color: var(--muted);
}

.cookie-options {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(7, 27, 77, 0.1);
  border-radius: 8px;
  background: #fbfdff;
  padding: 16px;
}

.cookie-option strong {
  display: block;
  color: var(--deep-blue);
}

.cookie-option small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-option input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  accent-color: var(--electric-blue);
}

:focus-visible {
  outline: 3px solid rgba(0, 153, 255, 0.55);
  outline-offset: 3px;
}

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

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

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

@media (max-width: 1080px) {
  h1 {
    font-size: 3.3rem;
  }

  h2 {
    font-size: 2.12rem;
  }

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

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

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

  .footer-contact {
    justify-content: flex-start;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body.menu-open .site-header {
    background: var(--white);
  }

  .nav {
    min-height: 76px;
  }

  .brand img {
    width: 158px;
  }

  .menu-toggle {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
  }

  .nav-panel {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    display: grid;
    align-content: start;
    gap: 0;
    height: calc(100vh - 76px);
    padding: 22px 20px 36px;
    border-top: 1px solid rgba(7, 27, 77, 0.08);
    background: rgba(255, 255, 255, 0.98);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

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

  .nav-panel a {
    min-height: 52px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(7, 27, 77, 0.08);
  }

  .nav-panel a::after {
    display: none;
  }

  .nav-cta {
    width: 100%;
    margin-top: 16px;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding: 86px 0 82px;
  }

  .hero-mark {
    right: -24px;
    bottom: 38px;
    width: 310px;
    opacity: 0.12;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 76px 0 68px;
  }

  h1 {
    font-size: 2.36rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 1.82rem;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

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

  .hero-proof span {
    width: 100%;
    justify-content: center;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .service-grid,
  .project-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .process-step {
    min-height: auto;
  }

  .project-visual {
    min-height: 118px;
  }

  .project-content {
    min-height: auto;
  }

  .project-gallery-button {
    width: 100%;
  }

  .about-highlights div {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .form-consent {
    grid-template-columns: 20px 1fr;
  }

  .form-submit {
    width: 100%;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-legal {
    gap: 12px 16px;
  }

  .legal-hero-content {
    padding: 72px 0 58px;
  }

  .legal-hero h1 {
    font-size: 2.28rem;
  }

  .legal-document {
    padding: 22px;
  }

  .legal-sidebar {
    grid-template-columns: 1fr;
  }

  .legal-cookie-button {
    width: 100%;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
    padding: 18px;
  }

  .cookie-banner-actions,
  .cookie-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-modal {
    padding: 12px;
  }

  .cookie-dialog {
    max-height: calc(100vh - 24px);
    padding: 22px;
  }

  .cookie-dialog-header {
    padding-right: 52px;
  }

  .cookie-dialog-header h2 {
    font-size: 1.55rem;
  }

  .cookie-option {
    grid-template-columns: 1fr;
  }

  .gallery-modal {
    padding: 12px;
  }

  .gallery-dialog {
    max-height: calc(100vh - 24px);
  }

  .gallery-header {
    padding: 24px 72px 18px 20px;
  }

  .gallery-header h2 {
    font-size: 1.55rem;
  }

  .gallery-viewer {
    grid-template-columns: 1fr;
    padding: 0 20px 20px;
  }

  .gallery-arrow {
    width: 100%;
  }

  .gallery-viewer [data-gallery-prev] {
    order: 2;
  }

  .gallery-viewer figure {
    order: 1;
  }

  .gallery-viewer [data-gallery-next] {
    order: 3;
  }

  .gallery-thumbs {
    padding: 0 20px 24px;
    overflow-x: auto;
  }

  .gallery-empty {
    padding: 0 20px 24px;
  }
}

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

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