:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f0f5f7;
  --surface-3: #eef2ff;
  --line: #d7e0e8;
  --text: #13212e;
  --muted: #5d6b78;
  --blue: #2457d6;
  --teal: #10796b;
  --gold: #b57916;
  --ink: #0f1c29;
  --shadow: 0 16px 42px rgba(24, 39, 55, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(246, 248, 251, 0.96) 42%, #eef4f2 100%);
}

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

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

.store-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.store-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(215, 224, 232, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.nav-row,
.footer-row {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 190px;
  max-width: 100%;
  border: 1px solid rgba(215, 224, 232, 0.8);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 14px;
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a,
.footer-links a {
  border-radius: 8px;
  padding: 10px 12px;
}

.nav-links a:hover,
.footer-links a:hover,
.text-link:hover,
.card-link:hover {
  color: var(--blue);
  background: rgba(36, 87, 214, 0.07);
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
}

.store-hero,
.portal-hero {
  padding: 64px 0 38px;
}

.hero-grid,
.portal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 30px;
  align-items: stretch;
}

.hero-copy {
  display: grid;
  align-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  font-size: 18px;
}

.lead,
.section-copy,
.muted {
  color: var(--muted);
  line-height: 1.68;
}

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

.primary-button,
.secondary-button,
.submit-button,
.ghost-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button,
.submit-button {
  border: 1px solid var(--blue);
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(36, 87, 214, 0.22);
}

.secondary-button,
.ghost-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: #ffffff;
}

.primary-button:hover,
.secondary-button:hover,
.submit-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-proof span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 750;
}

.hero-panel,
.portal-summary,
.product-card,
.auth-card,
.message-card,
.mini-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel,
.portal-summary {
  display: grid;
  gap: 18px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 245, 247, 0.9));
}

.portal-summary {
  align-content: space-between;
}

.panel-header {
  display: grid;
  gap: 8px;
}

.panel-kicker {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-header strong,
.portal-summary strong {
  font-size: 24px;
  line-height: 1.18;
}

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

.hero-stat {
  border: 1px solid rgba(215, 224, 232, 0.8);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
}

.hero-stat strong {
  display: block;
  margin-bottom: 5px;
  font-size: 32px;
}

.hero-stat span,
.panel-row span {
  color: var(--muted);
}

.panel-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(16, 121, 107, 0.18);
  border-radius: 8px;
  padding: 16px;
  background: rgba(16, 121, 107, 0.07);
}

.panel-row strong,
.panel-row span {
  display: block;
}

.status-dot {
  width: 11px;
  height: 11px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(16, 121, 107, 0.14);
}

.catalog-section,
.portal-section {
  padding: 24px 0 58px;
}

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

.text-link,
.card-link {
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.text-link {
  padding: 10px 12px;
}

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

.product-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.product-preview {
  overflow: hidden;
  border: 1px solid rgba(215, 224, 232, 0.92);
  border-radius: 8px;
  background: linear-gradient(180deg, #f9fbff 0%, #edf4f3 100%);
}

.product-media {
  margin: 0;
}

.product-image-wrap {
  position: relative;
  display: grid;
  min-height: 254px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(215, 224, 232, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(19, 33, 46, 0.04), rgba(16, 121, 107, 0.08)),
    #ffffff;
}

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

.product-logo-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(215, 224, 232, 0.95);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(19, 33, 46, 0.14);
}

.product-media figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.preview-top {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(215, 224, 232, 0.9);
  padding: 0 14px;
  background: #ffffff;
}

.preview-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c0ccda;
}

.preview-dot:first-child {
  background: #df6a6a;
}

.preview-dot:nth-child(2) {
  background: #d9a140;
}

.preview-dot:nth-child(3) {
  background: #42a978;
}

.preview-title {
  min-width: 0;
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.preview-chip-row,
.preview-card-row,
.preview-calendar-row {
  display: grid;
  gap: 10px;
}

.preview-chip-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preview-chip,
.preview-block,
.preview-line,
.preview-calendar {
  border: 1px solid rgba(215, 224, 232, 0.8);
  border-radius: 8px;
  background: #ffffff;
}

.preview-chip {
  min-height: 34px;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.preview-card-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preview-block {
  display: grid;
  min-height: 92px;
  align-content: center;
  padding: 14px;
}

.preview-block.accent {
  background: rgba(36, 87, 214, 0.08);
}

.preview-block span {
  font-size: 26px;
  font-weight: 850;
}

.preview-block small {
  color: var(--muted);
  font-weight: 750;
}

.preview-line {
  min-height: 14px;
}

.preview-line.short {
  width: 58%;
}

.preview-calendar-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.preview-calendar {
  min-height: 48px;
  padding-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.preview-calendar.active {
  color: var(--teal);
  background: rgba(16, 121, 107, 0.1);
}

.product-head,
.catalog-item-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.catalog-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.catalog-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(215, 224, 232, 0.9);
  border-radius: 8px;
  padding: 5px;
  background: #ffffff;
}

.product-head h3 {
  margin-bottom: 6px;
  font-size: 24px;
}

.product-category {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-pill,
.status-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 850;
}

.price-pill {
  color: #1745b5;
  background: rgba(36, 87, 214, 0.1);
}

.status-pill {
  color: var(--teal);
  background: rgba(16, 121, 107, 0.12);
}

.status-pill.request {
  color: #925b06;
  background: rgba(181, 121, 22, 0.15);
}

.feature-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.feature-list li::marker {
  color: var(--teal);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-link {
  padding: 8px 10px;
}

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

.auth-stack,
.content-stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.auth-card,
.message-card,
.mini-card {
  padding: 20px;
}

.auth-card h2,
.message-card h2,
.mini-card h2 {
  font-size: 24px;
}

.auth-form,
.message-form {
  display: grid;
  gap: 12px;
}

.auth-form label,
.message-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.auth-form input,
.message-form input,
.message-form select,
.message-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--text);
  background: #fbfdff;
  outline: none;
}

.auth-form input:focus,
.message-form input:focus,
.message-form select:focus,
.message-form textarea:focus {
  border-color: rgba(36, 87, 214, 0.62);
  box-shadow: 0 0 0 4px rgba(36, 87, 214, 0.1);
}

.message-form textarea {
  min-height: 140px;
  padding: 12px 13px;
  resize: vertical;
}

.message-list,
.catalog-list {
  display: grid;
  gap: 12px;
}

.message-item,
.catalog-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfdff;
}

.message-item strong,
.catalog-item strong {
  display: block;
  margin-bottom: 5px;
}

.message-meta,
.catalog-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.store-footer {
  border-top: 1px solid rgba(215, 224, 232, 0.9);
  background: #ffffff;
}

@media (max-width: 980px) {
  .hero-grid,
  .portal-hero-grid,
  .portal-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .store-shell {
    width: min(100% - 24px, 1160px);
  }

  .store-hero,
  .portal-hero {
    padding-top: 38px;
  }

  .nav-row,
  .footer-row,
  .section-heading,
  .hero-actions,
  .nav-links,
  .footer-links,
  .form-actions,
  .product-footer,
  .catalog-item-head {
    align-items: stretch;
    flex-direction: column;
  }

  h1 {
    font-size: 38px;
  }

  .hero-stat-grid,
  .preview-card-row,
  .preview-calendar-row,
  .preview-chip-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
