:root {
  --ink: #07182f;
  --muted: #58708e;
  --blue-950: #031b3f;
  --blue-800: #073d8f;
  --blue-650: #0b62d6;
  --blue-500: #1686ff;
  --blue-100: #eaf4ff;
  --cyan: #19d4ff;
  --lime: #c8ff4d;
  --paper: #f7fbff;
  --white: #ffffff;
  --line: rgba(7, 24, 47, 0.12);
  --shadow: 0 22px 60px rgba(3, 27, 63, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

img {
  display: block;
  width: 100%;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(16px, calc((100vw - 1180px) / 2));
  background: rgba(247, 251, 255, 0.9);
  border-bottom: 1px solid rgba(7, 24, 47, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--blue-950);
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(22, 134, 255, 0.24);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 10px 13px;
  color: #22415f;
  border-radius: 8px;
  font-weight: 750;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--blue-100);
  color: var(--blue-800);
}

.main-nav .nav-action {
  color: var(--white);
  background: var(--blue-800);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--blue-950);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 27, 63, 0.9) 0%, rgba(3, 27, 63, 0.62) 46%, rgba(3, 27, 63, 0.2) 100%),
    linear-gradient(180deg, rgba(3, 27, 63, 0.1) 60%, var(--paper) 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
}

.hero-content {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 86px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-500);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--lime);
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(3.3rem, 9vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.hero-copy {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  line-height: 1.55;
}

.hero-actions,
.card-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-650), var(--blue-800));
  box-shadow: 0 16px 34px rgba(11, 98, 214, 0.28);
}

.button-secondary {
  color: var(--blue-950);
  background: var(--white);
}

.button-ghost {
  color: var(--blue-800);
  background: var(--blue-100);
}

.hero-panel {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 1px;
  width: min(520px, calc(100% - 32px));
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(16px);
}

.hero-panel div {
  padding: 14px 16px;
  color: var(--white);
  background: rgba(3, 27, 63, 0.44);
}

.hero-panel strong {
  display: block;
  font-size: 1.55rem;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
}

.section {
  padding: 72px 0;
}

