:root {
  --blue-900: #0f376f;
  --blue-700: #1d5fae;
  --blue-600: #2671d9;
  --blue-100: #eaf3ff;
  --fashion-ink: #11223a;
  --fashion-steel: #2d6f99;
  --fashion-teal: #1f8b83;
  --fashion-clay: #c56b46;
  --fashion-pearl: #f6f1ea;
  --fashion-mist: #eef5f7;
  --line: #d7e2ef;
  --bg: #f5f8fc;
  --panel: #ffffff;
  --text: #18283f;
  --muted: #66758b;
  --danger: #c62828;
  --danger-bg: #fdecec;
  --success: #1d7a4f;
  --success-bg: #e9f7f0;
  --shadow: 0 8px 24px rgba(20, 56, 101, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
}

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

button,
input {
  font: inherit;
}

.login-page {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(38, 113, 217, 0.14), transparent 34%),
    linear-gradient(315deg, rgba(15, 55, 111, 0.12), transparent 32%),
    var(--bg);
}

.login-shell {
  width: min(100%, 430px);
}

.login-card,
.panel,
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-card {
  padding: 30px;
}

.brand-block,
.sidebar-brand,
.topbar,
.section-heading {
  display: flex;
  align-items: center;
}

.brand-block {
  gap: 14px;
  margin-bottom: 24px;
}

.brand-block h1,
.topbar h1,
.panel h2 {
  margin: 0;
}

.brand-block p,
.topbar p,
.form-hint {
  margin: 4px 0 0;
  color: var(--muted);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--blue-700);
  color: white;
  font-weight: 800;
}

.stack-form,
.grid-form {
  display: grid;
  gap: 14px;
}

.grid-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

label {
  display: block;
  margin-bottom: 6px;
  color: #314761;
  font-size: 14px;
  font-weight: 600;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd8e6;
  border-radius: 6px;
  padding: 9px 11px;
  color: var(--text);
  background: white;
}

input:focus {
  border-color: var(--blue-600);
  outline: 3px solid rgba(38, 113, 217, 0.16);
}

.btn {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.15s ease, border 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue-700);
  color: white;
}

.btn-primary:hover {
  background: var(--blue-900);
}

.btn-large {
  min-height: 48px;
  padding: 13px 18px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(17, 34, 58, 0.16);
  color: var(--fashion-ink);
}

.btn-ghost:hover {
  background: white;
}

.btn-secondary {
  background: white;
  border-color: var(--line);
  color: var(--blue-900);
}

