:root {
  --bg: #f3f6fb;
  --bg-deep: #0f1726;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #0f1726;
  --muted: #5d6778;
  --line: rgba(15, 23, 38, 0.12);
  --line-strong: rgba(15, 23, 38, 0.82);
  --blue: #1372ff;
  --green: #17c27b;
  --shell: min(1180px, calc(100vw - 32px));
  --shadow: 0 24px 60px rgba(15, 23, 38, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(19, 114, 255, 0.045), transparent 18%),
    linear-gradient(180deg, #f7f9fd 0%, var(--bg) 44%, #eef3fa 100%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.screen-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 38, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 38, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.7;
}

.ambient-band {
  position: fixed;
  border-radius: 999px;
  filter: blur(0);
  pointer-events: none;
  opacity: 0.5;
}

.ambient-band-a {
  top: 8%;
  right: -10%;
  width: min(42vw, 560px);
  height: min(42vw, 560px);
  background: radial-gradient(circle, rgba(19, 114, 255, 0.18), rgba(19, 114, 255, 0));
}

.ambient-band-b {
  left: -8%;
  bottom: 16%;
  width: min(34vw, 460px);
  height: min(34vw, 460px);
  background: radial-gradient(circle, rgba(23, 194, 123, 0.16), rgba(23, 194, 123, 0));
}

.shell {
  width: var(--shell);
  margin: 0 auto;
  padding: 18px 0 28px;
  position: relative;
  z-index: 1;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero,
.rack-section,
.contact-section {
  margin-top: 22px;
}

.hero { margin-top: 0; }

.hero-grid,
.rack-shell,
.contact-shell {
  display: grid;
  gap: 16px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: stretch;
}

.frame {
  position: relative;
  border: 1px solid rgba(15, 23, 38, 0.14);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.hero-copy,
.rack-preview,
.contact-copy,
.contact-form,
.blade-detail {
  padding: 28px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 640px;
}

.eyebrow,
.detail-label,
.note-key {
  margin: 0 0 14px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow,
.detail-label { color: var(--blue); }

h1,
h2,
.blade-name {
  margin: 0;
  font-family: Outfit, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  line-height: 0.92;
}

h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 0.98;
}

.lead,
.hero-points span,
.contact-copy p,
#blade-copy,
.form-note {
  color: var(--muted);
  line-height: 1.78;
}

.hero-actions,
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  font-weight: 800;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
  will-change: transform;
}

.button.primary {
  background: var(--bg-deep);
  color: #f4f7fb;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.62);
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.hero-points li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
}

.hero-points strong {
  font-size: 0.92rem;
  font-weight: 700;
}

.rack-preview {
  min-height: 640px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    linear-gradient(180deg, rgba(19, 114, 255, 0.05), rgba(19, 114, 255, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 252, 0.92));
}

.rack-topline,
.preview-blade,
.detail-chips,
.contact-notes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rack-topline,
.preview-blade,
.blade-code,
.blade-mini,
.detail-chips span,
.note-key,
.rack-overlay span,
.detail-media figcaption {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rack-topline,
.blade-mini,
.note-key,
.detail-media figcaption {
  color: var(--muted);
}

.rack-hero-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  min-height: 280px;
}

.rack-hero-media img,
.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rack-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.rack-overlay span {
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(15, 23, 38, 0.62);
  color: #f3f7fb;
}

.preview-blades {
  display: grid;
  gap: 10px;
}

.preview-blade {
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.96));
}

.blade-index,
.blade-state {
  font-weight: 700;
}

.blade-label {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}

.blade-state {
  color: var(--green);
}

.rack-shell {
  grid-template-columns: minmax(290px, 0.44fr) minmax(0, 0.56fr);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(19, 114, 255, 0.04), transparent 28%),
    rgba(255, 255, 255, 0.72);
}

.blade-column {
  display: grid;
  gap: 12px;
}

.blade-button {
  position: relative;
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 18px 22px;
  border: 1px solid rgba(15, 23, 38, 0.18);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.68), rgba(239, 245, 255, 0.98));
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}

.blade-button::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.28;
}

.blade-button:hover,
.blade-button:focus-visible,
.blade-button.is-active {
  transform: translateX(10px);
  border-color: rgba(19, 114, 255, 0.55);
  box-shadow: 0 18px 36px rgba(19, 114, 255, 0.1);
  outline: none;
}

.blade-button.is-active {
  background:
    linear-gradient(90deg, rgba(19, 114, 255, 0.08), rgba(255, 255, 255, 0.98));
}

.blade-code {
  color: var(--blue);
  font-weight: 800;
}

.blade-name {
  padding-right: 42px;
  font-size: 1.24rem;
  line-height: 1.08;
}

.blade-detail {
  display: grid;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(15, 23, 38, 0.04), rgba(15, 23, 38, 0)),
    rgba(255, 255, 255, 0.78);
}

.detail-copy {
  display: grid;
  gap: 14px;
}

.detail-copy h2 {
  max-width: 14ch;
}

.detail-copy p {
  margin: 0;
}

.detail-chips {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.detail-chips span {
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
}

.detail-media {
  margin: 0;
  overflow: hidden;
  min-height: 280px;
}

.detail-media figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 38, 0.62);
  color: #f1f6fb;
}

.contact-shell {
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  overflow: hidden;
}

.contact-copy {
  background:
    linear-gradient(180deg, rgba(23, 194, 123, 0.06), rgba(23, 194, 123, 0)),
    rgba(255, 255, 255, 0.72);
}

.contact-notes {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.contact-notes div {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.contact-form {
  display: grid;
  gap: 14px;
  border-left: 1px solid rgba(15, 23, 38, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  padding: 0.96rem 1rem;
}

textarea {
  min-height: 148px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(19, 114, 255, 0.18);
  border-color: var(--blue);
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-note {
  min-height: 24px;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (max-width: 1040px) {
  .hero-grid,
  .rack-shell,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .rack-preview {
    min-height: auto;
  }

  .contact-form {
    border-left: 0;
    border-top: 1px solid rgba(15, 23, 38, 0.12);
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(1180px, calc(100vw - 18px));
    padding: 10px 0 18px;
  }

  .meta-row,
  .rack-topline,
  .preview-blade,
  .rack-overlay {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy,
  .rack-preview,
  .contact-copy,
  .contact-form,
  .blade-detail,
  .rack-shell {
    padding: 18px;
  }

  .row.two {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 4.6rem);
  }

  h2 {
    max-width: none;
  }

  .button {
    width: 100%;
  }

  .blade-button:hover,
  .blade-button:focus-visible,
  .blade-button.is-active {
    transform: translateX(0);
  }

  .detail-media {
    min-height: 220px;
  }
}
