:root {
  --text: #111827;
  --muted: #475467;
  --paper: #ffffff;
  --soft: #f4f8ff;
  --soft-2: #eef5ff;
  --line: #dce7f5;
  --accent: #1078ff;
  --accent-2: #12b7ff;
  --accent-dark: #061a44;
  --shadow: 0 24px 70px rgba(16, 120, 255, 0.14);
  --max: 1120px;
  --pad: 28px;
  --radius: 8px;
  --body-bg:
    radial-gradient(circle at 84% 10%, rgba(18, 183, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 45%, #f7fbff 100%);
  --header-bg: rgba(255, 255, 255, 0.9);
  --card-bg: rgba(255, 255, 255, 0.92);
  --field-bg: #ffffff;
  --footer-text: #4b5d75;
}

[data-theme="dark"] {
  --text: #eef5ff;
  --muted: #a8b6ca;
  --paper: #0b1220;
  --soft: #111c2d;
  --soft-2: #17243a;
  --line: rgba(123, 154, 198, 0.26);
  --accent: #4da3ff;
  --accent-2: #16c7ff;
  --accent-dark: #f3f8ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --body-bg:
    radial-gradient(circle at 78% 4%, rgba(22, 199, 255, 0.18), transparent 30%),
    radial-gradient(circle at 0% 38%, rgba(77, 163, 255, 0.13), transparent 34%),
    linear-gradient(180deg, #08111f 0%, #0b1422 48%, #0d1726 100%);
  --header-bg: rgba(10, 19, 33, 0.9);
  --card-bg: rgba(13, 24, 40, 0.9);
  --field-bg: #0f1b2e;
  --footer-text: #a8b6ca;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--body-bg);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  transition:
    background 220ms ease,
    color 220ms ease;
}

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

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

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

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.lucide {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  stroke-width: 1.85;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 14px auto 0;
  padding: 12px 14px 12px 18px;
  background: var(--header-bg);
  border: 1px solid rgba(220, 231, 245, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
}

.brand img {
  width: 174px;
  height: auto;
  display: block;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 16px;
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.desktop-nav a svg {
  color: var(--accent);
  font-size: 16px;
}

.desktop-nav a:hover {
  color: var(--accent-dark);
  background: var(--soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 14px;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  color: #7d8aa0;
  background: linear-gradient(135deg, #ffffff, #eef7ff);
  border: 1px solid rgba(16, 120, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(16, 120, 255, 0.12);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.theme-switch svg {
  width: 18px;
  height: 18px;
}

.theme-switch svg:last-of-type {
  color: #1078ff;
}

.theme-switch-track {
  position: relative;
  display: inline-flex;
  width: 54px;
  height: 28px;
  padding: 3px;
  background: #dfeeff;
  border: 1px solid rgba(16, 120, 255, 0.16);
  border-radius: 999px;
  box-shadow: inset 0 2px 8px rgba(16, 120, 255, 0.12);
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.theme-switch-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #1078ff, #12b7ff);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(16, 120, 255, 0.26);
  transform: translateX(24px);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.theme-switch.is-dark .theme-switch-thumb {
  background: #080d17;
  border-color: rgba(238, 245, 255, 0.08);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.34);
  transform: translateX(0);
}

.theme-switch.is-dark {
  color: #7d8aa0;
  background: #0d1422;
  border-color: rgba(123, 154, 198, 0.22);
  box-shadow: 0 10px 24px rgba(8, 17, 31, 0.18);
}

.theme-switch.is-dark .theme-switch-track {
  background: #1a2231;
  border-color: rgba(238, 245, 255, 0.06);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.28);
}

.theme-switch.is-dark svg:first-of-type {
  color: #d4dbea;
}

.theme-switch.is-dark svg:last-of-type {
  color: #5f6f86;
}

.theme-switch:not(.is-dark) svg:first-of-type {
  color: #7d8aa0;
}

.theme-switch:not(.is-dark) svg:last-of-type {
  color: #1078ff;
}

.language-switcher {
  position: relative;
}

.lang-button,
.lang-menu button,
.menu-toggle {
  border: 1px solid var(--line);
  background: var(--field-bg);
}

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  color: var(--accent-dark);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
}

.flag {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 16px;
  overflow: hidden;
  border: 1px solid rgba(6, 26, 68, 0.16);
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(17, 24, 39, 0.08);
  line-height: 1;
}

.flag-fr {
  background: linear-gradient(90deg, #1f4fa3 0 33.33%, #fff 33.33% 66.66%, #e43d30 66.66% 100%);
}

.flag-en {
  background: repeating-linear-gradient(to bottom, #b22234 0 2px, #fff 2px 4px);
}

.flag-en::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 43%;
  height: 55%;
  background: #3c3b6e;
}

.flag-es {
  background: linear-gradient(#c60b1e 0 25%, #ffc400 25% 75%, #c60b1e 75% 100%);
}

.flag-pt {
  background:
    radial-gradient(circle at 50% 50%, #123b8d 0 17%, transparent 18%),
    linear-gradient(45deg, transparent 26%, #ffd84a 27% 50%, transparent 51%),
    linear-gradient(135deg, transparent 26%, #ffd84a 27% 50%, transparent 51%),
    #169b62;
}

.lang-button svg {
  font-size: 16px;
  transition: transform 180ms ease;
}

.language-switcher.is-open .lang-button svg {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  display: grid;
  gap: 6px;
  padding: 8px;
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

.lang-menu button {
  display: grid;
  grid-template-columns: 24px 1fr 18px;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  color: var(--text);
  text-align: left;
  border-radius: 7px;
}

.lang-menu button:hover,
.lang-menu button.is-active {
  background: var(--soft);
}

.lang-menu button svg {
  color: var(--accent);
  opacity: 0;
}

.lang-menu button.is-active svg {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  max-width: var(--max);
  margin: 8px auto 0;
  padding: 10px;
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.08);
}

.mobile-nav.is-open {
  display: grid;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  color: var(--accent-dark);
  border-radius: 7px;
  font-weight: 800;
}

.mobile-nav a svg {
  color: var(--accent);
  font-size: 18px;
}

.mobile-nav a:hover {
  background: var(--soft);
}

.hero,
.section,
.contact-section,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 78px var(--pad);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  gap: 62px;
  align-items: start;
  min-height: 650px;
}

.hero-copy {
  padding-top: 34px;
}

.hero-image.reveal.is-visible {
  transform: translateY(34px);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.section-kicker svg {
  font-size: 17px;
}

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

h1 {
  max-width: 620px;
  margin-bottom: 20px;
  color: var(--accent-dark);
  font-size: 60px;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 span {
  color: var(--accent);
}

h2 {
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  color: var(--accent-dark);
  font-size: 20px;
}

.hero-copy > p:not(.eyebrow),
.section-title p,
.included-copy p,
.contact-copy p,
.simple-card p,
.steps p {
  color: var(--muted);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 16px 32px rgba(16, 120, 255, 0.24);
}

.button.secondary {
  color: var(--accent-dark);
  background: var(--field-bg);
}

.button.secondary:hover {
  border-color: rgba(16, 120, 255, 0.35);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.08);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  color: var(--accent-dark);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.trust-row svg {
  color: var(--accent);
}

.clarity-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 650px;
  margin-top: 18px;
}

.clarity-strip div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 9px;
  align-items: start;
  padding: 12px;
  color: var(--accent-dark);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.05);
}

.clarity-strip svg {
  grid-row: span 2;
  margin-top: 3px;
  color: var(--accent);
  font-size: 21px;
}

.clarity-strip strong {
  line-height: 1.2;
}

.clarity-strip span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.hero-image {
  position: relative;
  margin: 0;
}

.image-glow {
  position: absolute;
  inset: 22px -12px -12px 12px;
  z-index: -1;
  background: linear-gradient(135deg, rgba(16, 120, 255, 0.22), rgba(18, 183, 255, 0.14));
  border-radius: var(--radius);
  filter: blur(18px);
}

.hero-image img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(220, 231, 245, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-image figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  max-width: calc(100% - 36px);
  padding: 10px 12px;
  color: var(--accent-dark);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(12px);
}

.section {
  border-top: 1px solid var(--line);
}

.section-title {
  max-width: 700px;
  margin-bottom: 28px;
}

.services-section .section-title {
  margin-left: 42px;
}

.steps-section .section-title {
  max-width: 560px;
  margin-left: auto;
  margin-right: 76px;
}

.work-section .section-title {
  max-width: 610px;
  margin-left: 78px;
}

.simple-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.simple-card,
.steps article {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.05);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.simple-card::before,
.steps article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 200ms ease;
}

.simple-card:hover,
.steps article:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 120, 255, 0.28);
  box-shadow: var(--shadow);
}

.simple-card:nth-child(2).reveal.is-visible {
  transform: translateY(28px);
}

.simple-card:nth-child(3).reveal.is-visible {
  transform: translateY(-10px);
}

.steps article:nth-child(even).reveal.is-visible {
  transform: translateY(24px);
}

.simple-card:hover::before,
.steps article:hover::before {
  opacity: 1;
}

.simple-card > svg {
  display: grid;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 32px;
}

.simple-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 800;
}

.icon-bullets {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.icon-bullets li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.icon-bullets svg {
  width: 26px;
  height: 26px;
  padding: 5px;
  color: var(--accent);
  background: var(--soft);
  border: 1px solid rgba(16, 120, 255, 0.14);
  border-radius: 50%;
}

.included-section,
.contact-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 58px;
  align-items: start;
}

.included-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.included-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.included-list svg {
  color: var(--accent);
  font-size: 22px;
}

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

.steps span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(16, 120, 255, 0.2);
}

.work-section {
  background:
    radial-gradient(circle at 0% 15%, rgba(16, 120, 255, 0.1), transparent 32%),
    transparent;
}

.coming-soon {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(16, 120, 255, 0.08), rgba(18, 183, 255, 0.08)),
    #fff;
  border: 1px dashed rgba(16, 120, 255, 0.38);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.06);
}

.coming-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(16, 120, 255, 0.2);
}

.coming-icon svg {
  font-size: 26px;
}

.coming-soon h3 {
  margin-bottom: 6px;
}

.coming-soon p {
  margin-bottom: 0;
  color: var(--muted);
}

.portfolio-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 0;
  overflow: hidden;
  color: #eef5ff;
  background:
    linear-gradient(180deg, rgba(13, 22, 35, 0.96), rgba(10, 18, 31, 0.98)),
    #101926;
  border: 1px solid rgba(77, 163, 255, 0.3);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(5, 14, 28, 0.24);
}

.portfolio-browser {
  min-height: 330px;
  background:
    linear-gradient(135deg, rgba(77, 163, 255, 0.2), rgba(22, 199, 255, 0.06)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 54px),
    #111a28;
}

.browser-top {
  display: grid;
  grid-template-columns: repeat(3, 10px) 1fr;
  gap: 7px;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.browser-top span {
  width: 10px;
  height: 10px;
  background: rgba(238, 245, 255, 0.72);
  border-radius: 50%;
}

.browser-top div {
  justify-self: end;
  width: min(280px, 72%);
  height: 16px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.browser-hero {
  display: grid;
  min-height: 284px;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 32px;
  text-align: center;
}

.browser-hero svg {
  width: 68px;
  height: 68px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  box-shadow: 0 18px 38px rgba(22, 199, 255, 0.24);
}

.browser-hero strong {
  color: #fff;
  font-size: 42px;
  line-height: 1;
}

.portfolio-copy {
  display: grid;
  align-content: center;
  padding: 44px 38px;
}

.portfolio-copy .section-kicker {
  color: #75c7ff;
}

.portfolio-copy h3 {
  color: #fff;
  font-size: 34px;
}

.portfolio-copy p {
  color: #aebbd0;
  font-size: 18px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.portfolio-tags > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  color: #f4f8ff;
  border: 1px solid rgba(238, 245, 255, 0.18);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

.portfolio-tags > span > span {
  display: inline;
  padding: 0;
  color: inherit;
  border: 0;
  border-radius: 0;
  font-size: inherit;
  font-weight: inherit;
}

.portfolio-tags svg {
  color: #75c7ff;
}

.portfolio-copy .button.secondary {
  width: fit-content;
  color: #f4f8ff;
  background: transparent;
  border-color: rgba(238, 245, 255, 0.26);
}

.portfolio-carousel {
  position: relative;
  margin-left: 24px;
  padding: 0 54px;
  z-index: 1;
}

.portfolio-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 0 18px;
}

.portfolio-track::-webkit-scrollbar {
  display: none;
}

.project-card {
  flex: 0 0 min(840px, calc(100% - 88px));
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  scroll-snap-align: start;
  color: #eef5ff;
  background:
    linear-gradient(180deg, rgba(13, 22, 35, 0.96), rgba(10, 18, 31, 0.98)),
    #101926;
  border: 1px solid rgba(77, 163, 255, 0.3);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(5, 14, 28, 0.24);
}

.project-image {
  min-height: 0;
  background:
    linear-gradient(135deg, rgba(77, 163, 255, 0.14), rgba(22, 199, 255, 0.05)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 54px),
    #111a28;
  padding: 12px 12px 0;
}

.project-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
  background:
    linear-gradient(135deg, rgba(7, 18, 33, 0.96), rgba(14, 28, 46, 0.96)),
    #0b1422;
  border: 1px solid rgba(238, 245, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.project-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
}

.project-placeholder svg {
  width: 70px;
  height: 70px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  box-shadow: 0 18px 38px rgba(22, 199, 255, 0.24);
}

.project-placeholder strong {
  color: #fff;
  font-size: 38px;
  line-height: 1.05;
}

.project-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 28px;
  align-items: start;
  padding: 30px 32px 34px;
}

.project-copy .section-kicker {
  color: #75c7ff;
}

.project-copy h3 {
  color: #fff;
  font-size: 32px;
}

.project-copy p {
  color: #aebbd0;
  font-size: 18px;
}

.project-heading p:not(.section-kicker) {
  max-width: 420px;
}

.project-info {
  display: grid;
  gap: 18px;
  align-content: start;
}

.project-meta {
  display: grid;
  gap: 9px;
  margin: 0;
}

.project-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d9e7f7;
  font-size: 15px;
  font-weight: 750;
}

.project-meta > span > span {
  display: inline;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.project-meta svg {
  width: 28px;
  height: 28px;
  padding: 6px;
  color: #75c7ff;
  background: rgba(117, 199, 255, 0.1);
  border: 1px solid rgba(117, 199, 255, 0.22);
  border-radius: 50%;
}

.project-copy .button.secondary {
  width: fit-content;
  color: #f4f8ff;
  background: transparent;
  border-color: rgba(238, 245, 255, 0.26);
}

.project-card.is-coming {
  flex-basis: min(760px, calc(100% - 96px));
}

.portfolio-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 0;
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(16, 120, 255, 0.28);
  transform: translateY(-50%);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.portfolio-arrow:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 18px 42px rgba(16, 120, 255, 0.34);
}

.portfolio-arrow-left {
  left: 0;
}

.portfolio-arrow-right {
  right: 0;
}

.contact-section {
  grid-template-columns: 0.82fr 1.18fr;
  margin-bottom: 42px;
  background:
    radial-gradient(circle at 95% 0%, rgba(18, 183, 255, 0.18), transparent 34%),
    var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(17, 24, 39, 0.06);
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-lines a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-dark);
  font-weight: 700;
}