#trending {
  padding-top: 42px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.with-action {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.section-heading p:not(.eyebrow),
.register-copy p,
.trust-copy p,
.empty-state p,
.feature-card p,
.cta-panel p,
.page-hero p {
  color: var(--muted);
  line-height: 1.7;
}

.compact {
  margin-bottom: 0;
}

.toolbar {
  display: flex;
  gap: 10px;
  padding-bottom: 18px;
  overflow-x: auto;
}

.filter-button {
  min-width: max-content;
  padding: 10px 14px;
  color: var(--blue-800);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.filter-button.active {
  color: var(--white);
  background: var(--blue-800);
  border-color: var(--blue-800);
}

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

.product-card,
.seller-card,
.challenge-card,
.seller-form,
.product-detail {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(3, 27, 63, 0.08);
}

.product-card {
  overflow: hidden;
}

.product-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-body {
  padding: 18px;
}

.meta-row,
.seller-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: var(--blue-800);
  background: var(--blue-100);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 850;
}

.price {
  margin: 0;
  color: var(--blue-800);
  font-size: 1.35rem;
  font-weight: 950;
}

.product-detail {
  min-height: 280px;
  overflow: hidden;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
}

.detail-image img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.detail-copy {
  padding: clamp(24px, 5vw, 48px);
}

.empty-state {
  padding: clamp(28px, 6vw, 56px);
}

.seller-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.mini-product {
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-product strong {
  display: block;
}

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

.split-section {
  background: linear-gradient(180deg, var(--white), #edf7ff);
}

.page-hero {
  padding: 58px 0;
  background: linear-gradient(135deg, #f8fcff, #eaf4ff);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 34px;
  align-items: center;
}

.page-hero h1 {
  max-width: 780px;
  color: var(--blue-950);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.98;
}

.page-hero img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.feature-card,
.cta-panel {
  padding: clamp(24px, 4vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(3, 27, 63, 0.08);
}

.feature-card-blue {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-800), var(--blue-950));
}

.feature-card-blue .eyebrow,
.feature-card-blue p {
  color: rgba(255, 255, 255, 0.78);
}

.feature-card-blue .eyebrow {
  color: var(--lime);
}

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

.split-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 42px;
  align-items: start;
}

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

.challenge-card {
  padding: 24px;
}

.challenge-card span {
  color: var(--blue-500);
  font-weight: 950;
}

.challenge-card p,
.seller-card p {
  color: var(--muted);
  line-height: 1.65;
}

.trust-layout,
.register-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 34px;
  align-items: center;
}

.trust-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.trust-list div {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trust-list strong,
.trust-list span {
  display: block;
}

.trust-list span {
  color: var(--muted);
  margin-top: 4px;
}

.trust-visual {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.trust-visual img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.seller-section {
  color: var(--white);
  background: var(--blue-950);
}

.seller-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

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

.seller-card {
  padding: 22px;
  color: var(--ink);
}

.seller-card img {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 8px;
  object-fit: cover;
}

.register-section {
  background: linear-gradient(135deg, #f8fcff, #eaf4ff);
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  padding-left: 28px;
  position: relative;
  color: #24405d;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  content: "v";
  color: var(--blue-650);
  font-weight: 950;
}

.seller-form {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.form-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-indicator {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 74px;
  padding: 10px 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.step-indicator span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--blue-800);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-indicator.active,
.step-indicator.complete {
  color: var(--blue-950);
  background: var(--white);
}

.step-indicator.active span {
  color: var(--white);
  background: var(--blue-800);
  border-color: var(--blue-800);
}

.step-indicator.complete span {
  color: var(--blue-950);
  background: var(--lime);
  border-color: transparent;
}

.seller-form fieldset {
  display: none;
  gap: 16px;
  padding: 0;
  border: 0;
}

.seller-form fieldset.active {
  display: grid;
}

.seller-form legend {
  padding: 0;
  margin-bottom: 2px;
  color: var(--blue-800);
  font-size: 1.05rem;
  font-weight: 950;
}

.seller-form label {
  display: grid;
  gap: 8px;
  color: #24405d;
  font-weight: 850;
}

.seller-form input,
.seller-form select,
.seller-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.seller-form textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.seller-form input[type="file"] {
  padding: 10px 12px;
  background: var(--white);
}

.field-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.seller-form input:focus,
.seller-form select:focus,
.seller-form textarea:focus {
  outline: 3px solid rgba(22, 134, 255, 0.2);
  border-color: var(--blue-500);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--blue-800);
  font-weight: 850;
}

.form-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.form-controls .button {
  min-width: 130px;
}

.dashboard-lock {
  display: grid;
  gap: 24px;
}

.lock-panel,
.dashboard-card,
.metric-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(3, 27, 63, 0.08);
}

.lock-panel {
  max-width: 620px;
  padding: clamp(24px, 4vw, 38px);
}

.access-form,
.stacked-form {
  display: grid;
  gap: 16px;
}

.access-form label,
.stacked-form label {
  display: grid;
  gap: 8px;
  color: #24405d;
  font-weight: 850;
}

.access-form input,
.stacked-form input,
.stacked-form select,
.stacked-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stacked-form textarea {
  min-height: 100px;
  padding: 12px;
  resize: vertical;
}

.dashboard-area {
  display: grid;
  gap: 22px;
}

.dashboard-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-800), var(--blue-950));
  border-radius: 8px;
}

.dashboard-header p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.dashboard-grid,
.metric-grid {
  display: grid;
  gap: 16px;
}

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

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

.dashboard-card {
  padding: 22px;
}

.metric-card {
  padding: 20px;
}

.metric-card strong {
  display: block;
  color: var(--blue-800);
  font-size: 2rem;
}

.metric-card span {
  color: var(--muted);
  font-weight: 850;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table th {
  color: #24405d;
  background: var(--paper);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.site-image-manager {
  display: grid;
  gap: 16px;
}

.site-image-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-image-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.site-image-fields {
  display: grid;
  gap: 10px;
}

.site-image-fields label {
  display: grid;
  gap: 8px;
  color: #24405d;
  font-weight: 850;
}

.site-image-fields input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-footer {
  padding: 42px 0 26px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--blue-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.7fr));
  gap: 28px;
  align-items: start;
}

.footer-brand {
  color: var(--white);
}

.footer-grid p {
  max-width: 460px;
  margin: 14px 0 0;
}

.footer-column h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  font-weight: 850;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .product-grid,
  .seller-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-grid,
  .trust-layout,
  .register-grid,
  .detail-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .detail-image img {
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-inline: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 42px;
    padding-bottom: 220px;
  }

  .hero-panel {
    left: 16px;
    right: 16px;
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .product-grid,
  .seller-grid,
  .dashboard-grid,
  .challenge-grid,
  .seller-list,
  .preview-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

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

  .form-controls {
    flex-direction: column;
  }

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

  .dashboard-header {
    flex-direction: column;
  }

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

  .footer-grid,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

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