:root {
  --bg: #f7f4ef;
  --bg-soft: #ebe7df;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #17191f;
  --muted: #68707b;
  --line: rgba(25, 31, 42, 0.1);
  --line-strong: rgba(25, 31, 42, 0.18);
  --blue: #3d7df5;
  --blue-strong: #1c5fe8;
  --warm: #f1a85d;
  --green: #58b99b;
  --shadow: 0 24px 70px rgba(44, 50, 62, 0.14);
  --shadow-soft: 0 14px 38px rgba(44, 50, 62, 0.1);
  --max: 1180px;
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.95), transparent 28rem),
    radial-gradient(circle at 86% 12%, rgba(94, 151, 255, 0.14), transparent 26rem),
    radial-gradient(circle at 74% 78%, rgba(241, 168, 93, 0.13), transparent 30rem),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 48%, #eeebe4 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 25, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 25, 31, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 70%);
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: auto -18vw -26vw auto;
  width: 48vw;
  height: 48vw;
  pointer-events: none;
  background: radial-gradient(circle, rgba(61, 125, 245, 0.16), transparent 64%);
  filter: blur(16px);
  z-index: -1;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(25, 31, 42, 0.08);
  background: rgba(250, 248, 244, 0.74);
  backdrop-filter: blur(22px);
}

.nav {
  max-width: var(--max);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(61, 125, 245, 0.98), rgba(68, 184, 151, 0.9)),
    #2f73ef;
  box-shadow: 0 14px 34px rgba(61, 125, 245, 0.28);
  font-size: 17px;
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 4px;
  border: 1px solid rgba(25, 31, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.nav__links a {
  display: block;
  padding: 8px 14px;
  color: #5f6875;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--text);
  background: #fff;
  box-shadow: 0 10px 24px rgba(44, 50, 62, 0.08);
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 104px 24px;
  scroll-margin-top: 92px;
}

.hero {
  max-width: 1360px;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(380px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(48px, 7vw, 104px);
  padding-top: 64px;
  padding-bottom: 70px;
  padding-left: clamp(34px, 5vw, 72px);
  padding-right: clamp(34px, 5vw, 72px);
}

.eyebrow {
  margin: 0 0 18px;
  color: #4970a7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 6.9vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
}

.hero__copy {
  position: relative;
  z-index: 2;
  padding-left: clamp(0px, 1.4vw, 24px);
}

.hero__intro {
  max-width: 590px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  flex: 0 0 auto;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
  animation: spin 0.72s linear infinite;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  box-shadow: 0 18px 38px rgba(61, 125, 245, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 22px 48px rgba(61, 125, 245, 0.34);
}

.btn-secondary {
  color: var(--text);
  border-color: rgba(25, 31, 42, 0.12);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 30px rgba(44, 50, 62, 0.08);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(25, 31, 42, 0.08);
  border-radius: 999px;
  color: #5e6672;
  background: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 700;
}

.hero__visual {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  perspective: 1200px;
  isolation: isolate;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 9% 4% 1% 8%;
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.74), transparent 42%),
    radial-gradient(circle at 76% 58%, rgba(61, 125, 245, 0.18), transparent 38%);
  filter: blur(18px);
  transform: translateZ(-60px);
  animation: visualAura 7.5s ease-in-out infinite;
}

.hero__visual::after {
  content: "";
  position: absolute;
  right: 6%;
  top: 10%;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(61, 125, 245, 0.18), transparent 65%);
  filter: blur(18px);
  opacity: 0.8;
  animation: glowDrift 8.2s ease-in-out infinite;
  z-index: -1;
}

.hero__visual picture {
  display: block;
  width: min(820px, 100%);
  max-width: 100%;
  justify-self: end;
}

.hero__visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 36px;
  box-shadow: var(--shadow);
  transform:
    translate3d(var(--tilt-x, 0), var(--tilt-y, 0), 0)
    rotateX(var(--tilt-rx, 0deg))
    rotateY(var(--tilt-ry, 0deg));
  transition: transform 0.18s ease-out;
  animation: visualFloat 7s ease-in-out infinite;
}

