/* NODAO — institutional single-page site.
   Palette + type reproduce the locked design (Inter Tight / JetBrains Mono, dark neutral). */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:        #0b1116;
  --bg-panel:  #0e151b;
  --bg-site:   #0e151b;
  --line:      #1a232c;
  --line-soft: #1e2831;
  --text:      #d7dee4;
  --text-dim:  #93a3b2;
  --text-mute: #5f7183;
  --heading:   #f0f5f8;
  --heading-hi:#f4f8fb;
  --accent:    #4f8ba6;
  --accent-2:  #c9a24b;
  --link:      #9db4c2;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter Tight", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

section[id] { scroll-margin-top: 88px; }

a { color: var(--link); text-decoration: none; }
a:hover { color: #e7eef2; }
::selection { background: #23425a; color: #fff; }

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  background: rgba(11,17,22,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: baseline; gap: 12px; }
.wordmark__name {
  font-size: 19px; font-weight: 700; letter-spacing: 0.22em; color: #f2f6f9;
}
.wordmark__name--muted { font-size: 16px; color: #7f93a3; }
.wordmark__region {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.14em;
  color: var(--text-mute); text-transform: uppercase;
}
.site-nav { display: flex; gap: 34px; font-size: 14px; font-weight: 500; }

/* ---- Shared section shell ---- */
.section { max-width: 1080px; margin: 0 auto; padding: 84px 40px; }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 8px;
}
.section__label {
  font-size: 14px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: #7f93a3;
}
.section__label--spaced { margin-bottom: 8px; }
.section__meta { font-size: 12px; color: var(--text-mute); }
.section__intro {
  font-size: 22px; line-height: 1.5; color: #c3ced7;
  max-width: 52ch; margin-bottom: 44px; text-wrap: pretty;
}
.section__intro--wide { max-width: 56ch; margin-bottom: 52px; }

.rule-wrap { max-width: 1080px; margin: 0 auto; padding: 0 40px; }
.rule { height: 1px; background: var(--line); }

/* ---- Hero ---- */
.hero {
  position: relative; max-width: 1080px; margin: 0 auto;
  padding: 120px 40px 90px; overflow: visible;
}
.hero__globe {
  position: absolute; top: 4px; right: 0; width: min(520px, 52%);
  opacity: 0.4; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 55% 45%, #000 54%, transparent 80%);
          mask-image: radial-gradient(circle at 55% 45%, #000 54%, transparent 80%);
}
.hero__globe nodao-globe { pointer-events: auto; }
.hero__content { position: relative; z-index: 1; }
.eyebrow {
  font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.24em;
  color: var(--text-mute); text-transform: uppercase; margin-bottom: 28px;
}
.hero__title {
  font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; font-weight: 700;
  letter-spacing: -0.02em; color: var(--heading-hi); max-width: 16ch; text-wrap: balance;
}
.hero__lead {
  margin-top: 30px; font-size: clamp(17px, 2vw, 21px); line-height: 1.55;
  color: var(--text-dim); max-width: 52ch; text-wrap: pretty;
}
.hero__actions { margin-top: 46px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; padding: 14px 26px;
  font-weight: 600; font-size: 14px; letter-spacing: 0.01em; border-radius: 3px;
}
.btn--solid { background: #e7eef2; color: #0b1116; }
.btn--solid:hover { background: #fff; color: #0b1116; }
.btn--ghost { border: 1px solid #2a3742; color: var(--text); }
.btn--ghost:hover { border-color: #3a4a58; color: #e7eef2; }

/* ---- Footprint ---- */
.sites {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.site {
  position: relative; background: var(--bg-panel); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 14px; min-height: 190px;
  cursor: default; transition: background 0.18s;
}
.site:hover { background: #111a22; }
.site__coord { font-size: 12px; letter-spacing: 0.08em; color: var(--accent); }
.site__city { font-size: 24px; font-weight: 600; color: var(--heading); letter-spacing: -0.01em; }
.site__country { font-size: 14px; color: #7f93a3; }
.site__kind {
  margin-top: auto; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-mute);
}
.site__tip {
  position: absolute; left: 16px; right: 16px; bottom: calc(100% - 6px); z-index: 5;
  background: #16222c; border: 1px solid #2a3c49; border-radius: 4px; padding: 14px 16px;
  font-size: 13.5px; line-height: 1.5; color: var(--text); text-wrap: pretty;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.site__tip::after {
  content: ""; position: absolute; left: 26px; top: 100%; width: 10px; height: 10px;
  margin-top: -5px; background: #16222c;
  border-right: 1px solid #2a3c49; border-bottom: 1px solid #2a3c49; transform: rotate(45deg);
}
.site:hover .site__tip, .site:focus-within .site__tip {
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* ---- Approach ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.card { border: 1px solid var(--line-soft); border-radius: 3px; padding: 38px 34px; }
.card__num { font-size: 12px; letter-spacing: 0.16em; }
.card__num--icp { color: var(--accent); }
.card__num--gpu { color: var(--accent-2); }
.card__title { margin-top: 16px; font-size: 26px; font-weight: 600; color: var(--heading); letter-spacing: -0.01em; }
.card__body { margin-top: 14px; font-size: 16px; line-height: 1.6; color: #8fa0af; text-wrap: pretty; }

/* ---- Origin ---- */
.section__label--spaced { margin-bottom: 44px; }
.origin { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.origin__lede p { font-size: clamp(20px, 2.3vw, 26px); line-height: 1.5; color: #d3dce3; text-wrap: pretty; }
.origin__lede .hl { color: var(--heading); }
.origin__timeline { border-left: 1px solid var(--line-soft); padding-left: 32px; display: flex; flex-direction: column; gap: 28px; }
.milestone__year { font-size: 13px; color: var(--accent); letter-spacing: 0.06em; }
.milestone__text { margin-top: 6px; font-size: 16px; color: #c3ced7; line-height: 1.45; }

/* ---- Contact ---- */
.contact { background: var(--bg-site); border-top: 1px solid var(--line); }
.contact__inner { max-width: 1080px; margin: 0 auto; padding: 84px 40px; }
.contact .section__label { margin-bottom: 20px; }
.contact__headline {
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.25; font-weight: 600;
  color: var(--heading); letter-spacing: -0.015em; max-width: 20ch; text-wrap: balance;
}
.contact__email {
  display: inline-block; margin-top: 30px; font-size: clamp(16px, 2vw, 20px);
  letter-spacing: 0.02em; color: #e7eef2; border-bottom: 1px solid #2f4a5e; padding-bottom: 4px;
}

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
  max-width: 1080px; margin: 0 auto; padding: 34px 40px;
  display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 6px; }
.site-footer__copy { font-size: 12px; color: #4a5a68; }
.site-footer__legal { font-size: 12px; line-height: 1.7; color: var(--text-mute); }

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .site-header { padding: 18px 22px; }
  .site-nav { gap: 20px; font-size: 13px; }
  .hero { padding: 84px 22px 64px; }
  .hero__globe { display: none; }
  .section, .contact__inner, .rule-wrap { padding-left: 22px; padding-right: 22px; }
  .origin { grid-template-columns: 1fr; gap: 36px; }
  .origin__timeline { border-left: 0; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
