:root {
  color-scheme: light;
  --ink: #111214;
  --muted: #5d626a;
  --paper: #f4f3ef;
  --surface: #ffffff;
  --line: #d9d9d4;
  --gold: #ca953a;
  --gold-soft: #f2dfb3;
  --teal: #0d6b63;
  --red: #a9473f;
  --blue: #425f9a;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.nowrap { white-space: nowrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 76px);
  border-bottom: 1px solid rgba(17, 18, 20, 0.12);
  background: rgba(244, 243, 239, 0.92);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 820; text-decoration: none; }
.brand-logo { width: 48px; height: 48px; flex: 0 0 48px; border: 1px solid rgba(17, 18, 20, 0.1); border-radius: 12px; object-fit: contain; background: #fff; }
nav { display: flex; gap: 20px; }
nav a { color: var(--muted); font-size: 15px; font-weight: 680; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

.home-hero, .product-hero, .about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: clamp(34px, 7vw, 110px);
  align-items: center;
  min-height: calc(100svh - 67px);
  padding: clamp(54px, 8vw, 108px) clamp(20px, 5vw, 76px);
}

.home-hero { background: radial-gradient(circle at 82% 22%, rgba(202, 149, 58, 0.18), transparent 24%), var(--paper); }
.hero-copy { max-width: 850px; }
.eyebrow { margin: 0 0 14px; color: #805b1e; font-size: 13px; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(52px, 8.3vw, 112px); line-height: 0.98; letter-spacing: -0.055em; }
h2 { margin-bottom: 18px; font-size: clamp(34px, 5vw, 64px); line-height: 1.08; letter-spacing: -0.035em; }
h3 { margin-bottom: 10px; font-size: 21px; }
.hero-copy > p:not(.eyebrow), .lead { max-width: 720px; color: var(--muted); font-size: clamp(18px, 2vw, 23px); }
.logo-panel { display: grid; width: 100%; aspect-ratio: 1; place-items: center; overflow: hidden; padding: clamp(12px, 2vw, 28px); border: 1px solid rgba(17, 18, 20, 0.1); border-radius: 34px; background: #fff; box-shadow: 0 34px 90px rgba(17, 18, 20, 0.13); }
.logo-panel img { width: 100%; height: 100%; border-radius: 22px; object-fit: contain; }
.studio-logo-panel { transform: rotate(1.5deg); }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 12px 19px; border: 1px solid transparent; border-radius: 999px; font-weight: 780; text-decoration: none; }
.button.dark { background: var(--ink); color: white; }
.button.accent { background: var(--teal); color: white; }
.button.ghost { border-color: var(--line); background: rgba(255,255,255,0.72); }
.button.disabled { background: #ece3cc; color: #73531d; cursor: default; }
.hero-copy .button { margin-top: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.section { padding: clamp(66px, 9vw, 120px) clamp(20px, 5vw, 76px); }
.section-title { max-width: 850px; margin-bottom: 38px; }
.section-title > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.works { background: #ecebe6; }
.work-list { display: grid; gap: 22px; }
.work-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr); min-height: 560px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); }
.work-copy { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 5vw, 58px); }
.work-topline { display: flex; flex-wrap: wrap; justify-content: space-between; width: 100%; gap: 12px; margin-bottom: 42px; color: var(--muted); font-size: 14px; font-weight: 750; }
.status { display: inline-flex; width: fit-content; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 780; }
.status.live { background: #dceee7; color: #075a42; }
.status.filing { background: #f5e5bd; color: #73531d; }
.app-icon { width: 96px; height: 96px; border-radius: 22px; object-fit: cover; box-shadow: 0 14px 34px rgba(17,18,20,0.16); }
.app-icon.large { width: 120px; height: 120px; border-radius: 27px; }
.english-name { margin: 30px 0 3px; color: var(--muted); font-size: 14px; font-weight: 760; letter-spacing: 0.04em; }
.work-card h2 { margin-bottom: 15px; }
.work-card .work-copy > p:not(.english-name) { max-width: 670px; color: var(--muted); font-size: 19px; }
.text-link { margin-top: auto; padding-top: 30px; font-weight: 820; text-decoration: none; }
.work-preview { position: relative; display: grid; place-items: end center; overflow: hidden; padding: 48px 28px 0; }
.hdmi-cam .work-preview { background: #dce8e4; }
.color-vision-ally .work-preview { background: linear-gradient(160deg, #1a1d20, #252a31); }
.work-preview img { width: min(100%, 260px); margin-bottom: -95px; border: 1px solid rgba(255,255,255,0.28); border-radius: 30px; box-shadow: 0 24px 65px rgba(17,18,20,0.28); }
.filing-stamp { position: absolute; top: 24px; right: 24px; padding: 7px 11px; border: 1px solid rgba(255,255,255,0.28); border-radius: 999px; background: rgba(17,18,20,0.68); color: #fff; font-size: 12px; font-weight: 780; backdrop-filter: blur(8px); }

.principles { display: grid; grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr); gap: clamp(42px, 8vw, 120px); background: var(--ink); color: white; }
.inverse .eyebrow { color: var(--gold-soft); }
.principle-grid { display: grid; }
.principle-grid article { padding: 28px 0; border-top: 1px solid rgba(255,255,255,0.18); }
.principle-grid span, .feature-card span, .about-grid span { color: var(--gold); font-size: 13px; font-weight: 850; }
.principle-grid p { margin-bottom: 0; color: rgba(255,255,255,0.68); }

.product-hero { overflow: hidden; }
.product-hero.hdmi-cam { background: linear-gradient(145deg, #f1f4f1, #dfe9e5); }
.product-hero.color-vision-ally { background: linear-gradient(145deg, #f2f1ef, #e9e8ed); }
.product-copy { max-width: 820px; }
.product-identity { display: flex; align-items: center; gap: 22px; margin-bottom: 38px; }
.product-identity .eyebrow { margin-bottom: 9px; }
.product-hero h1 { font-size: clamp(60px, 9vw, 122px); }
.hero-phone { display: grid; place-items: center; min-height: 620px; }
.hero-phone img { width: min(100%, 330px); border: 1px solid rgba(17,18,20,0.16); border-radius: 34px; box-shadow: 0 36px 90px rgba(17,18,20,0.27); transform: rotate(2.4deg); }
.availability-note { max-width: 670px; margin-top: 18px; color: #715822; font-size: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature-card { min-height: 260px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,0.72); }
.feature-card h3 { margin-top: 40px; }
.feature-card p { color: var(--muted); }
.screenshot-section { overflow: hidden; padding: 22px 0 88px; }
.screenshot-track { display: flex; gap: 18px; width: max-content; padding: 0 clamp(20px, 5vw, 76px); }
.screenshot-track img { width: min(68vw, 310px); height: auto; border: 1px solid rgba(17,18,20,0.14); border-radius: 28px; box-shadow: 0 22px 56px rgba(17,18,20,0.17); }
.process-section { background: #e9ece9; }
.step-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: item; }
.step-list li { counter-increment: item; min-height: 190px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; font-size: 18px; font-weight: 710; }
.step-list li::before { display: block; margin-bottom: 28px; color: var(--gold); font-size: 28px; font-weight: 900; content: counter(item, decimal-leading-zero); }
.note-section { display: grid; grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr); gap: clamp(34px, 7vw, 100px); }
.note-list { margin: 0; padding: 0; list-style: none; }
.note-list li { padding: 22px 0; border-top: 1px solid var(--line); font-size: 18px; }
.product-links { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; background: var(--gold-soft); }
.product-links > div:last-child { display: grid; }
.product-links a { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid rgba(17,18,20,0.24); font-size: 18px; font-weight: 800; text-decoration: none; }

.guide-section { background: #ecebe6; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-card { display: flex; min-height: 300px; flex-direction: column; padding: clamp(26px, 4vw, 42px); border: 1px solid var(--line); border-radius: 22px; background: white; text-decoration: none; }
.guide-card > span { color: #805b1e; font-size: 12px; font-weight: 850; letter-spacing: 0.1em; }
.guide-card h3 { margin-top: 34px; font-size: clamp(25px, 3vw, 38px); line-height: 1.15; }
.guide-card p { color: var(--muted); }
.guide-card strong { margin-top: auto; padding-top: 24px; }
.guide-hero { max-width: 1180px; margin: 0 auto; padding: clamp(68px, 10vw, 138px) clamp(20px, 5vw, 76px) 56px; }
.guide-hero h1 { max-width: 1050px; }
.guide-hero > p:not(.eyebrow) { max-width: 780px; color: var(--muted); font-size: 21px; }
.guide-body section { padding: 34px 0; border-top: 1px solid var(--line); }
.guide-body h2, .guide-faq h2 { font-size: clamp(28px, 4vw, 42px); }
.guide-body p { color: var(--muted); font-size: 19px; }
.guide-faq { padding-top: 50px; }

.document-hero { padding: clamp(68px, 10vw, 138px) clamp(20px, 5vw, 76px) 50px; }
.document-hero h1 { max-width: 980px; }
.document-hero > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.back-link { display: inline-block; margin-bottom: 42px; color: var(--muted); font-weight: 750; text-decoration: none; }
.document-body { max-width: 980px; margin: 0 auto; padding: 20px 24px clamp(70px, 10vw, 140px); }
.faq-list details { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.faq-list summary { padding: 22px 24px; cursor: pointer; font-size: 18px; font-weight: 800; }
.faq-list details p { margin: 0; padding: 0 24px 24px; color: var(--muted); }
.contact-card { margin-top: 52px; padding: clamp(28px, 5vw, 50px); border-radius: 24px; background: var(--gold-soft); }
.contact-card p { color: #5f5137; }
.legal-copy { font-size: 18px; }
.legal-copy h2 { margin-top: 50px; font-size: 28px; }
.legal-copy p, .legal-copy li { color: #444951; }
.legal-copy li { margin-bottom: 13px; }
.legal-intro { font-size: 23px; font-weight: 680; }

.about-hero { background: #eae9e4; }
.about-hero > div { max-width: 900px; }
.about-hero h1 { font-size: clamp(46px, 5.4vw, 76px); line-height: 1.04; }
.about-hero p:not(.eyebrow) { color: var(--muted); font-size: 20px; }
.about-copy p:not(.eyebrow) { max-width: 780px; margin-bottom: 18px; }
.about-logo-panel { max-width: 620px; justify-self: end; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.about-grid article { padding: 28px; border-top: 2px solid var(--ink); }
.about-grid h2 { margin-top: 40px; font-size: 30px; }
.about-grid p { color: var(--muted); }
.not-found { min-height: 70svh; padding: clamp(80px, 13vw, 180px) clamp(20px, 5vw, 76px); }
.not-found p:not(.eyebrow) { color: var(--muted); font-size: 19px; }

.site-footer { display: flex; justify-content: space-between; gap: 34px; padding: 36px clamp(20px, 5vw, 76px); border-top: 1px solid var(--line); background: #ebeae5; }
.site-footer p { margin: 4px 0 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 20px; }
.footer-links a { color: var(--muted); font-size: 14px; text-decoration: none; }

@media (max-width: 980px) {
  .home-hero, .product-hero, .about-hero, .principles, .note-section { grid-template-columns: 1fr; }
  .work-card { grid-template-columns: 1fr minmax(220px, 0.55fr); }
  .feature-grid, .step-list { grid-template-columns: repeat(2, 1fr); }
  .hero-phone { min-height: 480px; }
  .principles { gap: 20px; }
}

@media (max-width: 680px) {
  .site-header { position: static; align-items: flex-start; flex-direction: column; }
  nav { width: 100%; justify-content: space-between; }
  h1, .product-hero h1 { font-size: 48px; }
  .home-hero, .product-hero, .about-hero { min-height: auto; padding-top: 42px; }
  .logo-panel { max-width: 540px; justify-self: center; border-radius: 22px; }
  .work-card { grid-template-columns: 1fr; }
  .work-preview { min-height: 390px; }
  .feature-grid, .step-list, .product-links, .about-grid, .guide-grid { grid-template-columns: 1fr; }
  .feature-card, .step-list li { min-height: auto; }
  .product-identity { align-items: flex-start; flex-direction: column; }
  .hero-phone { min-height: 420px; }
  .hero-phone img { width: min(78vw, 300px); }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
