:root {
  --bg: #f6efe5;
  --bg-deep: #e7dac8;
  --surface: rgba(255, 250, 244, 0.9);
  --surface-strong: #fffaf4;
  --line: rgba(77, 52, 27, 0.14);
  --ink: #211913;
  --muted: rgba(33, 25, 19, 0.64);
  --accent: #d76d45;
  --accent-deep: #9d4323;
  --gold: #c69a3b;
  --teal: #355e63;
  --rose: #f0c6b8;
  --success: #587b4f;
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-soft: 0 20px 60px rgba(54, 31, 15, 0.12);
  --shadow-card: 0 16px 34px rgba(44, 28, 16, 0.1);
  --font-sans: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-display: "Palatino Linotype", "Noto Serif TC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(215, 109, 69, 0.2), transparent 24%),
    radial-gradient(circle at 85% 20%, rgba(53, 94, 99, 0.12), transparent 18%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

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

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

img {
  max-width: 100%;
}

.site-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark.small {
  min-height: 42px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.66);
  border: 1px solid rgba(77, 52, 27, 0.08);
  color: var(--muted);
}

.section {
  padding: 40px 0;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-header h1,
.section-header h2,
.feature-copy h3,
.info-card h3,
.step-card h3,
.form-card h3 {
  font-family: var(--font-display);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.lead,
.section-copy,
.footer-copy,
.info-card p,
.feature-copy p,
.step-card p,
.privacy-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.cta-row,
.hero-meta,
.checkbox-grid,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-cta {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 18px 30px rgba(157, 67, 35, 0.24);
}

.secondary-cta {
  background: rgba(255, 250, 244, 0.85);
  border-color: var(--line);
}

.primary-cta:hover,
.secondary-cta:hover {
  transform: translateY(-2px);
}

.hero-meta {
  margin-top: 24px;
}

.meta-chip,
.muted-label {
  color: var(--muted);
}

.meta-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.82);
  border: 1px solid var(--line);
}

.hero-stage {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.machine-shell {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1.08;
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(255, 249, 242, 0.88), rgba(243, 232, 215, 0.92));
  border: 1px solid rgba(77, 52, 27, 0.12);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.machine-shell::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.34));
}

.machine-screen {
  position: absolute;
  inset: 56px 54px 118px;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(240, 198, 184, 0.38), transparent 22%),
    linear-gradient(180deg, #fff 0%, #f6ece0 100%);
  border: 1px solid rgba(77, 52, 27, 0.08);
}

.screen-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(53, 94, 99, 0.12);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
}

.screen-title {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-family: var(--font-display);
}

.screen-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.preview-tile {
  border-radius: 18px;
  min-height: 118px;
  border: 1px solid rgba(77, 52, 27, 0.08);
}

.preview-tile.warm {
  background: linear-gradient(160deg, #ffead9, #e4b28f);
}

.preview-tile.grain {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.42), transparent),
    repeating-linear-gradient(45deg, rgba(198, 154, 59, 0.18), rgba(198, 154, 59, 0.18) 8px, rgba(255,255,255,0.32) 8px, rgba(255,255,255,0.32) 16px),
    #efe0c9;
}

.preview-tile.photo {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.52), transparent 18%),
    linear-gradient(180deg, #97715f, #d9b19b);
}

