/* ============================================================
   VTO API — landing page · "The Atlas"
   A cartographer's chart: pale sea-chart ground, faint graticule
   + contour rings, navy ink, brand-orange routes. The API is a
   hub with arcs radiating to six destination resources.
   Bricolage Grotesque display · Hanken Grotesk body · IBM Plex Mono coords.
   ============================================================ */

:root {
	/* chart ground */
	--chart: #e9eef0;
	--chart-2: #e0e8ea;
	--card: #f5f8f8;
	--card-line: #cdd9dc;
	--card-line-soft: #d9e2e4;

	/* ink */
	--ink: #14242e;
	--ink-soft: #45616c;
	--ink-mute: #7e949c;

	/* brand */
	--route: #fe8400;
	--route-300: #ffb45c;
	--route-deep: #b85700;
	--teal: #336682;
	--teal-300: #6ea8c9;
	--contour: rgba(51, 102, 130, 0.16);
	--contour-soft: rgba(51, 102, 130, 0.09);

	/* on dark (cta panel) */
	--on-dark: #eaf2f4;
	--on-dark-soft: #a9c2cb;
	--on-dark-mute: #6f8a94;

	--font-display: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--maxw: 1140px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink-soft);
	background: var(--chart);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* graticule + contour atmosphere */
body::before {
	content: "";
	position: fixed; inset: 0; z-index: -2;
	background:
		radial-gradient(1100px 760px at 78% -6%, rgba(254, 132, 0, 0.07), transparent 60%),
		radial-gradient(900px 720px at 4% 100%, rgba(51, 102, 130, 0.10), transparent 60%),
		linear-gradient(180deg, var(--chart), var(--chart-2));
}
body::after {
	content: "";
	position: fixed; inset: 0; z-index: -1; pointer-events: none;
	opacity: 0.5;
	background-image:
		linear-gradient(var(--contour-soft) 1px, transparent 1px),
		linear-gradient(90deg, var(--contour-soft) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image: radial-gradient(1300px 900px at 60% 10%, #000 35%, transparent 85%);
}

a { color: var(--route-deep); text-decoration: none; }
a:hover { color: var(--route); }

:focus-visible { outline: 2px solid var(--route); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

/* ---------- eyebrow ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 9px;
	font-family: var(--font-mono);
	font-size: 0.72rem; font-weight: 500;
	letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--teal);
}
.eyebrow .coord { color: var(--route-deep); }
.eyebrow .dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--route); box-shadow: 0 0 0 0 rgba(254,132,0,0.5);
	animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping {
	0% { box-shadow: 0 0 0 0 rgba(254,132,0,0.5); }
	70% { box-shadow: 0 0 0 7px rgba(254,132,0,0); }
	100% { box-shadow: 0 0 0 0 rgba(254,132,0,0); }
}

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 13px 22px; border-radius: 8px;
	font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
	border: 1px solid var(--card-line); background: #fff; color: var(--ink);
	cursor: pointer; transition: all 0.25s var(--ease); white-space: nowrap;
}
.btn:hover { border-color: var(--teal); color: #000; transform: translateY(-1px); }
.btn--primary {
	background: linear-gradient(180deg, var(--route-300), var(--route));
	border-color: var(--route); color: #2a1500;
	box-shadow: 0 10px 24px -12px rgba(254,132,0,0.7);
}
.btn--primary:hover {
	background: linear-gradient(180deg, var(--route), var(--route-deep));
	color: #fff; transform: translateY(-2px);
	box-shadow: 0 16px 34px -14px rgba(254,132,0,0.8);
}
.btn--ghost { background: transparent; border-color: var(--card-line); }
.btn--sm { padding: 9px 16px; font-size: 0.85rem; }
.btn .ar { transition: transform 0.25s var(--ease); }
.btn:hover .ar { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
	position: sticky; top: 0; z-index: 50;
	background: rgba(233, 238, 240, 0.82);
	backdrop-filter: saturate(150%) blur(12px);
	border-bottom: 1px solid var(--card-line-soft);
}
.nav__inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 26px; width: auto; display: block; }
.nav__brand .tag {
	font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
	letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute);
	padding-left: 12px; border-left: 1px solid var(--card-line);
}
.nav__spacer { flex: 1; }
.nav__coord {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
	letter-spacing: 0.1em; color: var(--teal);
}
.nav__coord .led { width: 7px; height: 7px; border-radius: 50%; background: var(--route); box-shadow: 0 0 8px rgba(254,132,0,0.6); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
	padding: 9px 13px; border-radius: 7px; color: var(--ink-soft);
	font-size: 0.9rem; font-weight: 500; transition: all 0.2s var(--ease);
}
.nav__link:hover { color: var(--ink); background: rgba(51,102,130,0.08); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 74px 0 78px; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.04fr; gap: 52px; align-items: center; }
.hero h1 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(2.6rem, 5.6vw, 4.5rem);
	line-height: 0.98; letter-spacing: -0.03em;
	margin: 22px 0 20px; color: var(--ink);
}
.hero h1 em { font-style: normal; color: var(--route-deep); position: relative; white-space: nowrap; }
.hero h1 em::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.10em;
	background: var(--route); opacity: 0.5; border-radius: 2px;
}
.hero p.lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 520px; margin: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__meta {
	margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--card-line-soft);
	display: flex; flex-wrap: wrap; gap: 34px;
}
.hero__meta .stat .n { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.hero__meta .stat .l {
	font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
	text-transform: uppercase; color: var(--ink-mute);
}

/* ---------- the route map (signature) ---------- */
.map {
	position: relative; aspect-ratio: 1 / 0.86; width: 100%;
	border: 1px solid var(--card-line); border-radius: 16px;
	background:
		radial-gradient(circle at 50% 52%, rgba(51,102,130,0.06), transparent 62%),
		linear-gradient(180deg, var(--card), #eef3f3);
	box-shadow: 0 30px 70px -36px rgba(20,36,46,0.4), inset 0 1px 0 rgba(255,255,255,0.6);
	overflow: hidden;
}
.map__frame {
	position: absolute; inset: 14px; border: 1px solid var(--contour-soft); border-radius: 9px;
	pointer-events: none;
}
.map__corner {
	position: absolute; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em;
	color: var(--ink-mute); pointer-events: none;
}
.map__corner.tl { top: 20px; left: 22px; }
.map__corner.tr { top: 20px; right: 22px; }
.map__corner.br { bottom: 20px; right: 22px; }
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map__arc {
	fill: none; stroke: var(--teal); stroke-width: 1.4;
	stroke-dasharray: 5 6; opacity: 0.45;
	transition: stroke 0.3s var(--ease), opacity 0.3s var(--ease), stroke-width 0.3s var(--ease);
}
.map__arc.is-active { stroke: var(--route); opacity: 1; stroke-width: 2.2; stroke-dasharray: 5 6; }
/* draw-in animation */
.map__arc.draw { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.1s var(--ease); }
.map__arc.draw.is-drawn { stroke-dashoffset: 0; }

/* hub */
.map__hub {
	position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
	display: grid; place-items: center; text-align: center; z-index: 3;
}
.map__hub .ring {
	position: relative;
	width: 92px; height: 92px; border-radius: 50%;
	border: 1.5px solid var(--route); display: grid; place-items: center;
	background: radial-gradient(circle, rgba(254,132,0,0.16), rgba(254,132,0,0.04));
	box-shadow: 0 0 0 8px rgba(254,132,0,0.06), 0 10px 26px -10px rgba(254,132,0,0.5);
}
.map__hub .ring::before {
	content: ""; position: absolute; left: 50%; top: 50%;
	width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 50%;
	border: 1px dashed rgba(254,132,0,0.35); animation: rotate 26s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.map__hub .core { width: 13px; height: 13px; border-radius: 50%; background: var(--route); box-shadow: 0 0 12px var(--route); }
.map__hub .label {
	margin-top: 12px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
	letter-spacing: 0.1em; color: var(--ink); background: rgba(245,248,248,0.85); padding: 3px 9px; border-radius: 6px;
}

/* destination pins */
.pin {
	position: absolute; transform: translate(-50%, -50%); z-index: 4;
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	text-align: center; transition: transform 0.25s var(--ease);
}
.pin__dot {
	width: 14px; height: 14px; border-radius: 50%;
	background: var(--card); border: 2px solid var(--teal);
	box-shadow: 0 2px 6px rgba(20,36,46,0.25); transition: all 0.25s var(--ease);
}
.pin__label {
	font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--ink);
	background: rgba(245,248,248,0.92); padding: 2px 9px; border-radius: 7px;
	border: 1px solid var(--card-line-soft); white-space: nowrap;
}
.pin__coord { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em; color: var(--ink-mute); }
.pin:hover { transform: translate(-50%, -50%) scale(1.06); z-index: 5; }
.pin:hover .pin__dot { border-color: var(--route); background: var(--route); box-shadow: 0 0 0 6px rgba(254,132,0,0.16); }
.pin:hover .pin__label { border-color: var(--route); color: var(--route-deep); }
/* pin entrance */
.pin.drop { opacity: 0; transform: translate(-50%, -40%) scale(0.9); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.pin.drop.is-in { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- sections ---------- */
.section { position: relative; padding: 88px 0; }
.section--alt { background: linear-gradient(180deg, rgba(245,248,248,0.6), rgba(245,248,248,0.6)); border-top: 1px solid var(--card-line-soft); border-bottom: 1px solid var(--card-line-soft); }
.section__head { max-width: 660px; margin: 0 0 44px; }
.section__head h2 {
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.06;
	letter-spacing: -0.025em; margin: 16px 0 10px; color: var(--ink);
}
.section__head p { margin: 0; font-size: 1.04rem; color: var(--ink-soft); }
.section code, .gaz code, .legend code {
	font-family: var(--font-mono); font-size: 0.84em;
	background: rgba(51,102,130,0.1); color: var(--teal); padding: 1px 6px; border-radius: 4px;
}

/* ---------- legend (rules as map key) ---------- */
.legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--card-line); border-radius: 14px; overflow: hidden; background: var(--card); }
.legend__item { padding: 26px 24px 28px; border-right: 1px solid var(--card-line-soft); position: relative; }
.legend__item:last-child { border-right: 0; }
.legend__sym { width: 38px; height: 38px; display: grid; place-items: center; color: var(--teal); margin-bottom: 16px; }
.legend__sym svg { width: 38px; height: 38px; }
.legend__key { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); }
.legend__item h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--ink); margin: 6px 0 8px; }
.legend__item p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.legend__item p strong { color: var(--ink); font-weight: 600; }

/* ---------- gazetteer (resource index) ---------- */
.gaz { border-top: 1px solid var(--card-line); }
.gaz__row {
	display: grid; grid-template-columns: 60px 1.3fr 1.7fr 1.5fr 22px;
	align-items: center; gap: 20px;
	padding: 20px 14px; border-bottom: 1px solid var(--card-line-soft);
	color: var(--ink); transition: background 0.2s var(--ease), padding 0.2s var(--ease);
}
.gaz__row:hover { background: rgba(51,102,130,0.05); padding-left: 22px; }
.gaz__no { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-mute); letter-spacing: 0.04em; }
.gaz__name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; color: var(--ink); }
.gaz__desc { font-size: 0.95rem; color: var(--ink-soft); }
.gaz__ep { font-family: var(--font-mono); font-size: 0.84rem; color: var(--teal); }
.gaz__ep b { color: var(--route-deep); font-weight: 600; margin-right: 6px; }
.gaz__go { color: var(--ink-mute); font-size: 1.1rem; justify-self: end; transition: transform 0.2s var(--ease), color 0.2s var(--ease); }
.gaz__row:hover .gaz__go { color: var(--route); transform: translateX(4px); }

