@import url('../kit/fonts.css?v=1');

:root {
  color-scheme: dark;
  --bg: #080b11;
  --panel: #0e131c;
  --panel-raised: #121a25;
  --steel: #9aa8b8;
  --steel-bright: #d7e0e9;
  --text: #e8edf3;
  --muted: #8492a3;
  --blue: #4b8cff;
  --cyan: #66e4ff;
  --violet: #ad7aff;
  --line: rgba(195, 215, 238, 0.12);
  --font-display: 'Orbitron', 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(52, 104, 178, 0.14), transparent 40rem),
    radial-gradient(ellipse at 95% 48%, rgba(75, 43, 125, 0.08), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
}

a { color: inherit; }

.site-header {
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(8, 11, 17, 0.9);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  color: var(--cyan);
  font: 700 25px/1 var(--font-display);
  text-shadow: 0 0 18px rgba(102, 228, 255, 0.48);
}

.brand-name {
  color: var(--steel-bright);
  font: 700 13px/1.1 var(--font-display);
  letter-spacing: 0.12em;
}

.brand-name small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font: 500 9px/1 var(--font-mono);
  letter-spacing: 0.16em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 38px);
}

.site-nav a,
.header-status,
.eyebrow,
.spec-label,
.preview-topline,
.preview-footer,
.control-heading,
.card-index,
.gate-status,
.printer-readout strong,
.site-footer {
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

.site-nav a {
  color: var(--muted);
  font-size: 10px;
  text-decoration: none;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(102, 228, 255, 0.35);
}

.header-status {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.status-light {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 12px rgba(173, 122, 255, 0.6);
  vertical-align: 1px;
}

.hero {
  min-height: 480px;
  padding: 90px clamp(20px, 9vw, 140px) 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  width: 42vw;
  height: 42vw;
  max-width: 620px;
  max-height: 620px;
  position: absolute;
  right: 7%;
  top: 0;
  background: radial-gradient(circle, rgba(47, 105, 179, 0.13), transparent 68%);
  pointer-events: none;
}

.hero-copy,
.hero-spec { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 10px;
}

.hero h1 {
  margin: 0;
  color: var(--steel-bright);
  font: 700 clamp(58px, 10vw, 118px)/0.98 var(--font-display);
  letter-spacing: 0.04em;
  text-shadow: 0 8px 36px rgba(7, 9, 14, 0.7);
}

.accent { color: var(--cyan); }

.hero-lead {
  margin: 18px 0 0;
  color: #c8d3df;
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 400;
}

.hero-body {
  max-width: 540px;
  margin: 14px 0 26px;
  color: var(--muted);
  font-size: 14px;
}

.primary-link,
.primary-button {
  color: #eaf8ff;
  background: linear-gradient(100deg, rgba(40, 100, 177, 0.45), rgba(69, 54, 117, 0.3));
  text-decoration: none;
  transition: color 160ms ease, text-shadow 160ms ease, opacity 160ms ease;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.12em;
}

.primary-link:hover,
.primary-button:hover {
  color: #fff;
  text-shadow: 0 0 14px rgba(102, 228, 255, 0.6);
}

.hero-spec {
  min-width: 300px;
  padding-left: 26px;
}

.spec-label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 9px;
}

.hero-spec dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.hero-spec dl div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: baseline;
}

.hero-spec dt {
  color: var(--muted);
  font: 9px var(--font-mono);
}

.hero-spec dd {
  margin: 0;
  color: var(--steel-bright);
  font: 500 15px/1.35 var(--font-display);
}

.hero-spec p {
  max-width: 320px;
  margin: 14px 0 0;
  color: #d49b7b;
  font-size: 11px;
}

.design-section,
.validation-section,
.printer-section,
.catalog-notice {
  padding: 66px clamp(20px, 7vw, 104px);
}

.design-section { background: rgba(9, 13, 20, 0.72); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading h2,
.printer-section h2,
.catalog-notice h2 {
  margin: 0;
  color: var(--steel-bright);
  font: 500 clamp(23px, 3vw, 34px)/1.2 var(--font-display);
  letter-spacing: 0.02em;
}

.section-note {
  margin: 0 0 4px;
  color: var(--muted);
  font: 10px var(--font-mono);
  letter-spacing: 0.08em;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.8fr);
  gap: clamp(26px, 4vw, 60px);
  align-items: stretch;
}

.preview-panel {
  min-height: 510px;
  padding: 18px 22px 14px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(65, 103, 146, 0.14), transparent 58%),
    linear-gradient(145deg, rgba(22, 31, 43, 0.78), rgba(10, 14, 20, 0.9));
}

.preview-topline,
.preview-footer,
.control-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
}

.text-button {
  border: 0;
  padding: 6px 0;
  color: var(--steel);
  background: none;
  font: 10px var(--font-mono);
  letter-spacing: 0.08em;
  cursor: pointer;
}

.text-button:hover,
.text-button:focus-visible { color: var(--cyan); }

