:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-strong: #f1f5ff;
  --text: #172033;
  --muted: #5d6980;
  --line: #dfe5f1;
  --blue: #2458ff;
  --blue-dark: #173bb4;
  --violet: #7457ff;
  --green: #0f8f72;
  --shadow: 0 18px 50px rgba(28, 45, 84, 0.08);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

a {
  color: var(--blue);
  text-decoration: none;
}

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

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.75rem);
  max-width: 780px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.08rem;
}

h4 {
  font-size: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(223, 229, 241, 0.78);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 760;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-strong);
}

.nav-toggle {
  display: none;
  min-height: 40px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.hero {
  width: min(var(--max), calc(100% - 10vw));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.hero-content,
.page-hero {
  min-width: 0;
}

.page-hero {
  width: min(900px, calc(100% - 10vw));
  margin: 0 auto;
  padding: 7rem 0 4.5rem;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

.page-hero p {
  max-width: 760px;
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy,
.page-hero > p {
  max-width: 720px;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.tool-hero {
  width: min(1240px, calc(100% - 6vw));
}

.hero-intro {
  max-width: 960px;
  margin: 0 auto 3rem;
  text-align: center;
}

.hero-intro h1 {
  max-width: none;
  font-size: clamp(2.8rem, 5.4vw, 4.9rem);
}

.hero-intro p {
  max-width: 820px;
  margin: 1.15rem auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.hero-note {
  width: min(720px, 100%);
  min-height: 46px;
  margin: 1.45rem auto 0;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 650;
}

.hero-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 2.25rem;
  align-items: stretch;
}

.generator-card,
.preview-card {
  min-height: 610px;
  padding: clamp(1.6rem, 2.6vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 52px rgba(28, 45, 84, 0.1);
}

.generator-card h2,
.preview-card h2 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.2rem;
  font-size: clamp(1.6rem, 2.3vw, 2rem);
}

.tool-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0.35rem;
  margin-bottom: 1.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7ed;
}

.tool-tab {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tool-tab.is-active {
  color: var(--text);
  background: #fff;
  box-shadow: 0 6px 16px rgba(28, 45, 84, 0.08);
}

.tool-mode {
  display: none;
}

.tool-mode.is-active {
  display: block;
}

.field-label {
  display: block;
  margin: 1.2rem 0 0.45rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 820;
}

.prompt-input,
.tool-select {
  width: 100%;
  min-height: 54px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  box-shadow: 0 4px 14px rgba(28, 45, 84, 0.04);
}

.tool-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #9aa3b5 50%),
    linear-gradient(135deg, #9aa3b5 50%, transparent 50%);
  background-position:
    calc(100% - 24px) 50%,
    calc(100% - 18px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.prompt-input {
  resize: vertical;
  min-height: 158px;
}

.prompt-input:focus {
  outline: 3px solid rgba(36, 88, 255, 0.14);
  border-color: #9db0ff;
}

.control-group {
  margin-top: 0.95rem;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.option-chip {
  min-height: 38px;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 760;
  cursor: pointer;
}

.option-chip.is-selected,
.option-chip:hover {
  color: var(--blue-dark);
  border-color: #b9c7ec;
  background: var(--surface-strong);
}

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

.char-count {
  margin-top: 0.55rem;
  color: var(--muted);
  font-weight: 650;
}

.upload-box {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 150px;
  padding: 1rem;
  border: 1px dashed #b9c7ec;
  border-radius: 8px;
  background: #fbfcff;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.upload-box span {
  font-weight: 820;
}

.upload-box small {
  color: var(--muted);
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.generate-button,
.ghost-tool-button {
  width: 100%;
  min-height: 56px;
  margin-top: 1.45rem;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 820;
  cursor: pointer;
}

.generate-button {
  color: #111827;
  background: #ffc928;
  box-shadow: 0 14px 28px rgba(255, 201, 40, 0.26);
}

.generate-button:hover {
  background: #f5bc13;
}

.ghost-tool-button {
  margin-top: 0.85rem;
  color: var(--muted);
  background: transparent;
}

.preview-icon {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.preview-icon::after {
  content: "";
  position: absolute;
  top: 3px;
  right: -8px;
  width: 7px;
  height: 8px;
  clip-path: polygon(0 0, 100% 25%, 100% 75%, 0 100%);
  background: currentColor;
}

.preview-frame {
  display: grid;
  place-items: center;
  min-height: 390px;
  padding: clamp(1rem, 2vw, 2rem);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}

.preview-canvas {
  position: relative;
  width: min(100%, 620px);
  min-height: 290px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 58% 40%, rgba(23, 32, 51, 0.18) 0 2px, transparent 2.5px) 0 0 / 14px 14px,
    linear-gradient(135deg, #fffaf0 0%, #f4f7fd 100%);
}

.preview-topbar {
  position: absolute;
  top: 28px;
  right: 32px;
  left: 32px;
  height: 10px;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.08);
}

.preview-art {
  position: absolute;
  inset: 64px 40px 38px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.7rem;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.38) 60%, transparent 61%);
}

.preview-camera {
  position: relative;
  width: 54px;
  height: 44px;
  border: 4px solid rgba(23, 32, 51, 0.55);
  border-radius: 10px;
}

.preview-camera::after {
  content: "";
  position: absolute;
  top: 9px;
  right: -18px;
  width: 17px;
  height: 20px;
  clip-path: polygon(0 0, 100% 25%, 100% 75%, 0 100%);
  background: rgba(23, 32, 51, 0.55);
}

.preview-art strong {
  font-size: 1.08rem;
}

.preview-art p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.05rem;
  border-radius: 8px;
  font-weight: 780;
  line-height: 1.2;
}

.button.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(36, 88, 255, 0.24);
}

.button.primary:hover {
  color: #fff;
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
}

.button.secondary:hover {
  color: var(--blue-dark);
  border-color: #b9c7ec;
}

.hero-panel,
.card,
.note-box,
.large-link-card,
.checklist-card,
.prompt-card,
.path-card,
.prompt-mini {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.8rem;
  border-radius: 999px;
  color: var(--green);
  background: #eaf9f4;
  font-size: 0.82rem;
  font-weight: 780;
}

.signal-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.75rem;
  align-items: center;
  min-height: 68px;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.signal-list span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
}

.signal-list a {
  color: var(--text);
  font-weight: 760;
}

.content-section {
  width: min(var(--max), calc(100% - 10vw));
  margin: 0 auto;
  padding: 4rem 0;
  border-top: 1px solid rgba(223, 229, 241, 0.8);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 1.75rem;
}

.text-grid,
.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.split-section {
  align-items: start;
}

.split-section > div > h3 {
  margin: 1rem 0 0.55rem;
}

.text-grid p,
.wide-copy,
.split-section p,
.card p,
.feature-block p,
.comparison-strip p,
.prompt-card p,
.faq-list p,
.site-footer p {
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.path-grid,
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.path-card {
  display: grid;
  gap: 0.75rem;
  min-height: 250px;
  padding: 1.35rem;
  color: var(--text);
}

.path-card:hover {
  color: var(--text);
  border-color: #b9c7ec;
  transform: translateY(-2px);
}

.path-number {
  display: inline-grid;
  width: 38px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: var(--surface-strong);
  font-size: 0.82rem;
  font-weight: 820;
}

.path-card p {
  color: var(--muted);
}

.path-cta {
  align-self: end;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  padding: 0 0.8rem;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 0.88rem;
  font-weight: 780;
}

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

.card,
.prompt-card {
  padding: 1.25rem;
}

.card h3,
.feature-block h3,
.feature-block h4,
.comparison-strip h3,
.prompt-card h3 {
  margin-bottom: 0.65rem;
}

.card p,
.prompt-card p {
  margin-bottom: 0;
}

.note-box,
.checklist-card,
.prompt-mini {
  padding: 1.4rem;
}

.note-box.wide {
  margin-top: 1.5rem;
}

.note-box h3,
.note-box h4,
.checklist-card h3,
.prompt-mini h3 {
  margin-bottom: 0.75rem;
}

.subsection-title {
  margin: 1.75rem 0 1rem;
}

.prompt-mini ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.prompt-mini li + li {
  margin-top: 0.55rem;
}

.feature-row,
.comparison-strip,
.prompt-grid {
  display: grid;
  gap: 1rem;
}

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

.feature-block,
.comparison-strip > div {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.comparison-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.5rem 0;
}

.section-action {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.compact-table table {
  min-width: 780px;
}

.large-link-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.4rem;
  color: var(--text);
}

.large-link-card:hover {
  color: var(--text);
  border-color: #b9c7ec;
}

.large-link-card span,
.large-link-card small {
  color: var(--muted);
}

.large-link-card strong {
  font-size: 1.35rem;
  line-height: 1.2;
}

.link-stack {
  display: grid;
  gap: 0.75rem;
}

.link-stack a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 740;
  box-shadow: var(--shadow);
}

.link-stack a:hover {
  color: var(--blue-dark);
  border-color: #b9c7ec;
}

.checklist-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.checklist-card li + li {
  margin-top: 0.5rem;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text);
  background: #f4f7fd;
  font-size: 0.88rem;
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

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

.faq-list {
  display: grid;
  gap: 0.85rem;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

summary {
  cursor: pointer;
  min-height: 58px;
  padding: 1rem 1.15rem;
  color: var(--text);
  font-weight: 780;
}

details p {
  padding: 0 1.15rem 1.1rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: min(var(--max), calc(100% - 10vw));
  margin: 0 auto;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.site-footer div {
  max-width: 620px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0.8rem;
}

.site-footer a {
  color: var(--muted);
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--blue-dark);
}

@media (max-width: 860px) {
  .site-header {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 5vw;
    left: 5vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem;
  }

  .hero {
    min-height: auto;
    padding: 3rem 0 3rem;
  }

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

  .generator-card,
  .preview-card {
    min-height: auto;
  }

  .page-hero {
    padding: 4rem 0 3rem;
  }

  .text-grid,
  .split-section,
  .feature-row,
  .comparison-strip,
  .prompt-grid,
  .path-grid,
  .use-case-grid,
  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 3rem 0;
  }

  .site-footer {
    flex-direction: column;
  }

  .output-stack {
    grid-template-columns: 1fr;
  }

  .output-card-large {
    grid-row: auto;
  }

  .output-card-large .mock-output {
    min-height: 240px;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 15px;
  }

  .site-header,
  .hero,
  .page-hero,
  .content-section,
  .site-footer {
    width: min(100% - 2rem, var(--max));
  }

  .site-header {
    width: 100%;
    padding: 0 1rem;
  }

  .site-nav {
    right: 1rem;
    left: 1rem;
  }

  .hero-actions,
  .tool-actions,
  .button {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-note {
    border-radius: 8px;
  }

  .button {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }
}
