/* NuxServers / Graphite. Presentation only; service and billing logic is unchanged. */
:root {
  color-scheme: dark;
  --paper: #202124;
  --bg: #202124;
  --sidebar: #232428;
  --charcoal: #28292e;
  --charcoal2: #303137;
  --surface: #28292e;
  --surface-2: #2d2e34;
  --surface-3: #37383f;
  --ink: #f3f3f5;
  --text: #f3f3f5;
  --soft: #c9cbd2;
  --muted: #a3a5af;
  --line: #40424a;
  --line-strong: #50515b;
  --orange: #bc5427;
  --orange-dark: #a64721;
  --orange-soft: #efa57e;
  --shadow: 0 12px 32px rgba(0, 0, 0, .12);
}
html, body { background: var(--paper); }
body::before { content: none; background: none; }
body[data-ui="public"] { color: var(--ink); -webkit-font-smoothing: antialiased; }
body[data-ui="public"] :is(a, button, input, select):focus-visible {
  outline: 2px solid var(--orange-soft);
  outline-offset: 4px;
}
body[data-ui="public"] :is(button, input, select) { font-family: var(--sans); }
.shell, .header { width: min(1320px, calc(100% - 80px)); }
.header { height: 100px; border-color: var(--line); }
.header .wordmark { width: 210px; height: 52px; }
.header nav { gap: 32px; }
.header nav a { color: var(--soft); font-size: 13px; }
.header nav a[aria-current="page"] { color: var(--ink); }
.header nav a[aria-current="page"]:not(.nav-action) {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 12px;
  text-decoration-thickness: 2px;
}
.header :is(.nav-action, .language-toggle) {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 11px 17px;
}
.header .language-toggle { padding: 11px 12px; }
.header :is(.nav-action, .language-toggle):hover { background: var(--surface-2); border-color: #73747e; }
.button { min-height: 50px; border-radius: 6px; gap: 20px; transition: background .18s, border-color .18s; }
.button.primary { background: var(--orange); color: #fff; }
.button.primary:hover { background: var(--orange-dark); }
.button.quiet { border: 1px solid var(--line-strong); background: transparent; color: var(--ink); }
.button.quiet:hover { background: var(--surface); border-color: #73747e; }
.overline { color: var(--orange-soft); font-size: 10px; letter-spacing: .12em; }

/* Homepage: a calm introduction and a compact, clearly grouped configurator. */
.home-hero {
  min-height: auto;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  grid-template-rows: auto;
  align-items: start;
  gap: 70px;
  padding-block: 72px 28px;
}
.hero-copy { padding-top: 48px; }
.home-hero h1 {
  font-size: clamp(48px, 4.6vw, 70px);
  line-height: 1.08;
  letter-spacing: -.055em;
  font-weight: 700;
  margin: 26px 0;
}
.home-hero h1 em { color: var(--orange-soft); font-weight: 500; }
.home-hero .intro { max-width: 490px; font-size: 16px; line-height: 1.85; }
.home-hero .actions { flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
  margin-top: 48px;
  padding-top: 28px;
  color: var(--soft);
  border-color: var(--line);
  font: 12px/1.5 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
.hero-foot span::before { width: 5px; height: 5px; margin-right: 10px; border-radius: 50%; background: var(--orange-soft); }
.configurator {
  min-width: 0;
  align-self: start;
  padding: 28px;
  background: var(--surface);
  border: 1px solid #45464f;
  border-radius: 12px;
  box-shadow: var(--shadow);
  scroll-margin-top: 24px;
}
.config-head { margin-bottom: 24px; padding-bottom: 22px; border-color: var(--line); gap: 16px; }
.config-head p { color: var(--muted); font-size: 10px; }
.config-head h2 { margin-top: 8px; font-size: 25px; font-weight: 650; letter-spacing: -.03em; }
.config-head > span { margin-top: 2px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.resource-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.resource-controls .control { min-width: 0; margin: 0; }
.control-label { display: grid; gap: 5px; margin-bottom: 12px; }
.control-label label { font-size: 12px; font-weight: 500; color: var(--soft); }
.control-label output { color: var(--ink); font: 650 16px/1.5 var(--sans); }
.control input[type="range"] { appearance: none; width: 100%; height: 24px; margin: 0; background: transparent; accent-color: var(--orange); }
.control input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: #555761; }
.control input[type="range"]::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; margin-top: -6px; border: 2px solid #f0a078; border-radius: 50%; background: var(--orange); }
.control input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: #555761; }
.control input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border: 2px solid #f0a078; border-radius: 50%; background: var(--orange); }
.scale { color: var(--muted); font: 10px/1.5 var(--sans); margin-top: 7px; }
.resource-controls .network-control { grid-column: 1/-1; padding: 20px 0 0; border-top: 1px solid var(--line); }
.network-control .control-label { display: flex; gap: 16px; }
.network-control output { font-size: 12px; color: var(--orange-soft); text-align: right; }
.network-scale { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; font-size: 9px; line-height: 1.6; }
.config-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding-top: 24px; margin-top: 24px; border-color: var(--line); }
.config-options > label {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 8px;
  padding: 0;
  border: 0;
}
.config-options > label:last-child { grid-column: 1/-1; }
.config-options span b { font-size: 12px; font-weight: 600; }
.config-options span small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.config-options em { grid-column: 2; grid-row: 1; align-self: start; color: var(--muted); font: 10px/1.5 var(--sans); text-align: right; }
.config-options select {
  grid-column: 1/-1;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #494b55;
  border-radius: 6px;
  background: #191a1e;
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}
.config-options select:hover { border-color: #73747e; }
.config-options option { background: #212226; color: var(--ink); }
.config-options option:disabled { color: #9698a3; }
.config-total { margin-top: 24px; padding-top: 24px; align-items: center; gap: 24px; border-top: 1px solid var(--line); }
.config-total small { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.config-total strong { font-size: 42px; font-weight: 650; letter-spacing: -.04em; }
.config-total strong em { color: var(--muted); font-size: 11px; letter-spacing: 0; }
.config-total > a { min-height: 46px; min-width: 155px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 6px; background: var(--orange); font-size: 12px; }
.config-total > a:hover { background: var(--orange-dark); }
.bandwidth-note { color: var(--muted); font: 10px/1.65 var(--sans); margin-top: 16px; }
.bandwidth-note b { color: var(--soft); }

/* Shared storefront surfaces: no grid, glow, green tint or offset shadows. */
:is(.catalog-hero, .platform-hero) { padding-block: 80px 52px; }
:is(.catalog-hero, .platform-hero, .inner-hero) h1 { max-width: 1050px; font-size: clamp(44px, 5.2vw, 70px); line-height: 1.09; letter-spacing: -.05em; }
:is(.catalog-hero, .platform-hero, .inner-hero) h1 em { color: var(--orange-soft); }
:is(.catalog-hero, .platform-hero) > p:last-child { font-size: 17px; color: var(--muted); }
:is(.catalog-filters, .server-table, .platform-console, .capability-grid, .api-band, .panel-preview) { border-color: var(--line); border-radius: 10px; background: var(--surface); }
.catalog-filters { padding: 24px; gap: 24px; }
:is(.filter-search label, .filter-group > span) { color: var(--muted); font-size: 10px; }
.filter-search input { background: #191a1e; border-color: #494b55; border-radius: 5px; }
.filter-chip { border-color: #494b55; border-radius: 5px; color: var(--soft); }
.filter-chip small { color: var(--muted); }
.filter-chip.active { background: #38291f; border-color: #a75b37; color: #f3b28e; }
.server-table { overflow: hidden; }
.server-head { background: #2a2b30; color: var(--muted); font: 600 10px var(--sans); letter-spacing: .04em; }
.server-row { padding: 24px; }
.server-row strong { font-size: 13px; }
.server-name strong { font-size: 15px; }
.server-row span { color: var(--muted); font-size: 11px; }
.server-name small { color: var(--orange-soft); }
.configure-server { min-height: 42px; border-color: #575963; border-radius: 6px; font-size: 12px; }
.server-config { background: #26272c; padding: 28px; }
:is(.ram-choice, .network-choice, .raid-choice) { min-width: 0; }
:is(.ram-choice, .network-choice, .raid-choice) select, .drive-bay { width: 100%; min-width: 0; max-width: 100%; background: #191a1e; border-color: #494b55; border-radius: 5px; }
:is(.ram-choice small, .drive-config span, .drive-grid label, .config-summary small, .catalog-note) { color: var(--muted); font-size: 11px; }
.config-summary { grid-template-columns: minmax(0, 1fr) auto auto; }
.config-summary a { border-radius: 6px; }
.console-sidebar { border-color: var(--line); }
.console-sidebar p, .console-main small { color: var(--muted); font-size: 10px; }
.capability-grid article { border-color: var(--line); }
.capability-grid h3 { margin-top: 32px; }
.capability-grid p { font-size: 14px; }
.api-band pre { background: #191a1e; border-color: var(--line); border-radius: 6px; color: var(--soft); }
.simple-footer { margin-top: 60px; padding-top: 38px; border-color: var(--line); }
.footer .wordmark { width: 185px; height: 48px; }
.footer p, .footer a, .footer > div { color: var(--muted); }
.footer > div { margin-top: 28px; font: 11px var(--sans); border-color: var(--line); }
.auth-card { padding: 42px; background: var(--surface); border-color: var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.login-page { padding-block: 70px; }
.login-page h1 { font-size: clamp(34px, 4vw, 50px); line-height: 1.14; }
.login-page p:not(.overline) { font-size: 15px; }
.login-form input { background: #191a1e; border-color: #494b55; border-radius: 6px; }
.register-passwords { align-items: start; }
.register-passwords > label { min-width: 0; align-content: start; }
.register-passwords input { width: 100%; min-width: 0; height: 48px; }
.auth-secondary { border-radius: 6px; border-color: var(--line-strong); }
.auth-order-summary { border-color: #76523e; border-radius: 6px; background: #2d251f; }
.checkout-page, .confirmation-page { padding-top: 72px; }
.checkout-heading h1, .confirmation-page h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.12; }
.checkout-card { background: var(--surface); border-color: var(--line); border-radius: 10px; box-shadow: none; }
.checkout-card > header { border-color: var(--line); }
:is(.checkout-totals > div, .checkout-wallet, .checkout-terms, .payment-footnote, .order-specs dt, .service-heading p, .billing-cycle) { color: var(--muted); }
:is(.checkout-totals > div, .checkout-wallet) { font-size: 12px; }
.payment-footnote { font-size: 11px; }
.payment-tabs { border-radius: 7px; border-color: var(--line); background: #191a1e; }
.payment-tabs button { border-radius: 4px; }
.payment-tabs button[aria-selected="true"] { background: #3a2a22; border-color: #a75b37; color: #f3b28e; }
.promo-form input { background: #191a1e; border-color: #494b55; border-radius: 5px 0 0 5px; }
.promo-form button { border-radius: 0 5px 5px 0; background: var(--orange); }
.checkout-submit { border-radius: 6px; background: var(--orange); border-color: var(--orange); }

/* Client/admin areas retain their layouts and console sizing, with matching neutral surfaces. */
body[data-ui="panel"] { background: var(--bg); }
.control-sidebar { background: var(--sidebar); border-color: var(--line); }
.control-sidebar::before { content: none; }
.control-topbar { background: var(--bg); backdrop-filter: none; border-color: var(--line); }
.workspace-block { background: #24252a; border-color: var(--line); border-radius: 6px; }
.panel-nav, .admin-nav-link { color: var(--muted); }
.panel-nav.active, .admin-nav-link.active { border-color: #494b55; background: #2b2c32; }
:is(.metric-card, .asset-card, .detail-panel, .admin-section, .table-card, .config-panel, .help-grid article, .panel-dialog, .service-choice, .empty-state) {
  background: var(--surface);
  border-color: var(--line);
  border-radius: 8px;
}
.metric-card > span { color: var(--muted); }
.sidebar-health { background: #24252a; border-radius: 6px; }
.pending-order-banner { background: #2b2521; border-color: #71503c; border-radius: 8px; }
:is(.view-filters button.active, .metrics-periods button.active) { background: var(--surface-3); }
:is(.settings-form input, .settings-form select, .policy-form input, .policy-form select, .iso-upload-form input[type="file"]) { background: #191a1e; border-color: #494b55; border-radius: 5px; }
:is(.settings-status, .metric-history-card, .metrics-periods, .policy-column, .console-module, .credential-list code, .ip-spec code) { background: #1b1c20; border-color: var(--line); border-radius: 5px; }
.provisioning-progress { background: #2b2521; border-color: #71503c; }
.credit-balance, .refund-history article { background: var(--surface); border-color: var(--line); border-radius: 7px; }

@media (min-width: 1101px) {
  .hero-copy { position: sticky; top: 48px; }
}
@media (max-width: 1100px) {
  .shell, .header { width: calc(100% - 56px); }
  .home-hero { gap: 36px; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .home-hero h1 { font-size: 48px; }
  .configurator { padding: 22px; }
  .resource-controls { gap: 16px 12px; }
  .config-options { grid-template-columns: 1fr; gap: 16px; }
  .config-head h2 { font-size: 22px; }
  .config-head > span { display: none; }
  .hero-foot { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .header { height: 84px; }
  .header nav { top: 74px; border-color: var(--line); border-radius: 8px; background: #212226; box-shadow: var(--shadow); gap: 8px; }
  .header nav a[aria-current="page"]:not(.nav-action) { text-underline-offset: 5px; }
  .home-hero { grid-template-columns: minmax(0, 1fr); padding-top: 48px; gap: 36px; }
  .hero-copy { padding: 0; }
  .home-hero h1 { font-size: clamp(46px, 8vw, 64px); }
  .home-hero .intro { max-width: 640px; }
  .hero-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; padding-top: 22px; }
  .configurator { max-width: none; padding: 28px; }
  .config-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .config-head > span { display: block; }
  .catalog-hero, .platform-hero { padding-block: 55px 36px; }
  .api-band { padding: 32px; }
}
@media (max-width: 600px) {
  .shell, .header { width: calc(100% - 36px); }
  .header .wordmark { width: 180px; height: 45px; }
  .home-hero { padding-top: 36px; }
  .home-hero h1 { font-size: 44px; margin-block: 22px; }
  .home-hero .intro { font-size: 15px; }
  .home-hero .actions { flex-direction: column; }
  .home-hero .button { width: 100%; }
  .hero-foot { gap: 14px 10px; font-size: 11px; }
  .hero-foot span::before { margin-right: 7px; }
  .configurator { padding: 20px; border-radius: 10px; }
  .config-head { align-items: center; }
  .config-head h2 { font-size: 23px; }
  .config-head > span { display: none; }
  .resource-controls { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .control-label { display: flex; align-items: center; gap: 12px; }
  .control-label label { font-size: 13px; }
  .control-label output { font-size: 15px; }
  .network-control .control-label { display: grid; gap: 5px; }
  .network-control output { font-size: 12px; text-align: left; }
  .network-scale { font-size: 9px; gap: 8px; }
  .config-options { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .config-options em { grid-column: 2; grid-row: 1; }
  .config-options select { font-size: 16px; min-height: 46px; }
  .login-form input { font-size: 16px; }
  .config-total { gap: 16px; flex-wrap: wrap; }
  .config-total > a { min-width: 125px; margin: 0; padding: 12px; }
  .config-total strong { font-size: 38px; }
  .simple-footer { margin-top: 36px; padding-top: 28px; }
  .footer nav { flex-wrap: wrap; gap: 18px; }
  .catalog-filters { padding: 20px; gap: 20px; }
  .config-summary { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .dedicated-price { text-align: left; }
  .auth-card { padding: 28px 20px; }
  .login-page { padding-block: 40px; }
  .checkout-page, .confirmation-page { padding-top: 42px; }
  .promo-form button { border-radius: 0 0 5px 5px; }
  .promo-form input { border-radius: 5px 5px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .asset-card { transition: none; }
}
