:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --surface-strong: #eef7ff;
  --ink: #182033;
  --muted: #667085;
  --line: #dbeafe;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --blue-soft: #dbeafe;
  --pink: #ec4899;
  --pink-deep: #db2777;
  --pink-soft: #fce7f3;
  --violet: #7c3aed;
  --shadow: 0 18px 60px rgba(37, 99, 235, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 14% 8%, rgba(236, 72, 153, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 16%, rgba(37, 99, 235, 0.2), transparent 30rem),
    linear-gradient(180deg, #f8fbff 0%, #eef7ff 38%, #fff8fc 100%);
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

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

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(219, 234, 254, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.panel-actions,
.quick-options,
.recommend-strip,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-text {
  display: grid;
  gap: 0.12rem;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: #fff;
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.28);
}

.nav {
  gap: clamp(0.8rem, 2vw, 1.75rem);
  color: #475467;
  font-size: 0.95rem;
}

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

.nav-cta,
.primary-btn,
.secondary-btn,
.icon-btn,
.quick-options button {
  min-height: 2.75rem;
  border: 0;
  border-radius: 8px;
}

.nav-cta,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.1rem;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue-deep);
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: 1180px;
  min-height: calc(100vh - 4.1rem);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2rem) 4rem;
}

.hero-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--pink-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.2rem;
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 39rem;
  color: #475467;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.hero-actions,
.panel-actions {
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 34rem;
  place-items: center;
}

.phone-shell {
  width: min(21rem, 82vw);
  min-height: 31rem;
  padding: 1rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 2rem;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: var(--shadow);
}

.phone-top {
  width: 5rem;
  height: 0.45rem;
  margin: 0.25rem auto 1rem;
  border-radius: 99px;
  background: #c7d2fe;
}

.note-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: #fff;
}

.note-cover {
  display: grid;
  min-height: 16rem;
  align-content: center;
  gap: 0.8rem;
  padding: 1.35rem;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(236, 72, 153, 0.86)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 14px);
  color: #fff;
}

.note-cover span {
  width: max-content;
  max-width: 100%;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.note-cover strong {
  max-width: 8ch;
  font-size: 2.4rem;
  line-height: 1.02;
}

.note-lines,
.note-tags {
  padding: 1rem;
}

.note-lines {
  display: grid;
  gap: 0.65rem;
}

.note-lines span {
  height: 0.7rem;
  border-radius: 99px;
  background: #e0ecff;
}

.note-lines span:nth-child(2) {
  width: 84%;
}

.note-lines span:nth-child(3) {
  width: 62%;
}

.note-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0;
}

.note-tags span,
.status-pill {
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.note-tags span {
  padding: 0.35rem 0.55rem;
}

.floating-chip {
  position: absolute;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--blue-deep);
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.14);
}

.chip-one {
  top: 16%;
  left: 4%;
}

.chip-two {
  right: 4%;
  bottom: 28%;
  color: var(--pink-deep);
}

.chip-three {
  left: 9%;
  bottom: 12%;
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1120px;
  margin: -2rem auto 4rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metrics-band div {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
  padding: 1.25rem 1rem;
  background: rgba(255, 255, 255, 0.82);
}

.metrics-band strong {
  color: var(--blue);
  font-size: 2rem;
}

.metrics-band span {
  color: var(--muted);
  font-weight: 700;
}

.workspace,
.content-band,
.roadmap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem clamp(1rem, 4vw, 2rem);
}

.section-heading {
  margin-bottom: 1.7rem;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.95fr);
  gap: 1rem;
  align-items: start;
}

.generator-panel,
.result-panel,
.simple-card,
.recommend-grid article,
.roadmap-list li {
  border: 1px solid rgba(219, 234, 254, 0.98);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.08);
}

.generator-panel,
.result-panel {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.status-pill {
  flex: 0 0 auto;
  padding: 0.42rem 0.65rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.form-body {
  position: relative;
}

.type-gate {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  justify-items: center;
  align-items: start;
  padding: 1.1rem;
  padding-top: 2.2rem;
  border-radius: 8px;
  background: rgba(247, 251, 255, 0.54);
  backdrop-filter: blur(16px);
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s ease;
}

.type-gate.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.35rem);
}

.type-gate-card {
  width: min(24rem, 100%);
  padding: 1.2rem;
  border: 1px solid rgba(219, 234, 254, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.16);
}

.type-gate-card h4 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1.35rem;
}

.type-gate-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.type-gate-option {
  min-height: 3rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(219, 234, 254, 0.92);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #eef7ff);
  color: var(--blue-deep);
  font-weight: 900;
}

.type-gate-option:hover {
  border-color: rgba(236, 72, 153, 0.3);
  background: linear-gradient(135deg, var(--blue-soft), var(--pink-soft));
  color: var(--pink-deep);
}

.form-group {
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem;
  border: 1px solid rgba(219, 234, 254, 0.88);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(248, 251, 255, 0.92));
}

.field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.field-heading span {
  color: var(--ink);
  font-weight: 900;
}