.contact-lines svg {
  color: var(--accent);
}

.qr-contact-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  max-width: 470px;
  margin-top: 30px;
  padding: 18px;
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.06);
}

.qr-contact-card img {
  width: 112px;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

.qr-contact-card strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-size: 17px;
  line-height: 1.2;
}

.qr-contact-card strong svg,
.qr-contact-card p {
  color: var(--accent);
}

.qr-contact-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.security-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--accent-dark);
  font-weight: 800;
}

.form-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.form-label svg {
  color: var(--accent);
  font-size: 18px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 52px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(16, 120, 255, 0.12);
}

.contact-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 22px,
    calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.sound-widget {
  position: fixed;
  left: 18px;
  right: auto;
  bottom: 18px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: min(270px, calc(100vw - 36px));
  padding: 6px;
  color: #f4f8ff;
  background:
    linear-gradient(135deg, rgba(7, 18, 33, 0.96), rgba(13, 28, 48, 0.96)),
    #071221;
  border: 1px solid rgba(77, 163, 255, 0.36);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(5, 14, 28, 0.2);
  backdrop-filter: blur(14px);
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(16, 120, 255, 0.22);
}

.sound-widget.is-playing .sound-toggle {
  background: linear-gradient(135deg, #071a3d, var(--accent));
}

.sound-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 128px;
  padding-right: 4px;
  color: #bed2e8;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sound-status svg {
  width: 15px;
  height: 15px;
  color: #75c7ff;
}

