
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #f7f7fb;
  --white: #ffffff;
  --dark: #19172c;
  --muted: #88869c;
  --purple: #7655e8;
  --purple-light: #eee9ff;
  --border: #e9e7f1;
  --pink: #ff7da9;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--dark);
  font-family: "DM Sans", sans-serif;
}

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

button, a, select {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  cursor: pointer;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 245px;
  height: 100vh;
  padding: 27px 19px;
  background: white;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -1px;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: white;
  background: linear-gradient(135deg, #8b64f8, #e56cc5);
  border-radius: 10px;
  font-size: 22px;
}

.ai {
  color: var(--purple);
  font-size: 12px;
  align-self: flex-start;
  margin-left: -6px;
}

.new-btn {
  margin-top: 36px;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  color: white;
  background: linear-gradient(100deg, #7958ed, #9b69ee);
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 6px 18px #7655e826;
  transition: 0.2s;
}

.new-btn:hover, .generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 25px #7655e83b;
}

.nav-label {
  margin: 35px 10px 13px;
  font-size: 10px;
  color: #aaa7bb;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.nav-item {
  padding: 13px 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 9px;
  margin-bottom: 6px;
  color: #79768e;
  font-size: 13px;
  transition: 0.2s;
}

.nav-item.active, .nav-item:hover {
  color: var(--purple);
  background: var(--purple-light);
}

.sidebar-bottom {
  margin-top: auto;
}

.upgrade-card {
  padding: 19px 15px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f3edff, #fff0f7);
}

.upgrade-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: white;
  color: var(--purple);
  border-radius: 10px;
  font-size: 22px;
}

.upgrade-card h3 {
  margin: 13px 0 5px;
  font-size: 15px;
}

.upgrade-card p {
  font-size: 11px;
  line-height: 1.8;
  color: #777187;
}

.upgrade-card a {
  display: inline-block;
  margin-top: 13px;
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
}

.sidebar-foot {
  text-align: center;
  color: #aaa7bb;
  font-size: 9px;
  letter-spacing: 1px;
  margin-top: 20px;
}

.main-content {
  margin-left: 245px;
  min-height: 100vh;
}

.topbar {
  min-height: 73px;
  background: #ffffffd9;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 5%;
  gap: 15px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb span {
  padding: 0 8px;
  color: #c6c3d2;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.demo-badge {
  color: var(--purple);
  background: var(--purple-light);
  padding: 7px 11px;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 600;
}

.avatar {
  width: 34px;
  height: 34px;
  background: var(--dark);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.mobile-brand {
  display: none;
}

.welcome {
  padding: 52px 5% 35px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: center;
}

.eyebrow {
  color: var(--purple);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  margin-bottom: 15px;
}

.eyebrow > span {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--pink);
  border-radius: 50%;
  margin-right: 7px;
}

.welcome h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(35px, 4vw, 54px);
  letter-spacing: -2.5px;
  line-height: 1.14;
}

.welcome h1 span {
  color: var(--purple);
}

.welcome-text {
  max-width: 460px;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 13px;
}

.hero-art {
  height: 265px;
  overflow: hidden;
  position: relative;
  border-radius: 24px;
  background: linear-gradient(135deg, #e6dcff, #f8dff0 52%, #d4e5ff);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.orb-one {
  width: 210px;
  height: 210px;
  background: linear-gradient(140deg, #a68aff, #f29ec9);
  top: 15px;
  left: 22%;
  box-shadow: 15px 20px 60px #7655e83a;
}

.orb-two {
  width: 120px;
  height: 120px;
  right: 5%;
  bottom: -20px;
  background: linear-gradient(135deg, #8bd4ed, #c2adff);
}

.art-shape {
  position: absolute;
  top: 35px;
  left: 36%;
  font-size: 145px;
  line-height: 1;
  color: #ffffffd9;
  text-shadow: 0 15px 40px #5c39b849;
  animation: float 5s ease-in-out infinite;
}

.art-label {
  position: absolute;
  bottom: 19px;
  left: 20px;
  color: #5e4b89;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
}

.art-spark {
  position: absolute;
  color: white;
}

.spark-one {
  top: 22px;
  right: 23%;
  font-size: 30px;
}

.spark-two {
  left: 12%;
  bottom: 70px;
  font-size: 38px;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
}

.creator-panel {
  margin: 0 5%;
  padding: 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 17px;
  box-shadow: 0 8px 35px #25204b05;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}

.panel-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-heading h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 19px;
  letter-spacing: -0.5px;
}

.step-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--purple);
  background: var(--purple-light);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}

.muted-label {
  font-size: 9px;
  color: #aaa7bb;
  letter-spacing: 1.2px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 9px;
}

#prompt {
  width: 100%;
  min-height: 115px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfaff;
  padding: 15px;
  color: var(--dark);
  font-size: 13px;
  line-height: 1.8;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}

