/* ─── Landing ─── */
.landing {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(32px, 5vw, 64px) 24px;
}

.intro-gate {
  position: relative;
  overflow: hidden;
  max-width: 660px;
  width: 100%;
  margin-bottom: 48px;
  padding: clamp(48px, 7vw, 72px) clamp(32px, 6vw, 64px);
  background: linear-gradient(158deg, #141a28 0%, #0a0d17 55%, #060709 100%);
  border: 1px solid rgba(184, 150, 58, 0.2);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(184, 150, 58, 0.07),
    0 60px 120px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.intro-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 660 380' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-10 200 C80 145 165 268 280 205 S418 128 556 178' stroke='rgba(184,150,58,0.1)' fill='none'/%3E%3Ccircle cx='330' cy='192' r='5' fill='rgba(184,150,58,0.35)'/%3E%3C/svg%3E") center/cover no-repeat;
  opacity: 0.6;
  pointer-events: none;
}

.intro-seal {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 150, 58, 0.35);
  border-radius: 4px;
  transform: rotate(0deg);
  background: rgba(18, 28, 46, 0.9);
}

.intro-seal span {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(210, 178, 100, 0.9);
}

.intro-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(184, 150, 58, 0.65);
  margin-bottom: 16px;
}

.intro-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 400;
  color: #fefcf7;
  margin-bottom: 6px;
}

.intro-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.intro-plain {
  max-width: 48ch;
  margin: 0 auto 16px;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.52);
}

.intro-plain strong {
  color: rgba(210, 178, 100, 0.88);
}

/* ─── Role picker ─── */
.role-picker {
  width: 100%;
  max-width: 960px;
}

.role-picker__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-lt);
  margin-bottom: 20px;
}

.role-picker__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .roles-grid { grid-template-columns: 1fr; }
}

.role-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.role-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-card);
}

.role-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.role-card--buyer::before { background: var(--blue-lt); }
.role-card--seller::before { background: var(--green); }
.role-card--operator::before { background: var(--amber); }

.role-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.role-card--buyer .role-card__icon { background: rgba(59, 130, 246, 0.15); }
.role-card--seller .role-card__icon { background: rgba(16, 185, 129, 0.15); }
.role-card--operator .role-card__icon { background: rgba(245, 158, 11, 0.15); }

.role-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.role-card__company {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.role-card__desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ─── Filters bar ─── */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  align-items: center;
}

.filters-bar .form-input,
.filters-bar .form-select {
  width: auto;
  min-width: 180px;
}

.search-input {
  flex: 1;
  min-width: 220px;
}

/* ─── Cart groups ─── */
.cart-group {
  margin-bottom: 24px;
}

.cart-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  font-size: 13px;
  font-weight: 600;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-top: none;
  background: rgba(15, 26, 46, 0.3);
}

.cart-item:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-control button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 16px;
}

.qty-control span {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
}

/* ─── Phase 2 block ─── */
.phase2-block {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(139, 92, 246, 0.35);
  background: repeating-linear-gradient(
    -45deg,
    rgba(139, 92, 246, 0.06),
    rgba(139, 92, 246, 0.06) 6px,
    rgba(139, 92, 246, 0.02) 6px,
    rgba(139, 92, 246, 0.02) 12px
  );
  opacity: 0.75;
  margin-top: 20px;
}

.phase2-block__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 8px;
}

/* ─── Finance diagram ─── */
.finance-diagram {
  padding: 24px;
  text-align: center;
}

.finance-node {
  display: inline-block;
  padding: 16px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(15, 26, 46, 0.6);
  margin: 8px;
}

.finance-node--platform {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
}

.finance-arrow {
  color: var(--text-dim);
  font-size: 20px;
  margin: 4px 0;
}

.finance-margin {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--gold-faint);
  border: 1px solid var(--border-gold);
  font-size: 13px;
}

.finance-margin strong {
  color: var(--gold-mid);
}

/* ─── Success page ─── */
.success-page {
  text-align: center;
  max-width: 480px;
  margin: 48px auto;
}

.success-page__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--green);
  display: grid;
  place-items: center;
  font-size: 32px;
  margin: 0 auto 24px;
}

.success-page__order-id {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold-mid);
  margin-bottom: 12px;
}

/* ─── Action bar on order detail ─── */
.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  margin-top: 24px;
}

.action-bar__hint {
  width: 100%;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

/* ─── Markup slider preview ─── */
.markup-preview {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

.markup-preview__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.range-input {
  width: 100%;
  margin: 12px 0;
  accent-color: var(--gold-mid);
}
