@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;
}

/* =================== CONTENT-GRID =================== */
.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(44px, 6.8vw, 78px);
  line-height: 0.96;
  font-weight: 300;
  letter-spacing: -0.066em;
  color: var(--white);
  max-width: 36rem;
}

.intro {
  margin: 0;
  width: min(34rem, 100%);
  color: var(--text);
  font-size: clamp(14px, 1.55vw, 19px);
  line-height: 1.72;
  font-weight: 350;
  letter-spacing: -0.038em;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(214, 164, 98, 0.54);
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.04em;
  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.10);
}

.button-primary {
  background: linear-gradient(135deg, #b87839, #d6a462);
  border-color: rgba(214, 164, 98, 0.92);
  color: #fff8ee;
}

.button-primary:hover {
  background: linear-gradient(135deg, #c48542, #e6b272);
}

/* =================== VISUAL SIDE =================== */
.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.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 =================

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