.floating-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  color: #3d526f;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 38px rgba(44, 50, 62, 0.12);
  backdrop-filter: blur(16px);
  font-size: 14px;
  font-weight: 800;
  animation: floatChip 5.8s ease-in-out infinite, chipGlow 4.8s ease-in-out infinite;
}

.chip-a {
  top: 20%;
  left: 18%;
}

.chip-b {
  right: 4%;
  top: 34%;
  animation-delay: -1.4s;
}

.chip-c {
  left: 28%;
  bottom: 16%;
  animation-delay: -2.5s;
}

.section-head {
  max-width: 740px;
  margin-bottom: 42px;
}

.section-head p,
.idea-panel p,
.about p,
.direction-item p {
  color: var(--muted);
  font-size: 17px;
}

.directions {
  position: relative;
}

.work-section {
  padding-top: 72px;
}

.work-list {
  display: grid;
  gap: 16px;
}

.work-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 3vw, 34px);
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(25, 31, 42, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.work-card:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 125, 245, 0.24);
  box-shadow: 0 24px 58px rgba(44, 50, 62, 0.14);
}

.work-card__index {
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.work-card h3 {
  margin-bottom: 6px;
  font-size: 26px;
}

.work-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.work-card__meta span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #496072;
  background: rgba(61, 125, 245, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.work-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.work-card__action {
  color: var(--blue-strong);
  font-weight: 900;
  white-space: nowrap;
}

.work-collection-link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  color: inherit;
  text-decoration: none;
  border: 1px dashed rgba(61, 125, 245, 0.3);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
}

.work-collection-link span {
  color: var(--muted);
}

.work-collection-link strong {
  color: var(--blue-strong);
}

.collection-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 82px 24px 96px;
}

.collection-hero {
  max-width: 760px;
  margin-bottom: 42px;
}

.collection-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(56px, 9vw, 96px);
}

.collection-hero p {
  color: var(--muted);
  font-size: 18px;
}

.collection-section {
  display: grid;
  gap: 18px;
}

.collection-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.collection-toolbar span {
  padding: 8px 12px;
  border: 1px solid rgba(61, 125, 245, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #496072;
  font-weight: 900;
}

.work-list--collection .work-card {
  grid-template-columns: 70px minmax(0, 1fr) auto;
}

.work-list--collection .work-card h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.direction-list {
  display: grid;
  gap: 16px;
}

.direction-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(25, 31, 42, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.direction-item:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 125, 245, 0.24);
  box-shadow: 0 24px 58px rgba(44, 50, 62, 0.14);
}

.direction-item > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #6fa0ff, #75ccb6);
  box-shadow: 0 14px 28px rgba(61, 125, 245, 0.22);
  font-weight: 900;
}

.direction-item p {
  max-width: 720px;
  margin-bottom: 0;
}

.idea-section {
  max-width: 1280px;
}

.idea-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(25, 31, 42, 0.08);
  border-radius: 36px;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.9), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(61, 125, 245, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.idea-panel__copy p {
  max-width: 620px;
}

.idea-form {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(25, 31, 42, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.idea-form label {
  display: grid;
  gap: 8px;
}

.idea-form label span {
  color: #4b5562;
  font-size: 14px;
  font-weight: 800;
}

.idea-form textarea,
.idea-form input {
  width: 100%;
  border: 1px solid rgba(25, 31, 42, 0.1);
  border-radius: 18px;
  color: var(--text);
  background: rgba(250, 250, 248, 0.86);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.idea-form textarea {
  min-height: 138px;
  padding: 14px 15px;
}

.idea-form input {
  height: 48px;
  padding: 0 15px;
}

.idea-form textarea:focus,
.idea-form input:focus {
  border-color: rgba(61, 125, 245, 0.46);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(61, 125, 245, 0.1);
}

.form-note {
  margin: 0;
  color: #7a828d;
  font-size: 13px;
}

.about {
  padding-top: 70px;
}

.about__inner {
  max-width: 860px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.46));
  border: 1px solid rgba(25, 31, 42, 0.08);
  box-shadow: var(--shadow-soft);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 52px;
  color: #717985;
  font-size: 14px;
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer a {
  color: #59616d;
  text-decoration: none;
}

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

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 44px));
  padding: 14px 16px;
  border: 1px solid rgba(25, 31, 42, 0.08);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.68s ease, transform 0.68s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legacy tool files are kept out of the main navigation but remain readable locally. */
.tool-page {
  background: #f8f6f1;
}

.tool-page #signalCanvas {
  display: none;
}

