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

:root {
  --bg: #000000;
  --panel: #050605;
  --white: #f2eee5;
  --white-soft: #d8d2c5;
  --muted: rgba(242, 238, 229, 0.66);
  --faint: rgba(242, 238, 229, 0.18);
  --line: rgba(242, 238, 229, 0.22);
  --line-soft: rgba(242, 238, 229, 0.08);
  --gold: #b29a63;
  --gold-bright: #d6a462;
  --gold-deep: #6d4728;
  --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 {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

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

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

.info-card::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 {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(28px, 4vw, 64px) 0 clamp(28px, 4vw, 64px);
}

.brand {
  text-decoration: none;
  font-size: clamp(23px, 2.7vw, 31px);
  line-height: 1;
  font-weight: 350;
  letter-spacing: -0.062em;
  color: var(--white);
  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 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.45vw, 24px);
  font-size: clamp(8px, 0.72vw, 10px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.035em;
}

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

.nav a:hover {
  color: var(--gold-bright);
  opacity: 1;
}

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

.content-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(420px, 38vw, 720px);
  min-height: calc(100vh - 60px);
  align-items: start;
  padding: clamp(20px, 3vh, 48px) 0;
}

.copy {
  align-self: start;
  padding-left: clamp(28px, 4vw, 64px);
  padding-right: clamp(20px, 3vw, 48px);
}

h1 {
  margin: 0 0 20px 0;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -0.05em;
  color: var(--white);
  max-width: 36rem;
}

.lead {
  max-width: 620px;
  margin: 0 0 22px 0;
  color: var(--white);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.5;
  font-weight: 450;
  letter-spacing: -0.03em;
}

p {
  max-width: 620px;
  margin: 0 0 16px 0;
  color: var(--white-soft);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.62;
  font-weight: 350;
  letter-spacing: -0.03em;
}

p + p {
  color: rgba(242, 238, 229, 0.72);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  min-height: 42px;
  padding: 0 18px;
  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.22);
  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 {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  overflow: hidden;
  z-index: 2;
  align-self: start;
  height: clamp(460px, 72vh, 620px);
}

.visual__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::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;
}

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

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

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

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

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

  .content-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 40px 0;
  }

  .copy {
    padding: 40px 28px 24px;
  }

  h1 {
    font-size: clamp(32px, 8.5vw, 50px);
  }

  .lead,
  p {
    max-width: 92%;
  }

  .visual {
    height: auto;
    justify-content: center;
    padding: 0 28px 40px;
    -webkit-mask-image: none;
            mask-image: none;
  }

  .visual__frame {
    width: 100%;
    max-width: 560px;
    max-height: none;
    aspect-ratio: 0.8 / 1;
    -webkit-mask-image: none;
            mask-image: none;
    border: 1px solid var(--line);
  }

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

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

  .topbar {
    padding: 56px 16px 0;
  }

  .brand {
    font-size: 25px;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .copy {
    padding: 30px 18px 24px;
  }
}

/* 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;
}
