:root {
	--ink: #162033;
	--muted: #667085;
	--line: #dfe4ea;
	--surface: #ffffff;
	--surface-soft: #f5f7fa;
	--canvas: #eef2f5;
	--brand: #ff5a36;
	--brand-dark: #d94021;
	--navy: #182338;
	--teal: #087e7a;
	--green: #20865d;
	--amber: #b56c09;
	--red: #c83b42;
	--shadow: 0 14px 40px rgba(24, 35, 56, 0.08);
	--radius: 18px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--canvas);
	color: var(--ink);
	font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.6;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.site-shell { min-height: 100vh; }
.site-header {
	position: fixed;
	z-index: 40;
	top: 0;
	left: 0;
	right: 0;
	height: 76px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 32px;
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid rgba(223, 228, 234, 0.9);
	backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 196px; }
.brand-mark {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 13px 13px 13px 5px;
	background: var(--brand);
	color: #fff;
	font-family: Georgia, serif;
	font-size: 20px;
	font-weight: 800;
	box-shadow: 0 8px 18px rgba(255, 90, 54, 0.25);
}
.brand strong, .brand small { display: block; line-height: 1.2; }
.brand strong { font-size: 16px; letter-spacing: -0.02em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.run-badge { display: inline-flex; align-items: center; gap: 7px; color: #475467; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.run-badge i { width: 8px; height: 8px; border-radius: 50%; background: #33b875; box-shadow: 0 0 0 4px rgba(51, 184, 117, 0.12); }
.site-body { display: flex; padding-top: 76px; min-height: 100vh; }
.site-sidebar {
	position: fixed;
	z-index: 30;
	top: 76px;
	bottom: 0;
	left: 0;
	width: 248px;
	display: flex;
	flex-direction: column;
	padding: 28px 20px 22px;
	background: var(--navy);
	color: #fff;
}
.nav-label { margin: 0 12px 12px; color: #8e9bb2; font-size: 10px; font-weight: 800; letter-spacing: 0.17em; text-transform: uppercase; }
.site-nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 13px; border-radius: 11px; color: #b9c2d1; font-size: 14px; font-weight: 700; transition: 160ms ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-item.active { color: #fff; background: rgba(255, 90, 54, 0.16); }
.nav-icon { display: grid; place-items: center; width: 24px; height: 24px; color: #75839a; font-size: 19px; }
.nav-item.active .nav-icon { color: #ff8a70; }
.sidebar-note { margin-top: auto; padding: 17px; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; background: rgba(255,255,255,0.04); }
.sidebar-note .eyebrow { color: #ff9b84; }
.sidebar-note strong { display: block; margin: 5px 0; font-size: 13px; }
.sidebar-note p { margin: 0; color: #919db0; font-size: 11px; line-height: 1.55; }
.site-main { flex: 1; margin-left: 248px; min-width: 0; }
.content-wrap { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 48px 0 80px; }
.sidebar-dim { display: none; }
.mobile-menu-button { display: none; width: 42px; height: 42px; padding: 10px; border: 0; border-radius: 10px; background: var(--surface-soft); }
.mobile-menu-button span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 4px 0; background: var(--navy); }

.eyebrow { color: var(--brand); font-size: 11px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.page-heading h1 { margin: 6px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.035em; }
.page-heading p { max-width: 650px; margin: 0; color: var(--muted); font-size: 16px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin: 4px 0 0; font-size: 23px; line-height: 1.25; letter-spacing: -0.025em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }

.hero {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
	gap: 40px;
	min-height: 420px;
	padding: 54px;
	border-radius: 28px;
	background: var(--navy);
	color: #fff;
	box-shadow: 0 24px 70px rgba(24, 35, 56, 0.18);
}
.hero:after { content: ""; position: absolute; right: -130px; bottom: -170px; width: 430px; height: 430px; border: 1px solid rgba(255,255,255,0.14); border-radius: 50%; box-shadow: 0 0 0 65px rgba(255,255,255,0.025), 0 0 0 130px rgba(255,255,255,0.018); }
.hero-copy { position: relative; z-index: 1; align-self: center; }
.hero h1 { max-width: 720px; margin: 12px 0 20px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 5.7vw, 72px); line-height: 0.98; letter-spacing: -0.045em; }
.hero h1 em { color: #ff7b5d; font-style: normal; }
.hero-copy > p { max-width: 620px; margin: 0 0 28px; color: #b8c2d2; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-panel { position: relative; z-index: 1; align-self: center; padding: 26px; border: 1px solid rgba(255,255,255,0.13); border-radius: 18px; background: rgba(255,255,255,0.07); backdrop-filter: blur(12px); }
.code-dots { display: flex; gap: 6px; margin-bottom: 20px; }
.code-dots i { width: 7px; height: 7px; border-radius: 50%; background: #627089; }
.code-dots i:first-child { background: #ff7555; }
.code-line { height: 7px; margin: 12px 0; border-radius: 99px; background: #71809a; opacity: .55; }
.code-line.orange { width: 45%; background: #ff795b; opacity: 1; }
.code-line.teal { width: 70%; background: #47b8ad; opacity: .85; }
.code-line.short { width: 58%; }
.hero-stat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 25px; overflow: hidden; border-radius: 12px; background: rgba(255,255,255,.1); }
.hero-stat div { padding: 15px; background: rgba(20,30,48,.65); }
.hero-stat strong, .hero-stat span { display: block; }
.hero-stat strong { color: #fff; font-size: 19px; }
.hero-stat span { color: #8f9db2; font-size: 10px; font-weight: 700; text-transform: uppercase; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; transition: 150ms ease; }
.button:hover { transform: translateY(-1px); background: var(--brand-dark); }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.button-secondary { border-color: var(--navy); background: var(--navy); }
.button-secondary:hover { background: #293854; }
.button-outline { border-color: #cbd3dc; background: #fff; color: var(--ink); }
.button-outline:hover, .button-ghost:hover { border-color: #aeb8c5; background: #f7f8fa; }
.button-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.button-light { background: #fff; color: var(--navy); }
.button-light:hover { background: #f2f4f7; }
.button-danger { background: var(--red); }
.button-danger:hover { background: #a92f35; }
.button-small { min-height: 36px; padding: 0 13px; font-size: 12px; }
.button-icon { width: 38px; min-height: 38px; padding: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section { margin-top: 46px; }
.card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 25px rgba(24,35,56,.035); }
.card h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); }
.feature-card { position: relative; min-height: 210px; padding: 27px; transition: 180ms ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-number { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 24px; margin-bottom: 28px; border-radius: 99px; background: #fff0ec; color: var(--brand); font-size: 11px; font-weight: 900; }
.feature-card .arrow { position: absolute; right: 24px; bottom: 22px; color: var(--brand); font-size: 23px; }
.status-card { padding: 22px; }
.status-card span, .status-card strong { display: block; }
.status-card span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.status-card strong { margin-top: 8px; font-size: 24px; }
.status-value { min-height: 36px; }
.status-ok { color: var(--green); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { display: grid; gap: 7px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label, .field-label { color: #344054; font-size: 12px; font-weight: 800; }
.required { color: var(--brand); }
.input, .select, .textarea { width: 100%; border: 1px solid #cfd6df; border-radius: 10px; background: #fff; color: var(--ink); outline: none; transition: 140ms ease; }
.input, .select { height: 44px; padding: 0 13px; }
.textarea { min-height: 120px; padding: 12px 13px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,90,54,.11); }
.field-help { color: #8a94a5; font-size: 11px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 15px; min-height: 44px; align-items: center; }
.choice { display: inline-flex; align-items: center; gap: 7px; color: #475467; font-size: 13px; cursor: pointer; }
.choice input { width: 17px; height: 17px; accent-color: var(--brand); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-message { display: none; padding: 11px 13px; border-radius: 9px; font-size: 12px; font-weight: 700; }
.form-message.show { display: block; }
.form-message.error { background: #fff0f1; color: var(--red); }

.toolbar { display: grid; grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(130px, .55fr)) auto; gap: 10px; align-items: end; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.toolbar .form-field { gap: 4px; }
.table-card { overflow: hidden; padding: 0; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.data-table th { padding: 13px 16px; background: #f7f8fa; border-bottom: 1px solid var(--line); color: #667085; font-size: 10px; font-weight: 900; text-align: left; text-transform: uppercase; letter-spacing: .08em; }
.data-table td { padding: 16px; border-bottom: 1px solid #edf0f3; color: #475467; font-size: 13px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfcfd; }
.data-title { display: block; color: var(--ink); font-weight: 800; }
.data-description { display: block; max-width: 350px; overflow: hidden; color: #7b8493; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.table-actions { display: flex; gap: 6px; justify-content: flex-end; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 99px; background: #eef1f5; color: #586579; font-size: 10px; font-weight: 900; }
.badge-guide { background: #e8f4f3; color: var(--teal); }
.badge-ui { background: #fff0ec; color: var(--brand-dark); }
.badge-api { background: #edf0fa; color: #4f5ead; }
.badge-active { background: #e8f5ee; color: var(--green); }
.badge-inactive { background: #f0f1f3; color: #697386; }
.table-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 18px; border-top: 1px solid var(--line); background: #fff; }
.result-count { color: var(--muted); font-size: 12px; }
.pagination { display: flex; gap: 5px; }
.page-button { min-width: 34px; height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #475467; cursor: pointer; }
.page-button.active { border-color: var(--navy); background: var(--navy); color: #fff; }

.empty-state, .error-state { display: none; padding: 58px 24px; text-align: center; }
.empty-state.show, .error-state.show { display: block; }
.state-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 17px; background: #f0f2f5; color: #7c8798; font-family: Georgia, serif; font-size: 28px; }
.error-state .state-icon { background: #fff0f1; color: var(--red); }
.empty-state h3, .error-state h3 { margin: 0 0 7px; }
.empty-state p, .error-state p { max-width: 480px; margin: 0 auto 18px; color: var(--muted); }

.modal { position: fixed; z-index: 80; inset: 0; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 24, 40, .58); }
.modal.open { display: flex; }
.modal-panel { width: min(660px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; border-radius: 19px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.modal-head { display: flex; justify-content: space-between; gap: 20px; padding: 21px 24px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 19px; }
.modal-close { width: 34px; height: 34px; border: 0; border-radius: 8px; background: #f1f3f5; color: #4c5768; font-size: 20px; cursor: pointer; }
.modal-body { padding: 24px; }

.component-demo { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 14px; }
.component-card { min-height: 230px; }
.component-card-wide { grid-column: span 2; }
.color-swatch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.color-swatch i { height: 54px; border-radius: 10px; }
.color-swatch i:nth-child(1) { background: var(--navy); }
.color-swatch i:nth-child(2) { background: var(--brand); }
.color-swatch i:nth-child(3) { background: var(--teal); }
.color-swatch i:nth-child(4) { background: var(--canvas); border: 1px solid var(--line); }
.inline-status { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.loading-sample { display: none; align-items: center; gap: 10px; margin-top: 15px; color: var(--muted); font-size: 12px; }
.loading-sample.show { display: flex; }
.spinner { width: 18px; height: 18px; border: 2px solid #d7dce3; border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.flow-list { display: grid; gap: 0; counter-reset: flow; }
.flow-item { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding-bottom: 24px; }
.flow-item:before { counter-increment: flow; content: counter(flow); position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 900; }
.flow-item:not(:last-child):after { content: ""; position: absolute; top: 34px; bottom: 0; left: 16px; width: 1px; background: var(--line); }
.flow-item strong { display: block; margin: 4px 0 2px; }
.flow-item p { margin: 0; font-size: 12px; }
.code-block { overflow-x: auto; padding: 20px; border-radius: 14px; background: #111a2a; color: #c5d0df; font-family: Consolas, monospace; font-size: 12px; line-height: 1.8; }
.code-block .accent { color: #ff896f; }
.login-wrap { display: grid; grid-template-columns: 1fr 420px; gap: 50px; align-items: center; min-height: calc(100vh - 230px); }
.login-copy h1 { margin: 12px 0 18px; font-family: Georgia, serif; font-size: clamp(42px, 6vw, 68px); line-height: 1; letter-spacing: -.04em; }
.login-copy p { max-width: 550px; color: var(--muted); font-size: 16px; }
.login-card { padding: 30px; border-top: 4px solid var(--brand); }
.demo-account { margin: 18px 0; padding: 13px; border-radius: 10px; background: #f6f7f9; color: #596477; font-size: 12px; }
.demo-account code { color: var(--brand-dark); font-weight: 900; }

@media (max-width: 1040px) {
	.content-wrap { width: min(100% - 40px, 1100px); }
	.hero { grid-template-columns: 1fr; }
	.hero-panel { max-width: 520px; }
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
	.toolbar { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.toolbar .form-field:first-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
	.site-header { height: 66px; padding: 0 18px; }
	.site-body { padding-top: 66px; }
	.site-sidebar { top: 66px; transform: translateX(-100%); transition: transform 180ms ease; }
	.menu-open .site-sidebar { transform: translateX(0); }
	.sidebar-dim { position: fixed; z-index: 25; inset: 66px 0 0; background: rgba(16,24,40,.45); }
	.menu-open .sidebar-dim { display: block; }
	.site-main { margin-left: 0; }
	.mobile-menu-button { display: block; order: -1; }
	.site-header .brand { min-width: auto; }
	.site-header .brand small { display: none; }
	.header-actions .run-badge { display: none; }
	.content-wrap { width: min(100% - 32px, 760px); padding-top: 30px; }
	.hero { min-height: auto; padding: 36px 28px; border-radius: 21px; }
	.grid-3 { grid-template-columns: 1fr; }
	.login-wrap { grid-template-columns: 1fr; gap: 25px; }
	.login-copy { padding-top: 25px; }
}

@media (max-width: 620px) {
	.brand-mark { width: 36px; height: 36px; border-radius: 11px 11px 11px 4px; font-size: 17px; }
	.brand strong { font-size: 14px; }
	.header-actions .button { min-height: 34px; padding: 0 10px; }
	.page-heading { align-items: flex-start; flex-direction: column; }
	.page-heading h1 { font-size: 36px; }
	.hero h1 { font-size: 42px; }
	.hero-copy > p { font-size: 14px; }
	.hero-panel { padding: 20px; }
	.grid-2, .grid-4, .form-grid { grid-template-columns: 1fr; }
	.component-card-wide { grid-column: auto; }
	.toolbar { grid-template-columns: 1fr; }
	.toolbar .form-field:first-child { grid-column: auto; }
	.table-footer { align-items: flex-start; flex-direction: column; }
	.modal { padding: 10px; }
	.modal-panel { max-height: calc(100vh - 20px); }
	.modal-body { padding: 20px; }
	.form-actions { flex-direction: column-reverse; }
	.form-actions .button { width: 100%; }
}
