:root {
  color-scheme: dark;
  --background: #000000;
  --foreground: #f5f5f2;
  --secondary: #b0b0ac;
  --line: #30302e;
  --page-width: 680px;
  --gutter: clamp(24px, 6vw, 40px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html { background: #000; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p { margin: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
[hidden] { display: none !important; }

.surface-dark {
  color-scheme: dark;
  --background: #000000;
  --foreground: #f5f5f2;
  --secondary: #b0b0ac;
  --line: #30302e;
  background: var(--background);
  color: var(--foreground);
}
.surface-light {
  color-scheme: light;
  --background: #f5f5f2;
  --foreground: #171717;
  --secondary: #5f5f5a;
  --line: #d0d0ca;
  background: var(--background);
  color: var(--foreground);
}
.section-inner, .header-inner, .footer-inner {
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* One mark, one action. Stable viewport height avoids toolbar-driven reflow. */
.brand-page, .brand-screen { background: #000; }
.brand-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(32px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
}
.brand-entry { display: block; width: min(86vw, 560px); padding-block: 20px; }
.brand-wordmark { width: 100%; height: auto; }
.brand-entry:active { opacity: .85; }

/* Shared header: real 44px touch targets with breathing room around the logo. */
.site-header { padding-top: calc(24px + env(safe-area-inset-top)); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.header-brand { display: flex; align-items: center; width: 112px; min-height: 44px; flex-shrink: 0; }
.header-brand img { width: 100%; }
.surface-light .header-brand img { filter: invert(1); }
.language-switch { display: flex; align-items: center; flex-shrink: 0; gap: 0; }
.language-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}
.language-switch button[aria-pressed="true"] { color: var(--foreground); font-weight: 600; }
.language-divider { padding: 0 5px; font-size: 12px; color: var(--secondary); }

h1, .section-title { color: var(--foreground); font-size: clamp(34px, 9vw, 46px); font-weight: 500; line-height: 1.22; letter-spacing: -.035em; }
.body-copy { color: var(--secondary); font-size: 14px; font-weight: 400; line-height: 1.8; }
.catalog-intro { padding-top: 56px; padding-bottom: 36px; }
.catalog-intro .body-copy { margin-top: 18px; max-width: 440px; }
.product-section { padding-top: 24px; padding-bottom: 64px; }
.product-section.surface-light { padding-top: 48px; }
.product-card { display: block; }
.product-visual { background: #000; overflow: hidden; }
.product-visual img { width: 100%; height: auto; }
.product-copy { padding-top: 24px; }
.catalog-number { color: var(--secondary); font-size: 11px; line-height: 1.5; letter-spacing: .08em; }
.product-name { margin-top: 8px; font-size: 22px; line-height: 1.35; font-weight: 500; letter-spacing: .015em; }
.product-copy .body-copy { margin-top: 10px; }
.product-card:active { opacity: .9; }

.connections-section, .contact-section { padding-block: 64px; }
.connections-section .body-copy, .contact-section .body-copy { margin-top: 20px; max-width: 440px; }
.platform-list { display: flex; flex-direction: column; margin: 32px 0 0; padding: 0; list-style: none; }
.platform-row { display: flex; align-items: center; gap: 16px; min-height: 72px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.platform-row:first-child { border-top: 1px solid var(--line); }
.platform-mark { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border: 1px solid var(--secondary); border-radius: 50%; color: var(--secondary); font-size: 10px; line-height: 1; }
.platform-name { font-size: 14px; color: var(--secondary); }
.platform-status { margin-left: auto; white-space: nowrap; font-size: 11px; color: var(--secondary); }
.contact-placeholder { padding-top: 24px; border-top: 1px solid var(--line); margin-top: 32px !important; }
.site-footer { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--secondary); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--secondary); }

.detail-intro { padding-top: 40px; padding-bottom: 32px; }
.detail-return { margin-bottom: 32px; }
.detail-intro h1 { margin-top: 12px; overflow-wrap: break-word; }
.detail-intro .body-copy { margin-top: 20px; max-width: 440px; }
.detail-media { padding-bottom: 48px; }
.detail-image { width: 100%; height: auto; }
.detail-resources { padding-bottom: 32px; }
.detail-resources .resource-label { color: var(--secondary); font-size: 14px; }
.resource-list { display: flex; flex-direction: column; gap: 0; margin-top: 20px; }
.resource-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; border-top: 1px solid var(--line); font-size: 14px; color: var(--secondary); }
.resource-item:last-child { border-bottom: 1px solid var(--line); }
.resource-item small { font-size: 11px; }
.detail-contact { padding-block: 24px 40px; }
.detail-footer { padding-top: 0; }

@media (max-width: 350px) {
  .header-brand { width: 96px; }
  .header-inner { gap: 8px; }
  .language-switch button { font-size: 11px; }
}
@media (hover: hover) {
  .brand-entry:hover { opacity: .85; }
  .product-card:hover .product-name, .text-link:hover { color: var(--foreground); }
}
@media (prefers-reduced-motion: no-preference) {
  .brand-entry, .product-card { transition: opacity 160ms ease; }
}
