:root {
	--bg: #0a0a0a;
	--text: #f5f5f5;
	--muted: #8f8f8f;
	--line: #222222;
	--accent: #3b74ff;
	color-scheme: dark;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 18px/1.6 Inter, system-ui, -apple-system, sans-serif;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.wrap {
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	padding-left: max(24px, env(safe-area-inset-left, 0px));
	padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.bar { display: flex; align-items: center; justify-content: space-between; padding-block: 32px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.link { color: var(--muted); text-decoration: none; font-size: 16px; }
.link:hover { color: var(--text); }

.stripes { display: inline-flex; flex-direction: column; gap: 3px; }
.stripes span { display: block; width: 20px; height: 4px; border-radius: 1px; background: var(--accent); }
.stripes span:nth-child(2) { margin-left: 6px; }
.stripes.big { gap: 12px; }
.stripes.big span { width: 96px; height: 20px; border-radius: 3px; }
.stripes.big span:nth-child(2) { margin-left: 28px; }

h1, h2 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }

.home { position: relative; overflow-x: hidden; background: #070708; }
.home .glow { position: absolute; top: 520px; left: 50%; width: 800px; max-width: 100vw; height: 520px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(59,116,255,0.32), rgba(59,116,255,0)); pointer-events: none; }
.wide { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.bar nav { display: flex; align-items: center; gap: 24px; }
.pill { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 1px solid #2b2b2e; }
.pill:hover { border-color: var(--text); }

.hero { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; padding: 112px 24px 72px; }
.hero h1 { max-width: 900px; font-size: clamp(40px, 7vw, 68px); line-height: 1.02; letter-spacing: -0.04em; }
.hero p { max-width: 540px; font-size: 19px; color: #9c9c9d; }

.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: #ffffff; color: #070708; font-weight: 500; font-size: 15px; text-decoration: none; margin-top: 12px; }

.palette { position: relative; width: calc(100% - 48px); max-width: 760px; margin: 0 auto; border-radius: 18px; border: 1px solid #2b2b2e; background: rgba(22,22,24,0.92); box-shadow: 0 30px 100px rgba(0,0,0,0.55); overflow: hidden; }
.palette .search { height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 22px; border-bottom: 1px solid #222224; font-size: 17px; color: #6f6f72; }
.stripes.small { gap: 3px; }
.stripes.small span { width: 16px; height: 3px; }
.stripes.small span:nth-child(2) { margin-left: 4px; }
.palette .list { padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.palette .group { margin: 8px 12px; font-size: 12px; font-weight: 500; color: #6f6f72; }
.palette .group:not(:first-child) { margin-top: 14px; }
.palette .item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; }
.palette .item.active { background: #232326; }
.palette .icon { flex: none; width: 32px; height: 32px; border-radius: 8px; background: #2b2b2e; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.palette .icon.accent { background: var(--accent); }
.palette .icon.round { border-radius: 50%; }
.palette .text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; color: #9c9c9d; line-height: 1.45; }
.palette .text strong { font-size: 15px; font-weight: 500; color: #ffffff; }
.palette .text strong.regular { font-weight: 400; }
.palette .chip { flex: none; font-size: 12px; color: #9c9c9d; border: 1px solid #3a3a3d; border-radius: 6px; padding: 3px 8px; }
.palette .due { flex: none; font-size: 12px; color: #ffb35c; }

.points { position: relative; width: 100%; max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; padding: 120px 24px 0; text-align: center; }
.points p { font-size: 15px; color: #9c9c9d; }
.points strong { display: block; color: #ffffff; font-weight: 500; margin-bottom: 6px; }

.why { text-align: center; padding: 160px 0 0; }
.why h2 { font-size: clamp(28px, 4.5vw, 40px); letter-spacing: -0.03em; padding: 0 24px; }
.points.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 800px; padding-top: 48px; }
.connect { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; padding: 160px 24px 120px; }
.connect h2 { font-size: clamp(28px, 4.5vw, 40px); letter-spacing: -0.03em; }
.connect > p { color: #9c9c9d; max-width: 520px; }
.copyline { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.copyline code { font-size: 19px; color: var(--text); word-break: break-all; }
.small { font-size: 14px; color: #9c9c9d; max-width: 100%; }
.small code { color: var(--text); word-break: break-all; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; width: 100%; max-width: 680px; display: flex; flex-direction: column; gap: 56px; text-align: left; }
.steps li { display: flex; gap: 20px; }
.steps .num { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #3a3a3d; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; color: #9c9c9d; }
.steps li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.steps .copyline { justify-content: flex-start; }
.steps .lead-step { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.steps li:last-child p:not(.lead-step) { color: #9c9c9d; }
.connect pre { margin: 0; width: 100%; box-sizing: border-box; padding: 18px 20px; border-radius: 12px; border: 1px solid #2b2b2e; background: #111113; white-space: pre-wrap; font-size: 14px; line-height: 1.6; color: #c9c9cb; }
.copy { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid #3a3a3d; background: transparent; color: var(--text); font: 500 14px Inter, system-ui, sans-serif; cursor: pointer; }
.copy:hover { border-color: var(--text); }

.foot { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-block: 48px 64px; color: var(--muted); font-size: 14px; }
.foot .langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 13px; }
.foot .langs a[aria-current] { color: var(--text); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

.legal { padding-block: 64px 120px; }
.legal h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.025em; }
.legal .meta { color: var(--muted); font-size: 15px; margin: 12px 0 56px; }
.legal h2 { font-size: 20px; margin: 48px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: #c9c9c9; font-size: 17px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.legal a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.legal li strong { color: var(--text); font-weight: 500; }
.legal .sample { margin: 8px 0 0; padding: 18px 20px; border-radius: 12px; border: 1px solid #2b2b2e; background: #111113; white-space: pre-wrap; font-size: 14px; line-height: 1.6; color: #c9c9cb; }
.legal table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 4px 0 12px; }
.legal th, .legal td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: #c9c9c9; }
.legal th { color: var(--text); font-weight: 600; }
.legal th:first-child, .legal td:first-child { width: 30%; padding-right: 16px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
@media (max-width: 720px) {
	.hero { padding-top: 72px; }
	.points { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 80px; }
	.connect { padding-top: 112px; }
	.why { padding-top: 112px; }
	.points.two { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
	.palette .chip { display: none; }
}

.flow { position: relative; width: calc(100% - 48px); max-width: 1000px; margin: 0 auto; display: flex; align-items: stretch; gap: 16px; }
.flow .node { flex: 1; min-width: 0; border: 1px solid #2b2b2e; border-radius: 16px; background: rgba(22,22,24,0.92); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.flow .node.accent { border-color: var(--accent); }
.flow .label { font-size: 15px; font-weight: 600; color: var(--text); }
.flow .node p:not(.label) { font-size: 14px; color: #9c9c9d; }
.flow .arrow { align-self: center; color: #6f6f72; font-size: 20px; }

.block { position: relative; width: calc(100% - 48px); max-width: 1000px; margin: 0 auto; padding-top: 140px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.block h2 { font-size: clamp(28px, 4.5vw, 40px); letter-spacing: -0.03em; }
.block .sub { color: #9c9c9d; max-width: 540px; margin-bottom: 20px; }
.palette.static { width: 100%; text-align: left; }
.palette .chain { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.palette .chain code { font-size: 12px; color: var(--accent); border: 1px solid #2b2b2e; border-radius: 6px; padding: 2px 7px; }

.toolmap { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; text-align: left; }
.toolmap h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #9c9c9d; margin: 0 0 16px; }
.toolmap dl { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.toolmap dt { font: 500 14px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); margin-top: 12px; }
.toolmap dt:first-child { margin-top: 0; }
.toolmap dd { margin: 0; font-size: 14px; color: #9c9c9d; line-height: 1.5; }

.split { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; text-align: left; margin-top: 12px; }
.split h3 { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.split p { color: #9c9c9d; font-size: 16px; }

.connect.short { padding: 140px 24px 120px; }

@media (max-width: 720px) {
	.flow { flex-direction: column; }
	.flow .arrow { transform: rotate(90deg); }
	.toolmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.block { padding-top: 96px; }
}