.preview-tile.glow {
  background:
    radial-gradient(circle at 50% 50%, rgba(240, 198, 184, 0.76), transparent 36%),
    linear-gradient(180deg, #f8f0e8, #d6c3a8);
}

.film-strip {
  position: absolute;
  width: 124px;
  height: 178px;
  background: linear-gradient(180deg, #fff, #f8ecde);
  border-radius: 18px;
  border: 1px solid rgba(77, 52, 27, 0.1);
  box-shadow: var(--shadow-card);
}

.film-strip::before {
  content: "";
  position: absolute;
  inset: 14px 14px 34px;
  border-radius: 12px;
  background: linear-gradient(160deg, #ffd5c1, #cf8a63);
}

.film-strip-a {
  right: 36px;
  bottom: 24px;
  transform: rotate(9deg);
}

.film-strip-b {
  left: 22px;
  bottom: 42px;
  transform: rotate(-11deg);
}

.floating-metrics {
  position: absolute;
  inset: auto 0 0 auto;
  display: grid;
  gap: 12px;
  width: min(260px, 70%);
}

.floating-card {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 250, 244, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.floating-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.06rem;
}

.accent-card {
  background: linear-gradient(180deg, rgba(215, 109, 69, 0.16), rgba(255, 250, 244, 0.92));
}

.section-header {
  margin-bottom: 22px;
}

.section-header h2,
.section-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
}

.about-grid,
.steps-grid,
.partnership-grid,
.cases-grid,
.contact-grid,
.privacy-grid {
  display: grid;
  gap: 18px;
}

.about-grid,
.steps-grid,
.cases-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.info-card,
.step-card,
.form-card,
.faq-item,
.case-card,
.announcement-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.info-card,
.step-card,
.form-card,
.case-card,
.announcement-card {
  padding: 22px;
}

.large-card {
  padding: 28px;
}

.card-icon,
.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(215, 109, 69, 0.12);
  color: var(--accent-deep);
  font-weight: 800;
}

.feature-list {
  display: grid;
  gap: 24px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.feature-row.reverse .feature-visual {
  order: 2;
}

.feature-row.reverse .feature-copy {
  order: 1;
}

.feature-visual,
.dashboard-visual,
.dual-visual,
.frame-visual,
.print-visual,
.alert-visual {
  min-height: 280px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: rgba(255, 251, 246, 0.72);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.dual-visual,
.frame-visual,
.print-visual,
.dashboard-visual,
.alert-visual {
  display: grid;
  place-items: center;
}

.visual-block {
  position: absolute;
  width: 42%;
  height: 70%;
  border-radius: 24px;
  display: grid;
  place-items: end start;
  padding: 18px;
  color: #fff;
  font-weight: 700;
}

.visual-block.before {
  left: 10%;
  top: 14%;
  background: linear-gradient(180deg, #3b2e27, #7f5e52);
}

.visual-block.after {
  right: 10%;
  top: 16%;
  background: linear-gradient(180deg, #eb8f63, #c45b33);
}

.frame-layer {
  position: absolute;
  border-radius: 28px;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.frame-a { width: 76%; height: 72%; background: linear-gradient(180deg, #ffe5d6, #f2c19d); transform: rotate(-8deg); }
.frame-b { width: 62%; height: 64%; background: rgba(53, 94, 99, 0.16); transform: rotate(6deg); }
.frame-c { width: 48%; height: 50%; background: rgba(255, 255, 255, 0.6); }

.print-card {
  position: absolute;
  width: 180px;
  height: 220px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #f4ebde 100%);
  border: 1px solid rgba(77, 52, 27, 0.1);
}

.print-card::before {
  content: "";
  position: absolute;
  inset: 18px 18px 44px;
  border-radius: 16px;
  background: linear-gradient(180deg, #efc0ac, #c57348);
}

.print-card.shifted { transform: translate(-70px, 24px) rotate(-10deg); }
.print-card.raised { transform: translate(70px, -18px) rotate(12deg); }

.dashboard-line {
  position: absolute;
  left: 12%;
  height: 14px;
  border-radius: 999px;
  background: rgba(53, 94, 99, 0.22);
}

.dashboard-line.long { top: 22%; width: 76%; }
.dashboard-line.medium { top: 32%; width: 58%; }
.dashboard-line.short { top: 42%; width: 46%; }

.dashboard-chart {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 16%;
  height: 34%;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(215, 109, 69, 0.2), rgba(215, 109, 69, 0.04)),
    linear-gradient(90deg, rgba(255,255,255,0.42), transparent),
    #fff;
}

.dashboard-chart::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(215,109,69,0.65) 0%, rgba(198,154,59,0.35) 60%, rgba(53,94,99,0.15) 100%);
  clip-path: polygon(0 80%, 16% 62%, 30% 68%, 45% 32%, 58% 40%, 72% 18%, 100% 10%, 100% 100%, 0 100%);
}

.phone-shell {
  width: 200px;
  height: 320px;
  border-radius: 34px;
  padding: 18px;
  background: linear-gradient(180deg, #211913, #574231);
  box-shadow: 0 20px 38px rgba(33, 25, 19, 0.26);
}

.phone-alert {
  min-height: 70px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff2e9, #f6ddca);
  font-weight: 800;
}

.phone-line {
  margin-top: 16px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}

.phone-line.short {
  width: 66%;
}

.benefit-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.benefit-grid div {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(77, 52, 27, 0.08);
}

.benefit-grid strong {
  display: block;
  margin-bottom: 8px;
}

.announcement-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.announcement-card {
  min-width: 280px;
}

.case-card h3,
.announcement-card h3,
.faq-button span {
  font-family: var(--font-display);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
}

.faq-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.faq-button::after {
  content: "+";
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent-deep);
}

.faq-item.is-open .faq-button::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 1.8;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.form-card {
  background: rgba(255, 251, 246, 0.88);
}

.accent-form-card {
  background:
    radial-gradient(circle at top right, rgba(215, 109, 69, 0.14), transparent 22%),
    rgba(255, 251, 246, 0.9);
}

.contact-form,
.field-grid,
.checkbox-fieldset {
  display: grid;
  gap: 14px;
}

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

.contact-form label,
.checkbox-fieldset {
  color: var(--muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf9;
  padding: 13px 15px;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.checkbox-fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
}

.checkbox-fieldset legend {
  padding: 0 8px;
}

.checkbox-grid label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.62);
}

.turnstile-slot {
  min-height: 66px;
}

.honey-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.submit-cta {
  width: 100%;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--accent-deep);
}

.site-footer {
  display: grid;
  gap: 18px;
  padding: 32px 0 12px;
}

.footer-links a {
  color: var(--muted);
}

.copyright {
  color: var(--muted);
  margin: 0;
}

.privacy-shell .section {
  min-height: calc(100vh - 120px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 420ms ease, transform 420ms ease;
}

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

@media (max-width: 1080px) {
  .hero,
  .feature-row,
  .feature-row.reverse,
  .partnership-grid,
  .contact-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-visual,
  .feature-row.reverse .feature-copy {
    order: initial;
  }

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

  .site-header {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100%, calc(100% - 20px));
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
  }

  .hero-stage {
    min-height: 420px;
  }

  .about-grid,
  .steps-grid,
  .cases-grid,
  .field-grid.two-col,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.9rem;
  }

  .section {
    padding: 28px 0;
  }
}