:root {
  color-scheme: dark;
  --bg: #080808;
  --surface: #121212;
  --surface-2: #191919;
  --line: rgba(255,255,255,.14);
  --line-strong: rgba(240,162,2,.45);
  --text: #f7f7f7;
  --muted: #b9b9b9;
  --accent: #f0a202;
  --accent-2: #ffcf5a;
  --success: #25d366;
  --danger: #e3342f;
  --shadow: 0 24px 70px rgba(0,0,0,.38);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(240,162,2,.18), transparent 34%),
    linear-gradient(90deg, rgba(98,199,232,.05), transparent 45%),
    var(--bg);
  scroll-behavior: smooth;
}

.fire-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .78;
  mix-blend-mode: screen;
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-2);
  cursor: pointer;
  font-weight: 900;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  min-height: 100vh;
  align-content: center;
  overflow: hidden;
  padding: 26px 18px 34px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.72)),
    radial-gradient(circle at 50% 20%, rgba(255,130,0,.22), transparent 36%),
    #050505;
}

.hero > *:not(.fire-canvas) {
  position: relative;
  z-index: 1;
}

.public-access {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 18px 42px;
}

.hero-mark {
  width: min(520px, 92vw);
  max-height: 44vh;
  height: auto;
  object-fit: contain;
  margin-bottom: 2px;
  filter:
    saturate(1.2)
    contrast(1.08)
    drop-shadow(0 0 28px rgba(255,180,0,.58))
    drop-shadow(0 0 82px rgba(255,80,0,.28));
  animation: logoIgnite 4.8s ease-in-out infinite;
}

.hero-kicker {
  margin-top: -8px;
}

.kicker {
  margin: 0 0 6px;
  color: var(--accent-2);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(3.2rem, 10vw, 8.4rem);
  line-height: .9;
  text-shadow:
    0 0 20px rgba(255,190,50,.36),
    0 0 58px rgba(255,96,0,.22);
  animation: titleHeat 5.8s ease-in-out infinite;
}

h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.hero-copy {
  max-width: 640px;
  margin: 14px auto 0;
  color: #f0e4cb;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.primary-link,
.secondary-link {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 900;
}

.primary-link {
  color: #101010;
  background: var(--accent);
  border-color: var(--accent);
}

.secondary-link {
  color: var(--text);
  background: rgba(18,18,18,.78);
}

.process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(920px, 100%);
  margin: 0 auto;
}

.process div {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(18,18,18,.72);
  backdrop-filter: blur(12px);
  text-align: left;
}

.process span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent-2);
  background: rgba(240,162,2,.1);
  font-weight: 900;
}

.process strong,
.process small {
  display: block;
}

.process small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.access-panel,
.session-panel {
  width: min(920px, 100%);
  margin-top: 18px;
  border: 1px solid var(--line);
  background: rgba(18,18,18,.82);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.access-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, 1fr);
  gap: 14px;
  padding: 16px;
  text-align: left;
}

.access-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.access-tabs {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.access-tab.active {
  color: #101010;
  background: var(--accent);
  border-color: var(--accent);
}

.access-form {
  grid-column: 2;
  display: grid;
  gap: 10px;
}

.validation-state {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid rgba(240,162,2,.4);
  background: rgba(240,162,2,.08);
}

.validation-state span,
.session-panel span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-2);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.validation-state strong,
.session-panel strong,
.session-panel small {
  display: block;
}

.validation-state p,
.session-panel small {
  margin: 6px 0 0;
  color: var(--muted);
}

.validation-state button {
  margin-top: 12px;
}

.session-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-right: auto;
  margin-left: auto;
  padding: 14px 16px;
  text-align: left;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.check-line span {
  margin-bottom: 0;
  line-height: 1.35;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 18px 28px;
}

.catalog-panel,
.order-panel,
.product,
.result {
  border: 1px solid var(--line);
  background: rgba(18,18,18,.9);
  box-shadow: var(--shadow);
}

.catalog-panel,
.order-panel {
  padding: 16px;
}

.order-panel {
  position: sticky;
  top: 12px;
  align-self: start;
}

.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

label span,
.totals span,
.line span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.search {
  width: min(320px, 42vw);
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--surface-2);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240,162,2,.16);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.filter {
  padding: 8px 12px;
}

.filter.active,
.primary {
  color: #101010;
  background: var(--accent);
  border-color: var(--accent);
}

.ghost {
  color: var(--text);
  background: rgba(255,255,255,.04);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 14px;
}

.product h3 {
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.product p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.42;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: rgba(240,162,2,.08);
}

.price-row strong,
.accent {
  color: var(--accent-2);
}

.product-actions {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  margin-top: auto;
}

.order-lines {
  display: grid;
  gap: 9px;
  min-height: 84px;
  max-height: 280px;
  overflow: auto;
  padding-right: 3px;
}

.line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}

.line strong {
  display: block;
}

.line button {
  width: 38px;
  min-height: 38px;
  color: #fff;
  border-color: rgba(227,52,47,.5);
  background: rgba(227,52,47,.16);
}

.empty {
  padding: 18px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(0,0,0,.18);
  text-align: center;
}

.totals {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.totals > div {
  min-height: 66px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}

.totals strong {
  font-size: 1.6rem;
}

.request-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.hidden-field {
  display: none;
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.result {
  margin-top: 14px;
  padding: 14px;
  border-color: rgba(37,211,102,.4);
  background: rgba(37,211,102,.08);
}

.result span {
  color: var(--success);
  font-weight: 900;
  text-transform: uppercase;
}

.result strong {
  display: block;
  margin-top: 5px;
  font-size: 1.3rem;
}

.result p {
  margin: 8px 0 0;
  color: var(--muted);
}

footer {
  padding: 28px 18px 36px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(380px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #101010;
  background: var(--accent);
  box-shadow: var(--shadow);
  font-weight: 900;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: .18s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@keyframes logoIgnite {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter:
      drop-shadow(0 0 24px rgba(255,180,0,.48))
      drop-shadow(0 0 70px rgba(255,80,0,.20));
  }

  50% {
    transform: translateY(-6px) scale(1.025);
    filter:
      drop-shadow(0 0 38px rgba(255,210,70,.72))
      drop-shadow(0 0 100px rgba(255,90,0,.35));
  }
}

@keyframes titleHeat {
  0%,
  100% {
    text-shadow:
      0 0 18px rgba(255,190,50,.30),
      0 0 52px rgba(255,96,0,.18);
  }

  50% {
    text-shadow:
      0 0 28px rgba(255,212,80,.55),
      0 0 74px rgba(255,96,0,.30);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark,
  h1 {
    animation: none;
  }
}

@media (max-width: 1040px) {
  .shell,
  .product-grid,
  .process,
  .access-panel {
    grid-template-columns: 1fr;
  }

  .access-tabs,
  .access-form {
    grid-column: 1;
  }

  .hero {
    min-height: 100svh;
  }

  .order-panel {
    position: static;
  }

  .panel-head {
    display: block;
  }

  .search {
    width: 100%;
    margin-top: 12px;
  }
}

@media (max-width: 620px) {
  .two-fields,
  .product-actions {
    grid-template-columns: 1fr;
  }

  .session-panel {
    display: grid;
  }
}
