:root {
  color-scheme: light dark;
  --ink: #101311;
  --muted: #626963;
  --line: #dfe4df;
  --paper: #ffffff;
  --dark: #0b0d0c;
  --dark-2: #131715;
  --green: #2fc98f;
  --green-dark: #167a56;
  --coral: #f45d48;
  --header-h: 72px;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; }
a { color: inherit; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: #fff; color: #111; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { position: absolute; inset: 0 0 auto; z-index: 20; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 64px); color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 760; text-decoration: none; }
.brand span, footer div span { border: 1px solid rgba(47,201,143,.7); color: var(--green); padding: 2px 7px; font: 600 10px/1.4 ui-monospace, monospace; }
.site-header nav, footer nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.site-header nav a { text-decoration: none; font-size: 14px; font-weight: 600; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--green); }
.site-header .nav-feedback { color: #ff7663; }
.language-control { display: inline-flex; align-items: center; }
.language-control select { min-height: 34px; max-width: 122px; padding: 0 28px 0 9px; border: 1px solid rgba(255,255,255,.38); border-radius: 3px; background: rgba(10,13,11,.56); color: #fff; font-size: 12px; font-weight: 650; cursor: pointer; }
.language-control option { background: #fff; color: #111; }
.language-control select:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.hero { position: relative; min-height: min(820px, 92vh); display: grid; align-items: end; overflow: hidden; color: #fff; background: #181a18 url("./marketing/photoatelier-hero-v1.png") center 42% / cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: rgba(0,0,0,.34); }
.hero-content { position: relative; z-index: 1; width: min(1320px, 100%); padding: 0 clamp(24px, 6.5vw, 104px) clamp(64px, 9vh, 92px); }
.eyebrow { margin: 0 0 14px; font: 700 12px/1.2 ui-monospace, "SFMono-Regular", monospace; text-transform: uppercase; letter-spacing: 0; }
.hero h1 { margin: 0; max-width: 900px; font-size: clamp(58px, 9vw, 126px); line-height: .94; letter-spacing: 0; }
.hero-copy { margin: 24px 0 36px; font-size: clamp(24px, 3vw, 40px); font-weight: 650; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; border-radius: 4px; font-weight: 720; text-decoration: none; cursor: pointer; }
.button-primary { min-width: 172px; background: var(--green); color: #07120e; }
.button-primary:hover, .button-primary:focus-visible { background: #48dfa8; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-underline-offset: 5px; }
.privacy-note { margin: 28px 0 0; color: rgba(255,255,255,.78); font-size: 13px; }

.workflow-strip { min-height: 108px; padding: 22px clamp(20px, 6vw, 92px); display: grid; grid-template-columns: repeat(11, auto); align-items: center; justify-content: space-between; gap: 18px; background: #fff; color: #151915; border-bottom: 1px solid var(--line); font-size: 16px; }
.workflow-strip b { color: #8c948e; font-weight: 400; }
.section-shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.product-section { display: grid; grid-template-columns: minmax(310px, .92fr) minmax(0, 1.5fr); gap: clamp(42px, 6vw, 88px); padding-top: clamp(72px, 9vw, 124px); padding-bottom: clamp(72px, 9vw, 124px); align-items: center; }
.section-copy h2, .privacy-heading h2, .feedback-intro h2 { margin: 0; font-size: clamp(34px, 4vw, 58px); line-height: 1.08; letter-spacing: 0; }
.section-copy h2 { font-size: clamp(34px, 3.5vw, 48px); }
.section-copy > p:not(.eyebrow), .privacy-heading p, .feedback-intro > p { color: var(--muted); }
.accent-green { color: var(--green-dark); }
.accent-coral { color: var(--coral); }
.workflow-list { list-style: none; margin: 32px 0; padding: 0 0 0 16px; border-left: 1px solid #a6dfc9; }
.workflow-list li { position: relative; display: grid; gap: 2px; padding: 0 0 21px 20px; }
.workflow-list li::before { content: ""; position: absolute; width: 8px; height: 8px; left: -20px; top: 7px; background: var(--green); border-radius: 50%; }
.workflow-list strong { font-size: 15px; }
.workflow-list span { font-size: 13px; color: var(--muted); }
.dark-link { color: var(--green-dark); font-weight: 700; }
.product-visual { margin: 0; }
.product-visual img { width: 100%; max-height: 640px; object-fit: cover; object-position: top; display: block; border: 1px solid #252a27; border-radius: 6px; background: #151715; box-shadow: 0 22px 65px rgba(18, 30, 22, .18); }
.product-visual figcaption { margin-top: 12px; color: var(--muted); font-size: 12px; }

.privacy-section { padding: clamp(72px, 9vw, 118px) 0; background: var(--dark); color: #f4f7f4; }
.privacy-heading { display: grid; grid-template-columns: 1.35fr .65fr; gap: 42px; align-items: end; }
.privacy-heading p { color: #aeb7b1; margin: 0; }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 46px; border: 1px solid #354039; }
.mode-grid article { min-height: 310px; padding: 30px; border-right: 1px solid #354039; }
.mode-grid article:last-child { border-right: 0; }
.mode-index { color: var(--green); font: 700 12px ui-monospace, monospace; }
.mode-grid h3 { margin: 18px 0 10px; font-size: 23px; }
.mode-grid article > p:not(.mode-index), .mode-grid li { color: #b4bcb7; font-size: 14px; }
.mode-grid ul { margin: 24px 0 0; padding: 0; list-style: none; }
.mode-grid li { padding: 8px 0; border-top: 1px solid #292f2b; }
.mode-grid li::before { content: "✓"; margin-right: 9px; color: var(--green); }
.source-bar { margin-top: 26px; min-height: 66px; display: grid; grid-template-columns: 1fr auto auto 2fr; align-items: center; gap: 28px; padding: 16px 22px; border: 1px solid #354039; }
.source-bar a { color: #fff; font-weight: 700; }
.source-bar span { color: #9da6a0; font-size: 12px; text-align: right; }
.analytics-control { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; }
.analytics-control span { display: grid; gap: 4px; }
.analytics-control small { color: #9da6a0; }
.analytics-control input { width: 46px; height: 25px; accent-color: var(--green); }

.feedback-section { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(50px, 9vw, 130px); padding-top: clamp(76px, 9vw, 120px); padding-bottom: clamp(76px, 9vw, 120px); }
.feedback-privacy { margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.feedback-form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feedback-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; }
.feedback-form input, .feedback-form select, .feedback-form textarea { width: 100%; border: 1px solid #cfd6d0; border-radius: 3px; background: #fff; color: #111; padding: 12px 13px; outline: none; }
.feedback-form input:focus, .feedback-form select:focus, .feedback-form textarea:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(47,201,143,.15); }
.feedback-form textarea { min-height: 132px; resize: vertical; }
.feedback-form fieldset { margin: 0; padding: 0; border: 0; }
.feedback-form legend { margin-bottom: 12px; font-size: 13px; font-weight: 700; }
.rating-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rating-row label { display: block; cursor: pointer; }
.rating-row input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rating-row span { min-height: 68px; display: grid; place-items: center; align-content: center; gap: 3px; border: 1px solid #d5dbd6; border-radius: 3px; font-weight: 800; }
.rating-row small { color: var(--muted); font-size: 10px; font-weight: 500; }
.rating-row input:checked + span { border-color: var(--coral); background: #fff2ef; color: #a82c1d; }
.button-feedback { width: 100%; background: var(--coral); color: #fff; }
.button-feedback:hover, .button-feedback:focus-visible { background: #df4937; }
.button:disabled { opacity: .55; cursor: wait; }
.form-status { min-height: 24px; margin: -10px 0 0; font-size: 13px; color: var(--green-dark); }
.form-status[data-error="true"] { color: #b33222; }
.honeypot { position: absolute !important; left: -9999px !important; }

footer { min-height: 130px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 28px clamp(24px, 5vw, 72px); background: var(--dark); color: #fff; border-top: 1px solid #29302c; }
footer div { display: flex; align-items: center; gap: 10px; }
footer p { color: #929b95; font-size: 12px; }
footer nav a { color: #cbd1cd; font-size: 13px; }

@media (max-width: 880px) {
  .site-header nav a:not(.nav-feedback) { display: none; }
  .site-header nav { gap: 12px; }
  .hero { min-height: 740px; background-position: 58% center; }
  .hero-content { padding-bottom: 58px; }
  .hero h1 { font-size: clamp(54px, 16vw, 84px); overflow-wrap: anywhere; }
  .workflow-strip { min-height: auto; grid-template-columns: repeat(6, 1fr); padding: 22px 18px; gap: 8px; font-size: 12px; }
  .workflow-strip b { display: none; }
  .workflow-strip span { text-align: center; }
  .product-section, .feedback-section, .privacy-heading { grid-template-columns: 1fr; }
  .product-section { gap: 46px; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid #354039; }
  .mode-grid article:last-child { border-bottom: 0; }
  .source-bar { grid-template-columns: 1fr 1fr; }
  .source-bar span { grid-column: 1 / -1; text-align: left; }
  footer { grid-template-columns: 1fr; }
  footer nav { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  :root { --header-h: 62px; }
  .site-header { padding: 0 18px; }
  .brand { font-size: 18px; }
  .brand span { display: none; }
  .language-control select { max-width: 94px; padding-left: 7px; }
  .hero { min-height: 680px; background-position: 62% center; }
  .hero-shade { background: rgba(0,0,0,.48); }
  .hero-content { padding-inline: 20px; }
  .hero h1 { font-size: 52px; }
  .hero-copy { max-width: 300px; font-size: 24px; }
  .section-shell { width: min(100% - 32px, 1240px); }
  .form-row { grid-template-columns: 1fr; }
  .rating-row span { min-height: 58px; }
  .rating-row small { display: none; }
  .source-bar { gap: 14px; }
}

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