#prompt:focus, select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px #7655e812;
}

#prompt::placeholder {
  color: #aaa7bb;
}

.prompt-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 22px;
  font-size: 10px;
  color: #aaa7bb;
}

.text-button {
  border: none;
  background: transparent;
  color: var(--purple);
  font-weight: 600;
  font-size: 11px;
}

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

.options-grid select, #gallery-filter {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  background: white;
  color: var(--dark);
  font-size: 12px;
}

.generate-btn {
  width: 100%;
  margin-top: 25px;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(100deg, #7855e8, #a064e9);
  color: white;
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s;
}

.generate-btn .arrow {
  margin-left: 5px;
}

.generate-btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.demo-notice {
  margin-top: 13px;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}

.gallery-section {
  padding: 70px 5% 50px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.section-heading h2, .how-section > h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -1px;
}

.section-heading h2 span {
  color: var(--purple);
}

.gallery-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#gallery-filter {
  width: 155px;
}

.outline-btn {
  padding: 11px 13px;
  border: 1px solid var(--border);
  background: white;
  color: var(--dark);
  border-radius: 8px;
  font-size: 11px;
}

.outline-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
}

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

.gallery-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  transition: transform 0.25s, box-shadow 0.25s;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px #25204b0e;
}

.gallery-image {
  height: 220px;
  overflow: hidden;
  background: var(--purple-light);
  position: relative;
}

.gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-card:hover .gallery-image img {
  transform: scale(1.04);
}

.gallery-style {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffffffed;
  color: var(--purple);
  border-radius: 30px;
  padding: 6px 10px;
  font-size: 9px;
  font-weight: 700;
}

.gallery-info {
  padding: 15px;
}

.gallery-info h3 {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.gallery-info p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.gallery-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}

.gallery-card-actions button {
  flex: 1;
  padding: 9px 5px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  font-size: 10px;
  color: var(--dark);
}

.gallery-card-actions button:hover {
  color: var(--purple);
  border-color: var(--purple);
}

.empty-state {
  padding: 40px 15px;
  color: var(--muted);
  text-align: center;
  background: white;
  border: 1px dashed var(--border);
  border-radius: 12px;
  font-size: 13px;
}

.how-section {
  padding: 55px 5% 80px;
  background: #f0edff;
}

.how-section > h2 {
  margin-bottom: 28px;
}

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

.step-card {
  padding: 22px;
  background: white;
  border-radius: 12px;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 22px;
  margin-bottom: 20px;
}

.step-card > span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--purple);
}

.step-card h3 {
  margin: 9px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
}

.step-card p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}

footer {
  padding: 30px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: white;
  border-top: 1px solid var(--border);
}

footer p, footer > span {
  font-size: 10px;
  color: var(--muted);
}

footer .brand {
  font-size: 18px;
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  max-width: calc(100vw - 44px);
  padding: 13px 19px;
  background: #211b38;
  color: white;
  border-radius: 9px;
  box-shadow: 0 8px 30px #0002;
  font-size: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.25s;
  pointer-events: none;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .sidebar {
    width: 210px;
  }

  .main-content {
    margin-left: 210px;
  }

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

  .hero-art {
    height: 230px;
  }

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

  .gallery-image {
    height: 240px;
  }
}

@media (max-width: 700px) {
  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
  }

  .topbar {
    padding: 14px 5%;
  }

  .mobile-brand {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 700;
  }

  .breadcrumb, .demo-badge {
    display: none;
  }

  .welcome {
    padding-top: 38px;
  }

  .welcome h1 {
    font-size: clamp(36px, 9vw, 49px);
  }

  .hero-art {
    height: 210px;
  }

  .creator-panel {
    padding: 19px;
    margin: 0 4%;
  }

  .panel-heading h2 {
    font-size: 16px;
  }

  .muted-label {
    display: none;
  }

  .options-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .gallery-actions {
    width: 100%;
  }

  #gallery-filter {
    flex: 1;
    min-width: 0;
  }

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

  .gallery-image {
    height: 180px;
  }

  .gallery-info {
    padding: 11px;
  }

  .gallery-card-actions {
    flex-direction: column;
  }

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

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .gallery-image {
    height: 260px;
  }

  .gallery-card-actions {
    flex-direction: row;
  }

  .panel-heading > div {
    gap: 8px;
  }
}