.picture-book-app {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 24px 100px;
}

.tool-hero,
.draft-panel,
.result-panel {
  display: grid;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.tool-hero {
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.74fr);
  align-items: start;
}

.tool-copy h1 {
  font-size: clamp(54px, 8vw, 92px);
}

.tool-subtitle {
  max-width: 620px;
  color: #1f2d3a;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.32;
}

.tool-note,
.privacy-tip,
.book-form small,
#bookMeta {
  color: var(--muted);
}

.tool-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tool-proof span,
.example-row button {
  border: 1px solid rgba(61, 125, 245, 0.16);
  border-radius: 999px;
  background: #fff;
  color: #24415f;
  font-weight: 800;
}

.tool-proof span {
  padding: 9px 13px;
}

.example-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.example-row button {
  padding: 9px 12px;
}

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

.book-form,
.result-head,
.draft-pages,
.draft-actions,
.book-preview,
.page-controls {
  display: grid;
  gap: 16px;
}

.book-form label {
  display: grid;
  gap: 8px;
}

.book-form input,
.book-form textarea,
.book-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}

.book-form textarea {
  resize: vertical;
}

.privacy-tip {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(88, 185, 155, 0.1);
  font-size: 14px;
}

.result-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.draft-panel {
  margin-top: 24px;
}

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

.draft-page {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.draft-page__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.draft-page__head span {
  color: #24415f;
  font-weight: 900;
}

.draft-page__head small {
  color: var(--muted);
}

.draft-page textarea {
  width: 100%;
  min-height: 188px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 13px;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}

.draft-actions {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.book-page {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 20px;
  border-radius: 24px;
  background: #fff;
}

.book-page img {
  max-width: min(720px, 100%);
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 18px 46px rgba(44, 50, 62, 0.1);
}

#pageText {
  max-width: 760px;
  margin: 0;
  color: #253346;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.52;
  text-align: center;
}

.page-controls {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.page-controls span {
  text-align: center;
  font-weight: 800;
}

@keyframes floatChip {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@keyframes visualFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

@keyframes visualAura {
  0%,
  100% {
    opacity: 0.82;
    scale: 1;
  }
  50% {
    opacity: 1;
    scale: 1.035;
  }
}

@keyframes glowDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-28px, 24px, 0);
  }
}

@keyframes chipGlow {
  0%,
  100% {
    box-shadow: 0 16px 38px rgba(44, 50, 62, 0.12);
  }
  50% {
    box-shadow: 0 18px 46px rgba(61, 125, 245, 0.18);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

  .hero {
    max-width: var(--max);
    min-height: auto;
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero__visual {
    min-height: auto;
    order: -1;
  }

  .hero__visual img {
    width: 100%;
    justify-self: center;
  }

  .chip-a {
    left: 6%;
  }

  .chip-b {
    right: 7%;
  }
}

@media (max-width: 720px) {
  .nav {
    min-height: 66px;
    padding: 0 16px;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    border-radius: 22px;
    padding: 10px;
    box-shadow: var(--shadow-soft);
  }

  .nav__links.is-open {
    display: grid;
  }

  .tool-nav,
  .tool-nav.is-open {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    display: flex;
    padding: 4px;
    border-radius: 999px;
    box-shadow: none;
  }

  .nav__links a {
    padding: 12px 14px;
  }

  .section {
    padding: 74px 18px;
  }

  .hero {
    padding-top: 34px;
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .hero__actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .hero__visual img {
    width: 100%;
    height: auto;
    border-radius: 24px;
  }

  .hero__visual picture {
    width: 100%;
    height: auto;
  }

  .floating-chip {
    display: none;
  }

  .direction-item,
  .work-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work-card__action {
    justify-self: start;
  }

  .idea-panel,
  .tool-hero,
  .draft-panel,
  .result-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .result-head {
    grid-template-columns: 1fr;
  }

  .draft-pages,
  .draft-actions {
    grid-template-columns: 1fr;
  }

  .page-controls {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

[hidden] {
  display: none !important;
}