.btn-light {
  background: var(--blue-100);
  color: var(--blue-900);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-layout {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: 240px;
  padding: 22px 18px;
  background: var(--blue-900);
  color: white;
}

.sidebar-brand {
  gap: 10px;
  margin-bottom: 26px;
  font-size: 18px;
  font-weight: 800;
}

.sidebar .brand-mark {
  background: white;
  color: var(--blue-900);
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav a {
  border-radius: 6px;
  padding: 11px 12px;
  color: #d9e9ff;
  font-weight: 700;
}

.side-nav a:hover,
.side-nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.content {
  margin-left: 240px;
  padding: 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  justify-content: space-between;
  gap: 16px;
  margin: -24px -24px 24px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.topbar h1 {
  font-size: 26px;
}

.menu-button {
  display: none;
}

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

.stat-card {
  padding: 20px;
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 12px;
  color: var(--blue-900);
  font-size: 34px;
}

.panel {
  margin-bottom: 20px;
  padding: 20px;
}

.panel h2 {
  margin-bottom: 16px;
  font-size: 20px;
}

.section-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin-bottom: 0;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
}

th {
  background: #f0f6ff;
  color: #294966;
  font-size: 13px;
  text-transform: uppercase;
}

td {
  color: #263a54;
}

tr:hover td {
  background: #f8fbff;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--blue-100);
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 700;
}

.alert {
  display: none;
  margin-bottom: 16px;
  border-radius: 6px;
  padding: 12px 14px;
  font-weight: 700;
}

.alert.show {
  display: block;
}

.alert.success {
  background: var(--success-bg);
  color: var(--success);
}

.alert.error {
  background: var(--danger-bg);
  color: var(--danger);
}

.spinner {
  display: none;
  width: 34px;
  height: 34px;
  margin: 18px auto;
  border: 4px solid #d7e2ef;
  border-top-color: var(--blue-700);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner.show {
  display: block;
}

.empty-state {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.marketing-page,
.auth-page {
  background:
    linear-gradient(90deg, rgba(17, 34, 58, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(17, 34, 58, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #f8fbfc 0%, #ecf4f6 48%, #f7f1eb 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

.marketing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(248, 251, 252, 0.86);
  border-bottom: 1px solid rgba(17, 34, 58, 0.1);
  backdrop-filter: blur(18px);
}

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

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  color: var(--fashion-ink);
  font-size: 16px;
  letter-spacing: 0.2px;
}

.brand-lockup small {
  margin-top: 2px;
  color: #65768a;
  font-size: 12px;
}

.fashion-mark {
  background:
    linear-gradient(135deg, var(--fashion-ink), var(--fashion-steel));
  box-shadow: 0 12px 28px rgba(17, 34, 58, 0.18);
}

.marketing-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #4f6175;
  font-weight: 700;
}

.marketing-links a {
  position: relative;
}

.marketing-links a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--fashion-clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.marketing-links a:hover::after {
  transform: scaleX(1);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(42px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fashion-clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero-copy h1,
.company-section h2,
.proof-section h2,
.auth-story-copy h1,
.auth-card-header h2 {
  margin: 12px 0 0;
  color: var(--fashion-ink);
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.02;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(46px, 8vw, 88px);
}

.hero-copy p {
  max-width: 640px;
  margin: 22px 0 0;
  color: #485d73;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

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

.hero-visual {
  position: relative;
  min-height: 520px;
}

.rack-card {
  position: absolute;
  inset: 38px 28px 42px 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  padding: clamp(20px, 4vw, 32px);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.56)),
    linear-gradient(135deg, rgba(31, 139, 131, 0.18), rgba(197, 107, 70, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(17, 34, 58, 0.18);
  backdrop-filter: blur(18px);
}

.rack-top,
.scan-row,
.floating-card,
.atelier-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rack-top span,
.scan-row span,
.floating-card small,
.atelier-metrics small {
  color: #65768a;
  font-size: 13px;
  font-weight: 800;
}

.rack-top strong,
.floating-card strong,
.atelier-metrics strong {
  color: var(--fashion-ink);
}

.garment-rack {
  position: relative;
  margin: 46px 4px 24px;
  border-top: 5px solid rgba(17, 34, 58, 0.72);
}

.garment-rack::before,
.garment-rack::after {
  position: absolute;
  top: -4px;
  width: 5px;
  height: 260px;
  content: "";
  background: rgba(17, 34, 58, 0.72);
}

.garment-rack::before {
  left: 18px;
}

.garment-rack::after {
  right: 18px;
}

.hanger {
  position: absolute;
  top: 16px;
  width: 78px;
  height: 168px;
  border-radius: 28px 28px 14px 14px;
  box-shadow: 0 22px 32px rgba(17, 34, 58, 0.14);
}

.hanger::before {
  position: absolute;
  top: -26px;
  left: 50%;
  width: 34px;
  height: 28px;
  content: "";
  border: 3px solid rgba(17, 34, 58, 0.54);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  transform: translateX(-50%);
}

.hanger-one {
  left: 18%;
  background: linear-gradient(160deg, #17496c, #2d6f99);
}

.hanger-two {
  left: 35%;
  height: 142px;
  background: linear-gradient(160deg, #f8fafb, #dbe7eb);
}

.hanger-three {
  left: 52%;
  background: linear-gradient(160deg, #1f8b83, #71b8b0);
}

.hanger-four {
  left: 69%;
  height: 154px;
  background: linear-gradient(160deg, #c56b46, #e1a17f);
}

.floating-card {
  position: absolute;
  width: min(270px, 74vw);
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(17, 34, 58, 0.16);
  backdrop-filter: blur(16px);
  animation: floatCard 4s ease-in-out infinite;
}

.shipment-card {
  top: 0;
  right: 0;
}

.stock-card {
  bottom: 0;
  left: 0;
  animation-delay: 0.8s;
}

.mini-icon {
  display: inline-grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(197, 107, 70, 0.16);
  color: var(--fashion-clay);
  font-weight: 900;
}

.mini-icon.teal {
  background: rgba(31, 139, 131, 0.15);
  color: var(--fashion-teal);
}

.company-section,
.proof-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(46px, 8vw, 84px) clamp(18px, 5vw, 72px);
}

.company-section {
  background: rgba(255, 255, 255, 0.54);
  border-block: 1px solid rgba(17, 34, 58, 0.08);
}

.company-section h2,
.proof-section h2 {
  font-size: clamp(32px, 4.8vw, 58px);
}

.company-section p {
  margin: 28px 0 0;
  color: #4f6175;
  font-size: 18px;
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(42px, 7vw, 80px) clamp(18px, 5vw, 72px);
}

.feature-card {
  min-height: 250px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(17, 34, 58, 0.09);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(17, 34, 58, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 64px rgba(17, 34, 58, 0.14);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--fashion-ink);
  color: white;
  font-weight: 900;
}

.feature-card h3 {
  margin: 24px 0 10px;
  color: var(--fashion-ink);
  font-size: 23px;
}

.feature-card p {
  margin: 0;
  color: #5d6f81;
  line-height: 1.65;
}

.proof-section {
  align-items: center;
  background: var(--fashion-ink);
}

.proof-section .eyebrow,
.proof-section h2 {
  color: white;
}

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

.proof-grid div {
  min-height: 180px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
}

.proof-grid strong,
.proof-grid span {
  display: block;
}

.proof-grid strong {
  color: #f4d0ba;
  font-size: clamp(34px, 4vw, 54px);
}

.proof-grid span {
  margin-top: 12px;
  color: #dbe6eb;
  line-height: 1.55;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 46px);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.78fr);
  gap: 22px;
  width: min(1180px, 100%);
  min-height: min(760px, calc(100vh - 72px));
}

.auth-story,
.auth-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(17, 34, 58, 0.16);
}

.auth-story {
  display: grid;
  align-content: space-between;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(17, 34, 58, 0.92), rgba(45, 111, 153, 0.84)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 24px);
  color: white;
}

.auth-brand strong,
.auth-brand small {
  color: white;
}

.auth-brand small {
  color: rgba(255, 255, 255, 0.72);
}

.atelier-panel {
  position: relative;
  align-self: center;
  max-width: 520px;
  margin: 28px auto;
  padding: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  backdrop-filter: blur(18px);
}

.collection-strip {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.swatch {
  display: block;
  width: 46px;
  height: 18px;
  border-radius: 999px;
}

.swatch.navy {
  background: #172a44;
}

.swatch.teal {
  background: #1f8b83;
}

.swatch.clay {
  background: #c56b46;
}

.swatch.pearl {
  background: #f7eee4;
}

.atelier-rack {
  position: relative;
  height: 250px;
  border-top: 4px solid rgba(255, 255, 255, 0.72);
}

.atelier-rack span {
  position: absolute;
  top: 22px;
  width: 92px;
  border-radius: 34px 34px 16px 16px;
  box-shadow: 0 28px 38px rgba(0, 0, 0, 0.22);
}

.atelier-rack .coat {
  left: 10%;
  height: 206px;
  background: linear-gradient(160deg, #f7eee4, #d6c2b2);
}

.atelier-rack .shirt {
  left: 38%;
  height: 168px;
  background: linear-gradient(160deg, #58a8a2, #1f8b83);
}

.atelier-rack .denim {
  left: 66%;
  height: 190px;
  background: linear-gradient(160deg, #315d8b, #162a44);
}

.atelier-metrics {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.atelier-metrics small,
.atelier-metrics strong {
  display: block;
  color: white;
}

.atelier-metrics small {
  color: rgba(255, 255, 255, 0.64);
}

.auth-story-copy {
  max-width: 620px;
}

.auth-story-copy .eyebrow,
.auth-story-copy h1,
.auth-story-copy p {
  color: white;
}

.auth-story-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.auth-story-copy p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.7;
}

.auth-card {
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px);
}

.auth-card-header h2 {
  font-size: clamp(32px, 4vw, 46px);
}

.auth-card-header p {
  margin: 10px 0 28px;
  color: #65768a;
}

.auth-form {
  gap: 18px;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #53687c;
  font-size: 14px;
  font-weight: 800;
}

.remember-control {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  cursor: pointer;
}

.remember-control input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--fashion-teal);
}

.auth-options a {
  color: var(--fashion-steel);
}

.auth-submit {
  position: relative;
  min-height: 50px;
  margin-top: 6px;
  overflow: hidden;
}

.button-spinner {
  display: none;
  width: 19px;
  height: 19px;
  margin-left: 10px;
  border: 3px solid rgba(255, 255, 255, 0.42);
  border-top-color: white;
  border-radius: 50%;
  vertical-align: middle;
  animation: spin 0.75s linear infinite;
}

.auth-submit.is-loading .button-spinner {
  display: inline-block;
}

.auth-submit:disabled {
  cursor: progress;
  opacity: 0.9;
}

.auth-success .auth-shell {
  animation: authExit 0.85s ease forwards;
}

@keyframes floatCard {
  50% {
    transform: translateY(-10px);
  }
}

@keyframes authExit {
  to {
    opacity: 0;
    transform: translateY(-12px) scale(0.985);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

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

  .hero-section,
  .company-section,
  .proof-section,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-visual {
    min-height: 460px;
  }

  .feature-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .marketing-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .marketing-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
  }

  .nav-login {
    width: 100%;
    text-align: center;
  }

  .hero-section,
  .company-section,
  .proof-section,
  .feature-grid {
    padding-inline: 16px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .rack-card {
    inset: 28px 0 32px;
  }

  .floating-card {
    position: relative;
    width: 100%;
    margin-top: 12px;
  }

  .shipment-card,
  .stock-card {
    inset: auto;
  }

  .hanger {
    width: 58px;
  }

  .auth-page {
    padding: 12px;
  }

  .auth-story {
    min-height: 620px;
  }

  .auth-card,
  .auth-story {
    border-radius: 20px;
  }

  .auth-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .content {
    margin-left: 0;
    padding: 16px;
  }

  .topbar {
    margin: -16px -16px 16px;
    padding: 14px 16px;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    color: var(--blue-900);
    padding: 8px 10px;
    font-weight: 800;
  }

  .topbar h1 {
    font-size: 20px;
  }

  .topbar p {
    display: none;
  }

  .stats-grid,
  .grid-form {
    grid-template-columns: 1fr;
  }

  .panel,
  .login-card {
    padding: 16px;
  }
}
