@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #081120;
  --bg-soft: rgba(13, 22, 38, 0.82);
  --panel: rgba(14, 24, 42, 0.94);
  --panel-strong: rgba(22, 35, 58, 0.98);
  --text: #edf2ff;
  --muted: #9cb0d0;
  --line: rgba(152, 171, 205, 0.18);
  --accent: #f3b23f;
  --accent-soft: rgba(243, 178, 63, 0.16);
  --success: #4dd4a4;
  --danger: #ff7b7b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(243, 178, 63, 0.24), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(76, 183, 255, 0.14), transparent 22%),
    linear-gradient(160deg, #050814 0%, #081120 44%, #101a2f 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 92%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(243, 178, 63, 0.22), rgba(76, 183, 255, 0.18));
  border: 1px solid rgba(243, 178, 63, 0.26);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.brand-copy strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--text);
  border-color: rgba(243, 178, 63, 0.28);
  background: rgba(243, 178, 63, 0.08);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 20px;
  margin-bottom: 24px;
}

.page-hero .hero-copy,
.page-hero .hero-panel {
  min-height: 100%;
}

.hero-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
}

.hero-bullets {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-bullets li {
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}

.hero-bullets li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 10px;
}

.surface-grid {
  display: grid;
  gap: 20px;
}

.featured-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

.featured-intro {
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.7;
}

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

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.metric-tile {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 28, 48, 0.94), rgba(10, 17, 30, 0.97));
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.metric-tile.accent {
  background: linear-gradient(135deg, rgba(243, 178, 63, 0.18), rgba(243, 178, 63, 0.08));
  border-color: rgba(243, 178, 63, 0.3);
}

.metric-label,
.story-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
}

.metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

.metric-note,
.story-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.story-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

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

.story-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 28, 48, 0.96), rgba(10, 17, 30, 0.98));
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.story-card.accent {
  background: linear-gradient(135deg, rgba(76, 183, 255, 0.16), rgba(17, 28, 48, 0.97));
  border-color: rgba(76, 183, 255, 0.3);
}

.story-footnote {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
}

.featured-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 28, 48, 0.96), rgba(10, 17, 30, 0.98));
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow);
}

.featured-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.featured-card h3 {
  margin-top: 10px;
}

.featured-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.table-list {
  display: grid;
  gap: 12px;
}

.table-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.table-row strong {
  display: block;
}

.table-row span {
  color: var(--muted);
}

.product-detail-btn {
  margin-top: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 8, 20, 0.72);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.modal-shell {
  width: min(920px, 100%);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 28, 48, 0.98), rgba(10, 17, 30, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-hero {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.modal-content {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.modal-meta {
  color: var(--muted);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-close {
  min-width: 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.modal-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-grid {
  display: grid;
  gap: 20px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 20px;
}

.checkout-summary {
  display: grid;
  align-content: start;
  gap: 16px;
}

.summary-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.summary-card strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
}

.summary-note {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(243, 178, 63, 0.22);
  background: rgba(243, 178, 63, 0.08);
}

.summary-note strong {
  display: block;
  margin-bottom: 8px;
}

.summary-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.kpi-card {
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 29, 49, 0.95), rgba(9, 15, 28, 0.95));
  box-shadow: var(--shadow);
}

.kpi-card span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.kpi-card strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.kpi-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.hero-panel,
.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 28, 48, 0.92), rgba(10, 17, 30, 0.96));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-copy {
  border-radius: 30px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: '';
  position: absolute;
  inset: auto -18% -32% auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(243, 178, 63, 0.22), transparent 70%);
  filter: blur(14px);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.95;
  margin-bottom: 18px;
}

.hero-text {
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 24px;
}

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

.auth-panel {
  margin: 18px 0 32px;
}

