:root {
  --bg: #f7f6f1;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --ink: #111111;
  --muted: #636363;
  --line: rgba(17, 17, 17, 0.08);
  --accent: #ffd85b;
  --accent-deep: #f0bf15;
  --shadow: 0 24px 80px rgba(15, 15, 15, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 216, 91, 0.32), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(17, 17, 17, 0.08), transparent 22%),
    linear-gradient(180deg, #fbfaf5 0%, #f3f0e8 100%);
}

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

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

button {
  cursor: pointer;
  border: 0;
}

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

.topbar {
  position: sticky;
  top: 16px;
  z-index: 50;
  margin-top: 16px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(17, 17, 17, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(145deg, var(--accent), #fff2b8);
  box-shadow: inset 0 -6px 12px rgba(17, 17, 17, 0.08);
}

.brand-mark .wing {
  width: 10px;
  height: 14px;
  border-radius: 50% 50% 35% 35%;
  background: rgba(255, 255, 255, 0.95);
}

.brand-mark .body {
  width: 9px;
  height: 18px;
  border-radius: 999px;
  background: #111;
}

.brand-word {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
}

.section {
  padding: 72px 0 0;
}

.hero {
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 42px;
}

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

.hero h1,
.section-heading h2,
.cta-card h2,
.modal-card h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.hero h1 {
  font-size: clamp(3.6rem, 8vw, 6.8rem);
  max-width: 9ch;
}

.hero-subheadline {
  margin: 18px 0 0;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
}

.hero-text,
.section-heading p,
.story-panel p,
.modal-copy,
.review-card p,
.product-copy p,
.info-card li,
.cta-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 60ch;
  margin: 18px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.mini-button:hover,
.template-card:hover,
.swatch:hover,
.layer-item:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 26px rgba(17, 17, 17, 0.2);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.full {
  width: 100%;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.hero-metrics article,
.review-card,
.product-card,
.story-panel,
.info-card,
.cta-card,
.modal-card,
.tool-panel,
.preview-panel,
.info-panel {
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-metrics article {
  padding: 18px;
  border-radius: var(--radius-md);
}

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

.mockup-stage {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.mockup-card {
  position: absolute;
  width: min(100%, 520px);
  aspect-ratio: 4 / 4.8;
  padding: 24px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(30px) scale(0.94) rotate(-6deg);
  transition: opacity 500ms ease, transform 500ms ease;
}

.mockup-card.active {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0);
}

.mockup-garment,
.product-visual,
.product-silhouette {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,0.72), rgba(255,255,255,0.1));
}

.mockup-garment {
  height: 100%;
  border-radius: 32px;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 28px;
}

.mockup-garment::before,
.product-visual::before,
.product-silhouette::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 18%, rgba(255,255,255,0.45), transparent 26%);
}

.mockup-garment.tee,
.product-visual.tee,
.product-stage.tshirt .product-silhouette {
  clip-path: polygon(20% 12%, 35% 0, 65% 0, 80% 12%, 100% 22%, 84% 45%, 82% 100%, 18% 100%, 16% 45%, 0 22%);
}

.mockup-garment.hoodie,
.product-visual.hoodie,
.product-stage.hoodie .product-silhouette {
  clip-path: polygon(24% 12%, 38% 3%, 62% 3%, 76% 12%, 95% 28%, 84% 45%, 78% 100%, 22% 100%, 16% 45%, 5% 28%);
}

.mockup-garment.sweatshirt,
.product-visual.sweatshirt,
.product-stage.sweatshirt .product-silhouette {
  clip-path: polygon(17% 18%, 34% 0, 66% 0, 83% 18%, 100% 28%, 88% 48%, 82% 100%, 18% 100%, 12% 48%, 0 28%);
}

.mockup-garment.hat,
.product-visual.hat,
.product-stage.hat .product-silhouette {
  clip-path: ellipse(42% 34% at 50% 44%);
}

