
:root {
  --ink: #20234a;
  --muted: #747995;
  --purple: #6854f5;
  --purple-dark: #5140d7;
  --lilac: #efedff;
  --line: #e6e7f5;
  --paper: #ffffff;
  --mint: #dff8f1;
  --bg: #f8f9ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  height: 76px;
  padding: 0 max(6.5%, calc((100% - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #eeeff9;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 23px "Manrope", sans-serif;
  letter-spacing: -0.8px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 11px 11px 11px 4px;
  color: white;
  background: linear-gradient(145deg, #8f7aff, #5a45e8);
  font-size: 24px;
  transform: rotate(-5deg);
  box-shadow: 0 6px 14px #7968f34a;
}

.brand-accent {
  color: var(--purple);
}

.nav-note {
  color: #8589a5;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ac99b;
  display: inline-block;
  box-shadow: 0 0 0 3px #dff8ed;
}

.nav-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--purple);
  color: white;
  border-radius: 100px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 8px 20px #6854f52a;
  transition: transform 0.2s, background 0.2s;
}

.nav-cta:hover,
.generate-btn:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
}

.wrap {
  max-width: 1240px;
  width: 87%;
  margin: 0 auto;
}

.hero {
  min-height: 365px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 35px;
  padding-top: 45px;
  padding-bottom: 44px;
  position: relative;
}

.hero:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -7.5%;
  background:
    radial-gradient(ellipse at 76% 45%, #e5e4ff 0, transparent 40%),
    radial-gradient(ellipse at 10% 70%, #eef6ff 0, transparent 40%);
}

.eyebrow {
  color: var(--purple);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.45px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sparkle {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 8px;
  background: #e9e6ff;
  font-size: 15px;
}

.hero h1 {
  font: 800 clamp(38px, 4.4vw, 58px) / 1.1 "Manrope", sans-serif;
  letter-spacing: -2.5px;
  margin: 21px 0 15px;
}

.gradient-text {
  background: linear-gradient(90deg, #6251ed, #9b63ed);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 520px;
  margin: 0;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 22px;
  color: #555d83;
  font-size: 12px;
  font-weight: 600;
}

.hero-points b {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #7160f4;
  color: white;
  margin-right: 5px;
  font-size: 11px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  border-bottom: 1px solid #cfcaff;
  padding-bottom: 5px;
}

.hero-art {
  min-height: 300px;
  position: relative;
  display: grid;
  place-items: center;
}

.art-orbit {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(145deg, #dcd9ff, #e7f3ff);
}

.orbit-one {
  width: 300px;
  height: 250px;
  transform: rotate(-17deg);
}

.orbit-two {
  width: 210px;
  height: 230px;
  border: 1px solid #c9c4ff;
  background: transparent;
  transform: rotate(27deg);
}

.product-mock {
  width: min(310px, 75%);
  position: relative;
  background: white;
  border: 1px solid #e7e7f7;
  border-radius: 17px;
  padding: 15px;
  transform: rotate(4deg);
  box-shadow: 0 25px 65px #5147a526;
  z-index: 1;
}

.mock-toolbar {
  height: 15px;
  display: flex;
  gap: 4px;
  align-items: center;
  border-bottom: 1px solid #f0f0f8;
  padding-bottom: 10px;
}

.mock-toolbar span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d5d5e9;
}

.mock-toolbar small {
  margin-left: auto;
  color: #a1a3bc;
  font-size: 7px;
  letter-spacing: 1px;
}

.mock-photo {
  height: 125px;
  margin: 12px 0;
  border-radius: 11px;
  background: linear-gradient(145deg, #e9e6ff, #f7e8e2);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.candle {
  position: relative;
  height: 95px;
  width: 74px;
  display: grid;
  justify-items: center;
}

.flame {
  width: 10px;
  height: 15px;
  background: #ffc76b;
  border-radius: 80% 20% 65% 35%;
  transform: rotate(7deg);
  margin-bottom: -2px;
  box-shadow: 0 0 18px #ffce77;
}

.wick {
  width: 2px;
  height: 8px;
  background: #55413c;
  z-index: 1;
  margin-bottom: -3px;
}

.jar {
  width: 70px;
  height: 67px;
  border-radius: 9px 9px 13px 13px;
  background: linear-gradient(90deg, #d5d3d2, #fff9ef 32%, #eee4d7 75%, #cfc6bc);
  border: 1px solid #cfc7c0;
  box-shadow: 0 9px 12px #7e6a6420;
  display: grid;
  place-items: center;
}

.jar-label {
  text-align: center;
  background: #fff9eb;
  color: #8d7c71;
  padding: 7px 11px;
  font: 8px / 1.3 "Manrope", sans-serif;
  letter-spacing: 0.5px;
}

.jar-label b {
  font-size: 10px;
}

.mock-lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mock-lines i {
  display: block;
  height: 6px;
  border-radius: 10px;
  background: #ececf8;
}

.mock-lines i:first-child {
  width: 80%;
  background: #c8c2ff;
}

.mock-lines i:nth-child(2) { width: 96%; }
.mock-lines i:nth-child(3) { width: 68%; }
.mock-lines i:nth-child(4) { width: 45%; }

.mock-pill {
  display: inline-block;
  background: #e6faf4;
  color: #369b81;
  border-radius: 20px;
  padding: 7px 10px;
  margin-top: 12px;
  font-size: 8px;
  font-weight: 700;
}

.float-chip {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid #f0efff;
  border-radius: 12px;
  padding: 11px 14px;
  box-shadow: 0 12px 30px #4941a51c;
  font-size: 11px;
  font-weight: 800;
  color: #4c4c78;
}

.float-chip span {
  color: var(--purple);
  margin-right: 6px;
  font-size: 14px;
}

.chip-top {
  top: 38px;
  left: 1%;
  transform: rotate(-5deg);
}

.chip-right {
  right: -2%;
  bottom: 37px;
  transform: rotate(4deg);
}

.art-star {
  position: absolute;
  color: #8d80ff;
  font-size: 25px;
}

.star-one { top: 45px; right: 14%; }
.star-two { bottom: 25px; left: 13%; font-size: 17px; }

.workspace {
  padding-top: 15px;
  padding-bottom: 25px;
}

.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 18px;
  gap: 15px;
}

.section-intro h2 {
  font: 800 clamp(22px, 2.5vw, 29px) / 1.3 "Manrope", sans-serif;
  margin: 6px 0 0;
  letter-spacing: -0.8px;
}

.local-badge {
  color: #438b76;
  background: #e3f9f1;
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.work-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 20px;
  align-items: stretch;
}

.panel {
  border: 1px solid #e4e6f7;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.94);
  padding: 25px;
  box-shadow: 0 13px 45px #343a7c08;
}

.panel-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 23px;
}

.panel-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 21px;
  flex-shrink: 0;
}

.purple-icon {
  background: #efedff;
  color: #6955f4;
}

.mint-icon {
  background: #e0faf3;
  color: #22a98b;
  font-size: 23px;
}

.panel-heading h3 {
  margin: 0 0 3px;
  font: 800 16px "Manrope", sans-serif;
}

.panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

form > label {
  display: block;
  margin: 16px 0 7px;
  font-size: 12px;
  font-weight: 800;
  color: #393f69;
}

form > label span {
  color: #e26e91;
}

input[type="text"],
select,
textarea {
  width: 100%;
  border: 1px solid #e2e4f3;
  border-radius: 10px;
  padding: 12px 13px;
  background: #fdfdff;
  outline: none;
  color: var(--ink);
  font-size: 12px;
  transition: border 0.2s, box-shadow 0.2s;
}

input[type="text"]::placeholder,
textarea::placeholder {
  color: #a0a4bd;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
  border-color: #a69aff;
  box-shadow: 0 0 0 3px #eeeaff;
}

textarea {
  resize: vertical;
  min-height: 95px;
  line-height: 1.6;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  padding-right: 35px;
}

.select-arrow {
  position: absolute;
  right: 13px;
  top: 8px;
  color: #8588a8;
  pointer-events: none;
  font-size: 19px;
}

.field-hint {
  color: #a1a4ba;
  font-size: 10px;
  margin-top: 5px;
}

.tone-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.tone-option {
  border: 1px solid #e5e5f4;
  background: #fff;
  border-radius: 9px;
  padding: 10px 5px;
  text-align: center;
  font-size: 10px;
  color: #696d8a;
  cursor: pointer;
  transition: all 0.2s;
}

.tone-option span {
  display: block;
  font-size: 16px;
  color: #8a7af4;
  margin-bottom: 2px;
}

.tone-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tone-option:has(input:checked) {
  background: #f0eeff;
  border-color: #a59aff;
  color: #5442d1;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px #a59aff;
}

.generate-btn {
  width: 100%;
  border: 0;
  border-radius: 11px;
  padding: 15px 17px;
  margin-top: 22px;
  color: white;
  font-weight: 800;
  font-size: 12px;
  background: linear-gradient(100deg, #6b55f4, #8061f3);
  box-shadow: 0 8px 17px #7058f42c;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}

.generate-btn span { font-size: 17px; }
.generate-btn b { margin-left: auto; font-size: 16px; }

.form-foot {
  margin-top: 13px;
  text-align: center;
  font-size: 10px;
  color: #9a9db6;
}

.form-foot span {
  color: #5cb9a0;
  margin-right: 4px;
}

.output-panel {
  background: linear-gradient(145deg, #fff 65%, #fcfbff);
}

.output-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.status {
  flex-shrink: 0;
  background: #f4f4fb;
  color: #777b98;
  border-radius: 30px;
  padding: 7px 10px;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aaaec3;
}

.status.ready {
  color: #298e73;
  background: #e4faf2;
}

.status.ready .status-dot {
  background: #2eb990;
}

.empty-state {
  min-height: 430px;
  border: 1px dashed #dcdcf1;
  background: linear-gradient(145deg, #fbfaff, #f8fbff);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
}

.empty-illustration {
  position: relative;
  width: 95px;
  height: 100px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
}

.paper {
  width: 65px;
  height: 82px;
  border-radius: 8px;
  border: 1px solid #e3e0ff;
  background: white;
  box-shadow: 0 10px 25px #6655df15;
  padding: 13px 10px;
  transform: rotate(-7deg);
}

.paper span {
  display: block;
  font-size: 18px;
  color: #7a65f3;
  margin-bottom: 10px;
}

.paper i {
  display: block;
  height: 5px;
  background: #eae8ff;
  border-radius: 5px;
  margin-top: 6px;
}

.paper i:nth-of-type(2) { width: 75%; }
.paper i:nth-of-type(3) { width: 55%; }

.mini-spark {
  position: absolute;
  right: 2px;
  top: 4px;
  font-size: 25px;
  color: #7c6bf7;
}

.empty-state h3 {
  font: 800 17px "Manrope", sans-serif;
  margin: 4px 0 7px;
}

.empty-state p {
  color: var(--muted);
  font-size: 12px;
  max-width: 280px;
  line-height: 1.7;
  margin: 0;
}

.empty-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
}

.empty-tags span {
  border: 1px solid #e6e3ff;
  border-radius: 30px;
  background: white;
  color: #7771b1;
  font-size: 9px;
  padding: 7px 10px;
}

.hidden {
  display: none !important;
}

.results {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.result-card {
  padding: 16px;
  border-radius: 13px;
  border: 1px solid #eeedfa;
}

.title-card {
  background: #f6f4ff;
}

.description-card {
  background: #f2f8ff;
  border-color: #e3eefb;
}

.caption-card {
  background: #effbf7;
  border-color: #def5ed;
}

.result-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.result-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #4d527b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.result-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: #e5e0ff;
  color: #6854ef;
  font-size: 13px;
  letter-spacing: 0;
}

.description-card .result-icon {
  background: #dcecff;
  color: #4288dc;
}

.caption-card .result-icon {
  background: #d5f6ec;
  color: #249c7f;
}

.copy-btn {
  border: 1px solid #e6e3fb;
  background: #fff;
  border-radius: 8px;
  padding: 6px 9px;
  color: #6a59e7;
  font-size: 10px;
  font-weight: 800;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: #f1efff;
}

.result-card p {
  color: #5f6486;
  font-size: 12px;
  line-height: 1.75;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.result-card .output-title {
  color: #30365e;
  font: 700 14px / 1.6 "Manrope", sans-serif;
}

.result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
}

.regenerate-btn {
  border: 1px solid #c9c1ff;
  color: #6250e6;
  background: white;
  border-radius: 30px;
  padding: 10px 15px;
  font-size: 10px;
  font-weight: 800;
}

.regenerate-btn:hover {
  background: #f4f1ff;
}

.result-actions > span {
  font-size: 9px;
  color: #999cb3;
}

.value-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-top: 24px;
  padding-bottom: 42px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 13px;
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  font-size: 23px;
  flex-shrink: 0;
}

.shield {
  color: #735af1;
  background: #eeebff;
}

.bolt {
  color: #368be8;
  background: #e7f2ff;
}

.leaf {
  color: #25a888;
  background: #dff8ef;
}

.value-item h4 {
  font: 800 12px "Manrope", sans-serif;
  margin: 0 0 5px;
}

.value-item p {
  margin: 0;
  font-size: 10px;
  line-height: 1.6;
  color: #8589a5;
  max-width: 230px;
}

.footer {
  background: #202344;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px max(6.5%, calc((100% - 1240px) / 2));
}

.footer-brand {
  font-size: 17px;
}

.footer-brand .brand-mark {
  width: 27px;
  height: 27px;
  font-size: 19px;
}

.footer-brand .brand-accent {
  color: #a99cff;
}

.footer-tagline {
  border-left: 1px solid #424565;
  padding-left: 20px;
  font-size: 10px;
  color: #b7bbd8;
}

.footer-note {
  margin-left: auto;
  font-size: 10px;
  color: #b7bbd8;
}

.footer-note span {
  color: #a99aff;
  margin-left: 5px;
}

@media (max-width: 900px) {
  .wrap { width: 91%; }

  .hero {
    grid-template-columns: 1fr 0.7fr;
    gap: 12px;
  }

  .hero-art { transform: scale(0.9); }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .empty-state { min-height: 300px; }
  .value-row { gap: 18px; }
}

@media (max-width: 650px) {
  .topbar {
    height: 66px;
    padding: 0 5%;
  }

  .brand { font-size: 20px; }
  .nav-note { display: none; }

  .nav-cta {
    padding: 10px 13px;
    font-size: 10px;
  }

  .wrap { width: 90%; }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .hero h1 { letter-spacing: -1.7px; }

  .hero-art {
    min-height: 250px;
    transform: scale(0.88);
    margin-top: -5px;
  }

  .hero-points { gap: 10px 15px; }

  .section-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel { padding: 19px; }

  .output-head { flex-direction: column; }

  .status {
    margin: -10px 0 15px 54px;
  }

  .value-row {
    grid-template-columns: 1fr;
    padding-top: 10px;
    gap: 20px;
  }

  .value-item p { max-width: none; }

  .footer {
    flex-wrap: wrap;
    padding: 20px 5%;
    gap: 12px;
  }

  .footer-tagline { padding-left: 12px; }

  .footer-note {
    width: 100%;
    margin: 5px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
