/* Build-time Tailwind utilities; no preflight and no browser/CDN dependency. */
.tw-relative {
  position: relative;
}
.tw-inline-flex {
  display: inline-flex;
}
.tw-items-center {
  align-items: center;
}
.tw-gap-2 {
  gap: 0.5rem;
}
.tw-text-center {
  text-align: center;
}

.studio-home {
  --home-header-height: 76px;
  --home-ink: #18181b;
  --home-muted: #686870;
  --home-surface: #fff;
  --home-border: #18181b12;
  --home-wash: #f3f4f6;
  --home-glass: #fafafbd9;
  background: #fafafb;
  color: var(--home-ink);
}
.studio-home .shell { width: min(1160px, calc(100% - 80px)); }
.studio-home .site-header {
  position: sticky;
  top: 0;
  background: var(--home-glass);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--home-border);
}
.studio-home .nav-row { height: var(--home-header-height); }
.studio-home .site-header .studio-logo { width: 158px; }
.studio-home .nav-row nav { gap: 32px; font-size: 13px; }
.studio-home .nav-row nav > a:first-child { display: block; }
.studio-home .home-products-icon { display: none; }
.studio-home :is(#apps, #solift, #shiftmate, #approach) { scroll-margin-top: 100px; }
.home-hero {
  min-height: calc(100vh - var(--home-header-height) - 1px);
  min-height: calc(100dvh - var(--home-header-height) - 1px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 0 80px;
}
.home-hero > * { flex-shrink: 0; }
.home-hero { isolation: isolate; }
.home-hero > :not(canvas) { position: relative; z-index: 1; }
.home-particles {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  color: #596477;
}
html:is([data-theme="dark"], :has(#preview-dark:checked)) .home-particles { color: #fff; }
.home-products {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 96px;
  padding-top: 32px;
}
.home-products > article { margin-block: 0; }
.home-motion-card {
  position: relative;
  isolation: isolate;
  --card-shine: 255 255 255;
}
.home-card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  background: radial-gradient(700px circle at var(--shine-x, 50%) var(--shine-y, 50%), rgb(var(--card-shine) / .12), transparent 60%);
  transition: opacity .35s ease;
}
.home-card-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(600px circle at var(--shine-x, 50%) var(--shine-y, 50%), rgb(var(--card-shine) / .65), transparent 65%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home-motion-card {
    transform: perspective(1600px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
  }
  .home-motion-card.is-tracking { transition-duration: .12s; will-change: transform; }
  .home-motion-card.is-tracking > .home-card-shine { opacity: 1; }
  .home-hero h1 { transition: transform .5s cubic-bezier(.16, 1, .3, 1), filter .5s ease; }
  .home-hero h1:hover { transform: scale(1.02); filter: drop-shadow(0 0 24px #8899bb30); }
}
.home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% 10% 0;
  background: none;
  pointer-events: none;
}
.home-kicker {
  color: var(--home-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .18em;
}
.home-kicker > span { padding-inline: 10px; color: #a1a1aa; }
.home-hero h1 {
  margin: 27px auto 24px;
  max-width: 100%;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.13;
  font-weight: 650;
  letter-spacing: -.065em;
}
.home-hero h1 > span { color: #667287; }
.hero-mobile-break { display: none; }
@media (min-width: 768px) {
  .home-hero h1:lang(zh) { font-size: clamp(52px, 7.8vw, 112px); }
}
.home-discover { margin-top: 28px; min-height: 44px; font-size: 13px; font-weight: 500; }
.home-discover > span { margin-left: 5px; transition: transform .2s ease; }
.home-discover:hover > span { transform: translateY(3px); }
/* One card geometry. Product variants below change only color tokens. */
.home-product-card {
  --card-ink: #fafafa;
  --card-muted: #a8a8b2;
  --card-detail: #d0d0d8;
  --card-surface: #18181b;
  --card-border: #ffffff14;
  --card-accent: #346cf1;
  --card-accent-ink: #fff;
  --card-halo: #3569e8;
  --preview-angle: 6deg;
  --preview-hover-angle: 3deg;
}
.home-product-card[data-product="shiftmate"] {
  --card-ink: #18181b; --card-muted: #626976; --card-detail: #485568;
  --card-surface: #fff; --card-border: #dfe4ec; --card-accent: #2464df;
  --card-halo: #749ee8; --card-shine: 100 130 180;
}
.home-product-card[data-product="noisify"] {
  --card-ink: #faf6f0; --card-muted: #c5bcb0; --card-detail: #ddd0bf;
  --card-surface: #211e1b; --card-border: #ffffff16;
  --card-accent: #edc399; --card-accent-ink: #30241a; --card-halo: #a87a50;
}
.home-product-card[data-preview-direction="left"] { --preview-angle: -6deg; --preview-hover-angle: -3deg; }
.studio-home .home-product-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 690px; gap: 0; padding: 0;
  border: 1px solid var(--card-border); border-radius: 32px;
  color: var(--card-ink); background: var(--card-surface);
  box-shadow: 0 24px 60px -35px #11182755; overflow: hidden;
}
.home-product-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 64px 8px 64px 64px; }
.home-product-card .home-identity { display: flex; align-items: center; gap: 12px; margin: 0 0 34px; font-size: 23px; font-weight: 600; letter-spacing: -.04em; }
.home-identity img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 2px 8px #00000012; }
.home-status { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; line-height: 1.5; color: var(--card-muted); }
.home-status > span { width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--card-accent); }
.home-product-card h2 { margin: 20px 0 0; min-height: 2.4em; font-size: clamp(36px, 3.85vw, 55px); line-height: 1.2; font-weight: 600; letter-spacing: -.05em; overflow-wrap: anywhere; }
.home-product-card .home-product-description { margin: 24px 0 0; min-height: 3.8em; max-width: 360px; color: var(--card-muted); font-size: 16px; line-height: 1.9; }
.home-product-card .home-principles { margin: 23px 0 0; color: var(--card-detail); font-size: 12px; line-height: 1.8; }
.home-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 34px; }
.home-button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 48px; max-width: 100%; padding: 12px 22px; border-radius: 999px; font-size: 13px; font-weight: 550; line-height: 1.5; transition: box-shadow .2s, transform .2s; }
.home-product-card .home-button { background: var(--card-accent); color: var(--card-accent-ink); box-shadow: 0 4px 20px #00000012, inset 0 1px 0 #ffffff26; }
.home-button svg { width: 17px; height: 17px; }
.home-button:hover { box-shadow: 0 8px 25px #00000025; transform: translateY(-2px); }
.home-beta-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--card-detail); font-size: 12px; }
.home-beta-link svg { width: 14px; height: 14px; }
.home-product-card a:focus-visible { outline-color: var(--card-accent); }
.home-product-card .home-platforms { margin: 20px 0 0; color: var(--card-muted); font-size: 11px; line-height: 1.8; }
.home-product-art { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 44px 24px 28px; gap: 25px; }
.home-phone-halo { position: absolute; width: 300px; height: 90px; bottom: 64px; border-radius: 50%; background: var(--card-halo); filter: blur(55px); opacity: .32; pointer-events: none; }
.home-preview-motion { width: 264px; max-width: 100%; transform: rotate(var(--preview-angle)); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.home-product-card .home-preview-motion .device { width: 100%; --device-radius: 38px; margin: 0; box-shadow: 10px 25px 45px #0004, 0 0 0 1px #fff1; }
.home-product-art figcaption { position: relative; color: var(--card-muted); font-size: 10px; line-height: 1.7; text-align: center; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home-product-card:hover .home-preview-motion, .home-product-card:focus-within .home-preview-motion { transform: rotate(var(--preview-hover-angle)) translateY(-6px); }
}
.home-philosophy { padding: 154px 0 140px; }
.home-philosophy h2 { font-size: 11px; font-weight: 500; letter-spacing: .12em; }
.home-philosophy blockquote { margin: 32px auto 24px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.45; font-weight: 500; letter-spacing: -.04em; text-wrap: balance; }
.home-philosophy > p { max-width: 480px; margin: auto; color: var(--home-muted); font-size: 14px; line-height: 1.9; text-wrap: balance; }
.philosophy-signature { display: inline-block; margin-top: 34px; font-size: 10px; font-weight: 550; letter-spacing: .13em; color: var(--home-muted); }
.philosophy-signature > span { margin-left: 12px; color: #346cf1; }
.studio-home .site-footer { padding-top: 48px; border-color: var(--home-border); }
.studio-home .site-footer .studio-logo { width: 164px; }
.studio-home .footer-top { gap: 50px; }
.studio-home .footer-links { gap: 48px; }
.studio-home .footer-contact { max-width: 220px; overflow-wrap: anywhere; }
.studio-home .preview-controls { box-shadow: 0 4px 20px #18181b0f; background: var(--home-glass); backdrop-filter: blur(16px); }
html:is([data-theme="dark"], :has(#preview-dark:checked)) .studio-home {
  --home-ink: #f4f4f5;
  --home-muted: #a1a1aa;
  --home-surface: #1b1c21;
  --home-border: #ffffff12;
  --home-wash: #202127;
  --home-glass: #111216d9;
  background: #111216;
}
html:is([data-theme="dark"], :has(#preview-dark:checked)) .home-hero h1 > span { color: #aab8d0; }
@media (max-width: 1100px) {
  .home-product-copy { padding-left: 40px; }
  .studio-home .footer-links { gap: 28px; }
  .studio-home .footer-top { flex-wrap: wrap; }
}
@media (min-width: 768px) and (max-width: 1100px) {
}
@media (max-width: 767px) {
  .studio-home { --home-header-height: 68px; }
  .studio-home .shell { width: calc(100% - 40px); }
  .studio-home .nav-row { height: 68px; gap: 12px; }
  .studio-home .site-header .studio-logo { width: 132px; }
  .studio-home .nav-row nav { gap: 18px; font-size: 12px; }
  .studio-home .nav-row nav > a:first-child { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .studio-home .home-products-icon { display: block; width: 20px; height: 20px; }
  .studio-home .home-products-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .studio-home .language-switch summary { min-width: 44px; justify-content: center; }
  .home-hero { padding: 48px 0 64px; }
  .home-products { row-gap: 64px; }
  .home-kicker { font-size: 8px; letter-spacing: .12em; }
  .home-kicker > span { padding-inline: 5px; }
  .home-hero h1 { font-size: clamp(44px, 12vw, 62px); letter-spacing: -.06em; margin: 24px auto 20px; }
  .hero-mobile-break { display: block; }
  .home-discover { margin-top: 20px; }
  .studio-home .home-product-card { grid-template-columns: minmax(0, 1fr); border-radius: 26px; }
  .home-product-copy { padding: 34px 28px 0; }
  .home-product-card .home-identity { margin-bottom: 28px; font-size: 21px; }
  .home-product-card h2 { min-height: 0; }
  .home-product-card .home-product-description { min-height: 0; font-size: 15px; }
  .home-product-art { padding: 42px 24px 25px; gap: 24px; }
  .home-preview-motion { width: 238px; }
  .home-product-card .home-preview-motion .device { --device-radius: 35px; }
  .home-product-card { --preview-angle: 4deg; --preview-hover-angle: 2deg; }
  .home-product-card[data-preview-direction="left"] { --preview-angle: -4deg; --preview-hover-angle: -2deg; }
  .home-identity { margin-bottom: 28px; font-size: 21px; }
  .home-identity img { width: 40px; height: 40px; }
  .home-products h2 { font-size: clamp(35px, 7vw, 48px); max-width: 500px; }
  .home-product-description { font-size: 15px; max-width: 480px; margin-top: 20px; }
  .home-principles { font-size: 11px; margin-top: 20px; }
  .home-actions { margin-top: 26px; gap: 12px; }
  .home-button { min-height: 46px; padding-inline: 20px; }
  .home-phone-halo { width: 220px; }
  .home-philosophy { padding: 90px 0 84px; }
  .home-philosophy blockquote { font-size: clamp(27px, 5.8vw, 38px); }
  .home-philosophy > p { padding-inline: 12px; font-size: 13px; }
  .studio-home .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 26px; width: 100%; }
  .studio-home .footer-contact { grid-column: 1 / -1; max-width: 100%; }
  .studio-home .footer-top { gap: 34px; }
}
@media (max-width: 370px) {
  .studio-home .shell { width: calc(100% - 32px); }
  .studio-home .site-header .studio-logo { width: 108px; }
  .studio-home .nav-row nav { gap: 12px; }
  .studio-home .language-switch summary { padding-left: 0; gap: 3px; }
  .studio-home .language-chevron { display: none; }
  .home-product-copy { padding-inline: 22px; }
  .home-preview-motion { width: 214px; }
}
@media (max-height: 600px) { .home-hero { padding-block: 28px; } }
@media (prefers-reduced-motion: reduce) {
  .home-preview-motion { transform: none; }
  .studio-home *, .studio-home *::before, .studio-home *::after { transition: none !important; animation: none !important; }
}
@media print {
  .home-particles, .home-card-shine { display: none; }
  .home-motion-card { transform: none; }
  .home-hero { min-height: 0; padding-block: 48px; }
  .studio-home .site-header { position: static; }
}
