:root {
  --bg: #12161c;
  --bg-soft: #1a212b;
  --ink: #f4efe6;
  --muted: #b7aea2;
  --line: rgba(244, 239, 230, 0.12);
  --accent: #ff8a4c;
  --accent-2: #7fd3c0;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font: "Noto Sans SC", "PingFang SC", sans-serif;
  --display: "Outfit", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  line-height: 1.65;
}

html.not-safari #site-root {
  display: none;
}

html.is-safari #browser-gate {
  display: none;
}

.browser-gate {
  display: none;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
}

html.not-safari .browser-gate {
  display: flex;
}

.browser-gate-inner {
  max-width: 420px;
}

.browser-gate-inner img {
  border-radius: 14px;
  margin-bottom: 20px;
}

.browser-gate h1 {
  font-family: var(--display);
  font-size: clamp(22px, 5vw, 28px);
  margin: 0 0 12px;
}

.browser-gate p {
  margin: 0 0 12px;
  color: var(--muted);
}

.browser-gate-hint {
  font-size: 14px;
  opacity: 0.9;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-glow {
  position: fixed;
  inset: -20% auto auto -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 138, 76, 0.22), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.nav,
main,
.footer {
  position: relative;
  z-index: 1;
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 5vw;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand-text small {
  color: var(--muted);
  font-size: 11px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 16px;
  font: inherit;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}

.btn.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.btn.primary {
  background: var(--accent);
  color: #1a120c;
  font-weight: 600;
}

.btn.lg {
  padding: 12px 22px;
}

.btn.full {
  width: 100%;
}

.hero {
  padding: 72px 7vw 40px;
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
}

.lede {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin: 28px 0 22px;
  flex-wrap: wrap;
}

.pills {
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  flex-wrap: wrap;
}

.pills li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 56px 7vw;
}

.section.alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.03));
}

.section-head {
  max-width: 520px;
  margin-bottom: 28px;
}

.section-head p,
.card p,
.stat p,
.regions p,
.modal-copy,
.footer {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.cards,
.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.stat,
.regions > div {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.stat span {
  color: var(--accent);
  font-family: var(--display);
  font-size: 13px;
}

.regions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.footer {
  padding: 28px 7vw 48px;
  font-size: 13px;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.72);
}

.modal-panel {
  position: relative;
  margin: max(16px, 5vh) auto;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #171d26;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow);
}

.icon-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
}

form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

form[hidden] {
  display: none;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.req {
  color: var(--accent);
  font-size: 12px;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #12161c;
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
}

input:focus {
  outline: 2px solid rgba(255, 138, 76, 0.45);
  border-color: transparent;
}

.form-status {
  margin-top: 16px;
  border-radius: 14px;
  padding: 14px;
  background: rgba(127, 211, 192, 0.1);
  border: 1px solid rgba(127, 211, 192, 0.28);
}

.form-status.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }
}
