/* Compose HTML components share these tokens with the Silk palette. */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --page: #11101b; --panel: #1b192a; --panel-soft: #201d33;
  --ink: #f5f3ff; --muted: #b9b4cf; --accent: #b3a3ff; --on-accent: #191329;
  --line: #343047; --header: rgba(17,16,27,.9); --glow: rgba(137,104,245,.16);
  --pink-glow: rgba(242,151,208,.12); --shadow: 0 24px 70px rgba(0,0,0,.18);
  --header-height: 64px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --page: #f8f7fd; --panel: #fff; --panel-soft: #f0ecfb;
  --ink: #211b36; --muted: #645b78; --accent: #6d4bd2; --on-accent: #fff;
  --line: #e4deef; --header: rgba(248,247,253,.92); --glow: rgba(139,106,245,.12);
  --pink-glow: rgba(231,142,199,.13); --shadow: 0 24px 70px rgba(75,47,122,.08);
}
html { font-size: 16px; scroll-padding-top: 0; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Arial,sans-serif; font-size: 16px; line-height: 1.65; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { color: var(--ink); line-height: 1.2; overflow-wrap: break-word; }
.site-shell { width: 100%; min-width: 0; color: var(--ink); background: var(--page); }
.content-width { width: min(1200px, 100%); margin-inline: auto; padding-inline: 20px; }
.skip-link { position: fixed; top: 12px; left: 16px; padding: 12px 20px; z-index: 100; background: var(--accent); color: var(--on-accent); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 20; height: 64px; border-bottom: 1px solid var(--line); background: var(--header); backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 44px; font-size: 18px; font-weight: 750; letter-spacing: -.4px; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.icon-control { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 12px; transition: background-color .2s,border-color .2s; }
.icon-control:hover { background: var(--panel-soft); border-color: var(--line); }
.icon-control svg { display: block; width: 21px; height: 21px; }
.language-trigger { font-size: 12px; font-weight: 700; }
.desktop-navigation { display: none; }
.nav-link { padding: 10px 18px; min-height: 44px; border-radius: 12px; color: var(--muted); font-size: 14px; font-weight: 650; transition: color .2s,background-color .2s; }
.nav-link:hover, .nav-link[aria-current] { color: var(--accent); background: var(--panel-soft); }
.language-switcher { position: relative; }
.language-menu { position: absolute; top: calc(100% + 12px); right: 0; width: 184px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.language-menu button { display: flex; align-items: center; justify-content: space-between; min-height: 44px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; }
.language-menu button:hover, .language-menu button[aria-pressed="true"] { background: var(--panel-soft); color: var(--accent); }
.menu-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(6,4,16,.65); }
.mobile-navigation { width: min(340px, calc(100% - 40px)); height: 100%; padding: 22px; background: var(--panel); border-right: 1px solid var(--line); box-shadow: var(--shadow); animation: drawer-enter .2s ease-out; }
.drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 24px; font-size: 20px; font-weight: 700; }
.mobile-navigation nav { display: grid; gap: 8px; }
.drawer-link { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 16px; border-radius: 12px; color: var(--muted); }
.drawer-link:hover, .drawer-link[aria-current] { background: var(--panel-soft); color: var(--accent); }
.site-section { scroll-margin-top: calc(var(--header-height) + 24px); }
.hero { padding-block: 48px 56px; background: radial-gradient(ellipse at 80% 25%,var(--glow),transparent 55%),radial-gradient(ellipse at 5% 80%,var(--pink-glow),transparent 45%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { min-width: 0; animation: hero-enter .4s ease-out; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 1.3px; line-height: 1.5; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--glow); }
.hero h1 { margin-block: 20px 18px; font-size: clamp(32px,3.8vw,52px); font-weight: 780; letter-spacing: -1.4px; }
.hero-product-name { display: block; margin-top: 8px; font-size: .76em; line-height: 1.3; letter-spacing: -.7px; }
.hero-subtitle { font-size: 20px; font-weight: 600; line-height: 1.5; margin-bottom: 10px; }
.body-copy { color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; }
.download-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store-link { display: flex; align-items: center; min-height: 50px; border-radius: 9px; transition: transform .2s,box-shadow .2s; }
.store-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.store-link img { width: 144px; height: auto; }
.version-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.version-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); }
.version-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-showcase { position: relative; min-width: 0; padding: 26px 18px 16px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(145deg,var(--panel),var(--panel-soft)); box-shadow: var(--shadow); }
.showcase-label { display: inline-block; margin-bottom: 24px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 12px; }
.hero-image { width: 100%; height: auto; max-height: 480px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0,0,0,.12)); }
.showcase-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; font-size: 11px; color: var(--muted); letter-spacing: .8px; }
.features { padding-block: 56px; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 32px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2 { font-size: clamp(28px,3vw,38px); font-weight: 750; letter-spacing: -.8px; }
.section-heading > .body-copy { max-width: 660px; margin-top: 16px; }
.feature-row { display: grid; gap: 24px; align-items: center; padding-block: 32px; border-top: 1px solid var(--line); }
.feature-copy { min-width: 0; }
.feature-number { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--accent); background: var(--panel-soft); font-size: 13px; font-weight: 700; }
.feature-copy h3 { font-size: 28px; font-weight: 720; letter-spacing: -.6px; }
.feature-subtitle { margin-block: 12px; font-size: 18px; line-height: 1.6; }
.feature-showcase { min-width: 0; padding: 24px 12px; background: radial-gradient(ellipse at 50% 40%,var(--glow),transparent 75%),var(--panel-soft); border: 1px solid var(--line); border-radius: 24px; }
.feature-image { width: 100%; height: auto; object-fit: contain; }
.contact-section { padding-block: 56px 72px; background: linear-gradient(180deg,var(--page),var(--panel-soft)); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; height: 100%; padding: 24px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; transition: transform .2s,border-color .2s,box-shadow .2s; }
.contact-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.contact-icon { display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; background: var(--panel-soft); border-radius: 14px; color: var(--accent); }
.contact-icon img, .contact-icon svg { width: 22px; height: 22px; object-fit: contain; }
.contact-card h3 { font-size: 19px; font-weight: 700; }
.contact-card .body-copy { font-size: 14px; flex: 1; }
.contact-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--accent); font-size: 14px; font-weight: 600; }
.site-footer { padding-block: 26px; border-top: 1px solid var(--line); background: var(--page); color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.site-footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.document-page { min-height: 100vh; width: 100%; padding: 32px 20px 64px; background: var(--page); color: var(--ink); }
.document-content { max-width: 800px; width: 100%; margin-inline: auto; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.document-content h1 { margin: 0 0 28px; font-size: clamp(28px,4vw,40px); letter-spacing: -1px; }
.document-content h2 { margin: 36px 0 16px; font-size: 26px; }
.document-content h3 { margin: 28px 0 12px; font-size: 21px; }
.document-content h4 { margin: 24px 0 10px; font-size: 18px; }
.document-content p { margin-block: 14px; }
.document-content ul,.document-content ol { margin-block: 16px; padding-left: 24px; }
.document-content li { margin-bottom: 8px; }
.document-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.document-content pre { max-width: 100%; overflow-x: auto; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-soft); }
.document-content code { font-size: .9em; }
.document-content hr { margin-block: 32px; border: 0; border-top: 1px solid var(--line); }
.document-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.document-content th,.document-content td { padding: 10px 14px; border: 1px solid var(--line); }
@keyframes hero-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes drawer-enter { from { transform: translateX(-100%); } to { transform: none; } }
@media (min-width:480px) { .content-width { padding-inline: 24px; } .hero-showcase { padding: 28px 24px 18px; } }
@media (min-width:768px) {
  .content-width { padding-inline: 32px; }
  .hero { padding-block: 64px 72px; }
  .hero-grid { gap: 48px; }
  .hero-copy { max-width: 700px; }
  .hero-showcase { max-width: 600px; width: 100%; justify-self: center; }
  .contact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .features,.contact-section { padding-block: 72px; }
  .document-page { padding-top: 56px; }
}
@media (min-width:1024px) {
  :root { --header-height: 72px; }
  .site-header { height: 72px; }
  .desktop-navigation { display: flex; gap: 4px; }
  .mobile-trigger { display: none; }
  .hero-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; }
  .hero { padding-block: 72px 88px; }
  .hero-showcase { padding: 24px; }
  .hero-image { max-height: 430px; }
  .feature-row { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 56px; padding-block: 48px; }
  .feature-reverse { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); }
  .feature-reverse .feature-copy { order: 2; }
  .feature-showcase { padding: 32px 18px; }
  .contact-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (min-width:1440px) { .hero { padding-block: 88px 104px; } .hero-grid { gap: 72px; } }
@media (prefers-reduced-motion:no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

@media (max-width:479px) { .header-inner { padding-inline: 16px; gap: 8px; } .brand { font-size: 17px; gap: 8px; } .header-actions { gap: 2px; } }
