/* Open Me — the app's own night-plum and gold, so the site and the app agree. */
:root {
  --night: #0b0616;
  --plum: #290f3d;
  --violet: #8a5cff;
  --gold: #f6d58e;
  --gold-deep: #c99440;
  --gold-light: #fff2cc;
  --text: #fcf5e6;
  --dim: #b9aec8;
  --line: rgba(246, 213, 142, 0.16);
  --serif: "New York", ui-serif, Georgia, "Times New Roman", serif;
  --sans: -apple-system, system-ui, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- The velvet dark, behind everything ---------- */

.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sky .glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70vw 50vh at 50% 38%, rgba(138, 92, 255, 0.28), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--plum) 55%, var(--night) 100%);
  animation: breathe 9s ease-in-out infinite;
}
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

@keyframes breathe { 50% { opacity: 0.8; } }

.wrap { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header and footer ---------- */

header { display: flex; align-items: center; gap: 12px; padding: 22px 0; }
header .mark { width: 38px; height: 38px; border-radius: 9px; }
header .home { font-family: var(--serif); font-weight: 800; font-size: 1.25rem; color: var(--gold); text-decoration: none; }
header nav { margin-left: auto; display: flex; gap: 18px; }
header nav a { color: var(--dim); text-decoration: none; font-size: 0.95rem; }
header nav a:hover { color: var(--gold); }

footer {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  border-top: 1px solid var(--line); margin-top: 80px; padding: 26px 0 40px;
  color: var(--dim); font-size: 0.9rem;
}
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--gold); }
footer .spacer { margin-left: auto; }

a { color: var(--gold); }

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.12; margin: 0 0 18px; }
.gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 50%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow { color: var(--gold); letter-spacing: 0.3em; font-size: 0.78rem; font-weight: 600; margin: 0 0 10px; }

/* ---------- Hero ---------- */

.hero { text-align: center; padding: 56px 0 10px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
.hero p { color: var(--dim); font-size: 1.2rem; max-width: 40ch; margin: 0 auto 30px; }
.badge {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 45%, var(--gold-deep));
  color: #2a1606; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 40px rgba(246, 213, 142, 0.25);
}

.devices { display: flex; justify-content: center; margin: 30px 0 20px; }
.devices img { width: min(372px, 60%); height: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */

section { padding: 60px 0 0; }
section h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.lead { color: var(--dim); max-width: 56ch; margin: -8px 0 26px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card {
  background: rgba(41, 15, 61, 0.55); border: 1px solid var(--line);
  border-radius: 20px; padding: 22px 22px 8px; backdrop-filter: blur(6px);
}
.card h3 { font-size: 1.2rem; color: var(--gold); margin-bottom: 8px; }
.card p { color: var(--dim); margin: 0 0 14px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; align-items: end; }
.gallery figure { margin: 0; text-align: center; }
.gallery img { width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55)); }
.gallery figcaption { color: var(--dim); font-size: 0.95rem; margin-top: 8px; }

/* ---------- Legal and support pages ---------- */

article { max-width: 720px; }
article h1 { font-size: clamp(2rem, 5vw, 3rem); }
article h2 { font-size: 1.4rem; margin-top: 36px; color: var(--gold); }
article p, article li { color: #e6dcef; }
article li { margin-bottom: 8px; }

/* ---------- Arrival ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .sky .glow, .devices img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 560px) {
  header nav { gap: 12px; }
  header .home { display: none; }
  footer .spacer { margin-left: 0; }
}
