@import url("https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700&family=Space+Grotesk:wght@400;600;700&display=swap");

:root {
  --bg: #0c0f14;
  --surface: #141a22;
  --surface-2: #1b2430;
  --surface-3: #202b3a;
  --text: #f7f2ea;
  --muted: #b7b0a5;
  --accent: #f2b84b;
  --accent-2: #4ad6b3;
  --accent-3: #ef6f5b;
  --shadow: 0 24px 60px rgba(5, 8, 12, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", "Space Grotesk", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #1a2330 0%, #0c0f14 50%, #080a0f 100%);
  min-height: 100vh;
  line-height: 1.6;
}

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

a:hover {
  opacity: 1;
}

.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  z-index: 0;
}

.glow-a {
  background: radial-gradient(circle, rgba(242, 184, 75, 0.5), transparent 70%);
  top: -160px;
  left: -120px;
}

.glow-b {
  background: radial-gradient(circle, rgba(74, 214, 179, 0.45), transparent 70%);
  bottom: -140px;
  right: -90px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6vw;
  backdrop-filter: blur(14px);
  background: rgba(8, 11, 16, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.brand-mark {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #1b1b1b;
  font-weight: 700;
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
}

.brand-title {
  margin: 0;
  font-size: 1.05rem;
}

.brand-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  border: none;
  color: #1b1b1b;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 80px 6vw 30px;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent-2);
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  margin: 0 0 18px;
  line-height: 1.1;
}

.lead {
  font-size: 1.05rem;
  max-width: 520px;
  color: #ded2c2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0;
}

.hero-stats {
  display: flex;
  gap: 24px;
}

.hero-stats div {
  background: var(--surface);
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-stats h3 {
  margin: 0;
  font-size: 1.2rem;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-card {
  background: linear-gradient(145deg, rgba(34, 48, 64, 0.85), rgba(18, 24, 32, 0.9));
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.panel-card h3 {
  margin-top: 0;
}

.panel-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.swatches {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}

.swatches span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pulse {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 214, 179, 0.35), transparent 70%);
  position: absolute;
  bottom: -40px;
  right: -20px;
  animation: pulse 3s infinite ease-in-out;
}

.section {
  padding: 40px 6vw 20px;
  position: relative;
  z-index: 1;
}

.section-title h2 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.section-title p {
  margin: 0 0 30px;
  color: var(--muted);
}

.tabs {
  padding-top: 20px;
}

.tab-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 18px;
  background: rgba(15, 20, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.tab-button {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 18px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.tab-button.active {
  background: rgba(242, 184, 75, 0.2);
  border-color: rgba(242, 184, 75, 0.6);
}

.tab-panels {
  margin-top: 24px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  padding: 22px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tag {
  display: inline-flex;
  padding: 6px 12px;
  background: rgba(242, 184, 75, 0.15);
  border-radius: 999px;
  font-size: 0.8rem;
  margin-top: 14px;
}

.catalog {
  background: linear-gradient(120deg, rgba(22, 32, 44, 0.95), rgba(10, 14, 19, 0.95));
  border-radius: 24px;
  padding: 30px;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.chip.active {
  background: rgba(74, 214, 179, 0.2);
  border-color: rgba(74, 214, 179, 0.6);
}

.status {
  color: var(--muted);
  font-size: 0.9rem;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.product-card {
  background: var(--surface-2);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.product-image {
  background-size: cover;
  background-position: center;
  height: 190px;
}

.product-body {
  padding: 18px;
}

.product-type {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.product-actions {
  padding: 0 18px 18px;
}

.product-detail {
  background: var(--surface-2);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  min-height: 420px;
}

.product-detail__media {
  height: 220px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  margin-bottom: 16px;
}

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

.variant-list {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.variant-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.variant-head {
  font-weight: 600;
  color: var(--text);
}

.product-detail__empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
}

.moods {
  background: linear-gradient(180deg, rgba(16, 22, 30, 0.95), rgba(10, 14, 19, 0.95));
  border-radius: 24px;
  padding: 30px;
}

.mood-card {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  background: linear-gradient(140deg, rgba(34, 48, 64, 0.9), rgba(15, 20, 26, 0.95));
}

.mood-card ul {
  padding-left: 18px;
  color: var(--muted);
}

.funny {
  border-left: 4px solid var(--accent-3);
}

.serious {
  border-left: 4px solid var(--accent);
}

.normal {
  border-left: 4px solid var(--accent-2);
}

.seasonal {
  background: linear-gradient(160deg, rgba(19, 28, 37, 0.95), rgba(10, 14, 19, 0.95));
  border-radius: 24px;
  padding: 30px;
}

.season-card {
  padding: 24px;
  border-radius: 20px;
  background: rgba(27, 36, 48, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.season-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.season-tags span {
  background: rgba(242, 184, 75, 0.15);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.builder {
  background: linear-gradient(110deg, rgba(26, 35, 46, 0.95), rgba(12, 16, 22, 0.95));
  border-radius: 24px;
  padding: 30px;
}

.builder-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  background: var(--surface-3);
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

input,
select,
textarea {
  background: #0f141a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.builder-output {
  margin-top: 24px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(242, 184, 75, 0.12);
  color: #f7e7c9;
}

.output.error {
  background: rgba(239, 111, 91, 0.15);
}

.site-footer {
  padding: 40px 6vw 60px;
  color: var(--muted);
  text-align: center;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

@media (max-width: 1100px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-stats {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
