@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;350;400;450;500;600&display=swap');

:root {
  --bg: #000000;
  --black: #000;
  --ink: #050505;

  --white: #f2eee5;
  --white-soft: #d8d2c5;
  --text: rgba(242, 238, 229, 0.78);
  --muted: rgba(242, 238, 229, 0.52);

  --line: rgba(242, 238, 229, 0.22);
  --line-soft: rgba(242, 238, 229, 0.08);

  --gold: #b29a63;
  --gold-bright: #d6a462;
  --gold-soft: rgba(178, 154, 99, 0.50);

  --shadow: rgba(0, 0, 0, 0.72);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.stage {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
}

.frame {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  border: 0;
  background: #000000;
}

.frame::before {
  content: none;
}

/* =================== LANGUAGE SWITCHER (dropdown with flags) =================== */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  user-select: none;
  margin-left: clamp(8px, 1vw, 16px);
}

.lang-switcher__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  background: transparent;
  border: 1px solid rgba(214, 164, 98, 0.40);
  color: var(--white);
  font-family: inherit;
  font-size: clamp(9px, 0.72vw, 11px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 240ms ease, background 240ms ease;
}

.lang-switcher__trigger:hover,
.lang-switcher__trigger:focus-visible {
  border-color: rgba(214, 164, 98, 0.95);
  background: rgba(178, 154, 99, 0.08);
  outline: none;
}

.lang-switcher__flag {
  display: inline-block;
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(242, 238, 229, 0.12);
}

.lang-switcher__label {
  letter-spacing: 0.06em;
}

.lang-switcher__chevron {
  transition: transform 240ms ease;
  color: rgba(242, 238, 229, 0.7);
}

.lang-switcher__trigger[aria-expanded="true"] .lang-switcher__chevron {
  transform: rotate(180deg);
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: rgba(8, 8, 8, 0.96);
  border: 1px solid rgba(242, 238, 229, 0.14);
  min-width: 180px;
  z-index: 50;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);
}

.lang-switcher__menu[hidden] {
  display: none;
}

.lang-switcher__menu li {
  display: block;
}

.lang-switcher__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 16px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: -0.02em;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.lang-switcher__opt:hover,
.lang-switcher__opt:focus-visible {
  background: rgba(178, 154, 99, 0.10);
  color: var(--white);
  outline: none;
}

.lang-switcher__opt[aria-current="true"] {
  color: var(--gold-bright);
  background: rgba(178, 154, 99, 0.08);
}

.lang-switcher__menu .lang-switcher__flag {
  width: 22px;
  height: 16px;
}

/* =================== TOPBAR =================== */
.nav-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(28px, 4vw, 64px) 0 clamp(28px, 4vw, 64px);
  gap: 24px;
}

.brand {
  color: var(--white);
  text-decoration: none;
  font-size: clamp(23px, 2.7vw, 31px);
  font-weight: 350;
  letter-spacing: -0.062em;
  line-height: 1;
  white-space: nowrap;
}

.brand strong {
  color: var(--gold);
  font-weight: 350;
}

/* ImigraData wordmark: "Imigra" pure white, "Data" logo gold (canonical brand rule) */
.brand span {
  color: #ffffff;
}

.brand-inline span {
  color: #ffffff;
}

.brand-inline strong {
  color: var(--gold);
  font-weight: 400;
}


nav.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.45vw, 24px);
  font-size: clamp(8px, 0.72vw, 10px);
  text-transform: uppercase;
  letter-spacing: -0.035em;
}

nav.nav-links a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.86;
  transition: color 240ms ease, opacity 240ms ease;
}

nav.nav-links a:hover,
nav.nav-links a:focus-visible {
  color: var(--gold-bright);
  opacity: 1;
  outline: none;
}

nav.nav-links a.pilot {
  padding: 9px 12px;
  border: 1px solid rgba(214, 164, 98, 0.54);
  color: var(--white);
  opacity: 1;
}

/* =================== CONTENT-GRID (Foto dominante: ~55vw) =================== */
.content-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(420px, 38vw, 720px);
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
  min-height: calc(100vh - 60px);
  padding: clamp(20px, 3vh, 48px) 0 clamp(20px, 3vh, 48px) clamp(28px, 4vw, 64px);
}

.content-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2vh, 24px);
}

h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.98;
  font-weight: 300;
  letter-spacing: -0.066em;
  color: var(--white);
  max-width: 30rem;
}

.content-left p {
  margin: 0;
  width: min(28rem, 100%);
  color: var(--text);
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.72;
  font-weight: 350;
  letter-spacing: -0.038em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(242, 238, 229, 0.17);
  border-bottom: 1px solid rgba(242, 238, 229, 0.17);
  border-left: 1px solid rgba(242, 238, 229, 0.17);
  border-right: 0;
  background: rgba(0, 0, 0, 0.35);
}

