@font-face {
  font-family: "Builto Sans";
  src: url("/assets/fonts/builto-sans-vietnamese.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Builto Serif";
  src: url("/assets/fonts/builto-serif-vietnamese.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #050505;
  --surface: #0b0b0c;
  --surface-raised: #111214;
  --surface-soft: #17181b;
  --ink: #f2efe8;
  --ink-strong: #fffdf8;
  --muted: #98999e;
  --muted-strong: #bbbcc0;
  --line: #25262a;
  --line-bright: #3a3c41;
  --accent: #2864ff;
  --accent-soft: #a9beff;
  --amber: #e89836;
  --danger: #ff746c;
  --success: #67c491;
  --radius: 10px;
  --page: min(1320px, calc(100vw - 64px));
  font-family: "Builto Sans", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body { margin: 0; overflow-x: hidden; background: var(--black); color: var(--ink); }
body, button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button, input { border-radius: var(--radius); }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.site-shell { min-height: 100vh; overflow: hidden; background: var(--black); }
.nav-wrap {
  width: var(--page);
  height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--ink-strong); font-weight: 720; letter-spacing: -.04em; font-size: 20px; }
.brand-mark { width: 27px; height: 27px; display: grid; place-items: center; color: var(--black); background: var(--ink-strong); font-size: 14px; font-weight: 850; border-radius: 50%; }
.nav-links { display: flex; gap: 34px; color: var(--muted); font-size: 12px; }
.nav-links a, .text-link { transition: color 180ms ease; }
.nav-links a:hover, .text-link:hover { color: var(--ink-strong); }
.nav-actions { display: flex; justify-content: flex-end; align-items: center; gap: 24px; font-size: 12px; }

.button {
  min-height: 48px;
  padding: 0 23px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: white;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: 720;
  font-size: 13px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.button:hover { background: #1f52d8; border-color: #1f52d8; transform: translateY(-2px); }
.button-small { min-height: 38px; padding: 0 17px; font-size: 12px; }
.button-light { background: var(--ink-strong); color: var(--black); border-color: var(--ink-strong); }
.button-light:hover { background: #dedbd4; border-color: #dedbd4; }
.button-full { width: 100%; border-radius: var(--radius); }
.button:disabled { opacity: .45; cursor: wait; transform: none; }

.eyebrow { margin: 0 0 22px; color: var(--muted-strong); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; font-weight: 680; }
.hero { width: var(--page); min-height: calc(100svh - 78px); margin: 0 auto; padding: clamp(72px, 9vw, 132px) 0 50px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-copy { width: min(940px, 100%); position: relative; z-index: 2; }
.hero h1, .section-heading h2, .process h2, .assurance h2, .final-cta h2 {
  font-family: "Builto Serif", Georgia, serif;
  font-weight: 440;
  letter-spacing: -.045em;
}
.hero h1 { margin: 0; color: var(--ink-strong); font-size: clamp(58px, 7vw, 104px); line-height: .93; }
.hero-lead { max-width: 590px; margin: 26px auto 0; color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.62; }
.hero-actions { margin-top: 31px; display: flex; justify-content: center; align-items: center; gap: 24px; }
.hero-actions .text-link { color: var(--muted-strong); font-size: 13px; }
.hero-stage { width: 100%; min-height: 590px; margin-top: 62px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.hero-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(5, 5, 5, .72)); pointer-events: none; }
.hero-stage > img { width: 100%; height: 100%; min-height: 590px; object-fit: cover; }
.hero-status { position: absolute; left: 5%; bottom: 6%; z-index: 2; width: min(290px, 50%); padding: 16px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: rgba(15, 16, 18, .86); backdrop-filter: blur(16px); display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; text-align: left; }
.hero-status span { color: var(--success); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.hero-status span i { width: 6px; height: 6px; display: inline-block; margin-right: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); }
.hero-status strong { grid-column: 1 / -1; font-size: 13px; }
.hero-status small { grid-column: 1 / -1; color: var(--muted); }
.proof-row { width: 100%; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); color: #6f7177; font-size: 12px; letter-spacing: .04em; }

.product, .infrastructure, .process, .assurance { width: var(--page); margin: 0 auto; padding: clamp(110px, 12vw, 190px) 0; }
.section-heading { display: grid; grid-template-columns: 1.55fr .65fr; gap: 10vw; align-items: end; margin-bottom: 70px; }
.section-heading h2 { margin: 0; font-size: clamp(50px, 6vw, 86px); line-height: .98; }
.section-heading p { margin: 0 0 8px; color: var(--muted); font-size: 15px; line-height: 1.72; }
.feature-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: 4px; }
.feature { min-width: 0; }
.feature-visual { height: 600px; overflow: hidden; background: var(--surface-raised); }
.feature-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.feature:hover .feature-visual img { transform: scale(1.018); }
.feature-large .feature-visual img { object-position: center; }
.feature-copy { padding: 26px 0 0; }
.feature-copy > span { display: block; color: var(--success); font-size: 10px; margin-bottom: 11px; }
.feature-copy h3 { margin: 0; font-family: "Builto Serif", Georgia, serif; font-size: 27px; font-weight: 480; letter-spacing: -.025em; }
.feature-copy p { max-width: 510px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.infrastructure { width: 100%; padding-left: max(32px, calc((100vw - min(1320px, calc(100vw - 64px))) / 2)); padding-right: max(32px, calc((100vw - min(1320px, calc(100vw - 64px))) / 2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #070708; }
.section-heading-wide { grid-template-columns: 1fr; }
.infra-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.infra-list { border-top: 1px solid var(--line); }
.infra-list article { padding: 23px 0; border-bottom: 1px solid var(--line); }
.infra-list h3 { margin: 0; font-family: "Builto Serif", Georgia, serif; font-size: 22px; font-weight: 470; }
.infra-list p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.infra-visual { min-height: 680px; margin: 0; position: relative; overflow: hidden; border-radius: 4px; background: var(--surface); }
.infra-visual img { width: 100%; height: 100%; min-height: 680px; object-fit: cover; }
.infra-visual figcaption { position: absolute; left: 6%; right: 6%; bottom: 5%; padding: 15px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: rgba(14,15,17,.84); backdrop-filter: blur(14px); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; }
.infra-visual figcaption strong { color: var(--ink); font-weight: 560; }

.process { display: grid; grid-template-columns: 1fr 1fr; gap: 11vw; }
.process header p { max-width: 480px; margin: 24px 0 0; color: var(--muted); line-height: 1.7; }
.process h2 { margin: 0; font-size: clamp(48px, 5vw, 76px); line-height: .98; }
.process ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process li { display: grid; grid-template-columns: 56px 1fr; padding: 25px 0; border-bottom: 1px solid var(--line); }
.process li > span { color: var(--amber); font-size: 10px; font-weight: 750; }
.process strong { font-family: "Builto Serif", Georgia, serif; font-size: 21px; font-weight: 480; }
.process p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.assurance { padding-top: 0; }
.assurance h2 { max-width: 600px; margin: 0 0 65px; font-size: clamp(44px, 5vw, 72px); line-height: 1; }
.assurance > div { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 58px; }
.assurance article { padding-top: 22px; border-top: 1px solid var(--line); }
.assurance i { width: 8px; height: 8px; display: block; margin-bottom: 30px; border-radius: 50%; background: var(--amber); }
.assurance h3 { margin: 0; font-size: 14px; }
.assurance p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }

.final-cta { width: var(--page); min-height: 620px; margin: 0 auto 34px; padding: clamp(48px, 8vw, 115px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; position: relative; overflow: hidden; background: var(--surface-raised); border: 1px solid var(--line); }
.final-cta::before { content: ""; position: absolute; width: 56%; aspect-ratio: 1; right: -17%; top: -44%; border: 1px solid #254fb9; border-radius: 50%; box-shadow: 0 0 140px rgba(40,100,255,.12); }
.final-cta p { margin: 0 0 24px; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.final-cta h2 { max-width: 980px; margin: 0 0 45px; font-size: clamp(55px, 7.5vw, 106px); line-height: .93; position: relative; }
.final-cta .button { position: relative; }

footer { width: var(--page); min-height: 530px; margin: 0 auto; padding: 66px 0 28px; position: relative; overflow: hidden; color: var(--muted); font-size: 11px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr auto; align-items: start; gap: 60px; position: relative; z-index: 1; }
.footer-top p { margin: 4px 0 0; }
.footer-top > div { display: grid; gap: 12px; }
.footer-wordmark { margin: 55px 0 -90px; color: #111215; font-family: "Builto Serif", Georgia, serif; font-size: clamp(180px, 30vw, 450px); line-height: .8; letter-spacing: -.08em; white-space: nowrap; }
.copyright { position: absolute; bottom: 28px; left: 0; margin: 0; }

.auth-view { min-height: 100vh; padding: 32px; display: grid; place-items: center; background: radial-gradient(circle at 70% 20%, #111a30 0, var(--black) 38%); color: var(--ink); position: relative; }
.auth-brand { position: absolute; top: 32px; left: 42px; }
.auth-card { width: min(500px, 100%); padding: 45px; border: 1px solid var(--line); border-radius: 14px; background: rgba(15,16,18,.93); box-shadow: 0 30px 100px rgba(0,0,0,.45); }
.auth-card h1 { margin: 0; font-family: "Builto Serif", Georgia, serif; font-size: 42px; line-height: 1.04; letter-spacing: -.04em; font-weight: 480; }
.auth-card > p:not(.eyebrow, .form-error, .auth-switch) { color: var(--muted); }
form { display: grid; gap: 18px; margin-top: 30px; }
label { display: grid; gap: 8px; color: var(--muted-strong); font-size: 11px; font-weight: 650; }
input { width: 100%; min-height: 48px; padding: 0 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-bright); outline: none; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(40,100,255,.16); }
.slug-input { display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid var(--line-bright); background: var(--surface); border-radius: var(--radius); }
.slug-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(40,100,255,.16); }
.slug-input input { border: 0; box-shadow: none; }
.slug-input span { padding-right: 14px; color: var(--muted); font-weight: 500; }
.form-error, .portal-error { min-height: 20px; color: var(--danger); font-size: 13px; }
.auth-switch { margin: 20px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.auth-switch a { color: var(--accent-soft); font-weight: 700; }

.portal, .admin-portal {
  --portal-body: #000;
  --portal-surface: #1b1b1b;
  --portal-surface-2: #282828;
  --portal-surface-3: #323232;
  --portal-border: #333;
  --portal-text: #ededed;
  --portal-bright: #f4f4f5;
  --portal-muted: #a1a1aa;
  --portal-subtle: #787878;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--portal-body);
  color: var(--portal-text);
  font-family: "Builto Sans", system-ui, sans-serif;
}
.admin-portal { min-height: 100vh; background: var(--portal-body); color: var(--portal-text); font-family: "Builto Sans", system-ui, sans-serif; }
.portal-toolbar {
  height: 44px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--portal-body);
  user-select: none;
}
.portal-toolbar .brand { height: 30px; padding: 0 8px 0 2px; gap: 7px; font-size: 12px; letter-spacing: 0; }
.portal-toolbar .brand-mark { width: 21px; height: 21px; border-radius: 6px; font-size: 11px; }
.portal-toolbar nav { display: flex; align-items: center; height: 28px; }
.portal-toolbar nav a { height: 28px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 8px; color: var(--portal-subtle); font-size: 11px; font-weight: 700; transition: color 150ms ease, background 150ms ease; }
.portal-toolbar nav a:hover { color: var(--portal-text); background: var(--portal-surface-2); }
.portal-toolbar nav a.active { color: var(--portal-text); }
.account-chip { margin-left: auto; display: grid; grid-template-columns: 24px minmax(0, auto) auto; gap: 8px; align-items: center; }
.account-chip > span { width: 24px; height: 24px; display: grid; place-items: center; background: var(--portal-surface-2); border: 1px solid var(--portal-border); border-radius: 8px; color: var(--portal-bright); font-size: 10px; font-weight: 800; }
.account-chip div { max-width: 190px; min-width: 0; display: flex; align-items: baseline; gap: 6px; }
.account-chip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.account-chip small { color: var(--portal-subtle); font-size: 9px; text-transform: capitalize; white-space: nowrap; }
.account-chip button { height: 26px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--portal-subtle); font-size: 10px; font-weight: 700; transition: color 150ms ease, background 150ms ease; }
.account-chip button:hover { color: var(--portal-text); background: var(--portal-surface-2); }
.portal-main { flex: 1; min-height: 0; padding: clamp(42px, 5vw, 56px) clamp(24px, 5vw, 56px) 72px; border-radius: 16px 16px 0 0; background: var(--portal-surface); }
.portal-container { width: min(1220px, 100%); margin: 0 auto; }
.portal-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.portal-header h1 { margin: 0; color: var(--portal-bright); font-size: clamp(40px, 4.4vw, 56px); line-height: 1.05; letter-spacing: 0; font-weight: 650; }
.portal-header p { margin: 6px 0 0; color: var(--portal-subtle); font-size: 15px; line-height: 1.45; }
.portal .button { min-height: 32px; padding: 0 12px; gap: 5px; border: 0; border-radius: 8px; background: var(--portal-bright); color: #171717; font-size: 11px; font-weight: 750; }
.portal .button:hover { background: #dedee1; transform: none; }
.portal .button:active { transform: translateY(1px); }
.portal .button:focus-visible, .site-actions a:focus-visible, .site-actions button:focus-visible, .portal-toolbar a:focus-visible, .portal-toolbar button:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--portal-body), 0 0 0 4px var(--portal-bright); }
.workspace-summary { margin: 24px 0; padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 270px); align-items: center; gap: 24px; border-radius: 12px; background: var(--portal-surface-2); }
.workspace-summary > div:first-child { display: grid; gap: 4px; }
.summary-label { color: var(--portal-subtle); font-size: 10px; font-weight: 650; }
.workspace-summary strong { color: var(--portal-text); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.quota-track { height: 4px; overflow: hidden; border-radius: 99px; background: var(--portal-surface-3); }
.quota-track i { height: 100%; display: block; width: 0; border-radius: inherit; background: var(--portal-bright); transition: width 300ms ease; }
.portal-error { min-height: 0; margin: 0 0 16px; }
.portal-error:empty { display: none; }
.site-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; background: transparent; border: 0; }
.site-card { min-height: 300px; padding: 20px; border: 1px solid transparent; border-radius: 14px; background: var(--portal-surface-2); display: flex; flex-direction: column; transition: background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.site-card:hover { background: #2b2b2b; border-color: rgba(255,255,255,.08); transform: translateY(-1px); }
.site-card.is-deploying { border-color: rgba(200,182,255,.22); }
.site-card.is-failed { border-color: rgba(239,68,68,.24); }
.site-card-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.site-identity { display: flex; align-items: center; gap: 9px; min-width: 0; }
.site-kind { color: var(--portal-subtle); font-size: 10px; font-weight: 650; }
.site-status { min-height: 22px; padding: 0 8px; display: inline-flex; align-items: center; gap: 6px; border-radius: 7px; color: var(--portal-muted); background: var(--portal-surface-3); font-size: 9px; font-weight: 750; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.site-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.site-status.healthy { color: #a7f3d0; background: rgba(52,211,153,.1); }
.site-status.pending { color: #c8b6ff; background: rgba(200,182,255,.1); }
.site-status.failed { color: #fca5a5; background: rgba(239,68,68,.1); }
.site-symbol { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--portal-border); color: var(--portal-bright); background: var(--portal-surface); font-size: 11px; font-weight: 800; border-radius: 9px; }
.site-card-body { margin: auto 0 20px; }
.site-card h2 { margin: 0 0 7px; color: var(--portal-bright); font-family: inherit; font-size: 21px; line-height: 1.15; letter-spacing: -.015em; font-weight: 650; text-wrap: balance; }
.site-domain { margin: 0; overflow: hidden; color: var(--portal-subtle); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.deployment-progress { margin: -4px 0 18px; display: grid; gap: 12px; }
.deployment-progress-copy { display: grid; gap: 4px; }
.deployment-progress-copy strong { color: var(--portal-text); font-size: 11px; }
.deployment-progress-copy span { color: var(--portal-subtle); font-size: 10px; line-height: 1.45; }
.deployment-track { height: 3px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.deployment-track i { border-radius: 10px; background: var(--portal-surface-3); }
.deployment-track.queued i:first-child, .deployment-track.provisioning i { background: #c8b6ff; }
.deployment-track.provisioning i:last-child { overflow: hidden; position: relative; background: var(--portal-surface-3); }
.deployment-track.provisioning i:last-child::after { content: ""; position: absolute; inset: 0; background: #c8b6ff; animation: deployment-sweep 1.4s ease-in-out infinite; transform-origin: left; }
.deployment-failure { margin: -4px 0 18px; color: #fca5a5; font-size: 10px; line-height: 1.5; }
.site-actions { min-height: 33px; margin-top: 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: flex-start; gap: 8px; }
.site-actions a, .site-actions button { min-height: 30px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 8px; font-size: 10px; font-weight: 750; transition: color 150ms ease, background 150ms ease, opacity 150ms ease; }
.site-actions .site-action-primary { background: var(--portal-bright); color: #171717; }
.site-actions .site-action-primary:hover { background: #dedee1; }
.site-action-secondary { background: transparent; color: var(--portal-muted); }
.site-action-secondary:hover { background: rgba(255,255,255,.08); color: var(--portal-text); }
.site-actions .site-action-progress { padding-left: 2px; background: transparent; color: #c8b6ff; opacity: 1; cursor: wait; }
.deployment-spinner { width: 12px; height: 12px; border: 2px solid rgba(200,182,255,.24); border-top-color: #c8b6ff; border-radius: 50%; animation: deployment-spin .8s linear infinite; }
.empty-state { grid-column: 1 / -1; min-height: 330px; padding: 72px 30px; border-radius: 14px; background: var(--portal-surface-2); display: grid; place-items: center; align-content: center; text-align: center; }
.empty-state h2 { margin: 0; color: var(--portal-bright); font-family: inherit; font-size: 21px; font-weight: 650; }
.empty-state p { max-width: 420px; margin: 8px 0 20px; color: var(--portal-subtle); font-size: 12px; line-height: 1.5; }
.portal dialog { border-color: var(--portal-border); border-radius: 14px; background: var(--portal-surface); color: var(--portal-text); }
.portal dialog::backdrop { background: rgba(0,0,0,.7); }
.portal .dialog-heading h2 { color: var(--portal-bright); font-family: inherit; font-size: 24px; font-weight: 650; letter-spacing: -.015em; }
.portal .dialog-heading .eyebrow { color: var(--portal-subtle); }
.portal label { color: var(--portal-muted); }
.portal input, .portal .slug-input { border-color: var(--portal-border); background: var(--portal-surface-2); color: var(--portal-text); }
.portal input:focus, .portal .slug-input:focus-within { border-color: var(--portal-muted); box-shadow: 0 0 0 2px rgba(255,255,255,.1); }
.portal .icon-button { border-color: var(--portal-border); border-radius: 8px; color: var(--portal-muted); }
.portal .icon-button:hover { color: var(--portal-text); background: var(--portal-surface-2); }
.portal .domain-list { border-color: var(--portal-border); background: var(--portal-border); }
.portal .domain-row { background: var(--portal-surface-2); }

#site-dialog { width: min(780px, calc(100vw - 32px)); }
.template-picker-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.template-picker-fieldset legend { color: var(--portal-muted); font-size: 11px; font-weight: 650; }
.template-picker-fieldset > p { margin: 4px 0 12px; color: var(--portal-subtle); font-size: 10px; font-weight: 500; }
.template-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.template-option { min-width: 0; padding: 8px; grid-template-columns: 1fr; gap: 8px; border: 1px solid var(--portal-border); border-radius: 12px; background: var(--portal-surface-2); cursor: pointer; transition: border-color 150ms ease, transform 150ms ease; }
.template-option:hover { border-color: var(--portal-muted); transform: translateY(-1px); }
.template-option:has(input:checked) { border-color: var(--portal-bright); box-shadow: 0 0 0 1px var(--portal-bright); }
.template-option input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.template-option img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; background: var(--portal-surface-3); }
.template-option-copy { display: grid; gap: 4px; padding: 2px 3px 4px; }
.template-option-copy strong { color: var(--portal-bright); font-size: 12px; }
.template-option-copy small { min-height: 30px; overflow: hidden; color: var(--portal-subtle); font-size: 10px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.template-picker-empty { grid-column: 1 / -1; margin: 0; padding: 18px; border-radius: 10px; background: var(--portal-surface-2); color: var(--portal-subtle); font-size: 11px; }

.admin-main { min-height: calc(100vh - 44px); }
.admin-container { width: min(1480px, 100%); margin: 0 auto; }
.admin-header { margin-bottom: 24px; }
.admin-portal .button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--portal-bright); color: #171717; font-size: 11px; font-weight: 750; }
.admin-metrics { margin-bottom: 16px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.admin-metric { min-width: 0; padding: 16px; display: grid; gap: 18px; border-radius: 12px; background: var(--portal-surface-2); }
.admin-metric span { color: var(--portal-subtle); font-size: 10px; font-weight: 650; }
.admin-metric strong { color: var(--portal-bright); font-size: 25px; font-variant-numeric: tabular-nums; }
.admin-panel { min-width: 0; margin-top: 12px; padding: 18px; border-radius: 14px; background: var(--portal-surface-2); }
.admin-panel-heading { margin-bottom: 16px; display: flex; justify-content: space-between; gap: 16px; }
.admin-panel-heading h2 { margin: 0; color: var(--portal-bright); font-size: 17px; }
.admin-panel-heading p { margin: 4px 0 0; color: var(--portal-subtle); font-size: 10px; }
.admin-template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-template-card { min-width: 0; display: grid; grid-template-columns: minmax(150px, 42%) minmax(0, 1fr); border: 1px solid var(--portal-border); border-radius: 12px; overflow: hidden; background: var(--portal-surface); }
.admin-template-card > img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.admin-template-copy { min-width: 0; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; }
.admin-template-meta { color: var(--portal-subtle); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.admin-template-copy h3 { margin: 8px 0 5px; color: var(--portal-bright); font-size: 16px; }
.admin-template-copy p { margin: 0 0 16px; color: var(--portal-muted); font-size: 10px; line-height: 1.5; }
.admin-template-copy select { width: 100%; min-height: 34px; margin-top: auto; padding: 0 10px; border: 1px solid var(--portal-border); border-radius: 8px; background: var(--portal-surface-2); color: var(--portal-text); font-size: 10px; }
.admin-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table-wrap table { width: 100%; border-collapse: collapse; font-size: 10px; }
.admin-table-wrap th { padding: 9px 10px; color: var(--portal-subtle); text-align: left; font-weight: 650; white-space: nowrap; }
.admin-table-wrap td { max-width: 260px; padding: 11px 10px; border-top: 1px solid var(--portal-border); color: var(--portal-muted); line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.admin-table-wrap td:first-child { color: var(--portal-text); font-weight: 650; }
.admin-table-wrap td input, .admin-table-wrap td select { width: 92px; min-height: 30px; margin: 2px 4px 2px 0; padding: 0 7px; border: 1px solid var(--portal-border); border-radius: 6px; background: var(--portal-surface-2); color: var(--portal-text); font: inherit; }
.admin-table-action { min-height: 30px; padding: 0 10px; border: 1px solid var(--portal-border); border-radius: 6px; background: var(--portal-surface-2); color: var(--portal-bright); font-size: 9px; cursor: pointer; white-space: nowrap; }

@keyframes deployment-spin { to { transform: rotate(360deg); } }
@keyframes deployment-sweep { 0%, 15% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }

dialog { width: min(520px, calc(100vw - 32px)); padding: 35px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); color: var(--ink); }
dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
.dialog-heading { display: flex; justify-content: space-between; gap: 20px; }
.dialog-heading .eyebrow { margin-bottom: 12px; }
.dialog-heading h2 { margin: 0; font-family: "Builto Serif", Georgia, serif; font-size: 32px; letter-spacing: -.035em; font-weight: 480; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line-bright); background: transparent; color: var(--ink); font-size: 22px; }
.domain-list { margin-top: 28px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.domain-row { padding: 14px; background: var(--surface); display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.domain-row strong { font-size: 13px; }
.domain-row small { display: block; color: var(--muted); margin-top: 4px; }
.domain-row button { border: 0; background: transparent; color: var(--accent-soft); font-size: 12px; font-weight: 700; }

@media (max-width: 1000px) {
  :root { --page: calc(100vw - 40px); }
  .nav-wrap { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero-stage, .hero-stage > img { min-height: 480px; }
  .section-heading { grid-template-columns: 1fr; gap: 28px; }
  .feature-grid { grid-template-columns: 1fr; gap: 60px; }
  .feature-visual { height: min(650px, 72vw); }
  .infra-layout { grid-template-columns: 1fr; }
  .infra-visual, .infra-visual img { min-height: 560px; }
  .process { grid-template-columns: 1fr; gap: 65px; }
  .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  :root { --page: calc(100vw - 28px); }
  .nav-wrap { height: 68px; }
  .nav-actions .text-link { display: none; }
  .button-small { min-height: 36px; padding: 0 13px; }
  .hero { min-height: auto; padding-top: 70px; }
  .hero h1 { font-size: clamp(44px, 12vw, 56px); }
  .hero-lead { font-size: 15px; }
  .hero-actions { align-items: center; flex-direction: column; }
  .hero-stage { margin-top: 45px; }
  .hero-stage, .hero-stage > img { min-height: 365px; }
  .hero-stage > img { object-position: center; }
  .hero-status { left: 14px; right: 14px; bottom: 14px; width: auto; max-width: none; }
  .proof-row { grid-template-columns: 1fr 1fr; gap: 18px; }
  .product, .process, .assurance { padding: 100px 0; }
  .infrastructure { padding: 100px 20px; }
  .section-heading { margin-bottom: 48px; }
  .section-heading h2, .process h2 { font-size: 49px; }
  .feature-visual { height: 95vw; }
  .feature:first-child .feature-visual { height: 64vw; }
  .infra-visual, .infra-visual img { min-height: 430px; }
  .infra-visual figcaption { flex-direction: column; }
  .assurance > div { grid-template-columns: 1fr; gap: 44px; }
  .final-cta { min-height: 520px; padding: 34px; }
  .final-cta h2 { font-size: 54px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-wordmark { margin-top: 70px; font-size: 42vw; }
  .portal-toolbar { height: 44px; }
  .portal-toolbar nav { display: none; }
  .account-chip div { display: none; }
  .portal-main { padding: 34px 18px 56px; border-radius: 12px 12px 0 0; }
  .portal-header { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .portal-header h1 { font-size: 40px; }
  .workspace-summary { grid-template-columns: 1fr; gap: 12px; }
  .site-grid { grid-template-columns: 1fr; }
  .template-picker, .admin-template-grid, .admin-split { grid-template-columns: 1fr; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-template-card { grid-template-columns: 1fr; }
  .auth-view { padding: 86px 16px 24px; place-items: start center; }
  .auth-card { padding: 32px 22px; }
  .auth-brand { top: 22px; left: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
