:root {
  --bg: #ffffff;
  --alt: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --link: #0066cc;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --line: rgba(0, 0, 0, 0.12);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-edge: rgba(0, 0, 0, 0.08);
  --green: #1c8a4a;
  --radius: 28px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000;
  --alt: #161617;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --link: #2997ff;
  --accent: #0a84ff;
  --accent-hover: #409cff;
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(29, 29, 31, 0.72);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-edge: rgba(255, 255, 255, 0.06);
  --green: #5fd68a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 48px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
  transition: background 0.3s, color 0.3s;
}
main { flex: 1; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.028em; }
h3 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; }
h4 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.wrap { width: min(980px, 100% - 44px); margin-inline: auto; }
.muted { color: var(--muted); }

.blue { color: var(--accent); }
.tag sup { font-size: 0.7em; line-height: 0; margin-left: 1px; }
sup.fn { font-size: 0.6em; line-height: 0; vertical-align: super; margin-left: 1px; letter-spacing: 0; }
sup.fn a { color: inherit; }
.story { max-width: 720px; margin: 0 auto; }
.story p { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; letter-spacing: -0.015em; }
.story p:last-child { margin-bottom: 0; }

/* Band sections */
.band { padding: clamp(70px, 11vw, 140px) 0; }
.band.alt { background: var(--alt); }
.band.dark { --bg: #000; --alt: #1d1d1f; --text: #f5f5f7; --muted: #a1a1a6; --link: #2997ff; --line: rgba(255,255,255,0.16); background: #000; color: var(--text); }
.section-head { text-align: center; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head p { font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: var(--muted); margin: 14px 0 0; letter-spacing: -0.015em; }

/* Liquid glass (nav, chips, controls) */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -1px 0 var(--glass-edge), 0 4px 24px rgba(0,0,0,0.06);
}

/* Nav */
header.nav {
  position: sticky; top: 0; z-index: 50; height: 48px;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--glass-edge);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 8px; width: min(1024px, 100% - 44px); margin-inline: auto; }
.brand { color: var(--text); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.02em; display: flex; align-items: center; gap: 9px; }
.brand:hover { text-decoration: none; }
.nav-links { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.nav-links a { color: var(--text); opacity: 0.8; padding: 6px 12px; font-size: 0.8rem; transition: opacity 0.2s; letter-spacing: -0.01em; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; text-decoration: none; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--text);
  cursor: pointer; display: grid; place-items: center; transition: background 0.2s; flex: none;
}
.icon-btn:hover { background: var(--glass-edge); }
.icon-btn svg { width: 17px; height: 17px; }
.sun { display: none; }
:root[data-theme="dark"] .sun { display: block; }
:root[data-theme="dark"] .moon { display: none; }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .nav-inner .theme { margin-left: auto; }
  .nav-links {
    position: absolute; top: 48px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 22px 14px; display: none; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav-links a:last-child { border: 0; }
}

