:root {
  --primary: #d6b25e;
  --primary-strong: #f1d58a;
  --background: #08090b;
  --surface: #111317;
  --surface-raised: #191c22;
  --surface-soft: #232832;
  --on-surface: #f4f1e8;
  --muted: #a5a7ad;
  --border: #343843;
  --accent: #2fc6b4;
  --danger: #d95b5b;
  --overlay: #050608;
  --shadow: 0 24px 70px rgb(0 0 0 / 42%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--on-surface);
  background: var(--background);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(8 9 11 / 28%), var(--background) 720px),
    var(--background);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  background: rgb(5 6 8 / 86%);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--primary);
  color: var(--primary-strong);
  font-size: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a,
.language-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav a:hover,
.language-button:hover {
  color: var(--on-surface);
}

.nav .active {
  color: var(--primary-strong);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--on-surface);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgb(5 6 8 / 90%) 0%, rgb(5 6 8 / 68%) 46%, rgb(5 6 8 / 30%) 100%),
    linear-gradient(180deg, rgb(5 6 8 / 10%), var(--background) 96%),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Shanghai%20skyline%20unsplash.jpg");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--background));
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-content {
  max-width: 760px;
  padding: 86px 0 120px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1,
.page-hero h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p,
.lede {
  color: #ddd8c9;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 13px 18px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
}

.button-primary {
  background: var(--primary);
  color: var(--background);
}

.button-primary:hover {
  background: var(--primary-strong);
}

.button-secondary {
  border-color: var(--border);
  background: rgb(25 28 34 / 78%);
  color: var(--on-surface);
}

.section {
  padding: 76px 0;
  border-top: 1px solid rgb(255 255 255 / 7%);
}

.section-alt {
  background: #0c0e12;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 1.12fr);
  gap: 52px;
  align-items: start;
}

.section h2,
.auth-title,
.architect-title {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section h3 {
  margin-bottom: 12px;
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.faq-item,
.module-card,
.auth-card,
.inventory-item,
.timeline-item,
.metric {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 172px;
  padding: 22px;
}

.feature-card i,
.module-card i,
.timeline-item i {
  color: var(--primary-strong);
}

.feature-card h4,
.module-card h4,
.timeline-item h4,
.inventory-item h4 {
  margin: 14px 0 8px;
  font-size: 18px;
}

.feature-card p,
.module-card p,
.timeline-item p,
.inventory-item p,
.faq-item p,
.page-copy p,
.page-copy li {
  color: var(--muted);
  line-height: 1.65;
}

.visa-panel {
  display: grid;
  gap: 16px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric {
  padding: 18px;
}

.metric strong {
  display: block;
  color: var(--primary-strong);
  font-size: 30px;
}

.tooltip-wrap {
  position: relative;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  border-bottom: 1px dotted var(--primary);
  color: var(--primary-strong);
  cursor: help;
}

.tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  display: none;
  width: min(520px, calc(100vw - 42px));
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #111317;
  color: var(--on-surface);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.55;
}

.tooltip-wrap:hover .tooltip,
.tooltip-wrap:focus-within .tooltip {
  display: block;
}

.process-list {
  display: grid;
  gap: 12px;
}

.process-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
}

.step-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--primary);
  color: var(--primary-strong);
  font-weight: 800;
}

.media-strip {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 14px;
  min-height: 420px;
}

.media-block {
  min-height: 280px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.media-main {
  background-image:
    linear-gradient(180deg, rgb(5 6 8 / 4%), rgb(5 6 8 / 58%)),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Bright%20skyline%20over%20water%20%28Unsplash%29.jpg");
}

.media-side {
  background-image:
    linear-gradient(180deg, rgb(5 6 8 / 12%), rgb(5 6 8 / 74%)),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Skyline%20of%20Shanghai%20by%20Leonard%20Keren%202016%20%28Unsplash%29.jpg");
}

.page-hero {
  padding: 86px 0 56px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  background:
    linear-gradient(90deg, rgb(8 9 11 / 94%), rgb(8 9 11 / 72%)),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Shanghai%20skyline%20unsplash.jpg") center / cover;
}

.page-copy {
  max-width: 940px;
}

.page-copy h2 {
  margin-top: 44px;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin: 42px 0 0;
}

.faq-item {
  padding: 22px;
}

.faq-item h3 {
  color: var(--on-surface);
  font-size: 18px;
  text-transform: none;
}

.auth-wrap {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 54px 16px;
  background:
    linear-gradient(90deg, rgb(8 9 11 / 92%), rgb(8 9 11 / 76%)),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Bright%20skyline%20over%20water%20%28Unsplash%29.jpg") center / cover;
}

.auth-card {
  width: min(440px, 100%);
  padding: 30px;
}

.auth-card label {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-card input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-raised);
  color: var(--on-surface);
  padding: 0 12px;
}

.auth-card input:focus {
  outline: 2px solid rgb(214 178 94 / 54%);
  border-color: var(--primary);
}

.auth-card .button {
  width: 100%;
  margin-top: 8px;
}

.form-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.architect {
  min-height: calc(100vh - 72px);
  background: #090b0f;
}

.architect-hero {
  padding: 46px 0 28px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.architect-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
  padding: 22px 0 70px;
}

.side-nav,
.planner-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.side-nav {
  position: sticky;
  top: 92px;
  overflow: hidden;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgb(255 255 255 / 7%);
  color: var(--muted);
  font-weight: 700;
}

.side-nav a.active {
  color: var(--background);
  background: var(--primary);
}

.planner-panel {
  padding: 18px;
}

.module-grid,
.inventory-grid {
  display: grid;
  gap: 14px;
}

.module-card,
.inventory-item,
.timeline-item {
  padding: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-raised);
  color: var(--on-surface);
  padding: 0 10px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chip-live {
  color: #062421;
  background: var(--accent);
}

.footer {
  border-top: 1px solid rgb(255 255 255 / 8%);
  padding: 28px 0;
  background: #050608;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 960px) {
  .menu-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--border);
    background: #050608;
  }

  .nav.open {
    display: flex;
  }

  .nav a,
  .language-button {
    padding: 16px;
    text-align: left;
  }

  .section-grid,
  .architect-grid,
  .media-strip {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
  }
}

@media (max-width: 620px) {
  .topbar-inner {
    width: min(100% - 24px, 1180px);
  }

  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 72px 0 98px;
  }

  .section {
    padding: 54px 0;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 22px;
  }
}