#kumi-preview {
  width: 100%;
  min-height: 400px;
  flex: 1;
  touch-action: none;
  cursor: grab;
  outline: none;
}

#kumi-preview:active { cursor: grabbing; }

#kumi-preview:focus-visible { filter: drop-shadow(0 0 8px rgba(102, 228, 255, 0.2)); }

.preview-footer { padding-top: 10px; }

.concept-tag {
  color: var(--violet);
  font-size: 8px;
}

.controls-panel {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 8px 0;
}

.control-heading {
  padding-bottom: 10px;
  color: var(--steel-bright);
}

.control-heading h3 {
  margin: 0;
  font: 500 12px var(--font-display);
  letter-spacing: 0.12em;
}

.control-heading span { color: var(--muted); font-size: 9px; }

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.input-grid label,
.select-label {
  display: block;
  color: #b7c3d0;
  font-size: 11px;
}

.input-grid label span {
  float: right;
  color: var(--muted);
  font: 9px var(--font-mono);
}

input,
select {
  width: 100%;
  min-height: 38px;
  margin-top: 5px;
  padding: 7px 2px;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--steel-bright);
  background: rgba(255, 255, 255, 0.045);
  font: 12px var(--font-mono);
}

input:focus,
select:focus { box-shadow: 0 2px 0 var(--cyan); }

select { color-scheme: dark; }

.primary-button {
  min-height: 42px;
  margin-top: 5px;
  border: 0;
  padding: 11px 15px;
  font: 600 10px var(--font-mono);
  letter-spacing: 0.12em;
  cursor: pointer;
}

.control-status {
  min-height: 40px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.coupon-section {
  padding: 66px clamp(20px, 7vw, 104px);
  background: linear-gradient(110deg, rgba(20, 29, 42, 0.58), rgba(9, 13, 20, 0.82));
}

.coupon-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}

.coupon-description,
.coupon-warning {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.coupon-warning {
  margin-top: 20px;
  color: #d49b7b;
  font-size: 11px;
}

.coupon-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coupon-controls label {
  color: #b7c3d0;
  font-size: 11px;
}

.coupon-controls label span {
  float: right;
  color: var(--muted);
  font: 9px var(--font-mono);
}

.coupon-controls input { margin-top: 0; }

.clearance-note {
  margin: -7px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.coupon-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.coupon-actions .primary-button { margin: 0; }

.gate-status {
  color: #e3a377;
  font-size: 9px;
}

.validation-section { padding-top: 82px; padding-bottom: 82px; }

.validation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 36px;
}

.validation-grid article { padding-top: 8px; }

.card-index {
  color: var(--cyan);
  font-size: 9px;
}

.validation-grid h3 {
  margin: 12px 0 8px;
  color: var(--steel-bright);
  font: 500 16px var(--font-display);
}

.validation-grid p,
.printer-section > div > p:last-child,
.catalog-notice > p:last-child {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.printer-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(100deg, rgba(24, 39, 57, 0.42), rgba(12, 14, 24, 0.3));
}

.printer-section h2 { margin-bottom: 12px; }

.printer-readout {
  display: flex;
  align-items: center;
  min-width: 270px;
  gap: 12px;
  color: var(--cyan);
}

.printer-readout strong,
.printer-readout small { display: block; }

.printer-readout strong { font-size: 9px; }

.printer-readout small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.catalog-notice { text-align: center; }

.catalog-notice h2 { margin-bottom: 12px; }

.catalog-notice > p:last-child { max-width: 560px; margin: 0 auto; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 76px);
  color: var(--muted);
  font-size: 8px;
}

.site-footer a {
  color: var(--steel);
  text-decoration: none;
}

.site-footer a:hover { color: var(--cyan); }

@media (max-width: 800px) {
  .site-header { min-height: 68px; gap: 16px; }
  .site-nav { display: none; }
  .header-status { margin-left: auto; font-size: 8px; }
  .hero { min-height: 0; padding-top: 70px; padding-bottom: 62px; align-items: start; flex-direction: column; gap: 36px; }
  .hero-spec { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 20px; padding: 0; }
  .spec-label { flex-basis: 100%; margin: 0; }
  .hero-spec dl { width: 100%; }
  .hero-spec p { flex-basis: 100%; margin-top: 0; }
  .workbench { grid-template-columns: 1fr; }
  .preview-panel { min-height: 410px; }
  #kumi-preview { min-height: 320px; }
  .validation-grid { grid-template-columns: 1fr; gap: 24px; }
  .coupon-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-status { max-width: 110px; white-space: normal; text-align: right; line-height: 1.4; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .design-section,
  .validation-section,
  .printer-section,
  .catalog-notice { padding-right: 20px; padding-left: 20px; }
  .preview-panel { min-height: 360px; padding-right: 12px; padding-left: 12px; }
  #kumi-preview { min-height: 280px; }
  .printer-section { align-items: start; flex-direction: column; }
  .coupon-section { padding-right: 20px; padding-left: 20px; }
  .site-footer { flex-wrap: wrap; }
}

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