/* Hero */
.hero { padding: clamp(64px, 11vw, 130px) 0 clamp(56px, 8vw, 100px); text-align: center; }
.eyebrow { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; margin-bottom: 14px; color: var(--text); letter-spacing: -0.015em; }
.hero .lead { font-size: clamp(1.15rem, 2.6vw, 1.75rem); line-height: 1.25; color: var(--muted); max-width: 720px; margin: 22px auto 30px; letter-spacing: -0.018em; font-weight: 400; }
.actions { display: flex; gap: 14px 26px; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 980px; font-size: 1.05rem; font-weight: 400;
  background: var(--accent); color: #fff; border: 0; cursor: pointer; transition: background 0.2s; letter-spacing: -0.015em;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.more { font-size: 1.15rem; color: var(--link); }
.more::after { content: " \203A"; }

/* Icons */
.app-icon {
  width: 96px; height: 96px; border-radius: 22%; display: grid; place-items: center; flex: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.5);
}
.app-icon svg { width: 52px; height: 52px; color: #fff; }
.app-icon.mirror { background: linear-gradient(145deg, #ff8fb1, #8a6bff); }
.app-icon.lg, .icon-img.lg { width: clamp(96px, 16vw, 140px); height: clamp(96px, 16vw, 140px); }
.app-icon.lg svg { width: 55%; height: 55%; }
.icon-img { display: block; width: 96px; height: 96px; flex: none; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.16)); }
.icon-img.dark { display: none; }
:root[data-theme="dark"] .icon-img.light { display: none; }
:root[data-theme="dark"] .icon-img.dark { display: block; }

/* App tiles */
.apps-grid { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .apps-grid { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--alt); border-radius: var(--radius); overflow: hidden; position: relative; }
.panel-head {
  all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 100%; padding: clamp(40px, 6vw, 64px) 28px clamp(56px, 8vw, 84px); cursor: pointer; position: relative;
}
.panel-head:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: var(--radius); }
.panel-head .app-icon, .panel-head .icon-img { margin-bottom: 22px; }
.panel-head .info { width: 100%; }
.panel-head h3 { margin-bottom: 8px; }
.panel-head p { margin: 0 0 14px; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--muted); letter-spacing: -0.015em; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tag { padding: 3px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 500; background: var(--bg); color: var(--muted); letter-spacing: -0.01em; }
.tag.soon { color: var(--accent); }
.tag.priv { color: var(--green); }
.chev {
  position: absolute; right: 22px; bottom: 22px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--text); color: var(--bg); transition: transform 0.35s, background 0.2s;
}
.chev svg { width: 16px; height: 16px; }
.panel.open .chev { transform: rotate(45deg); }
.panel-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s cubic-bezier(.4,0,.2,1); }
.panel.open .panel-body { grid-template-rows: 1fr; }
.panel-body > div { overflow: hidden; }
.panel-inner { padding: 4px clamp(24px, 6vw, 64px) 56px; max-width: 900px; margin: 0 auto; }
.panel-inner .intro { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.3; letter-spacing: -0.018em; margin-bottom: 18px; }
.panel-inner h4 { margin: 40px 0 16px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.mini { padding: 22px; border-radius: 20px; background: var(--bg); }
.mini h5 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; }
.mini p { margin: 0; font-size: 0.95rem; color: var(--muted); line-height: 1.4; }
.specs { list-style: none; padding: 0; margin: 0; }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs li:last-child { border: 0; }
.specs span:first-child { color: var(--muted); }
@media (max-width: 560px) { .chev { right: 14px; bottom: 14px; } .specs li { flex-direction: column; gap: 2px; } }

/* Privacy band */
.privacy-icon { width: 64px; height: 64px; margin: 0 auto 26px; color: #2997ff; }
.privacy-icon svg { width: 100%; height: 100%; }
.privacy-band .mini { background: var(--alt); text-align: left; }
.privacy-band .mini-grid { margin-top: 48px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 300; color: var(--muted); transition: transform 0.3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 22px; font-size: 1.05rem; }

/* Contact */
.contact { text-align: center; }
.contact p { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--muted); max-width: 600px; margin: 16px auto 28px; }

/* Prose / legal */
.prose { width: min(720px, 100% - 44px); margin-inline: auto; padding: 70px 0 90px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 8px; }
.prose h2 { margin-top: 1.9em; font-size: 1.5rem; margin-bottom: 0.4em; }
.prose ul { padding-left: 1.2em; }
.prose .callout { background: var(--alt); border-radius: 20px; padding: 22px 26px; margin: 28px 0; }
.prose .callout p { margin: 0; }
.note { padding: 14px 18px; border-radius: 14px; font-size: 0.92rem; border: 1px dashed var(--line); color: var(--muted); }

/* Footer */
footer { background: var(--alt); color: var(--muted); font-size: 0.75rem; line-height: 1.5; letter-spacing: -0.01em; padding: 22px 0 28px; }
footer .wrap { width: min(1024px, 100% - 44px); }
.fine { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.fine p { margin: 0 0 8px; }
.footnotes { margin: 0; padding-left: 1.3em; }
.footnotes li { margin-bottom: 3px; }
.footnotes li:target { color: var(--text); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 6px 0; }
.foot-row nav a { color: var(--muted); padding: 0 12px; border-left: 1px solid var(--line); }
.foot-row nav a:first-child { border: 0; padding-left: 0; }
.foot-row a:hover { color: var(--text); text-decoration: underline; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, header.nav { background: var(--bg); }
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
