/* The app icon's colours: a glossy amber-gold ribbon under a spotlight, on deep navy, finished as
   polished metal: light and dark bands across the gold, and a sheen that passes over it now and then. */
:root {
  --navy: #020b1e;
  --navy-2: #08162f;
  --line: #172a4d;
  --gold: #f5a524;
  --gold-soft: #ffd27a;
  --amber: #e07b14;
  --text: #eef1f7;
  --muted: #a9b4c8;
  --max: 68rem;
  /* Polished gold: highlights and shadows in bands, as a curved metal surface reflects light. */
  --metal: linear-gradient(100deg,
    #b8741a 0%, #e3a53a 14%, #fff1c2 26%, #f3b743 36%, #c98420 50%,
    #ecab42 62%, #fff4cf 72%, #f0b23f 82%, #b8741a 100%);
  /* The same gold for small text, kept light enough to read on navy. */
  --metal-light: linear-gradient(100deg,
    #f0b23f 0%, #ffe4a0 20%, #fff6dc 30%, #f5c25a 45%, #e6a034 55%, #ffd987 72%, #fff4cf 82%, #f0b23f 100%);
  /* A soft champagne silver for headings, so the gold stays the accent. */
  --silver: linear-gradient(180deg, #ffffff 0%, #e7ebf3 45%, #b9c3d6 100%);
  --rim: linear-gradient(135deg, #fff1c2, #d99a2b 25%, #6e430c 50%, #f3b743 75%, #fff4cf);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* A spotlight falling from the top right, as on the icon. */
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(255, 196, 87, 0.14), transparent 60%),
    radial-gradient(40rem 30rem at 10% 110%, rgba(224, 123, 20, 0.07), transparent 60%),
    var(--navy);
  background-attachment: fixed;
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

/* Gold text in polished metal, its sheen sliding across. */
.metal-text {
  color: var(--gold);
  background: var(--metal);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sheen-text 9s ease-in-out infinite;
}

@keyframes sheen-text {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* A band of light that crosses an element every few seconds; the element needs position and overflow. */
.shine::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 248, 225, 0.55) 50%, transparent 58%);
  transform: translateX(-100%);
  animation: sweep 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sweep {
  0%, 60% { transform: translateX(-100%); }
  85%, 100% { transform: translateX(100%); }
}

.draft {
  position: relative;
  overflow: hidden;
  background: var(--metal);
  color: #1a1004;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
}

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: 0.01em; }
.brand img { width: 2rem; height: 2.4rem; filter: drop-shadow(0 0 0.5rem rgba(245, 165, 36, 0.35)); }

nav a { color: var(--muted); text-decoration: none; margin-left: 1.2rem; transition: color 0.2s; }
nav a:hover { color: var(--gold-soft); }

.hero { padding: 4rem 0 3.5rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
}
.hero h1 .plain {
  background: var(--silver);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { color: var(--muted); font-size: 1.15rem; margin: 0 0 1.9rem; max-width: 34rem; }

.hero-mark { display: flex; justify-content: center; }
/* The icon itself on its navy tile, framed by a thin polished gold rim. */
.tile {
  position: relative;
  overflow: hidden;
  width: min(18rem, 64vw);
  aspect-ratio: 1;
  border-radius: 22%;
  padding: 2px;
  background: var(--rim);
  box-shadow: 0 1.8rem 4.5rem rgba(0, 0, 0, 0.6), 0 0 6rem rgba(245, 165, 36, 0.16);
}
.tile img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: calc(22% - 1px);
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 210, 122, 0.24), transparent 45%),
    radial-gradient(circle at 50% 50%, #0d2148, var(--navy) 75%);
}

.badge {
  position: relative;
  overflow: hidden;
  display: inline-block;
  background: var(--metal);
  background-size: 160% 100%;
  color: #1a1004;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 230, 0.7),
    inset 0 -1px 0 rgba(90, 50, 5, 0.6),
    0 0.5rem 1.8rem rgba(245, 165, 36, 0.3);
}

section { position: relative; padding: 3.5rem 0; }
/* A gold hairline between sections, fading out at both ends. */
section::before, footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(var(--max), 92%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(245, 165, 36, 0.55) 30%, rgba(255, 241, 194, 0.8) 50%, rgba(245, 165, 36, 0.55) 70%, transparent);
}
section h2 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  background: var(--silver);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
section > .wrap > p.lead { color: var(--muted); margin: 0 0 2rem; max-width: 42rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.1rem; }
/* Dark glass in a thin gold frame, the frame brightest at the top where the light falls. */
.card {
  border: 1px solid transparent;
  border-radius: 0.9rem;
  padding: 1.4rem 1.5rem;
  background:
    linear-gradient(180deg, #0c1d3d, #071328) padding-box,
    linear-gradient(160deg, rgba(255, 228, 160, 0.85), rgba(217, 154, 43, 0.45) 30%, rgba(23, 42, 77, 0.9) 65%) border-box;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 241, 194, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1.2rem 2.6rem rgba(0, 0, 0, 0.45), 0 0 2rem rgba(245, 165, 36, 0.12);
}
.card h3 { margin: 0 0 0.45rem; font-size: 1.12rem; font-weight: 800; }
.card h3.metal-text, .brand .metal-text { background-image: var(--metal-light); }
.card p { margin: 0; color: var(--muted); }

.note-demo {
  display: inline-block;
  background: var(--metal);
  background-size: 200% 100%;
  color: #1a1004;
  font-weight: 800;
  border-radius: 0.25rem;
  padding: 0 0.45rem;
}

footer { position: relative; padding: 2rem 0 3rem; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* The privacy policy and other plain text pages. */
.doc { max-width: 44rem; padding: 2rem 1rem 4rem; margin: 0 auto; }
.doc h1 { font-size: 2.3rem; font-weight: 800; margin-bottom: 0.2rem; }
.doc h2 { margin-top: 2.2rem; font-size: 1.3rem; color: var(--gold-soft); }
.doc .updated { color: var(--muted); margin-top: 0; }
.doc .todo { border-left: 3px solid var(--gold); padding: 0.2rem 0 0.2rem 0.8rem; color: var(--gold-soft); font-style: italic; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 2rem; gap: 2rem; }
  .hero-mark { order: -1; }
  nav a { margin-left: 0.8rem; }
  nav a.wide { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .metal-text, .shine::after { animation: none; }
  .shine::after { display: none; }
  .card, nav a { transition: none; }
  .card:hover { transform: none; }
}
