/* Shared, local-first Apple-inspired marketing shell. No external fonts or image dependencies. */
@view-transition { navigation: auto; }
::view-transition-group(site-header) { animation: none; z-index: 1000; }
::view-transition-image-pair(site-header) { animation: none; isolation: auto; }
::view-transition-old(site-header) { animation: none; opacity: 0; mix-blend-mode: normal; }
::view-transition-new(site-header) { animation: none; opacity: 1; mix-blend-mode: normal; }
::view-transition-old(page-main) { animation: vt-out .22s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(page-main) { animation: vt-in .4s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes vt-out { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.994); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --subtle: #86868b;
  --paper: #ffffff;
  --soft: #f5f5f7;
  --hairline: rgba(0, 0, 0, .08);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --radius: 28px;
  --ui-weight: 600;
  --ease-apple: cubic-bezier(.22, 1, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; text-rendering: optimizeLegibility; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.menu-open { overflow: hidden; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
img { max-width: 100%; display: block; -webkit-user-drag: none; -webkit-touch-callout: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.14; letter-spacing: -.022em; }
ul { padding: 0; list-style: none; }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.section { padding: 112px 0; }
.eyebrow { font-size: 14px; letter-spacing: .06em; font-weight: 600; margin-bottom: 20px; color: var(--muted); }
.section-heading { font-size: 56px; line-height: 1.14; letter-spacing: -.024em; }
.lead { color: var(--muted); font-size: 21px; line-height: 1.65; letter-spacing: -.01em; }
.actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* Tactile Apple capsule buttons & chevron links */
.button { display: inline-flex; min-height: 48px; padding: 12px 26px; justify-content: center; align-items: center; gap: 10px; border-radius: 999px; font-size: 17px; font-weight: var(--ui-weight); line-height: 1.4; letter-spacing: -.005em; border: 0; transition: background .22s var(--ease-apple), color .22s var(--ease-apple), transform .22s var(--ease-apple), box-shadow .28s var(--ease-apple); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 2px 10px -4px rgba(0, 113, 227, .45); }
.button-primary:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(0, 113, 227, .58); }
.button-primary:active { transform: translateY(0) scale(.985); }
.button-secondary { background: #e8e8ed; color: var(--ink); }
.button-secondary:hover { background: #dedee5; }
.text-link { color: var(--link); font-size: 17px; font-weight: 500; line-height: 1.45; display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.text-link:after { content: ''; display: block; flex-shrink: 0; width: .38em; height: .38em; border-right: 1.65px solid currentColor; border-bottom: 1.65px solid currentColor; transform: rotate(-45deg); margin-top: 1px; transition: transform .25s var(--ease-apple); }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-link:hover:after { transform: translateX(3px) rotate(-45deg); }

.media-slot { border-radius: var(--radius); background: #ededf0; overflow: hidden; min-height: 240px; }
.dark { background: #000; color: #f5f5f7; }
.dark .lead { color: #a1a1a6; }
.dark .text-link { color: #2997ff; }
.dark .media-slot { background: #141417; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 99px; font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: .02em; color: #248a3d; background: #edf7f0; }
.status:before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status-beta { color: #9a641c; background: #f8efe0; }
.status-dev { color: #6e6e73; background: #ececf0; }
.dark .status-beta { background: rgba(224, 183, 125, .14); color: #e4be84; border: 1px solid rgba(224, 183, 125, .24); }
.skip-link { position: fixed; top: -70px; left: 20px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 12px; }
.skip-link:focus { top: 0; }

/* Frosted Translucent Navigation Bar (pinned smoothly across View Transitions) */
.site-header { position: sticky; top: 0; z-index: 100; height: 54px; view-transition-name: site-header; border-bottom: 1px solid rgba(0, 0, 0, .05); background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); transition: background .25s, border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .9); border-bottom-color: rgba(0, 0, 0, .09); box-shadow: 0 4px 20px -12px rgba(0, 0, 0, .12); }
.nav-progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 1.5px; background: linear-gradient(90deg, #0071e3, #5e5ce6); transform-origin: left center; transform: scaleX(0); opacity: 0; pointer-events: none; transition: transform .42s var(--ease-apple), opacity .22s ease; }
html.page-leaving .nav-progress { transform: scaleX(.76); opacity: 1; }
main { view-transition-name: page-main; transition: opacity .18s ease, transform .18s ease; }
html.page-leaving-fallback main { opacity: 0; transform: translateY(6px); }
.nav-shell { max-width: 1280px; width: calc(100% - 80px); margin: auto; display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 18px; font-weight: 600; letter-spacing: -.015em; transition: opacity .2s; }
.brand:hover { opacity: .82; }
.brand img { width: 26px; height: 26px; border-radius: 7px; box-shadow: 0 2px 6px -2px rgba(0, 113, 227, .35); }
.brand small { font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--subtle); margin-left: 1px; }
.site-navigation { display: flex; gap: 30px; align-items: center; }
.site-navigation > a { position: relative; font-size: 14px; font-weight: 500; line-height: 1.4; color: #515154; padding: 6px 0; white-space: nowrap; transition: color .2s; }
.site-navigation > a:hover, .site-navigation > a[aria-current=page] { color: var(--ink); }
.site-navigation > a[aria-current=page]:after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; border-radius: 2px; background: var(--ink); }
.nav-free { font-size: 9px; color: var(--muted); vertical-align: super; margin-left: 3px; }
.nav-end { display: flex; align-items: center; gap: 16px; }
.nav-download { font-size: 14px; min-height: 32px; padding: 6px 16px; white-space: nowrap; box-shadow: none; }
.nav-download:hover { box-shadow: 0 6px 16px -6px rgba(0, 113, 227, .55); }
.nav-download[aria-current="page"] { background: #1d1d1f; color: #fff; box-shadow: none; }
.menu-toggle { display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px; width: 36px; height: 40px; padding: 8px; border: 0; background: none; }
.menu-toggle span { height: 1.8px; width: 18px; border-radius: 1px; background: var(--ink); transition: transform .22s var(--ease-apple); }
.menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3.4px) rotate(45deg); }
.menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3.4px) rotate(-45deg); }

/* Quiet Apple-style Footer */
.site-footer { background: var(--soft); border-top: 1px solid rgba(0, 0, 0, .05); padding: 56px 0 28px; color: var(--muted); font-size: 13px; }
.footer-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 40px; }
.footer-brand .brand { color: var(--ink); }
.footer-brand p { margin-top: 12px; font-size: 14px; color: var(--subtle); }
.footer-links { display: flex; gap: 68px; }
.footer-column { display: flex; flex-direction: column; gap: 11px; min-width: 72px; }
.footer-column a { font-weight: 500; color: #515154; transition: color .2s; }
.footer-column strong { color: var(--ink); margin-bottom: 4px; font-weight: 600; font-size: 13px; }
.footer-column a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid #dcdce1; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--subtle); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--ink); text-decoration: underline; }
.footer-note { font-size: 12px; line-height: 1.85; margin-bottom: 22px; max-width: 980px; color: var(--subtle); }

/* Subtle Apple cursor-tracking specular sheen on elevated light cards */
.hero-pillars li, .agent-bento article, .price-card, .product-bento article, .family-item, .download-panel { position: relative; }
.hero-pillars li::after, .agent-bento article::after, .price-card::after, .product-bento article::after, .family-item::after, .download-panel::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 113, 227, .055), transparent 68%); transition: opacity .35s ease; }
@media (hover: hover) and (pointer: fine) {
  .hero-pillars li:hover::after, .agent-bento article:hover::after, .price-card:hover::after, .product-bento article:hover::after, .family-item:hover::after, .download-panel:hover::after { opacity: 1; }
}

/* Smooth Reveal Choreography & Scroll-Linked Parallax */
.reveal { opacity: 1; }
.motion-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-apple) var(--reveal-delay, 0ms), transform .8s var(--ease-apple) var(--reveal-delay, 0ms); }
.motion-ready .reveal.visible { opacity: 1; transform: none; }
.motion-ready [data-parallax="soft"] { transform: translate3d(0, calc(var(--sp, 0) * -12px), 0); transition: opacity .75s var(--ease-apple); }
.motion-ready [data-parallax="soft"].reveal:not(.visible) { opacity: 0; transform: translate3d(0, 22px, 0) scale(.988); }
.motion-ready [data-parallax="lift"] .arm-frame { transform: perspective(1500px) rotateX(calc((1 - var(--enter, 1)) * 5.5deg)) translateY(calc((1 - var(--enter, 1)) * 18px)) scale(calc(.97 + var(--enter, 1) * .03)); transform-origin: center top; transition: box-shadow .5s var(--ease-apple); }

/* Apple-style Keynote Staged Hero Entrance (logos/app icons appear immediately at opacity 1 with zero pop-in delay) */
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-copy > :not(.hero-product), .product-hero > .wrap > :not(.product-hero-icon), .download-hero > .wrap > :not(.download-app-icon):not(.download-hero-icon-wrap), .about-hero > .wrap > :not(.about-icon):not(.about-hero-icon-wrap), .tools-hero > .wrap > * { animation: hero-rise .65s var(--ease-apple) both; }
.hero-copy h1, .product-hero h1, .download-hero h1, .about-hero h1, .tools-hero h1, .section-heading { hanging-punctuation: allow-end last; }
.hero-copy > :nth-child(2), .product-hero > .wrap > :nth-child(2), .download-hero > .wrap > :nth-child(2), .about-hero > .wrap > :nth-child(1), .tools-hero > .wrap > :nth-child(1) { animation-delay: 20ms; }
.hero-copy > :nth-child(3), .product-hero > .wrap > :nth-child(3), .download-hero > .wrap > :nth-child(3), .about-hero > .wrap > :nth-child(2), .tools-hero > .wrap > :nth-child(2) { animation-delay: 80ms; }
.hero-copy > :nth-child(4), .product-hero > .wrap > :nth-child(4), .download-hero > .wrap > :nth-child(4), .about-hero > .wrap > :nth-child(3), .tools-hero > .wrap > :nth-child(3) { animation-delay: 140ms; }
.hero-copy > :nth-child(5), .product-hero > .wrap > :nth-child(5), .download-hero > .wrap > :nth-child(5), .about-hero > .wrap > :nth-child(4), .tools-hero > .wrap > :nth-child(4) { animation-delay: 200ms; }

/* Shared COODESK Arm Keynote Showcase (Homepage #arm & /arm/) */
.arm-brand-lockup { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #f5f5f7; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.arm-brand-lockup img { width: 30px; height: 30px; border-radius: 7px; }
.arm-beta-pill { font-style: normal; display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: rgba(255, 214, 10, .16); border: 1px solid rgba(255, 214, 10, .3); color: #ffd60a; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; }
.arm-preview-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px; border-radius: 999px; background: linear-gradient(135deg, rgba(10, 132, 255, .18), rgba(94, 92, 230, .18)); border: 1px solid rgba(100, 181, 255, .32); color: #8ec8ff; font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.arm-preview-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 10px rgba(56, 189, 248, .9); }
.arm-showcase { position: relative; margin: 56px auto 0; max-width: 1080px; text-align: center; }
.arm-showcase::before { content: ''; position: absolute; left: 8%; right: 8%; top: -8%; bottom: 6%; border-radius: 40px; background: radial-gradient(60% 50% at 50% 35%, rgba(41, 151, 255, .24), rgba(94, 92, 230, .12) 48%, transparent 74%); filter: blur(44px); pointer-events: none; z-index: 0; }
.arm-frame { position: relative; z-index: 1; border-radius: 20px; overflow: hidden; background: #141417; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 36px 90px -24px rgba(0, 0, 0, .92), 0 0 0 1px rgba(255, 255, 255, .05), inset 0 1px 0 rgba(255, 255, 255, .2); }
.arm-frame img { width: 100%; height: auto; display: block; transform-origin: 0 0; will-change: transform; transition: transform 1.45s cubic-bezier(.22, 1, .36, 1); }
.arm-showcase[data-arm-cinema="0"] .arm-frame img { transform: translate3d(0, 0, 0) scale(1); }
.arm-showcase[data-arm-cinema="1"] .arm-frame img { transform: translate3d(-30.6%, -20.4%, 0) scale(1.68); }
.arm-showcase[data-arm-cinema="2"] .arm-frame img { transform: translate3d(-47%, -32%, 0) scale(1.50); }
.arm-frame-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .015) 24%, transparent 45%); }
.arm-hud-pill { position: absolute; left: 18px; bottom: 18px; z-index: 3; display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px; border-radius: 999px; background: rgba(16, 16, 20, .78); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .92); font-size: 13px; font-weight: 500; box-shadow: 0 12px 28px rgba(0, 0, 0, .55); pointer-events: none; }
.arm-hud-dot { width: 7px; height: 7px; border-radius: 50%; background: #30d158; box-shadow: 0 0 10px rgba(48, 209, 88, .85); flex: none; }
.arm-hud-pill [data-arm-hud] { display: none; }
.arm-showcase[data-arm-cinema="0"] [data-arm-hud="0"],
.arm-showcase[data-arm-cinema="1"] [data-arm-hud="1"],
.arm-showcase[data-arm-cinema="2"] [data-arm-hud="2"] { display: inline; }
.arm-cam-pills { position: relative; z-index: 1; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 100%; margin: 22px auto 0; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .11); }
.arm-cam-pills button { padding: 7px 16px; border: 0; border-radius: 999px; background: transparent; color: #a1a1a6; font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background .25s var(--ease-apple), color .25s, box-shadow .25s; }
.arm-cam-pills button:hover { color: #fff; }
.arm-cam-pills button[aria-selected="true"] { background: #fff; color: #1d1d1f; font-weight: 600; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .55); }
.arm-showcase-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; padding: 0 6px; font-size: 13.5px; color: #86868b; }
.arm-offer-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 214, 10, .12); border: 1px solid rgba(255, 214, 10, .28); color: #ffd60a; font-size: 13px; font-weight: 600; }
@media (max-width: 760px) {
  .arm-showcase { margin-top: 36px; }
  .arm-frame { border-radius: 14px; }
  .arm-hud-pill { left: 10px; right: 10px; bottom: 10px; font-size: 11.5px; padding: 6px 12px; justify-content: center; }
  .arm-cam-pills button { padding: 6px 11px; font-size: 12px; }
  .arm-showcase-meta { justify-content: center; text-align: center; font-size: 12.5px; }
}
@media (max-width: 560px) {
  .arm-cam-pills { gap: 2px; padding: 3px; }
  .arm-cam-pills button { padding: 6px 12px; font-size: 12.5px; }
  .arm-cam-pills .pill-ext { display: none; }
}

/* Balanced Chinese line breaks */
.section-heading, .lead, h1 { text-wrap: balance; }

/* Mobile menu defaults */
.site-navigation > .mobile-download-link { display: none; }

.demo-fallback { display: grid; place-items: center; min-height: 200px; height: 100%; padding: 30px; color: var(--muted); font-size: 15px; text-align: center; }

@media (min-width: 1500px) { .wrap { width: min(1200px, calc(100% - 120px)); } }
@media (max-width: 1000px) {
  .site-navigation { gap: 20px; }
  .nav-shell { width: calc(100% - 48px); }
  .brand small { display: none; }
  .section-heading { font-size: 46px; }
  .section { padding: 88px 0; }
  .wrap { width: calc(100% - 64px); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 68px; }
  .site-header { height: 52px; }
  .nav-shell { width: calc(100% - 36px); gap: 16px; }
  .brand { font-size: 17px; gap: 8px; }
  .nav-end { gap: 10px; }
  .nav-download, .button.nav-download { min-height: 32px; font-size: 13px; padding: 6px 14px; }
  .menu-toggle { display: flex; }
  .site-navigation { display: none; position: fixed; top: 52px; left: 0; right: 0; padding: 28px 28px 44px; background: rgba(255, 255, 255, .98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); height: calc(100dvh - 52px); overflow: auto; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 18px; }
  .site-navigation.is-open { display: flex; }
  .site-navigation > a { font-size: 26px; font-weight: 500; letter-spacing: -.03em; padding: 4px 0; }
  .site-navigation > a[aria-current=page]:after { display: none; }
  .site-navigation > .mobile-download-link { display: block; color: var(--blue); }
  .nav-free { font-size: 12px; }
  .wrap { width: calc(100% - 44px); }
  .section { padding: 72px 0; }
  .section-heading { font-size: 36px; }
  .eyebrow { font-size: 12px; margin-bottom: 16px; }
  .lead { font-size: 19px; line-height: 1.65; }
  .button { font-size: 16px; min-height: 46px; padding: 12px 22px; }
  .text-link { font-size: 16px; }
  .actions { gap: 18px; }
  .media-slot { border-radius: 20px; min-height: 200px; }
  .site-footer { padding-top: 40px; }
  .footer-main { flex-direction: column; gap: 32px; }
  .footer-links { width: 100%; gap: 28px; justify-content: space-between; }
  .footer-column { font-size: 13px; }
  .footer-bottom { font-size: 12px; gap: 18px; }
  .footer-legal { gap: 14px; }
  .footer-note { font-size: 12px; }
  .status { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation: none !important; transition: none !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
}