#chatbase-bubble-button {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
}

#chatbase-bubble-button img {
  width: 38px !important;
  height: 38px !important;
}

#chatbase-message-bubbles {
  transform: scale(0.9) !important;
  transform-origin: right bottom !important;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-top: 26px;
  padding-bottom: 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0 0 4px;
}

.site-footer small {
  color: #7b8796;
}

.site-footer p,
.site-footer small {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer nav a,
.site-footer nav > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer p svg,
.site-footer small svg,
.site-footer nav svg {
  color: var(--accent);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.site-footer nav a,
.site-footer nav > span {
  color: var(--accent);
  font-weight: 800;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero,
  .included-section,
  .contact-section,
  .coming-soon,
  .portfolio-preview,
  .project-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-image.reveal.is-visible {
    transform: translateY(0);
  }

  .services-section .section-title,
  .steps-section .section-title,
  .work-section .section-title {
    margin-left: 0;
    margin-right: 0;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 30px;
  }

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

  .simple-card:nth-child(2).reveal.is-visible,
  .simple-card:nth-child(3).reveal.is-visible,
  .steps article:nth-child(even).reveal.is-visible {
    transform: translateY(0);
  }

  .clarity-strip {
    grid-template-columns: 1fr;
  }

  .portfolio-carousel {
    margin-left: 0;
    padding: 0 46px;
  }

  .project-card,
  .project-card.is-coming {
    flex-basis: min(92vw, calc(100vw - 120px));
  }

  .project-image {
    min-height: 0;
  }

  .project-image img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .project-copy {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 24px;
  }
}

@media (max-width: 620px) {
  :root {
    --pad: 18px;
  }

  .site-header {
    top: 8px;
    margin-top: 8px;
    padding: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 136px;
  }

  .lang-button {
    min-height: 40px;
    padding: 0 10px;
  }

  .lang-button [data-current-label] {
    display: none;
  }

  .theme-switch {
    gap: 6px;
    min-height: 40px;
    padding: 0 8px;
  }

  .theme-switch-track {
    width: 42px;
    height: 24px;
  }

  .theme-switch-thumb {
    width: 16px;
    height: 16px;
    transform: translateX(18px);
  }

  .theme-switch.is-dark .theme-switch-thumb {
    transform: translateX(0);
  }

  .lang-menu {
    right: -52px;
  }

  .hero,
  .section,
  .contact-section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

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

  .hero-image figcaption {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 10px;
  }

  .site-footer {
    display: grid;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .form-row,
  .qr-contact-card {
    grid-template-columns: 1fr;
  }

  .qr-contact-card {
    max-width: none;
  }

  .portfolio-carousel {
    padding: 0 40px;
  }

  .project-card,
  .project-card.is-coming {
    flex-basis: calc(100vw - 112px);
  }

  .portfolio-arrow {
    width: 36px;
    height: 36px;
  }

  .project-placeholder strong {
    font-size: 28px;
  }

  .sound-widget {
    left: 10px;
    right: auto;
    bottom: 10px;
    padding: 5px;
  }

  .sound-toggle {
    min-height: 30px;
    padding: 0 9px;
  }

  .sound-status {
    max-width: 108px;
    padding-right: 2px;
  }
}

.site-footer {
  display: block;
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px var(--pad);
  color: var(--footer-text);
  border-top: 1px solid var(--line);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-weight: 400;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(130px, 0.65fr) minmax(160px, 0.75fr) minmax(230px, 1fr);
  gap: 22px;
  align-items: start;
}

.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 20px;
  font-weight: 650;
  line-height: 1;
}

.footer-mark img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(16, 120, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(16, 120, 255, 0.16);
}

.site-footer p,
.site-footer small,
.site-footer a,
.site-footer .footer-link,
.footer-bottom span {
  color: var(--footer-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.site-footer p,
.site-footer small,
.site-footer a,
.site-footer .footer-link,
.footer-bottom span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer p {
  margin: 0 0 9px;
}

.site-footer .footer-note {
  max-width: 320px;
}

.site-footer h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 600;
}

.site-footer .footer-column {
  display: grid;
  gap: 9px;
  justify-content: start;
  align-content: start;
}

.site-footer .footer-column a,
.site-footer .footer-link {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--footer-text);
  font-weight: 400;
  text-align: left;
  line-height: 1.4;
}

.desktop-nav a[aria-current="page"] {
  color: var(--accent-dark);
  background: var(--soft);
}

.site-footer .footer-column a:hover,
.site-footer .footer-link:hover {
  color: var(--accent);
}

.site-footer svg {
  color: var(--accent);
  font-size: 17px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.footer-bottom small,
.footer-bottom span,
.footer-grid > small {
  margin: 0;
}

.footer-grid > small {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.compact-footer {
  margin-top: 36px;
}

.legal-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  color: var(--accent-dark);
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
  font-weight: 700;
}

.legal-page {
  background: var(--body-bg);
}

.legal-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 82px var(--pad) 52px;
}

.legal-hero h1 {
  max-width: 780px;
  margin-bottom: 18px;
}

.legal-hero > p:not(.section-kicker) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: var(--accent-dark);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
}

.legal-meta svg {
  color: var(--accent);
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 30px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 76px;
}

.legal-toc {
  position: sticky;
  top: 116px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.05);
}