.mockup-garment.tee {
  background: linear-gradient(160deg, #111111, #2b2b2b);
}

.mockup-garment.hoodie {
  background: linear-gradient(160deg, #ffd85b, #f0bf15);
}

.mockup-garment.hat {
  background: linear-gradient(160deg, #f5f1e8, #dcd6c9);
}

.mockup-badge {
  position: absolute;
  left: 24px;
  top: 24px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.86);
  backdrop-filter: blur(12px);
}

.mockup-design {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  letter-spacing: -0.06em;
  color: #fff4c3;
}

.mockup-design.small {
  font-size: 1.6rem;
  color: var(--ink);
}

.floating-note {
  position: absolute;
  right: 0;
  bottom: 40px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.12);
  max-width: 240px;
}

.floating-note span,
.panel-caption,
.toolbar-note {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.floating-note strong,
.preview-toolbar h3,
.info-card h3,
.story-panel h3,
.product-copy h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
  margin: 8px 0 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 8px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  max-width: 11ch;
}

.section-heading.compact h2 {
  max-width: none;
}

.product-grid,
.reviews-grid,
.gallery-grid,
.steps,
.story-grid {
  display: grid;
  gap: 18px;
}

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

.product-card {
  border-radius: 28px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(17,17,17,0.14);
}

.product-visual {
  height: 270px;
  background-color: #ece7dc;
}

.product-visual.tee {
  background: linear-gradient(160deg, #0e0e0e, #333);
}

.product-visual.hoodie {
  background: linear-gradient(160deg, #fff1ba, var(--accent));
}

.product-visual.sweatshirt {
  background: linear-gradient(160deg, #dadfe4, #bbc2c8);
}

.product-visual.hat {
  background: linear-gradient(160deg, #f8f7f3, #dfd8c9);
}

.product-copy {
  padding: 22px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

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

.steps article {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255,255,255,0.56);
  border: 1px solid rgba(17,17,17,0.06);
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-weight: 800;
  background: var(--accent);
  margin-bottom: 16px;
}

.customizer-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.tool-panel,
.preview-panel,
.info-panel {
  border-radius: 30px;
  padding: 18px;
}

.tool-panel {
  position: sticky;
  top: 110px;
}

.panel-block + .panel-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.panel-block label,
.panel-row span:first-child,
.panel-row label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

select,
textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 16px;
  padding: 14px 15px;
  background: rgba(255,255,255,0.84);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--ink);
}

.inline-controls,
.toggle-group,
.actions-grid,
.swatches,
.template-row {
  display: flex;
  gap: 10px;
}

.inline-controls {
  margin: 12px 0;
}

.inline-controls > * {
  flex: 1;
}

.swatches {
  flex-wrap: wrap;
}

.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(17,17,17,0.08);
}

.swatch.active {
  border-color: var(--ink);
}

.mini-button,
.template-card,
.layer-item {
  min-height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(17,17,17,0.08);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.mini-button {
  padding: 0 14px;
}

.mini-button.active,
.template-card.active,
.layer-item.active {
  background: rgba(255, 216, 91, 0.36);
  border-color: rgba(17,17,17,0.14);
}

.mini-button.danger {
  color: #8b1d1d;
}

.actions-grid {
  flex-wrap: wrap;
}

.actions-grid .mini-button {
  flex: 1 1 calc(50% - 6px);
}

.preview-panel {
  min-height: 840px;
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.preview-toolbar h3 {
  margin-top: 8px;
  font-size: 1.6rem;
}

.canvas-wrap {
  position: relative;
  margin-top: 20px;
  min-height: 640px;
  padding: 20px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.42)),
    repeating-linear-gradient(0deg, rgba(17,17,17,0.02) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(17,17,17,0.02) 0 1px, transparent 1px 24px);
  border: 1px solid rgba(17, 17, 17, 0.06);
  overflow: hidden;
}

.product-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 600px;
}

.product-silhouette {
  width: min(100%, 420px);
  aspect-ratio: 1 / 1.2;
  display: grid;
  place-items: center;
  background-color: var(--garment-color);
  background: linear-gradient(180deg, color-mix(in srgb, var(--garment-color) 72%, white 28%), var(--garment-color));
  box-shadow:
    inset 0 -18px 30px rgba(0,0,0,0.08),
    0 24px 60px rgba(17,17,17,0.16);
}

.product-stage.hat .product-silhouette {
  width: min(100%, 380px);
  aspect-ratio: 1 / 0.78;
}

.design-surface {
  position: relative;
  width: 62%;
  height: 62%;
  border-radius: 26px;
}

.product-stage.hat .design-surface {
  width: 48%;
  height: 34%;
  margin-top: -24px;
}

.design-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  user-select: none;
  touch-action: none;
  cursor: grab;
}

