:root {
  /* Light mode palette */
  --bg-black-light: #050506;
  --bg-graphite-light: #222429;
  --bg-muted-light: #5c626e;
  --bg-line-light: #dfe3e8;
  --bg-soft-line-light: #edf0f3;
  --bg-surface-light: #ffffff;
  --bg-surface-muted-light: #f4f6f9;
  --bg-blue-light: #0057ff;
  --bg-blue-dark-light: #003fc4;
  --bg-shadow-light: 0 14px 34px rgba(5, 5, 6, 0.075);

  /* Premium Dark mode palette */
  --bg-black-dark: #fbfbfc;
  --bg-graphite-dark: #e2e4e9;
  --bg-muted-dark: #9da4b0;
  --bg-line-dark: #232730;
  --bg-soft-line-dark: #161920;
  --bg-surface-dark: #090b0e;
  --bg-surface-muted-dark: #11141b;
  --bg-blue-dark: #2979ff;
  --bg-blue-dark-dark: #0057ff;
  --bg-shadow-dark: 0 16px 40px rgba(0, 0, 0, 0.65);

  /* Neo-Tech Tokens */
  --cyan: #00c8ff;
  --gradient-blue: linear-gradient(135deg, #0057ff 0%, #00c8ff 100%);
  --gradient-blue-hover: linear-gradient(135deg, #0046cc 0%, #00b4e6 100%);
  --gradient-title-light: linear-gradient(135deg, #050506 20%, #0057ff 80%, #0099e6 100%);
  --gradient-title-dark: linear-gradient(135deg, #ffffff 30%, #a0c4ff 75%, #00c8ff 100%);

  /* Fallback definitions */
  --black: var(--bg-black-light);
  --graphite: var(--bg-graphite-light);
  --muted: var(--bg-muted-light);
  --line: var(--bg-line-light);
  --soft-line: var(--bg-soft-line-light);
  --surface: var(--bg-surface-light);
  --surface-muted: var(--bg-surface-muted-light);
  --blue: var(--bg-blue-light);
  --blue-dark: var(--bg-blue-dark-light);
  --shadow: var(--bg-shadow-light);

  --gradient-title: var(--gradient-title-light);
  --glass-bg: rgba(255, 255, 255, 0.85);
  /* Opaque mobile shell keeps navigation readable across both themes. */
  --mobile-nav-bg: rgba(255, 255, 255, 0.97);
  --glass-border: rgba(0, 87, 255, 0.12);
  --glow-accent: 0 0 25px rgba(0, 200, 255, 0.25);
  --glow-blue: 0 8px 25px rgba(0, 87, 255, 0.35);
  --glow-card: 0 10px 30px -5px rgba(0, 87, 255, 0.1), 0 0 20px 0 rgba(0, 200, 255, 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --radius: var(--radius-md);
  --header-height: 72px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --black: var(--bg-black-dark);
    --graphite: var(--bg-graphite-dark);
    --muted: var(--bg-muted-dark);
    --line: var(--bg-line-dark);
    --soft-line: var(--bg-soft-line-dark);
    --surface: var(--bg-surface-dark);
    --surface-muted: var(--bg-surface-muted-dark);
    --blue: var(--bg-blue-dark);
    --blue-dark: var(--bg-blue-dark-dark);
    --shadow: var(--bg-shadow-dark);

    --gradient-title: var(--gradient-title-dark);
    --glass-bg: rgba(15, 18, 24, 0.75);
    --mobile-nav-bg: rgba(9, 11, 14, 0.97);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glow-card: 0 12px 35px -5px rgba(0, 87, 255, 0.25), 0 0 25px 0 rgba(0, 200, 255, 0.12);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --black: var(--bg-black-light);
  --graphite: var(--bg-graphite-light);
  --muted: var(--bg-muted-light);
  --line: var(--bg-line-light);
  --soft-line: var(--bg-soft-line-light);
  --surface: var(--bg-surface-light);
  --surface-muted: var(--bg-surface-muted-light);
  --blue: var(--bg-blue-light);
  --blue-dark: var(--bg-blue-dark-light);
  --shadow: var(--bg-shadow-light);

  --gradient-title: var(--gradient-title-light);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --mobile-nav-bg: rgba(255, 255, 255, 0.97);
  --glass-border: rgba(0, 87, 255, 0.12);
  --glow-card: 0 10px 30px -5px rgba(0, 87, 255, 0.1), 0 0 20px 0 rgba(0, 200, 255, 0.08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --black: var(--bg-black-dark);
  --graphite: var(--bg-graphite-dark);
  --muted: var(--bg-muted-dark);
  --line: var(--bg-line-dark);
  --soft-line: var(--bg-soft-line-dark);
  --surface: var(--bg-surface-dark);
  --surface-muted: var(--bg-surface-muted-dark);
  --blue: var(--bg-blue-dark);
  --blue-dark: var(--bg-blue-dark-dark);
  --shadow: var(--bg-shadow-dark);

  --gradient-title: var(--gradient-title-dark);
  --glass-bg: rgba(15, 18, 24, 0.75);
  --mobile-nav-bg: rgba(9, 11, 14, 0.97);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glow-card: 0 12px 35px -5px rgba(0, 87, 255, 0.25), 0 0 25px 0 rgba(0, 200, 255, 0.12);
}

@supports (color: light-dark(white, black)) {
  :root {
    --black: light-dark(var(--bg-black-light), var(--bg-black-dark));
    --graphite: light-dark(var(--bg-graphite-light), var(--bg-graphite-dark));
    --muted: light-dark(var(--bg-muted-light), var(--bg-muted-dark));
    --line: light-dark(var(--bg-line-light), var(--bg-line-dark));
    --soft-line: light-dark(var(--bg-soft-line-light), var(--bg-soft-line-dark));
    --surface: light-dark(var(--bg-surface-light), var(--bg-surface-dark));
    --surface-muted: light-dark(var(--bg-surface-muted-light), var(--bg-surface-muted-dark));
    --blue: light-dark(var(--bg-blue-light), var(--bg-blue-dark));
    --blue-dark: light-dark(var(--bg-blue-dark-light), var(--bg-blue-dark-dark));
    --shadow: light-dark(var(--bg-shadow-light), var(--bg-shadow-dark));
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--black);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body,
.highlight-card,
.service-card,
.tech-card,
.development-grid article,
.why-grid article,
.solution-card,
.contact-panel {
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              transform 0.3s ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 9% 18%, rgba(0, 87, 255, 0.035), transparent 18%),
    linear-gradient(120deg, transparent 0 58%, rgba(0, 87, 255, 0.025) 58% 58.15%, transparent 58.15%),
    var(--surface);
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

.container {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  width: min(100% - 24px, 1200px);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 15px rgba(0, 87, 255, 0.05);
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-shell {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  transition: min-height 250ms ease;
}

.brand {
  display: block;
  width: 178px;
}

.brand img {
  width: 100%;
  height: auto;
  aspect-ratio: 1040 / 330;
}

.brand img.logo-light {
  display: block;
}

.brand img.logo-dark {
  display: none;
}

/* System dark theme fallback (active when data-theme is not explicitly light) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img.logo-light {
    display: none;
  }
  :root:not([data-theme="light"]) .brand img.logo-dark {
    display: block;
  }
}

/* Explicit dark theme override */
:root[data-theme="dark"] .brand img.logo-light {
  display: none;
}
:root[data-theme="dark"] .brand img.logo-dark {
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--graphite);
  font-size: 0.8rem;
  font-weight: 700;
}

.site-nav > a:not(.btn) {
  position: relative;
  padding-block: 8px;
}

.site-nav > a:not(.btn)::after {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav > a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-selector {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--soft-line);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.language-selector button,
.language-selector a {
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 180ms ease;
}

.language-selector button:hover,
.language-selector a:hover,
.language-selector button.is-active,
.language-selector a.is-active {
  color: var(--blue);
}

.language-selector button.is-active,
.language-selector a.is-active {
  background: var(--surface);
  color: var(--blue);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  color: var(--graphite);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 200ms ease;
}

.theme-toggle:hover {
  background: var(--soft-line);
  color: var(--blue);
  transform: scale(1.06);
  border-color: rgba(0, 200, 255, 0.35);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
  transition: transform 250ms ease;
}

/* Default show moon icon in light mode */
.theme-toggle .sun-icon {
  display: none;
}
.theme-toggle .moon-icon {
  display: block;
}

/* Show sun icon in dark mode */
@media (prefers-color-scheme: dark) {
  .theme-toggle .sun-icon {
    display: block;
  }
  .theme-toggle .moon-icon {
    display: none;
  }
}

html[data-theme="light"] .theme-toggle .sun-icon {
  display: none;
}
html[data-theme="light"] .theme-toggle .moon-icon {
  display: block;
}

html[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}
html[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--black);
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.btn-primary {
  border: none;
  background: var(--gradient-blue);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 87, 255, 0.3);
}

.btn-primary:hover {
  background: var(--gradient-blue-hover);
  box-shadow: var(--glow-blue);
}

.btn-secondary {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  color: var(--black);
}

.btn-secondary:hover {
  border-color: rgba(0, 200, 255, 0.4);
  color: var(--blue);
  box-shadow: 0 4px 18px rgba(0, 87, 255, 0.12);
}

.btn-tertiary {
  min-height: 46px;
  border-color: transparent;
  background: transparent;
  color: var(--blue);
  padding-inline: 12px;
}

.btn-tertiary:hover {
  border-color: transparent;
  box-shadow: none;
  color: var(--cyan);
}

.btn-small {
  min-height: 38px;
  padding-inline: 18px;
  font-size: 0.82rem;
}

.section-grid {
  position: relative;
  overflow: hidden;
}

.section-grid::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(5, 5, 6, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 5, 6, 0.035) 1px, transparent 1px);
  background-size: 110px 110px;
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000 100%);
}

.hero {
  min-height: 0;
  padding: 60px 0 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 20%;
  width: 500px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 87, 255, 0.12) 0%, rgba(0, 200, 255, 0.05) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(460px, 1.02fr);
  align-items: stretch;
  gap: 24px;
  min-width: 0;
}

.hero-copy {
  align-self: center;
  min-width: 0;
  padding-bottom: 48px;
  overflow: visible;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  margin-bottom: 22px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.03em;
  box-shadow: 0 2px 10px rgba(0, 87, 255, 0.08);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.eyebrow,
.section-kicker {
  position: relative;
  margin: 0 0 18px;
  color: var(--graphite);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::after,
.section-kicker::after {
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 14px;
  background: var(--blue);
  content: "";
}

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

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 5.2vw, 5.55rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

:lang(es) h1 {
  max-width: 760px;
  font-size: clamp(2.85rem, 4.75vw, 5rem);
}

.hero-subhead {
  margin-bottom: 24px;
  color: var(--blue);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-description {
  max-width: 500px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

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

.hero-visual {
  position: relative;
  min-height: 420px;
  min-width: 0;
  max-width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glow-card);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center right;
  filter: saturate(0.9) contrast(1.04);
  border-radius: var(--radius-lg);
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.hero-visual::before {
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0) 60%);
}

.hero-visual::after {
  right: 8%;
  bottom: 12%;
  width: 36%;
  height: 1px;
  background: var(--blue);
  box-shadow: -180px -190px 0 rgba(0, 87, 255, 0.9), 70px -320px 0 rgba(0, 87, 255, 0.7);
}

.blue-trace {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(0, 107, 255, 0.72);
}

.trace-one {
  right: 13%;
  top: 18%;
  width: 128px;
  height: 96px;
  border-left: 0;
  border-bottom: 0;
}

.trace-two {
  right: 38%;
  bottom: 18%;
  width: 190px;
  height: 78px;
  border-right: 0;
}

.trace-three {
  right: 4%;
  bottom: 34%;
  width: 1px;
  height: 210px;
  border-width: 0 1px 0 0;
}

.service-strip {
  padding: 20px 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

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

.highlight-card,
.service-card,
.tech-card,
.development-grid article,
.why-grid article {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms ease, box-shadow 300ms ease;
}

.highlight-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto 1fr;
  gap: 18px;
  padding: 24px 26px;
}

.highlight-card:last-child {
  border-right: 1px solid var(--glass-border);
}

.highlight-card:hover,
.service-card:hover,
.development-grid article:hover,
.why-grid article:hover,
.tech-card:hover {
  border-color: rgba(0, 200, 255, 0.4);
  box-shadow: var(--glow-card);
  transform: translateY(-4px);
}

.line-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 0;
  place-items: center;
  color: var(--blue);
  background: rgba(0, 87, 255, 0.07);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all 250ms ease;
  grid-row: 1 / span 2;
}

.highlight-card:hover .line-icon,
.service-card:hover .line-icon,
.tech-card:hover .line-icon {
  color: var(--cyan);
  background: rgba(0, 200, 255, 0.12);
  border-color: rgba(0, 200, 255, 0.4);
  transform: scale(1.08);
}

.line-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.highlight-card h2,
.service-card h3,
.tech-card h3,
.development-grid h3,
.why-grid h3 {
  margin-bottom: 8px;
  font-size: 0.92rem;
  line-height: 1.25;
}

.highlight-card p,
.why-grid p,
.development-grid p,
.contact-panel p,
.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.highlight-card p {
  grid-column: 2;
}

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

.section-muted {
  background:
    linear-gradient(135deg, rgba(0, 87, 255, 0.025), transparent 34%),
    var(--surface-muted);
}

.about {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.about-architecture {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(28vw, 330px);
  height: 100%;
  opacity: 0.34;
  background: url("assets/images/fzn-labs-architecture-hero.webp") center left / cover no-repeat;
  filter: grayscale(1);
  pointer-events: none;
  transition: opacity 250ms ease, filter 250ms ease;
}

@media (prefers-color-scheme: dark) {
  .about-architecture {
    opacity: 0.12;
    filter: grayscale(1) invert(0.8);
  }
}

:root[data-theme="light"] .about-architecture {
  opacity: 0.34;
  filter: grayscale(1);
}

:root[data-theme="dark"] .about-architecture {
  opacity: 0.12;
  filter: grayscale(1) invert(0.8);
}

.two-column {
  display: grid;
  position: relative;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 76px;
}

.section h2 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-body {
  color: var(--graphite);
  font-size: 1.05rem;
}

.section-body p {
  color: var(--muted);
}

.section-body p + p {
  margin-top: 18px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.value-grid span {
  padding: 15px 16px;
  border-left: 2px solid var(--blue);
  background: var(--surface);
  color: var(--black);
  font-weight: 800;
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading .section-kicker::after {
  margin-inline: auto;
}

.card-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  padding: 26px;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 17px;
}

.service-card li::before {
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  background: var(--blue);
  content: "";
}

.development-section {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.development-section::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(5, 5, 6, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 5, 6, 0.03) 1px, transparent 1px);
  background-size: 110px 110px;
  mask-image: linear-gradient(90deg, #000, transparent 64%);
}

.development-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: center;
}

.development-copy h2 {
  margin-bottom: 20px;
}

.development-copy h3 {
  max-width: 580px;
  margin-bottom: 18px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.18;
}

.development-copy p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

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

.development-grid article {
  min-height: 230px;
  padding: 26px;
}

.development-grid article::before {
  display: block;
  width: 34px;
  height: 2px;
  margin-bottom: 22px;
  background: var(--blue);
  content: "";
}

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

.tech-card {
  padding: 26px;
}

.tech-card-wide {
  grid-column: span 4;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--graphite);
  font-size: 0.88rem;
  font-weight: 700;
}

.why-grid article {
  min-height: 190px;
  padding: 26px;
  background: var(--surface);
  border-color: var(--line);
}

.why-grid article:hover {
  border-color: rgba(0, 107, 255, 0.72);
}

.solution-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.solution-card::before {
  display: block;
  width: 34px;
  height: 2px;
  margin-bottom: 22px;
  background: var(--blue);
  content: "";
}

.solution-card:hover {
  border-color: rgba(0, 107, 255, 0.42);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.solution-card h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.solution-intro {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.solution-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.solution-card li {
  position: relative;
  padding-left: 17px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.solution-card li::before {
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  background: var(--blue);
  content: "";
}

/* --- Products Section --- */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 52px;
  align-items: center;
  margin-top: 42px;
}

.product-info {
  display: flex;
  flex-direction: column;
}

.product-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  border: 1px solid rgba(0, 87, 255, 0.3);
  border-radius: 999px;
  background: rgba(0, 87, 255, 0.08);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.product-info h3 {
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 6px;
  color: var(--black);
}

.product-tagline {
  color: var(--blue);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.product-description {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

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

.product-features li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--graphite);
  line-height: 1.5;
}

.product-features li::before {
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  content: "";
}

.product-visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, transform 180ms ease;
}

.product-visual:hover {
  border-color: rgba(0, 107, 255, 0.42);
  transform: translateY(-2px);
}

.product-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.product-target-entities {
  margin-top: 12px;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.product-target-entities .target-title {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.target-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.target-badges span {
  padding: 6px 12px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--graphite);
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 1040px) {
  .product-showcase {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

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

.contact-panel {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 310px;
  padding: 52px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
    url("assets/images/fzn-labs-architecture-hero.webp") right center / 43% auto no-repeat,
    var(--surface);
  transition: background-color 250ms ease;
}

@media (prefers-color-scheme: dark) {
  .contact-panel {
    background:
      linear-gradient(90deg, rgba(12, 14, 18, 0.92), rgba(12, 14, 18, 0.78)),
      url("assets/images/fzn-labs-architecture-hero.webp") right center / 43% auto no-repeat,
      var(--surface);
  }
}

:root[data-theme="light"] .contact-panel {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
    url("assets/images/fzn-labs-architecture-hero.webp") right center / 43% auto no-repeat,
    var(--surface);
}

:root[data-theme="dark"] .contact-panel {
  background:
    linear-gradient(90deg, rgba(12, 14, 18, 0.92), rgba(12, 14, 18, 0.78)),
    url("assets/images/fzn-labs-architecture-hero.webp") right center / 43% auto no-repeat,
    var(--surface);
}

@supports (color: light-dark(white, black)) {
  .contact-panel {
    background:
      linear-gradient(90deg, light-dark(rgba(255, 255, 255, 0.92), rgba(12, 14, 18, 0.92)), light-dark(rgba(255, 255, 255, 0.78), rgba(12, 14, 18, 0.78))),
      url("assets/images/fzn-labs-architecture-hero.webp") right center / 43% auto no-repeat,
      var(--surface);
  }
}

.contact-panel h2 {
  margin-bottom: 18px;
}

.contact-actions {
  display: grid;
  gap: 28px;
  padding-left: 42px;
  border-left: 1px solid rgba(0, 87, 255, 0.48);
}

.contact-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.contact-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--soft-line);
}

.contact-list span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-list a {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.contact-list a:hover {
  color: var(--blue);
}

.site-footer {
  padding: 28px 0;
  background: #050506;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr auto auto;
  gap: 42px;
  align-items: center;
}

.footer-brand {
  width: 172px;
}

.site-footer p,
.copyright {
  color: rgba(255, 255, 255, 0.62);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-footer nav a:hover {
  color: #fff;
}

.copyright {
  justify-self: end;
  font-size: 0.9rem;
}

@media (max-width: 1040px) {
  .hero-grid,
  .two-column,
  .development-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 460px;
    border-left: 0;
  }

  .hero-visual img {
    min-height: 460px;
  }

  .service-strip-grid,
  .card-grid,
  .development-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .tech-card-wide {
    grid-column: span 2;
  }

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

  .copyright {
    justify-self: start;
  }
}

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
    position: relative;
    z-index: 30;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: grid;
    gap: 0;
    padding: 10px 14px 18px;
    background: var(--mobile-nav-bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-116%);
    transition: transform 220ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 15px 4px;
  }

  .site-nav .btn {
    margin-top: 8px;
  }

  .language-selector {
    justify-content: start;
    padding: 15px 4px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: auto;
    padding: 58px 0 46px;
  }

  h1 {
    font-size: clamp(2.85rem, 13vw, 5rem);
    max-width: 100%;
  }

  :lang(es) h1 {
    font-size: clamp(2.25rem, 10.3vw, 4.3rem);
  }

  .hero-subhead {
    font-size: 0.92rem;
    letter-spacing: 0.12em;
  }

  :lang(es) .hero-subhead {
    font-size: clamp(0.72rem, 3.25vw, 0.84rem);
    line-height: 1.45;
    letter-spacing: 0.05em;
    overflow-wrap: normal;
  }

  .hero-description {
    max-width: 100%;
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .hero-grid {
    gap: 38px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 360px;
  }

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

  .service-strip {
    padding-bottom: 52px;
  }

  .service-strip-grid,
  .card-grid,
  .development-grid,
  .tech-grid,
  .why-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .tech-card-wide {
    grid-column: auto;
  }

  .section {
    padding: 76px 0;
  }

  .two-column,
  .contact-panel {
    gap: 34px;
  }

  .contact-panel {
    padding: 28px;
  }

  .footer-grid {
    gap: 28px;
  }
}

/* Scroll-Driven Animations & View Transitions */
@keyframes shrink-header {
  to {
    box-shadow: var(--shadow);
  }
}

@keyframes shrink-nav {
  to {
    min-height: 60px;
  }
}

@keyframes section-entry {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Native Scroll-Driven Animations */
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    .site-header {
      animation: shrink-header auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 100px;
    }
    .nav-shell {
      animation: shrink-nav auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 100px;
    }
  }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    main > section:not(.hero) {
      animation: section-entry auto ease-out both;
      animation-timeline: view();
      animation-range: entry 10% entry 45%;
    }
  }

  /* JavaScript IntersectionObserver Fallback Transition Styles */
  @supports not ((animation-timeline: view()) and (animation-range: entry)) {
    main > section:not(.hero).reveal-on-scroll {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
    }
    main > section:not(.hero).reveal-on-scroll.in-view {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* JavaScript Scroll Fallback Styles for Header Shrink */
.site-header.is-shrunk {
  box-shadow: var(--shadow);
}
.site-header.is-shrunk .nav-shell {
  min-height: 60px;
}

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