@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
}
:root { color-scheme: light dark; scroll-behavior: smooth; }
/* System follows the OS; a saved Light or Dark choice sets data-theme before first paint (appearance.js). */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
body.home {
  /* Leaf palette: green-tinted paper with sunlight in light, deep leaf in dark (the app icon's colours). */
  --paper: light-dark(#f5f9ef, #0f1c15);
  --ink: light-dark(#173a29, #eef6ea);
  --muted: light-dark(#5b6d62, #a9bcae);
  --rule: light-dark(#d5e2cf, #263a2e);
  --raised: light-dark(#e6f0df, #17271e);
  --card: light-dark(#fbfdf7, #1b2c22);
  --tint: light-dark(#e6f0df, #17271e);
  --hover: light-dark(#e3eedb, #e1ebdd14);
  --primary: light-dark(#1d7d4b, #ffd23f);
  --on-primary: light-dark(#ffffff, #173a29);
  --pill-border: light-dark(#879489, #5d6b62);
  --font-family-body: "DM Sans", sans-serif;
  --font-family-heading: "DM Sans", sans-serif;
  --color-text-primary: var(--ink);
  --color-text-secondary: var(--muted);
  --color-text-accent: light-dark(#1b7346, #7fdc8f);
  --color-background-body: var(--paper);
  --color-focus-ring: light-dark(#23955a, #7fdc8f);
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
::selection { color: var(--ink); background: light-dark(#d4ecc9, #24402e); }
h1, h2, p, figure { margin: 0; }
img { display: block; }
.home-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px clamp(24px, 4.2vw, 72px);
  gap: 32px;
}
.home-header::before {
  content: "";
  position: absolute;
  inset: 12px clamp(12px, 2vw, 32px);
  z-index: -1;
  border: 1px solid light-dark(#fffdf6a3, #e1ebdd1f);
  border-radius: 20px;
  background: light-dark(#f3f1eceb, #191e1ceb);
  box-shadow: 0 2px 12px #283c2d04, inset 0 1px 0 light-dark(#ffffff70, #ffffff0d);
  pointer-events: none;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .home-header::before {
    background: light-dark(#f3f1ec9e, #191e1c9e);
    -webkit-backdrop-filter: blur(18px) saturate(115%);
    backdrop-filter: blur(18px) saturate(115%);
  }
}
.home-brand { font-size: 26px; font-weight: 500; letter-spacing: -.045em; }
.home-navigation { display: flex; align-items: center; gap: 36px; font-size: 13px; }
.home-launch { justify-self: end; font-size: 13px; display: flex; align-items: center; gap: 24px; }
.skip-link { position: fixed; top: 12px; left: 20px; z-index: 20; transform: translateY(-200%); background: var(--paper); padding: 0 16px; border: 1px solid var(--ink); }
.skip-link:focus-within { transform: translateY(0); }
.hero { position: relative; }
/* "agent around you": the copy on the left, the people-and-gadgets illustration on the right. */
.hero-stage { position: relative; min-height: max(720px, 100svh); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(16px, 3vw, 56px); padding: 112px max(28px, calc((100vw - 1360px) / 2)) 92px; isolation: isolate;
  /* Sunlight at the top left and a leaf glow under the illustration. */
  background: radial-gradient(50% 60% at 0% 0%, light-dark(#ffd23f40, #ffd23f1f), transparent 70%), radial-gradient(70% 70% at 95% 85%, light-dark(#5fc77a40, #2e9e6233), transparent 72%); }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-weight: 350; font-size: clamp(56px, 6.6vw, 108px); line-height: .98; letter-spacing: -.055em; }
.hero-line { display: block; }
.hero-art { margin: 0 -2vw 0 0; }
.hero-art img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.hero h1 em { font-style: normal; color: light-dark(#23955a, #7fdc8f); position: relative; }
.hero h1 em::after { content: ""; position: absolute; bottom: -.025em; left: 0; width: 100%; height: 1px; background: currentColor; opacity: .4; transform-origin: left; }
.hero-subtitle { margin-top: 34px; max-width: 26ch; text-wrap: balance; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.45; letter-spacing: -.015em; }
.hero-downloads { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 0 28px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.hero-scroll { position: absolute; z-index: 3; bottom: 28px; left: 0; width: 100%; display: flex; justify-content: center; font-size: 12px; }
.hero-scroll:focus-within { opacity: 1 !important; }
.hero-film { margin-top: 22px; }
.film-section { max-width: 1284px; margin: 0 auto; padding: 32px clamp(24px, 4.2vw, 72px) 100px; }
.film-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; border-radius: 24px; background: var(--raised); box-shadow: 0 16px 64px #14251a0d; }
.film-frame > img, .film-frame > iframe, .film-frame > video { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.film-launch { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent 35%, #13221a24); }
.film-description { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; }
.film-description h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 350; line-height: 1.1; letter-spacing: -.035em; }
.film-description > a { font-size: 13px; }
@media (max-width: 600px) {
  .film-section { padding-top: 12px; padding-bottom: 64px; }
  .film-frame { border-radius: 16px; }
  .film-description { align-items: start; flex-direction: column; gap: 10px; margin-top: 22px; }
}

.why-section { position: relative; padding: 95px max(24px, calc((100vw - 1140px) / 2)) 100px; background: var(--raised); border-radius: 48px 48px 0 0; }
.why-heading { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px 40px; align-items: end; }
.eyebrow { grid-column: 1 / -1; font-size: 13px; }
.why-heading h2 { font-weight: 350; font-size: clamp(40px, 4vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
.why-heading > p:last-child { color: light-dark(#54645b, #b3c0b5); font-size: 16px; line-height: 1.6; padding-bottom: 4px; }
.why-pillars { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-pillars li { position: relative; padding: 36px 32px 40px; border: 1px solid light-dark(#d5dccd, #3c473c); border-radius: 28px; background: light-dark(#fbfaf5, #262e27); }
.why-icon { display: block; height: 48px; margin-bottom: 40px; }
.why-icon svg { height: 100%; width: auto; overflow: visible; }
.why-stroke { fill: none; stroke: light-dark(#5d765b, #acbfa1); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.why-number { position: absolute; top: 36px; right: 32px; font-size: 13px; color: light-dark(#8a9a88, #8d9c8a); }
.why-pillars h3 { font-weight: 400; font-size: clamp(22px, 2vw, 27px); line-height: 1.15; letter-spacing: -.03em; }
.why-pillars p { margin-top: 16px; color: light-dark(#54645b, #b3c0b5); font-size: 15px; line-height: 1.6; }
.home-footer {
  --ink: #f3f1e9;
  --muted: #d3ddd2;
  --rule: #d4e1ce38;
  --color-text-primary: var(--ink);
  --color-text-secondary: var(--muted);
  --color-focus-ring: #f3f1e9;
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 132px clamp(32px, 6.25vw, 96px) 28px;
  background: var(--raised);
  color: var(--ink);
}
.footer-atmosphere { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.footer-atmosphere::before {
  content: "";
  position: absolute;
  inset: 18px 14px 0;
  border-radius: 32px 32px 0 0;
  background: #203f37;
  filter: blur(6px);
}
.footer-atmosphere img { position: relative; width: 100%; height: 100%; object-fit: fill; }
.footer-invitation { text-align: center; margin: 0 auto 100px; }
.footer-invitation .eyebrow { color: var(--muted); font-size: 13px; }
.footer-invitation h2 { margin: 30px 0 28px; font-size: clamp(72px, 8.5vw, 132px); font-weight: 350; line-height: .94; letter-spacing: -.055em; }
.footer-invitation > p:last-child { font-size: 17px; line-height: 1.6; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 72px; max-width: 1140px; margin: auto; }
.footer-identity { align-self: start; justify-self: start; padding: 4px 14px 4px 10px; border: 1px solid #fafbf1ad; border-radius: 16px; background: #f3f1ec; color: #1c3432; --color-text-primary: #1c3432; --color-focus-ring: #385a46; }
.footer-label { color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.footer-downloads, .footer-explore { display: flex; flex-direction: column; align-items: flex-start; font-size: 14px; }
.footer-main small { color: var(--muted); font-size: 11px; margin-left: 7px; }
.footer-bottom { max-width: 1140px; margin: 64px auto 0; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 12px; }
.footer-bottom nav { display: flex; gap: 24px; }
/* The footer artwork stays dark in both appearances, so its control uses Astryx's dark media. */
.footer-bottom .appearance-control { margin-left: auto; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: copy-enter 1.1s cubic-bezier(.16, 1, .3, 1) backwards; }
  .hero h1 em::after { animation: underline-enter 1.4s .35s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-art { animation: art-enter 1.6s .1s cubic-bezier(.16, 1, .3, 1) backwards; }
  @keyframes copy-enter { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
  @keyframes underline-enter { from { scale: 0 1; } to { scale: 1 1; } }
  @keyframes art-enter { from { opacity: 0; scale: .96; } to { opacity: 1; scale: 1; } }
}
@media (max-width: 900px) {
  .home-header { gap: 16px; }
  .home-navigation { gap: 20px; }
  .hero-stage { min-height: 0; grid-template-columns: 1fr; gap: 12px; padding: 128px 32px 64px; text-align: center; }
  .hero h1 { font-size: clamp(56px, 9vw, 76px); }
  .hero-subtitle { margin-inline: auto; }
  .hero-downloads { justify-content: center; }
  .hero-art { margin: 0 auto; width: min(100%, 760px); }
  .hero-scroll { display: none; }
  .why-section { padding: 70px 32px; }
  .why-heading { gap: 18px 32px; }
  .why-pillars { grid-template-columns: 1fr; margin-top: 48px; }
  .footer-main { gap: 40px; }
}
@media (max-width: 600px) {
  .home-header { padding: 18px 22px; grid-template-columns: 1fr auto; gap: 16px; }
  .home-header::before { inset: 10px; border-radius: 18px; }
  .home-brand { font-size: 24px; }
  .home-navigation { display: none; }
  .home-launch { font-size: 12px; white-space: nowrap; gap: 18px; }
  .hero-stage { padding: 112px 22px 40px; gap: 4px; }
  .hero h1 { font-size: clamp(46px, 13vw, 58px); line-height: 1; letter-spacing: -.05em; }
  .hero-subtitle { font-size: 16px; margin-top: 20px; }
  .hero-downloads { gap: 0 22px; margin-top: 4px; font-size: 12px; }
  .hero-art { width: auto; margin: 4px -22px 0; }
  .why-section { padding: 56px 22px 48px; border-radius: 28px 28px 0 0; }
  .why-heading { display: block; }
  .why-heading h2 { margin-top: 24px; font-size: 42px; }
  .why-heading > p:last-child { margin-top: 24px; font-size: 14px; }
  .why-pillars { margin-top: 36px; gap: 14px; }
  .why-pillars li { padding: 28px 24px 30px; border-radius: 22px; }
  .why-icon { height: 40px; margin-bottom: 28px; }
  .why-number { top: 28px; right: 24px; }
  .home-footer { padding: 96px 28px 24px; }
  .footer-atmosphere img { width: 180%; max-width: none; margin-left: -40%; }
  .footer-invitation { margin-bottom: 64px; }
  .footer-invitation h2 { font-size: clamp(64px, 15vw, 90px); margin: 26px 0; }
  .footer-invitation > p:last-child { max-width: 220px; margin: auto; font-size: 15px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-identity { grid-column: 1 / -1; }
  .footer-label { margin-bottom: 10px; }
  .footer-bottom { margin-top: 36px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-bottom nav { flex-wrap: wrap; gap: 0 24px; }
  .footer-bottom .appearance-control { margin: 8px 0; }
}
@media (prefers-reduced-transparency: reduce) {
  .home-header::before { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .footer-atmosphere { display: none; }
  .home-footer { background: Canvas; color: CanvasText; --muted: CanvasText; --rule: CanvasText; }
  .footer-identity { background: Canvas; color: CanvasText; border-color: CanvasText; }
  .home-header::before { background: Canvas; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
/* Language switcher: a native disclosure, so the static page opens it without a script. */
.home-language { position: relative; }
.home-language summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); letter-spacing: .02em; }
.home-language summary::-webkit-details-marker { display: none; }
.home-language summary::after { content: ""; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.home-language[open] summary::after { transform: translateY(1px) rotate(225deg); }
.home-language summary:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 4px; border-radius: 6px; }
.home-language-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 10; display: flex; flex-direction: column; min-width: 168px; padding: 8px 6px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); box-shadow: 0 12px 32px light-dark(#283c2d14, #0000004d); }
.home-language-menu a { padding: 0 12px; border-radius: 8px; white-space: nowrap; }
.home-language-menu a:hover { background: var(--hover); }
.home-language-menu a[aria-current="page"] { color: var(--color-text-accent); font-weight: 500; }
/* CJK headlines keep normal tracking; DM Sans covers Latin only, so these fall back to system fonts. */
/* The hero slogan is English on every page (lang="en"), so it keeps the English type. */
.home :is(h1, h2, .home-brand ~ p):is(:lang(zh), :lang(ja), :lang(ko)) { letter-spacing: 0; }
/* No line breaks inside a word: Korean breaks at spaces, Japanese at phrases (where supported), and
   headings and the hero line balance their lines instead of leaving one character behind. */
.home :is(h1, h2, h3, .hero-subtitle):is(:lang(zh), :lang(ja), :lang(ko)) { text-wrap: balance; }
.home:lang(ko) { word-break: keep-all; }
.home :is(h1, h2, h3, .hero-subtitle):lang(ja) { word-break: auto-phrase; }
/* CJK "Why Impo" lines are one phrase each; a smaller size keeps each on one line. */
.why-heading h2:is(:lang(zh), :lang(ja), :lang(ko)) { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.25; }
@media (max-width: 600px) { .why-heading h2:is(:lang(zh), :lang(ja), :lang(ko)) { font-size: 28px; } }
/* Developers page: the homepage header and footer around a reading column. */
.partners { max-width: 1040px; margin: 0 auto; padding: 168px 24px 120px; }
.partners .eyebrow { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.partners h1 { margin-top: 18px; font-weight: 350; font-size: clamp(44px, 5vw, 76px); line-height: 1.08; letter-spacing: -.05em; }
.partners h2 { font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.03em; }
.partners-lead { max-width: 640px; margin-top: 28px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.partners section + section { margin-top: 96px; }
.partners-steps ol { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.partners-steps li { padding: 28px 24px 30px; border: 1px solid var(--rule); border-radius: 20px; background: var(--card); }
.partners-step-number { font-size: 13px; color: var(--color-text-accent); letter-spacing: .06em; }
.partners-steps h3 { margin: 14px 0 10px; font-weight: 500; font-size: 18px; }
.partners-steps p, .partners-access p, .partners-contact p { margin: 0; line-height: 1.65; color: var(--muted); }
.partners-access p, .partners-contact > p { max-width: 640px; margin-top: 16px; }
.partners-links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.partners-contact { padding: 48px clamp(24px, 4vw, 56px); border-radius: 28px; background: var(--tint); }
.partners-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.partners-actions .partners-primary { color: var(--on-primary); }
.partners-note { margin-top: 16px; font-size: 13px; }
.home-navigation a[aria-current="page"] { color: var(--color-text-accent); }
.home:is(:lang(zh), :lang(ja), :lang(ko)) .partners h1 { letter-spacing: 0; font-weight: 400; line-height: 1.2; }
@media (max-width: 760px) {
  .partners { padding: 128px 16px 88px; }
  .partners-steps ol { grid-template-columns: 1fr; }
  .partners section + section { margin-top: 64px; }
}
/* The source link sits in the hero, between the subtitle and the downloads, as it did before. */
.hero-source { margin-top: 14px; font-size: 14px; color: var(--color-text-accent); }
.hero-source a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
/* On phones a CJK headline line must fit on one line: up to about nine characters at 8.2vw. */
/* Dark: the illustration's soft edges fade into the canvas; dim it slightly so it sits in the dark page. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-art img { filter: brightness(.9); }
}
:root[data-theme="dark"] .hero-art img { filter: brightness(.9); }