.cards .card {
  min-height: 90px;
  padding: 16px 14px 14px;
  border-right: 1px solid rgba(242, 238, 229, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(6, 7, 7, 0.78);
}

.cards .card:last-child { border-right: 0; }

.cards h2 {
  margin: 0 0 6px;
  font-size: clamp(12px, 1.05vw, 14px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
}

.cards span {
  display: block;
  color: rgba(242, 238, 229, 0.7);
  font-size: clamp(11px, 0.95vw, 13px);
  letter-spacing: -0.025em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 6px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(214, 164, 98, 0.54);
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: -0.025em;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.24);
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 164, 98, 0.95);
  background: rgba(178, 154, 99, 0.1);
}

/* =================== VISUAL SIDE (foto dominante con mimetización) =================== */
.visual-side {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  overflow: hidden;
}

.visual-side__frame {
  position: relative;
  width: 100%;
  align-self: stretch;
  border: 0;
  background: transparent;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.55) 10%, #000 28%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.55) 10%, #000 28%, #000 100%);
}

.visual-side__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.visual-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0.18) 22%, transparent 45%),
    linear-gradient(180deg, rgba(0,0,0,0.22) 0%, transparent 18%, transparent 82%, rgba(0,0,0,0.28) 100%);
  pointer-events: none;
}

/* =================== Reduced motion =================== */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}

/* =================== Responsive =================== */
@media (max-width: 1080px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 1.1fr);
    gap: clamp(20px, 3vw, 40px);
  }
}

@media (max-width: 860px) {
  .lang-switcher { margin-left: 0; }  .lang-switcher__trigger { padding: 7px 10px; font-size: 10px; }

  .nav-bar {
    flex-wrap: wrap;
    padding-top: 64px;
  }

  nav.nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 11px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 28px;
  }

  .visual-side {
    order: 2;
    justify-content: center;
    -webkit-mask-image: none;
            mask-image: none;
  }

  .visual-side__frame {
    width: min(100%, 520px);
    max-height: none;
    aspect-ratio: 0.73 / 1;
    -webkit-mask-image: none;
            mask-image: none;
    border: 1px solid var(--line);
  }

  .visual-side::after { display: none; }

  .content-left { order: 1; }

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

  .cards .card {
    border-bottom: 1px solid rgba(242, 238, 229, 0.14);
  }

  .cards .card:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 560px) {  .lang-switcher__trigger { padding: 6px 9px; font-size: 9.5px; }
  .lang-switcher__menu { right: auto; left: 0; min-width: 160px; }

  .nav-bar { padding: 56px 16px 0; }
  .brand { font-size: 25px; }
  nav.nav-links a:not(.pilot) { display: none; }

  .content-grid { padding: 30px 18px; gap: 32px; }
  h1 { font-size: clamp(40px, 12vw, 60px); }

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

/* =================== VISUAL SIDE (mimetisiert) =================== */
.visual-side {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  overflow: hidden;
}

.visual-side__frame {
  position: relative;
  width: 100%;
  align-self: stretch;
  border: 0;
  background: transparent;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.55) 10%, #000 28%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.55) 10%, #000 28%, #000 100%);
}

.visual-side__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.visual-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.18) 22%, transparent 45%),
    linear-gradient(180deg, rgba(0,0,0,0.22) 0%, transparent 18%, transparent 82%, rgba(0,0,0,0.28) 100%);
  pointer-events: none;
}

/* =================== Reduced motion =================== */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}

/* =================== Responsive =================== */
@media (max-width: 1080px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr) clamp(380px, 35vw, 580px);
    gap: clamp(20px, 3vw, 40px);
  }
}

@media (max-width: 860px) {
  .lang-switcher { margin-left: 0; }
  .lang-switcher__trigger { padding: 7px 10px; font-size: 10px; }

  .nav-bar {
    flex-wrap: wrap;
    padding-top: 24px;
  }

  nav.nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 11px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 28px;
  }

  .visual-side {
    order: 2;
    justify-content: center;
    -webkit-mask-image: none;
            mask-image: none;
  }

  .visual-side__frame {
    width: min(100%, 520px);
    max-height: none;
    aspect-ratio: 0.7 / 1;
    -webkit-mask-image: none;
            mask-image: none;
    border: 1px solid var(--line);
  }

  .visual-side::after { display: none; }

  .content-left { order: 1; }
}

@media (max-width: 560px) {
  .lang-switcher__trigger { padding: 6px 9px; font-size: 9.5px; }
  .lang-switcher__menu { right: auto; left: 0; min-width: 160px; }

  .nav-bar { padding: 24px 16px 0; }
  .brand { font-size: 25px; }
  nav.nav-links a:not(.pilot):not(.demo) { display: none; }

  .content-grid {
    padding: 30px 18px;
    gap: 32px;
  }

  h1 { font-size: clamp(42px, 13vw, 70px); }
}

/* Brand names keep their canonical casing even when an ancestor applies text-transform: uppercase. */
a.brand-name {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
