:root {
  --bg: #050a18;
  --bg-2: #0b1226;
  --panel: #101a36;
  --line: #1b2748;
  --text: #e8ecf5;
  --muted: #8a93a8;
  --faint: #5a6379;
  --gold-1: #e8c547;
  --gold-2: #ffe55c;
  --gold-3: #d4a017;
  --home: #3b82f6;
  --max: 1080px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(232, 197, 71, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(59, 130, 246, 0.08), transparent 50%),
    var(--bg);
  font-family: var(--font-body);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(5, 10, 24, 0.82);
  border-bottom: 1px solid rgba(27, 39, 72, 0.85);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 1;
  min-width: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand span {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2), var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: min(980px, 82vw);
}

.nav-roles-links {
  display: contents;
}

.nav-roles-select-wrap {
  display: none;
}

.nav-roles-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(16, 26, 54, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa3cf' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 10px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 1.6rem 0.25rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.2;
  min-height: 0;
  max-width: 7.5rem;
  cursor: pointer;
}

.nav-roles-select:focus {
  outline: 1px solid rgba(232, 197, 71, 0.45);
  outline-offset: 1px;
}

.nav a.nav-link {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav a.nav-role {
  color: var(--nav-role, var(--muted));
}

.nav a.nav-role:hover,
.nav a.nav-role[aria-current="page"] {
  color: var(--nav-role, var(--text));
  filter: brightness(1.18);
}

.nav a.nav-link:not(.nav-role):hover,
.nav a.nav-link:not(.nav-role)[aria-current="page"] {
  color: var(--text);
}

.nav-sep {
  display: inline-block;
  width: 1px;
  height: 0.85em;
  background: rgba(154, 163, 207, 0.35);
  flex-shrink: 0;
  align-self: center;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 0.35rem;
  flex-shrink: 0;
}

.lang-switch a {
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  color: var(--faint);
  line-height: 1.2;
}

.lang-switch a.active {
  background: var(--panel);
  color: var(--gold-2);
}

/* Header sign-in: match language toggle height */
.site-header .btn-nav-signin,
.site-header .btn.btn-ghost,
.nav .btn-nav-signin {
  min-height: 0;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  margin-left: 0.15rem;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  color: #04101f;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2), var(--gold-3));
  box-shadow: 0 8px 28px rgba(232, 197, 71, 0.22);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(16, 26, 54, 0.55);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero — full-screen portal, like the app sign-in screen */
.hero {
  min-height: calc(100svh - 65px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 0 2rem;
  text-align: center;
}

.hero .logo {
  width: 150px;
  height: 150px;
  margin: auto auto 1.25rem;
  animation: logo-spin 24s linear infinite;
  filter: drop-shadow(0 0 24px rgba(232, 197, 71, 0.25));
}

@keyframes logo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .logo { animation: none; }
}

.eyebrow {
  color: var(--gold-1);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 0.75rem;
  animation: rise 0.7s ease 0.05s both;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  animation: rise 0.7s ease 0.1s both;
}

.hero h1 .gold {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2), var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 38rem;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  animation: rise 0.7s ease 0.15s both;
}

.hero-title {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  animation: rise 0.7s ease 0.1s both;
}

.hero-title .gold {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2), var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Login-portal tagline (gold caps, as on the app sign-in screen) */
.hero-tagline {
  max-width: 44rem;
  margin: 1.6rem auto 0;
  color: var(--gold-2);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.9;
  text-transform: uppercase;
  animation: rise 0.7s ease 0.15s both;
}

.hero-tagline strong {
  color: var(--text);
  font-weight: 700;
}

.hero .btn-row {
  justify-content: center;
  margin-top: auto;
  padding-top: 3rem;
  animation: rise 0.7s ease 0.2s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Role orbit / carousel */
.roles {
  padding: 1rem 0 3.5rem;
}

.roles h2,
.section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}

.section-lead {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  text-align: center;
  color: var(--muted);
}

.role-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* Equal row heights: every card matches the tallest in the grid. */
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .role-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .role-track {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
}

.role-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 100%;
  min-height: 0;
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 26, 54, 0.95), rgba(11, 18, 38, 0.9));
  box-sizing: border-box;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.role-card:hover {
  border-color: rgba(232, 197, 71, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.role-card .role-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

.role-card .role-logo {
  width: 42px;
  height: 42px;
  flex: none;
  filter: drop-shadow(0 0 6px rgba(232, 197, 71, 0.35));
}

.role-card .kicker {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.role-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  flex: none;
}

.role-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  flex: 1 1 auto;
}

.role-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: auto;
  flex: none;
  flex-wrap: wrap;
}

.role-card .more {
  color: var(--gold-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.role-card .more:hover {
  text-decoration: underline;
}

/* Sections */
.section {
  padding: 3rem 0;
  border-top: 1px solid rgba(27, 39, 72, 0.7);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: step;
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Compact mobile header */
@media (max-width: 900px) {
  .site-header .inner {
    min-height: 48px;
    gap: 0.45rem;
    padding-block: 0.35rem;
  }

  .wrap {
    width: min(100% - 1.1rem, var(--max));
  }

  .brand {
    gap: 0.4rem;
  }

  .brand img {
    width: 26px;
    height: 26px;
  }

  .brand span {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .nav {
    gap: 0.4rem;
    flex-wrap: nowrap;
    max-width: none;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
  }

  .nav-roles-links {
    display: none;
  }

  .nav-roles-select-wrap {
    display: inline-flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
  }

  .nav-roles-select {
    max-width: 6.75rem;
  }

  .lang-switch {
    margin-left: 0;
  }

  .site-header .btn-nav-signin,
  .nav .btn-nav-signin {
    padding: 0.25rem 0.65rem;
  }
}

@media (max-width: 380px) {
  .brand span {
    font-size: 0.7rem;
  }

  .nav-roles-select {
    max-width: 5.75rem;
    padding-left: 0.55rem;
  }
}

.step {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  background: rgba(232, 197, 71, 0.12);
  color: var(--gold-2);
  font-family: var(--font-display);
  font-weight: 700;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.bullets {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.5rem;
  border-bottom: 1px solid rgba(27, 39, 72, 0.65);
  color: var(--muted);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold-2);
}

.page-hero {
  padding: 3.5rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.page-hero .lead {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-band {
  margin: 2rem 0 0;
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(232, 197, 71, 0.28);
  background: linear-gradient(135deg, rgba(232, 197, 71, 0.1), rgba(16, 26, 54, 0.4));
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-align: left;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(27, 39, 72, 0.7);
  color: var(--faint);
  font-size: 0.88rem;
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer a:hover {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
