:root {
  color-scheme: dark;
  --bg: #030303;
  --panel: #0a0a0b;
  --text: #f5f5f6;
  --muted: #a0a0a8;
  --line: rgba(255, 255, 255, 0.14);
  --blue: #2962ff;
  --violet: #d500f9;
  --shell: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
.section-shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 14px; top: 10px; padding: 10px 14px; transform: translateY(-150%); background: white; color: black; border-radius: 8px; }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 64px;
  padding-inline: max(24px, calc((100vw - 1370px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 4, 4, 0.92);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; width: fit-content; gap: 10px; font-weight: 760; letter-spacing: 0.02em; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.header-tools { display: flex; justify-content: flex-end; align-items: center; gap: 18px; color: #d3d3d7; font-size: 13px; }
.language-control { position: relative; display: inline-flex; align-items: center; }
.language-control::before { content: "◎"; position: absolute; left: 11px; color: #d3d3d7; pointer-events: none; }
.language-control select {
  min-height: 36px;
  padding: 0 30px 0 31px;
  border: 1px solid transparent;
  border-radius: 999px;
  outline: none;
  background: #080809;
  color: #e7e7ea;
  font: inherit;
  cursor: pointer;
}
.language-control select:hover, .language-control select:focus-visible { border-color: var(--line); }
.language-control select option { background: #111113; color: white; }
.header-tools a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 0; }
.header-tools a::before { content: "↗"; font-size: 15px; }
.menu-button, .mobile-menu { display: none; }

.opening-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 110px;
  align-items: center;
  min-height: 340px;
  padding-block: 56px;
}

.opening-copy h1 { margin: 0; font-size: clamp(38px, 4vw, 55px); line-height: 1.08; letter-spacing: -0.05em; }
.opening-copy p { margin: 22px 0 0; color: #d1d1d5; font-size: 18px; line-height: 1.6; }
.opening-card {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 205px;
  padding: 28px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: #070708;
  text-align: center;
}
.opening-card-title { display: flex; justify-content: center; align-items: baseline; gap: 8px; }
.opening-card-title strong { font-size: 39px; letter-spacing: -0.06em; }
.opening-card-title span { color: #c8c8cd; font-size: 14px; font-weight: 800; letter-spacing: 0.12em; }
.opening-card a {
  display: grid;
  min-height: 47px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(96deg, var(--blue), #4b55ff 48%, var(--violet));
  font-weight: 760;
}
.opening-card small { color: #9b9ba2; font-size: 11px; }

.section-kicker { margin: 0 0 18px; color: #85858e; font-size: 11px; font-weight: 850; letter-spacing: 0.2em; }
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding-inline: 26px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #e9e9eb;
  font-size: 14px;
  font-weight: 750;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.outline-button:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.48); background: rgba(255, 255, 255, 0.06); }

.globe-section {
  position: relative;
  overflow: hidden;
  min-height: 980px;
  padding-top: 72px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 78%, rgba(33, 79, 204, 0.12), transparent 28rem),
    #030303;
}
.globe-copy { position: relative; z-index: 5; text-align: center; }
.globe-copy h2, .center-heading h2, .market-strip-heading h2 {
  margin: 0;
  font-size: clamp(55px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}
.globe-copy > p:not(.section-kicker), .center-heading > p:last-child, .market-strip-heading > p:last-child {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}
.globe-copy .outline-button { margin-top: 28px; }

.earth-visual { position: absolute; inset: 255px 0 0; margin: 0; }
.earth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, #030303 0, transparent 20%, transparent 78%, #030303 100%); pointer-events: none; }
.earth-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.story-section { padding-block: 120px 150px; }
.center-heading { max-width: 960px; margin-inline: auto; text-align: center; }
.story-hero { position: relative; overflow: hidden; max-width: 1120px; height: 570px; margin: 54px auto 0; border-radius: 30px; background: #08080a; }
.story-hero img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.74) saturate(0.9); }
.story-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 42%); }
.story-hero figcaption { position: absolute; z-index: 2; left: 28px; bottom: 22px; color: #c7c7cc; font-size: 12px; }
.story-grid { max-width: 720px; margin: 72px auto 0; }
.story-copy h3 { margin: 0 0 18px; font-size: 34px; letter-spacing: -0.04em; }
.story-copy > p:not(.section-kicker) { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.story-copy a { display: inline-flex; gap: 9px; margin-top: 24px; font-weight: 760; }
.market-strip-section { padding-block: 110px; border-block: 1px solid var(--line); background: #080809; }
.market-strip-heading { max-width: 940px; }
.market-strip-heading h2 { font-size: clamp(48px, 5vw, 68px); }
.market-strip-heading > p:last-child { margin-left: 0; }
.market-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 52px; }
.market-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 20px;
  background: #09090a;
}
.market-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url("./assets/market-categories-approved-v1.png");
  background-repeat: no-repeat;
  background-position: var(--market-position) -8px;
  background-size: 470% auto;
}
.market-card-energy { --market-position: 0%; }
.market-card-precious { --market-position: 35.2%; }
.market-card-industrial { --market-position: 68.2%; }
.market-card-agriculture { --market-position: 99%; }

.community-section { padding-block: 140px 150px; }
.community-section .center-heading h2 { font-size: clamp(54px, 6vw, 82px); }
.community-visual { position: relative; overflow: hidden; height: 560px; margin: 58px auto 0; border-radius: 26px; background: #0b0b0c; }
.community-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.68), transparent 45%); }
.community-visual img { width: 100%; height: 100%; object-fit: cover; }
.community-visual figcaption { position: absolute; z-index: 2; left: 30px; bottom: 26px; font-size: 18px; font-weight: 700; }
.site-footer { padding-block: 42px; border-top: 1px solid var(--line); background: #080809; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 38px; color: #7f7f87; font-size: 12px; }
.footer-inner .brand { color: white; font-size: 13px; }.footer-inner .brand img { width: 36px; height: 36px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 36px, 760px); }
  .site-header { grid-template-columns: 1fr auto auto; padding-inline: 18px; }
  .header-tools { display: flex; margin-right: 2px; }
  .header-tools > a { display: none; }
  .menu-button { display: grid; width: 42px; height: 42px; place-content: center; gap: 7px; border: 0; background: transparent; cursor: pointer; }
  .menu-button i { display: block; width: 22px; height: 1px; background: white; transition: transform 160ms ease; }
  .menu-button[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] i:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .mobile-menu { position: absolute; top: 64px; left: 0; right: 0; display: grid; padding: 12px 18px 22px; border-bottom: 1px solid var(--line); background: rgba(3, 3, 3, 0.98); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .opening-section { grid-template-columns: 1fr; gap: 34px; padding-block: 55px 70px; }
  .opening-card { max-width: 500px; width: 100%; }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 600px) {
  :root { --shell: calc(100% - 28px); }
  .site-header { min-height: 60px; gap: 4px; }.brand { font-size: 13px; }.brand img { width: 34px; height: 34px; }.mobile-menu { top: 60px; }
  .header-tools { gap: 4px; }.language-control::before { left: 8px; }.language-control select { width: 104px; min-height: 34px; padding: 0 22px 0 27px; font-size: 12px; }
  .opening-copy h1 { font-size: 43px; }.opening-copy p { font-size: 16px; }
  .opening-card { min-height: 190px; padding: 24px; }
  .globe-section { min-height: 760px; padding-top: 72px; }.globe-copy h2, .center-heading h2, .market-strip-heading h2 { font-size: 46px; }.globe-copy > p:not(.section-kicker), .center-heading > p:last-child, .market-strip-heading > p:last-child { font-size: 16px; }
  .earth-visual { inset: 245px 0 0; }
  .story-section { padding-block: 86px 100px; }.story-hero { height: 330px; margin-top: 38px; border-radius: 20px; }.story-hero img { object-position: center; }.story-grid { margin-top: 46px; }
  .market-strip-section { padding-block: 82px; }.market-strip-heading h2 { font-size: 40px; }.market-grid { gap: 9px; margin-top: 38px; }.market-card { border-radius: 14px; }
  .community-section { padding-block: 100px; }.community-section .center-heading h2 { font-size: 40px; }.community-visual { height: 420px; margin-top: 40px; border-radius: 18px; }.community-visual img { object-position: 55% center; }.community-visual figcaption { left: 18px; bottom: 16px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