.design-layer.selected {
  outline: 2px dashed rgba(17,17,17,0.22);
  outline-offset: 8px;
}

.design-layer img {
  display: block;
  max-width: 180px;
  max-height: 180px;
  object-fit: contain;
  pointer-events: none;
}

.design-layer.text-layer {
  min-width: 60px;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.04em;
  white-space: pre-wrap;
}

.snap-guide {
  position: absolute;
  background: rgba(255, 216, 91, 0.9);
  z-index: 2;
  pointer-events: none;
}

.snap-guide.vertical {
  top: 30px;
  bottom: 30px;
  width: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.snap-guide.horizontal {
  left: 30px;
  right: 30px;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.hidden {
  display: none !important;
}

.template-row {
  margin-top: 18px;
  flex-wrap: wrap;
}

.template-card {
  padding: 12px 18px;
}

.info-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-card {
  border-radius: 24px;
  padding: 22px;
}

.info-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.detail-meta {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

.detail-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.story-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.story-panel {
  padding: 26px;
  border-radius: 30px;
}

.detail-showcase {
  min-height: 340px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail-card {
  border-radius: 24px;
}

.detail-card.black {
  background: linear-gradient(180deg, #0e0e0e, #353535);
}

.detail-card.yellow {
  background: linear-gradient(180deg, #ffeaa4, #f0bf15);
}

.detail-card.white {
  background: linear-gradient(180deg, #ffffff, #e6ded0);
}

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

.size-guide div {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
  display: flex;
  justify-content: space-between;
}

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

.review-card,
.gallery-card {
  border-radius: 24px;
  padding: 24px;
}

.gallery-grid {
  margin-top: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #fff;
  background: linear-gradient(160deg, #111111, #333333);
}

.gallery-card.yellow {
  color: var(--ink);
  background: linear-gradient(160deg, #fff2b8, var(--accent));
}

.gallery-card.light {
  color: var(--ink);
  background: linear-gradient(160deg, #ffffff, #d9dde2);
}

.gallery-card.accent {
  color: var(--ink);
  background: linear-gradient(160deg, #f7f5ef, #efe4b0);
}

.cta-card {
  padding: 42px;
  border-radius: 34px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 216, 91, 0.3), transparent 22%),
    radial-gradient(circle at 80% 0%, rgba(17, 17, 17, 0.1), transparent 18%),
    rgba(255, 255, 255, 0.72);
}

.cta-card h2 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  margin-top: 10px;
}

.cta-card .hero-actions {
  justify-content: center;
}

.sticky-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 17, 0.45);
  padding: 20px;
}

.modal-card {
  position: relative;
  width: min(100%, 620px);
  border-radius: 30px;
  padding: 30px;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(17,17,17,0.06);
  font-size: 1.6rem;
}

.request-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.request-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.confirmation {
  margin-top: 22px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 216, 91, 0.25);
}

.layer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.layer-item {
  text-align: left;
  padding: 12px 14px;
}

.layer-item strong,
.layer-item span {
  display: block;
}

.layer-item span {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

@media (max-width: 1200px) {
  .hero,
  .split-section,
  .story-grid,
  .customizer-shell,
  .product-grid,
  .reviews-grid,
  .gallery-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .tool-panel {
    position: static;
  }

  .preview-panel {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 20px, 1400px);
  }

  .topbar {
    border-radius: 28px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 22px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .mockup-stage {
    min-height: 430px;
  }

  .preview-toolbar {
    flex-direction: column;
  }

  .canvas-wrap {
    min-height: 480px;
    padding: 16px;
  }

  .product-stage {
    min-height: 420px;
  }

  .sticky-cta {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}
