:root {
  --bg: #050507;
  --fg: #ecebf2;
  --muted: #85849a;
  --soft: #b9b8c8;
  --line: rgba(255,255,255,.12);
  --accent: #5b9bf0;
  --pad: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: radial-gradient(ellipse at 50% 0%, #12121c 0%, var(--bg) 60%) fixed;
  color: var(--fg);
  font-family: 'Inter Tight', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; }
header.site {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px var(--pad); font-size: 14px;
}
.mark { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; text-decoration: none; }
.mark svg { width: 18px; height: 18px; }
header.site nav { display: flex; gap: 22px; }
header.site nav a { opacity: .75; text-decoration: none; transition: opacity .2s; }
header.site nav a:hover, header.site nav a[aria-current] { opacity: 1; }

main { padding: 0 var(--pad); max-width: 1180px; margin: 0 auto; }
.label { color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(32px, 8vw, 110px) 0 clamp(48px, 8vw, 100px); }
.app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.app-id img { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 8px 30px rgba(47,123,224,.25); }
.app-id span { color: var(--muted); font-size: 14px; }
h1 { font-size: clamp(44px, 7vw, 96px); font-weight: 500; letter-spacing: -.05em; line-height: .95; }
.lede { color: var(--soft); font-size: clamp(18px, 1.8vw, 22px); max-width: 34ch; margin-top: 24px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--fg); color: var(--bg); border-radius: 999px; padding: 13px 22px; font-weight: 500; font-size: 16px;
}
.btn svg { width: 18px; height: 18px; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.note { color: var(--muted); font-size: 14px; }
/* height: auto keeps the screenshot's shape; the HTML width/height only reserve space while it loads */
.hero-shot img { display: block; margin: 0 auto; width: auto; height: auto; max-width: min(100%, 360px); max-height: min(78vh, 760px); border-radius: 28px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3.5vw, 56px); padding: clamp(40px, 7vw, 90px) 0; }
.feature { border-top: 1px solid var(--line); padding: 26px 0 34px; }
.feature .n { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.feature h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.025em; margin: 14px 0 10px; }
.feature p { color: var(--soft); font-size: 16px; max-width: 42ch; }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-bottom: clamp(56px, 9vw, 120px); }
.gallery img { width: 100%; height: auto; display: block; border-radius: 18px; }

.private { border-top: 1px solid var(--line); padding: clamp(48px, 8vw, 100px) 0; }
.private p.big { font-size: clamp(26px, 3.6vw, 48px); letter-spacing: -.03em; line-height: 1.1; max-width: 22ch; }
.private p.big em { font-style: normal; color: var(--muted); }

/* Text pages: support and privacy */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(32px, 7vw, 90px) 0 clamp(56px, 9vw, 110px); }
.doc h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 14px; }
.doc .meta { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--soft); font-size: 17px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; margin-top: 10px; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--fg); font-weight: 500; }
.doc code { font-family: ui-monospace, Menlo, monospace; font-size: .92em; background: rgba(255,255,255,.07); padding: 1px 6px; border-radius: 6px; color: var(--fg); }
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-size: 18px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; }
.contact-card { margin-top: 48px; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.contact-card a { color: var(--accent); }

footer.site {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px var(--pad); color: var(--muted); font-size: 13px; border-top: 1px solid var(--line);
}
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--fg); }
footer.site .links { display: flex; gap: 18px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-shot img { max-width: min(100%, 300px); max-height: none; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  header.site nav { gap: 14px; }
  .gallery { gap: 10px; }
}

/* Apps index */
.apps-head { padding: clamp(32px, 8vw, 110px) 0 clamp(28px, 5vw, 56px); }
.apps-head h1 { font-size: clamp(48px, 9vw, 128px); }
.apps-head .lede { max-width: 40ch; }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); padding-bottom: clamp(56px, 9vw, 120px); }
.app-card {
  display: flex; gap: 22px; align-items: flex-start; text-decoration: none;
  border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 2.4vw, 32px);
  background: rgba(255,255,255,.02); transition: border-color .3s, background .3s;
}
.app-card:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); }
.app-card img { width: 76px; height: 76px; border-radius: 18px; flex: none; }
.app-card h2 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.03em; }
.app-card .kind { color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.app-card p { color: var(--soft); font-size: 17px; margin-top: 14px; max-width: 42ch; }
.app-card .more { display: inline-flex; gap: 8px; margin-top: 18px; font-size: 15px; transition: gap .3s; }
.app-card:hover .more { gap: 14px; }
@media (max-width: 900px) { .app-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .app-card { flex-direction: column; gap: 16px; } }

/* Inline code on product pages (Shorthand abbreviations) */
.lede code, .feature code { font-family: ui-monospace, Menlo, monospace; font-size: .88em; background: rgba(255,255,255,.07); padding: 1px 6px; border-radius: 6px; color: var(--fg); }
