/* Homepage composition. Shared navigation and inner pages stay in site.css. */
.home-main { --home-space: 80px; }
.home-main > .container, .home-hero-inner { max-width: 1188px; }
.home-hero { position: relative; isolation: isolate; }
.seaside-background { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; mask-image: linear-gradient(#000 0%, #000 70%, transparent 100%); }
.seaside-background img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; opacity: .27; }
.seaside-background::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #ffffffbd 12%, #ffffff6b 42%, transparent 75%); }
.home-hero-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 52px; padding-block: 68px 72px; }
.hero-copy { min-width: 0; }
.hero-copy h1 { font-size: clamp(38px, 3.6vw, 48px); line-height: 1.3; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
.hero-copy h1 span { color: var(--blue); }
.hero-description { color: var(--muted); font-size: 16px; line-height: 1.95; margin-top: 23px; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.hero-actions .button { min-height: 52px; padding-inline: 25px; font-size: 16px; }
.hero-actions .secondary { background: #ffffffbf; border-color: #c5d7ed; }
.hero-platform { color: var(--muted); font-size: 12px; margin-top: 12px; }
.home-text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--blue-dark); font-size: 14px; font-weight: 550; }
.home-text-link .icon { width: 19px; height: 19px; }
.hero-features { margin-top: 20px; color: var(--muted); font-size: 13px; }

/* A single canvas illustration, with real, keyboard-accessible image selection. */
.workbench { min-width: 0; margin: 0; border: 5px solid white; border-radius: 12px; background: white; box-shadow: 0 16px 36px #183f6817; color: #263b65; }
.demo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 10px 18px; }
.demo-brand { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.demo-brand img { width: 25px; height: 25px; object-fit: contain; }
.demo-brand > span { color: var(--muted); border-left: 1px solid var(--line); margin-left: 7px; padding-left: 14px; font-size: 12px; }
.demo-tools { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 11px; }
.demo-tools .icon { width: 15px; height: 15px; }
.demo-stage { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: center; gap: 17px; padding: 26px 25px; background: #edf5fc; }
.handnote { font-family: 'Long Cang', 'KaiTi', serif; font-weight: 400; line-height: 1.55; color: #2152a4; }
.canvas-note { font-size: 23px; transform: rotate(-9deg); white-space: nowrap; }
.canvas-note::after { content: ''; display: block; width: 88%; height: 10px; margin-top: 8px; border-top: 2px solid #337bea; border-radius: 55% 85% 0 0; transform: rotate(-11deg); }
.selection-frame { position: relative; min-width: 0; aspect-ratio: 3 / 2; border: 1px solid #278bff; }
.canvas-photo { width: 100%; height: 100%; object-fit: cover; }
.selection-frame i { position: absolute; width: 7px; height: 7px; border: 1px solid #278bff; border-radius: 50%; background: white; }
.selection-frame i:nth-of-type(1) { top: -4px; left: -4px; }
.selection-frame i:nth-of-type(2) { top: -4px; right: -4px; }
.selection-frame i:nth-of-type(3) { bottom: -4px; left: -4px; }
.selection-frame i:nth-of-type(4) { bottom: -4px; right: -4px; }
.demo-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; }
.demo-bottom > span { color: var(--muted); font-size: 11px; }
.demo-thumbnails { display: flex; gap: 9px; }
.demo-thumbnails button { width: 64px; height: 46px; padding: 2px; border: 1px solid transparent; border-radius: 5px; }
.demo-thumbnails button.selected { border-color: var(--blue); }
.demo-thumbnails button:hover { background: #e8f2ff; }
.demo-thumbnails img { width: 100%; height: 100%; border-radius: 3px; object-fit: cover; }
.canvas-photo.is-changing { animation: picture-settle .5s var(--ease); }

/* Photographs get their own space; copy no longer competes with image overlays. */
.home-cases { padding-top: 24px; }
.home-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.home-main h2 { font-size: 28px; line-height: 1.45; letter-spacing: -.015em; font-weight: 700; text-wrap: balance; }
.home-section-heading p, .home-resources section > p { margin-top: 11px; color: var(--muted); line-height: 1.8; }
.home-section-heading > a { flex-shrink: 0; }
.home-example-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-example { min-width: 0; }
.home-example > a { display: block; border-radius: 9px; }
.home-example > a > img { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 9px; object-fit: cover; }
.home-example h3 { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 20px; margin-top: 19px; font-weight: 650; }
.home-example h3 .icon { color: var(--muted); width: 20px; height: 20px; }
.home-example p { color: var(--muted); font-size: 14px; line-height: 1.8; margin-top: 6px; }
.home-main .home-example > a:hover { text-decoration: none; }
.home-example > a:hover h3 { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 5px; }
.home-example-note { font-size: 12px; color: var(--muted); margin-top: 22px; }

.home-resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 88px; margin-top: var(--home-space); padding-top: var(--home-space); border-top: 1px solid var(--line); }
.home-resources > section { min-width: 0; }
.home-resource-links { margin: 23px 0 12px; }
.home-resource-links > a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.home-resource-links strong { font-size: 17px; line-height: 1.65; font-weight: 600; }
.home-resource-links small { display: block; font-size: 13px; margin-top: 4px; color: var(--muted); }
.home-resource-links .icon { color: var(--muted); width: 19px; height: 19px; }
.home-main .home-resource-links > a:hover { text-decoration: none; }
.home-resource-links > a:hover strong { text-decoration: underline; text-underline-offset: 5px; }

.home-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; padding-top: var(--home-space); margin-top: var(--home-space); border-top: 1px solid var(--line); }
.home-faq > div > a { margin-top: 12px; }
.home-faq-list { min-width: 0; }
.home-faq-list details { border-bottom: 1px solid var(--line); }
.home-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 62px; padding-block: 18px; font-size: 16px; line-height: 1.7; cursor: pointer; list-style: none; }
.home-faq-list details:first-child summary { padding-top: 0; min-height: 44px; }
.home-faq-list summary::-webkit-details-marker { display: none; }
.home-faq-list summary .icon { height: 17px; width: 17px; color: var(--muted); transition: transform .2s; }
.home-faq-list details[open] summary .icon { transform: rotate(180deg); }
.home-faq-list .faq-answer { padding: 0 34px 20px 0; font-size: 14px; line-height: 1.9; }
.home-faq-list .faq-answer a { min-height: 44px; }
.home-download { display: flex; align-items: center; justify-content: space-between; gap: 28px; background: #f0f7ff; border-radius: 12px; padding: 36px 42px; margin-block: var(--home-space) 60px; }
.home-download p { color: var(--muted); margin-top: 9px; }
.home-download .button { min-height: 52px; padding-inline: 30px; font-size: 16px; }
.home-page .site-footer { max-width: 1188px; padding-block: 25px 30px; border-top: 1px solid var(--line); }

@media (max-width: 1150px) {
  .home-hero-inner { gap: 32px; padding-block: 52px 60px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-description { font-size: 15px; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { padding-inline: 19px; font-size: 15px; }
  .demo-stage { grid-template-columns: 80px minmax(0, 1fr); gap: 13px; padding: 22px 18px; }
  .canvas-note { font-size: 19px; }
  .demo-tools { gap: 11px; }
  .demo-bottom { padding-inline: 12px; }
  .demo-thumbnails { gap: 5px; }
  .demo-thumbnails button { width: 51px; }
  .home-resources { gap: 48px; }
  .home-main h2 { font-size: 26px; }
}

@media (max-width: 900px) {
  .home-main { --home-space: 60px; }
  .home-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 45px 50px; }
  .hero-copy { text-align: center; }
  .hero-copy h1 { font-size: 43px; }
  .hero-description { margin-top: 20px; }
  .hero-actions { justify-content: center; margin-top: 24px; }
  .hero-actions .button { padding-inline: 28px; }
  .hero-features { margin-top: 12px; }
  .workbench { width: 100%; max-width: 600px; margin-inline: auto; }
  .demo-stage { grid-template-columns: 100px minmax(0, 1fr); gap: 20px; padding: 26px; }
  .canvas-note { font-size: 23px; }
  .demo-thumbnails { gap: 8px; }
  .demo-thumbnails button { width: 64px; }
  .demo-bottom { padding-inline: 18px; }
  .home-example-grid { gap: 18px; }
  .home-example h3 { font-size: 18px; }
  .home-example p { font-size: 13px; }
  .home-resources { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .home-faq { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home-faq > div > a { margin-top: 5px; }
  .home-download { padding: 30px; }
  .home-download h2 { font-size: 24px; }
}

@media (max-width: 600px) {
  .home-main { --home-space: 44px; }
  .home-hero-inner { padding-block: 35px 32px; gap: 28px; }
  .hero-copy h1 { font-size: clamp(30px, 8.7vw, 39px); line-height: 1.35; }
  .hero-description { margin-top: 17px; font-size: 14px; line-height: 1.9; }
  .hero-description br { display: none; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { flex: 1; padding-inline: 7px; min-height: 49px; gap: 7px; font-size: 14px; }
  .hero-actions .icon { width: 20px; height: 20px; }
  .hero-platform { font-size: 11px; margin-top: 10px; }
  .hero-features { font-size: 12px; margin-top: 7px; }
  .workbench { border-width: 3px; border-radius: 9px; }
  .demo-toolbar { padding: 9px 12px; min-height: 44px; gap: 8px; }
  .demo-brand { gap: 5px; font-size: 12px; }
  .demo-brand img { width: 23px; height: 23px; }
  .demo-brand > span { margin-left: 5px; padding-left: 10px; font-size: 11px; }
  .demo-tools { gap: 10px; }
  .demo-tools > .icon { display: none; }
  .demo-stage { grid-template-columns: minmax(0, 1fr); padding: 17px; }
  .canvas-note { display: none; }
  .demo-bottom { gap: 8px; padding: 10px 9px; }
  .demo-bottom > span { font-size: 10px; }
  .demo-thumbnails { gap: 4px; }
  .demo-thumbnails button { width: 46px; height: 44px; }
  .home-cases { padding-top: 22px; }
  .home-section-heading { display: block; margin-bottom: 22px; }
  .home-main h2 { font-size: 24px; line-height: 1.5; }
  .home-section-heading p, .home-resources section > p { font-size: 14px; margin-top: 9px; }
  .home-section-heading > a { margin-top: 8px; }
  .home-example-grid { grid-template-columns: minmax(0, 1fr); gap: 29px; }
  .home-example h3 { font-size: 20px; margin-top: 14px; }
  .home-example p { font-size: 14px; margin-top: 5px; }
  .home-example-note { font-size: 11px; line-height: 1.8; margin-top: 19px; }
  .home-resources { gap: 40px; }
  .home-resource-links { margin-top: 15px; }
  .home-resource-links strong { font-size: 16px; }
  .home-resource-links small { font-size: 12px; }
  .home-text-link { font-size: 13px; }
  .home-faq { gap: 24px; }
  .home-faq-list summary { font-size: 15px; }
  .home-faq-list .faq-answer { padding-right: 10px; }
  .home-download { align-items: stretch; flex-direction: column; padding: 27px 21px; gap: 22px; margin-bottom: 36px; }
  .home-download h2 { font-size: 22px; }
  .home-download p { font-size: 14px; }
  .home-download .button { width: 100%; font-size: 15px; min-height: 49px; }
  .home-page .site-footer { padding-block: 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .canvas-photo.is-changing { animation: none; }
  .home-faq-list summary .icon { transition: none; }
}