.auth-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.auth-summary p {
  margin: 4px 0 0;
  color: var(--muted);
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.auth-card {
  background: rgba(9, 15, 28, 0.74);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  display: grid;
  gap: 14px;
}

.auth-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.primary-btn,
.secondary-btn,
.chip {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.primary-btn,
.secondary-btn {
  min-height: 46px;
  padding: 0 18px;
}

.primary-btn {
  border: 1px solid rgba(243, 178, 63, 0.55);
  background: linear-gradient(135deg, #f3b23f, #f7d06e);
  color: #1a1407;
}

.secondary-btn {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.primary-btn:hover,
.secondary-btn:hover,
.chip:hover {
  transform: translateY(-1px);
}

.hero-panel {
  border-radius: 30px;
  padding: 22px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.hero-card {
  padding: 18px 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.hero-card span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero-card strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.2rem, 2vw, 2rem);
}

.hero-card.accent {
  background: linear-gradient(135deg, rgba(243, 178, 63, 0.18), rgba(243, 178, 63, 0.06));
  border-color: rgba(243, 178, 63, 0.3);
}

.layout {
  display: grid;
  gap: 24px;
}

.panel {
  border-radius: 28px;
  padding: 24px;
}

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

.section-heading.compact {
  margin-bottom: 18px;
}

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
}

.chip.active {
  border-color: rgba(243, 178, 63, 0.5);
  color: var(--text);
  background: rgba(243, 178, 63, 0.12);
}

.status-message {
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 18px;
  color: var(--muted);
}

.form-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(243, 178, 63, 0.35);
  background: rgba(243, 178, 63, 0.08);
  color: var(--muted);
}

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

.product-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 33, 54, 0.92), rgba(10, 17, 31, 0.96));
}

.product-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(243, 178, 63, 0.22), rgba(76, 183, 255, 0.14));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder-mark {
  width: 76%;
  height: 76%;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  padding: 16px;
  background: linear-gradient(135deg, rgba(15, 24, 38, 0.92), rgba(30, 50, 78, 0.88));
}

.placeholder-mark strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.product-body {
  padding: 18px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
}

.product-body p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
}

.spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-pill {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text);
  font-size: 0.82rem;
}

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

[hidden] {
  display: none !important;
}

.form-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(153, 173, 205, 0.2);
  background: rgba(7, 13, 25, 0.72);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(243, 178, 63, 0.55);
  box-shadow: 0 0 0 4px rgba(243, 178, 63, 0.1);
}

textarea {
  resize: vertical;
}

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

.block {
  width: 100%;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.stack-list {
  display: grid;
  gap: 12px;
}

.stack-card {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
}

.stack-card strong {
  display: block;

  .queue-card {
    display: grid;
    gap: 12px;
  }

  .queue-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
  }

  .queue-title {
    display: grid;
    gap: 4px;
  }

  .queue-title strong {
    display: block;
    font-size: 1rem;
  }

  .queue-title span {
    color: var(--muted);
    font-size: 0.9rem;
  }

  .queue-status {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(243, 178, 63, 0.12);
    border: 1px solid rgba(243, 178, 63, 0.22);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }

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

  .queue-meta div {
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
  }

  .queue-meta label {
    display: block;
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
  }

  .queue-meta strong {
    display: block;
    font-size: 0.92rem;
  }

  .queue-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
  }

  .admin-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .toolbar-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }

  margin-bottom: 6px;
}

.stack-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.stack-card small {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 800;
}

.empty-state {
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  padding: 16px;
  color: var(--muted);
}

@media (max-width: 1120px) {

  .page-hero,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .metric-band,
  .story-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .kpi-grid,
  .queue-meta {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .activity-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100vw - 20px, 1240px);
    padding-top: 14px;
  }

  .site-header {
    flex-direction: column;
    align-items: start;
  }

  .site-nav {
    width: 100%;
  }

  .hero,
  .product-grid,
  .admin-grid,
  .activity-grid,
  .split-fields {
    grid-template-columns: 1fr;
  }

  .modal-hero {
    flex-direction: column;
  }

  .hero-copy,
  .hero-panel,
  .panel {
    border-radius: 22px;
    padding: 20px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}