/* Reset & base */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #000000;
  --fg: #f5f5f5;
  --muted: #b0b0b0;
  --gold: #d4af6a;
  --maxw: 1240px;
  --radius: 14px;
}

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

.page-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212,175,106,0.10), transparent 60%),
    var(--bg);
}

/* Card container */
.home-card {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 32px 40px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.brand {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.brand-white { color: var(--fg); }
.brand-gold { color: var(--gold); }

/* ImigraData wordmark inside body copy (wrapped by applyWordmark in i18n.js):
   "Imigra" stays in the running text color, "Data" is brand gold. */
.brand-inline span { color: inherit; }
.brand-inline strong { color: var(--gold); font-weight: 400; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 160ms ease;
}
.nav a:hover { color: var(--fg); }

.nav-cta {
  border: 1px solid rgba(212,175,106,0.5);
  color: var(--gold) !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px !important;
}
.nav-cta:hover { background: rgba(212,175,106,0.08); }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-switcher__trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--fg);
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}
.lang-switcher__trigger:hover { border-color: rgba(212,175,106,0.5); }
.lang-switcher__flag { border-radius: 2px; display: block; }
.lang-switcher__chevron { opacity: 0.7; }
.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #0c0c0c;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 6px;
  min-width: 150px;
  z-index: 30;
  list-style: none;
}
.lang-switcher__opt {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--fg);
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}
.lang-switcher__opt:hover { background: rgba(255,255,255,0.06); }
.lang-switcher__opt[aria-current="true"] { color: var(--gold); }

/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: start;
  flex: 1 0 auto;
}

.hero-copy { max-width: 560px; }

h1 {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-copy .lead {
  font-size: 17px;
  color: var(--fg);
  margin-bottom: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.hero-copy .body {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 26px;
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 180ms ease;
  white-space: nowrap;
  cursor: pointer;
}

.button-primary {
  background: var(--gold);
  color: #1a1a1a;
}
.button-primary:hover { filter: brightness(1.08); }

.button-secondary {
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--fg);
  background: transparent;
}
.button-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* Visual panel */
.visual-panel {
  position: relative;
  align-self: start;
  min-height: 460px;
  height: clamp(460px, 60vh, 560px);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0a0a;
}

.visual-panel__frame {
  position: absolute;
  inset: 0;
}

.visual-panel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Footer is unified (see footer/) */

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .visual-panel { min-height: 300px; height: 320px; }
  .nav { display: none; }
}