/* ---------- quickstart ---------- */
.qs__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.qs__copy h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.08; letter-spacing: -0.025em; color: var(--ink); margin: 14px 0 14px; }
.qs__copy p { margin: 0 0 12px; color: var(--ink-soft); }
.qs__copy ul { margin: 18px 0 0; padding: 0; list-style: none; }
.qs__copy li { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--card-line-soft); font-size: 0.94rem; color: var(--ink-soft); }
.qs__copy li b { color: var(--teal); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; min-width: 64px; }

.terminal {
	background: linear-gradient(180deg, #16272f, #0f1c23);
	border: 1px solid #21333b; border-radius: 12px;
	box-shadow: 0 36px 70px -34px rgba(20,36,46,0.55);
	overflow: hidden;
}
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.07); background: rgba(0,0,0,0.2); }
.terminal__bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.terminal__bar i:nth-child(1) { background: #ff5f57; }
.terminal__bar i:nth-child(2) { background: #febc2e; }
.terminal__bar i:nth-child(3) { background: #28c840; }
.terminal__bar .ttl { margin-left: 8px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--on-dark-mute); }
.terminal pre { margin: 0; padding: 20px 22px; overflow-x: auto; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.85; color: var(--on-dark-soft); }
.terminal .l-cmd { color: var(--teal-300); }
.terminal .l-flag { color: var(--on-dark-mute); }
.terminal .l-str { color: #8be9a6; }
.terminal .l-url { color: var(--route-300); }
.terminal .l-key { color: var(--teal-300); }
.terminal .l-num { color: var(--route-300); }
.terminal .l-bool { color: var(--route); }
.terminal .cur { display: inline-block; width: 8px; height: 1.05em; vertical-align: -2px; background: var(--route); margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- access (dark map panel) ---------- */
.access__panel {
	position: relative; overflow: hidden;
	border-radius: 18px; padding: 60px 54px;
	background:
		radial-gradient(640px 320px at 86% -10%, rgba(254,132,0,0.22), transparent 60%),
		radial-gradient(560px 360px at 0% 110%, rgba(51,102,130,0.45), transparent 60%),
		linear-gradient(180deg, #182b34, #0f1c23);
	border: 1px solid #21333b;
}
.access__panel::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
	background-image: linear-gradient(rgba(110,168,201,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(110,168,201,0.07) 1px, transparent 1px);
	background-size: 46px 46px;
	mask-image: radial-gradient(600px 300px at 80% 0%, #000, transparent 75%);
}
.access__grid { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.access__panel .eyebrow { color: var(--route-300); }
.access__panel h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.06; letter-spacing: -0.025em; margin: 14px 0 12px; color: #fff; max-width: 540px; }
.access__panel p { margin: 0; color: var(--on-dark-soft); font-size: 1.04rem; max-width: 500px; }
.access__actions { display: flex; flex-direction: column; gap: 12px; min-width: 230px; }
.access__actions .btn--ghost { border-color: rgba(255,255,255,0.18); color: var(--on-dark); background: transparent; }
.access__actions .btn--ghost:hover { border-color: var(--teal-300); color: #fff; }
.access__actions .note { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--on-dark-mute); text-align: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--card-line-soft); padding: 38px 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { height: 22px; opacity: 0.9; }
.footer small { color: var(--ink-mute); font-size: 0.84rem; font-family: var(--font-mono); letter-spacing: 0.03em; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--ink-soft); font-size: 0.88rem; }
.footer__links a:hover { color: var(--route-deep); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); animation: fadeUp 0.85s var(--ease) forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.13s; } .d3 { animation-delay: 0.21s; }
.d4 { animation-delay: 0.29s; } .d5 { animation-delay: 0.37s; } .d6 { animation-delay: 0.45s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { animation: none; opacity: 1; transform: none; }
	.map__arc.draw { stroke-dashoffset: 0; transition: none; }
	.pin.drop { opacity: 1; transform: translate(-50%, -50%) scale(1); transition: none; }
	.map__hub .ring::before, .eyebrow .dot, .terminal .cur { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
	.hero__grid { grid-template-columns: 1fr; gap: 44px; }
	.hero__visual { order: -1; }
	.map { max-width: 520px; margin: 0 auto; }
	.qs__grid { grid-template-columns: 1fr; gap: 32px; }
	.legend { grid-template-columns: repeat(2, 1fr); }
	.legend__item:nth-child(2) { border-right: 0; }
	.legend__item:nth-child(n+3) { border-top: 1px solid var(--card-line-soft); }
}
@media (max-width: 680px) {
	.gaz__row { grid-template-columns: 44px 1fr auto; grid-template-areas: "no name go" "no ep ep"; gap: 4px 14px; }
	.gaz__no { grid-area: no; align-self: center; }
	.gaz__name { grid-area: name; }
	.gaz__desc { display: none; }
	.gaz__ep { grid-area: ep; }
	.gaz__go { grid-area: go; align-self: center; }
}
@media (max-width: 600px) {
	.hero { padding: 50px 0 56px; }
	.section { padding: 60px 0; }
	.nav__links, .nav__coord { display: none; }
	.nav__brand .tag { display: none; }
	.legend { grid-template-columns: 1fr; }
	.legend__item { border-right: 0; border-top: 1px solid var(--card-line-soft); }
	.legend__item:first-child { border-top: 0; }
	.access__panel { padding: 38px 26px; }
	.pin__coord { display: none; }
	.pin__label { font-size: 0.8rem; }
}