.field-heading small {
  color: var(--muted);
  font-size: 0.82rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

label,
.chip-field {
  display: grid;
  gap: 0.45rem;
}

.tool-select-field {
  display: none;
}

label span,
.chip-field > span {
  color: #344054;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  outline: 0;
  padding: 0.78rem 0.85rem;
}

textarea {
  resize: vertical;
}

.idea-group textarea {
  min-height: 8.4rem;
}

.native-hidden {
  display: none;
}

.choice-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.choice-chip {
  min-height: 2.28rem;
  padding: 0.48rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #eef7ff;
  color: var(--blue-deep);
  font-size: 0.88rem;
  font-weight: 850;
}

.choice-chip.active {
  border-color: rgba(236, 72, 153, 0.28);
  background: linear-gradient(135deg, var(--blue-soft), var(--pink-soft));
  color: var(--pink-deep);
  box-shadow: 0 8px 22px rgba(236, 72, 153, 0.12);
}

.choice-chip:hover {
  border-color: rgba(37, 99, 235, 0.25);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(236, 72, 153, 0.65);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.quick-options {
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.quick-options button {
  min-height: 2.2rem;
  padding: 0.45rem 0.65rem;
  background: var(--surface-strong);
  color: var(--blue-deep);
  font-size: 0.86rem;
  font-weight: 800;
}

.icon-btn {
  width: 2.75rem;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 1.15rem;
  font-weight: 900;
}

.result-box {
  min-height: 30rem;
  max-height: 44rem;
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.empty-state {
  display: grid;
  min-height: 26rem;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.loading-state {
  display: grid;
  min-height: 26rem;
  place-items: center;
  align-content: center;
  gap: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.loading-mark {
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.24);
  animation: logo-bounce 0.88s ease-in-out infinite;
}

.loading-state strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.loading-state span {
  max-width: 15rem;
  line-height: 1.7;
}

@keyframes logo-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-0.72rem);
  }
}

.result-section {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.result-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.result-section h4 {
  margin: 0 0 0.6rem;
  color: var(--blue-deep);
  font-size: 1rem;
}

.result-section ol,
.result-section ul {
  margin: 0;
  padding-left: 1.25rem;
}

.result-section li {
  margin: 0.48rem 0;
  line-height: 1.65;
}

.draft-text {
  white-space: pre-wrap;
  color: #344054;
  line-height: 1.75;
}

.recommend-strip {
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.recommend-strip a {
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-weight: 800;
}

.content-band.alt {
  max-width: none;
  background: rgba(255, 255, 255, 0.48);
}

.content-band.alt > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

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

.simple-card,
.recommend-grid article {
  padding: 1.15rem;
}

.simple-card span {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 900;
}

.simple-card p,
.recommend-grid p,
.roadmap-list span {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.recommend-grid a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--pink-deep);
  font-weight: 900;
}

.roadmap-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.roadmap-list li {
  position: relative;
  display: grid;
  gap: 0.65rem;
  align-content: start;
  padding: 3.5rem 1.1rem 1.2rem;
  counter-increment: steps;
}

.roadmap-list li::before {
  content: counter(steps);
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: #fff;
  font-weight: 900;
}

.footer {
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1020px) {
  .hero,
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 740px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-bottom: 0.75rem;
  }

  .nav {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    display: block;
    min-height: auto;
    padding: 1rem 1rem 0.35rem;
  }

  .hero .eyebrow,
  .hero-visual,
  .metrics-band,
  .hero-actions {
    display: none;
  }

  h1 {
    display: none;
  }

  .hero-lead {
    max-width: 22rem;
    margin-bottom: 0;
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .workspace {
    padding-top: 0.65rem;
  }

  .workspace .section-heading {
    margin-bottom: 0.9rem;
  }

  .workspace .section-heading .eyebrow {
    display: none;
  }

  .workspace h2 {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .floating-chip {
    display: none;
  }

  .metrics-band,
  .recommend-grid,
  .template-grid,
  .roadmap-list,
  .field-row {
    grid-template-columns: 1fr;
  }

  .tool-select-field {
    display: grid;
  }

  .type-gate {
    align-items: start;
    padding-top: 1.7rem;
  }

  .type-gate-card {
    padding: 1rem;
  }

  .type-gate-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .type-gate-option {
    min-height: 2.65rem;
  }

  .generator-panel,
  .result-panel {
    padding: 1rem;
  }

  .form-group {
    padding: 0.85rem;
  }

  .field-heading {
    display: grid;
    gap: 0.2rem;
  }

  .field-heading small {
    font-size: 0.78rem;
  }

  .choice-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
  }

  .choice-chips::-webkit-scrollbar {
    display: none;
  }

  .choice-chip {
    flex: 0 0 auto;
  }

  .panel-header {
    align-items: center;
    margin-bottom: 0.9rem;
  }

  .result-box {
    min-height: 22rem;
  }

  .loading-state,
  .empty-state {
    min-height: 18rem;
  }

  .footer {
    display: grid;
  }
}
