:root {
  --bg: #05080d;
  --panel: #0c1119;
  --line: #1c2430;
  --text: #e7eaf0;
  --muted: #9aa3b2;
  --gold: #ecb652;
  --gold-soft: rgba(236, 182, 82, 0.12);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.brand img { height: 28px; width: auto; }
.brand:hover { text-decoration: none; }
.toplinks { display: flex; gap: 22px; font-size: 14px; }
.toplinks a { color: var(--muted); }
.toplinks a:hover, .toplinks a.active { color: var(--text); text-decoration: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; padding: 48px 0 36px; }
.hero h1 { margin: 0; line-height: 1.1; }
.hero .kicker { display: block; font-size: 15px; font-weight: 300; letter-spacing: 0.18em; color: #d9dde5; text-transform: uppercase; }
.hero .title { display: block; font-family: "Lora", Georgia, serif; font-style: italic; font-weight: 600; font-size: clamp(40px, 6vw, 60px); color: var(--gold); margin-top: 6px; }
.hero p { color: var(--muted); margin: 18px 0 22px; font-size: 17px; }
.hero img.cake { width: 100%; height: auto; border-radius: 18px; display: block; }
.applogo { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.applogo img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 6px 20px rgba(0,0,0,.6); }
.applogo span { font-size: 13px; color: var(--muted); line-height: 1.4; }

.btn { display: inline-block; background: var(--gold); color: #1a1205; font-weight: 600; padding: 11px 20px; border-radius: 999px; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); margin-left: 8px; }

/* Sections */
section { padding: 30px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 22px; margin: 0 0 14px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 14px 58px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); font-weight: 700; display: grid; place-items: center; font-size: 14px; }

details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--gold); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

.contact { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.contact p { margin: 0; color: var(--muted); }
.contact strong { color: var(--text); display: block; font-size: 18px; margin-bottom: 4px; }

/* Legal text */
.legal { padding-top: 40px; padding-bottom: 40px; }
.legal h1 { font-size: clamp(28px, 5vw, 38px); margin: 0 0 6px; }
.legal .meta { color: var(--muted); margin: 0 0 26px; font-size: 14px; }
.legal h2 { font-size: 19px; margin: 30px 0 8px; color: var(--gold); }
.legal p, .legal li { color: #c9ced8; }
.legal ul { padding-left: 20px; }
.summary { background: var(--gold-soft); border: 1px solid rgba(236,182,82,.35); border-radius: 14px; padding: 16px 18px; color: var(--text); }

/* Apps grid (home) */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding: 10px 0 40px; }
.appcard { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; gap: 14px; align-items: center; color: var(--text); }
.appcard:hover { text-decoration: none; border-color: rgba(236,182,82,.5); }
.appcard img { width: 64px; height: 64px; border-radius: 15px; }
.appcard b { display: block; }
.appcard span { color: var(--muted); font-size: 14px; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 22px 0 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero img.cake { order: -1; }
  .toplinks { gap: 14px; }
  .btn.ghost { margin: 10px 0 0; }
}