.legal-toc h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 16px;
}

.legal-toc a {
  padding: 7px 9px;
  color: #52637a;
  border-radius: 7px;
  font-size: 14px;
}

.legal-toc a:hover {
  color: var(--accent-dark);
  background: var(--soft);
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-card {
  padding: 26px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.05);
}

.legal-card h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 26px;
}

.legal-card h2 svg,
.legal-card h3 svg {
  color: var(--accent);
}

.legal-card p {
  color: #52637a;
}

.legal-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.legal-list li {
  display: flex;
  gap: 10px;
  color: #475467;
}

.legal-list svg {
  margin-top: 4px;
  color: var(--accent);
}

.legal-table-wrap {
  width: 100%;
  margin-top: 18px;
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  overflow: hidden;
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-table th,
.legal-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.legal-table th {
  color: var(--accent-dark);
  background: var(--soft);
  font-weight: 650;
}

.legal-table td {
  color: #52637a;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.info-grid > div {
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.info-grid svg {
  color: var(--accent);
  font-size: 24px;
}

.info-grid h3 {
  margin-top: 10px;
  font-size: 18px;
}

.info-grid p {
  margin-bottom: 0;
  font-size: 14px;
}

.cookie-consent {
  position: fixed;
  inset: auto 18px 18px;
  z-index: 80;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

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

.cookie-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(16, 120, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(6, 26, 68, 0.18);
  backdrop-filter: blur(16px);
}

.cookie-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(16, 120, 255, 0.22);
}

.cookie-icon svg {
  font-size: 25px;
}

.cookie-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.cookie-card h2 {
  margin-bottom: 5px;
  font-size: 22px;
}

.cookie-card p {
  margin-bottom: 0;
  color: #52637a;
}

.cookie-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cookie-points span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-dark);
  font-size: 13px;
}

