/* Etoya's site: the Cosmos theme of the app (src/theme/cosmos.ts) — a night sky with nebulae, champagne type. */
:root {
  --sky: #060a15;
  --surface: rgba(17, 23, 38, 0.62);
  --surface-solid: #111726;
  --ink: #f3efe7;
  --muted: #9da3b2;
  --line: rgba(243, 239, 231, 0.12);
  --accent: #c9a96a;
  --plate: #f3efe7;
  --on-plate: #090d16;
  --glow: #afc3f0;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Onest', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--sky); color: var(--ink); font: 16px/1.6 var(--sans); overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
svg.i { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* The sky: canvas stars over two drifting nebulae. */
#sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.nebula { position: fixed; z-index: -2; pointer-events: none; background-size: contain; background-repeat: no-repeat; opacity: 0.55; filter: saturate(1.1); }
.nebula.a { width: 900px; height: 700px; top: -160px; right: -220px; background-image: url(/img/nebula-a.webp); animation: drift 26s ease-in-out infinite alternate; }
.nebula.b { width: 760px; height: 600px; bottom: -200px; left: -260px; background-image: url(/img/nebula-b.webp); opacity: 0.4; animation: drift 32s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-24px, 18px, 0) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .nebula { animation: none; } html { scroll-behavior: auto; } }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header: glass over the sky. */
header.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(6, 10, 21, 0.55); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mark { font: 500 14px/1 var(--sans); letter-spacing: 8px; padding-left: 8px; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.mark svg { width: 18px; height: 18px; fill: var(--accent); }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--muted); font-size: 14px; }
nav a:hover, nav a.on { color: var(--ink); text-decoration: none; }
nav a.pill { color: var(--on-plate); background: var(--plate); padding: 8px 16px; border-radius: 999px; font-weight: 500; white-space: nowrap; }

/* Hero: words on the left, the app on the right, as Telegram shows it. */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 40px; min-height: calc(100vh - 64px); }
.over { color: var(--accent); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; margin: 0 0 18px; display: inline-flex; align-items: center; gap: 8px; }
.over svg { width: 14px; height: 14px; fill: var(--accent); }
h1 { font: 600 64px/1.02 var(--serif); margin: 0 0 22px; letter-spacing: -0.5px; }
h1 em { font-style: italic; color: var(--accent); font-weight: 600; }
.lead { color: #c9ccd6; font-size: 18px; max-width: 520px; margin: 0; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.store:hover { text-decoration: none; border-color: rgba(201, 169, 106, 0.6); }
.store small { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; }
.store b { display: block; font-weight: 600; font-size: 15px; line-height: 1.25; }
.invite { display: inline-flex; margin-top: 20px; color: var(--accent); font-weight: 500; gap: 6px; align-items: center; }

/* Phones. */
.phones { position: relative; height: 640px; }
.phone { position: absolute; width: 290px; aspect-ratio: 390 / 844; border-radius: 46px; padding: 10px; background: linear-gradient(160deg, #2a3147, #0c111d 60%); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(243, 239, 231, 0.08), 0 0 60px rgba(175, 195, 240, 0.08); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%); background: #05070d; border-radius: 20px; z-index: 1; }
.phones .front { right: 70px; top: 10px; z-index: 2; }
.phones .back { right: -10px; top: 70px; transform: rotate(6deg) scale(0.88); opacity: 0.85; }

/* Feature rows: text and a phone, alternating. */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.row.flip .text { order: 2; }
.row .phone { position: relative; margin: 0 auto; width: 280px; }
.row h2, .band h2, .section-title { font: 600 44px/1.08 var(--serif); margin: 0 0 16px; }
.row p { color: #c9ccd6; font-size: 17px; margin: 0 0 12px; max-width: 480px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: #d9d4ca; }
.ticks svg { width: 18px; height: 18px; fill: var(--accent); margin-top: 3px; }

/* Glass cards. */
.section-title { text-align: center; margin-top: 40px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 24px; padding-bottom: 72px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; transition: border-color 0.25s, transform 0.25s; }
.card:hover { border-color: rgba(201, 169, 106, 0.45); transform: translateY(-2px); }
.card .disc { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(201, 169, 106, 0.6); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background: rgba(201, 169, 106, 0.06); }
.card .disc svg { width: 22px; height: 22px; fill: var(--accent); }
.card h3 { font: 600 24px/1.2 var(--serif); margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* The invitation band. */
.band { text-align: center; margin: 24px auto 96px; padding: 56px 24px; border-radius: 28px; background: radial-gradient(ellipse at top, rgba(201, 169, 106, 0.16), transparent 60%), var(--surface); border: 1px solid rgba(201, 169, 106, 0.3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); max-width: 860px; }
.band p { color: #c9ccd6; max-width: 520px; margin: 0 auto 28px; }
.btn { display: inline-block; padding: 14px 30px; border-radius: 999px; background: var(--plate); color: var(--on-plate); font-weight: 500; }
.btn:hover { text-decoration: none; background: #ffffff; }

/* Documents: the page in a glass sheet over the sky. */
.doc { max-width: 820px; margin: 48px auto 88px; padding: 48px 56px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.doc h1 { font-size: 44px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font: 600 26px/1.25 var(--serif); margin: 36px 0 10px; }
.doc p, .doc li { color: #d9d4ca; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.qa { border-top: 1px solid var(--line); padding: 20px 0; }
.qa h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.qa p { margin: 0; }

footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 13px; background: rgba(6, 10, 21, 0.6); }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer p { margin: 0 0 4px; }
footer a { color: var(--muted); margin-right: 16px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; text-align: center; }
  .hero .lead { margin: 0 auto; }
  .stores { justify-content: center; }
  /* The first feature row shows the app right below, so the hero keeps to words on a phone. */
  .phones { display: none; }
  h1 { font-size: 44px; }
  .row { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 48px; text-align: center; }
  .row.flip .text { order: 0; }
  .row p { margin-left: auto; margin-right: auto; }
  .ticks { justify-items: center; }
  .row h2, .band h2, .section-title { font-size: 34px; }
  .cards { grid-template-columns: 1fr; }
  .doc { padding: 32px 22px; margin: 24px 16px 64px; border-radius: 20px; }
  nav a.hide-sm, nav a.hide-xs { display: none; }
  .mark { letter-spacing: 6px; }
  nav { gap: 14px; }
}