.cookie-points svg {
  color: var(--accent);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cookie-actions .button {
  white-space: nowrap;
}

[data-theme="dark"] .site-header,
[data-theme="dark"] .lang-menu,
[data-theme="dark"] .mobile-nav,
[data-theme="dark"] .contact-section,
[data-theme="dark"] .cookie-card {
  background: var(--header-bg);
}

[data-theme="dark"] .hero-image figcaption,
[data-theme="dark"] .included-list li,
[data-theme="dark"] .info-grid > div {
  background: var(--card-bg);
}

[data-theme="dark"] .legal-card p,
[data-theme="dark"] .legal-table td,
[data-theme="dark"] .legal-list li,
[data-theme="dark"] .legal-toc a,
[data-theme="dark"] .cookie-card p {
  color: var(--muted);
}

[data-theme="dark"] .legal-table th {
  background: var(--soft-2);
}

@media (max-width: 980px) {
  .footer-grid,
  .legal-layout,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

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

  .cookie-icon {
    width: 46px;
    height: 46px;
  }

  .cookie-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .legal-home-link {
    display: none;
  }

  .legal-hero {
    padding-top: 52px;
  }

  .legal-card {
    padding: 20px;
  }

  .legal-card h2 {
    font-size: 22px;
  }

  .cookie-consent {
    inset: auto 10px 10px;
  }

  .cookie-card {
    padding: 14px;
  }
}
