/* Stargaze web — the app's look: deep black, brushed gold, ivory text,
   Cinzel for display type (same as the admin console and the app's serif). */
:root {
  color-scheme: dark;
  --bg: #0B0A08;
  --surface: #15110B;
  --surface-2: #1C170F;
  --border: rgba(212, 184, 122, 0.18);
  --border-gold: rgba(212, 184, 122, 0.42);
  --text: #F5EEDC;
  --muted: rgba(245, 238, 220, 0.66);
  --gold: #D4B87A;
  --gold-bright: #E9C46A;
  --gold-gradient: linear-gradient(135deg, #F0DCAB 0%, #CDB27A 45%, #A88A55 100%);
  --on-gold: #0B0A08;
  --display: 'Cinzel', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Devanagari', sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(1100px 600px at 50% -120px, rgba(205, 178, 122, 0.16), transparent 70%),
    radial-gradient(700px 500px at 100% 40%, rgba(205, 178, 122, 0.05), transparent 70%),
    var(--bg);
  min-height: 100vh;
}
a { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold-gradient); color: var(--on-gold); padding: 8px 14px; border-radius: 8px; z-index: 10; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 700; letter-spacing: 2px; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 0; }
nav a:hover { color: var(--gold); }

/* Hero */
.hero { text-align: center; padding: 40px 0 36px; position: relative; }
.emblem { width: 220px; max-width: 60vw; height: auto; display: block; margin: 0 auto 8px; filter: drop-shadow(0 18px 50px rgba(233, 196, 106, 0.28)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.eyebrow { display: inline-block; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 14px; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 6vw, 56px); line-height: 1.1; margin: 0 0 16px; letter-spacing: 0.5px; }
.gold-text { background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--muted); font-size: 18px; max-width: 600px; margin: 0 auto 28px; }

/* Buttons */
.cta { display: inline-flex; align-items: center; gap: 8px; background: var(--gold-gradient); color: var(--on-gold); text-decoration: none; font-weight: 800; padding: 14px 30px; border-radius: 999px; margin: 6px; box-shadow: 0 10px 30px rgba(205, 178, 122, 0.22); transition: transform 0.15s, box-shadow 0.15s; }
.cta:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(205, 178, 122, 0.32); }
.cta.alt { background: transparent; border: 1px solid var(--border-gold); color: var(--text); box-shadow: none; }
.cta.alt:hover { border-color: var(--gold); }

/* Sections */
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3.5vw, 30px); text-align: center; margin: 56px 0 8px; letter-spacing: 0.5px; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 8px; max-width: 620px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 24px 0; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.four { grid-template-columns: 1fr; } }
.card { background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 18px; padding: 22px; transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.card .icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-gold); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.steps { counter-reset: s; display: grid; gap: 12px; padding: 0; list-style: none; max-width: 680px; margin: 20px auto; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px 16px 64px; position: relative; }
.steps li strong { display: block; font-size: 16px; }
.steps li span { color: var(--muted); font-size: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-gradient); color: var(--on-gold); text-align: center; line-height: 30px; font-weight: 900; font-size: 14px; }

.teaser { text-align: center; border: 1px solid var(--border-gold); border-radius: 22px; padding: 30px 20px; margin: 48px 0; background: radial-gradient(500px 220px at 50% 0, rgba(233, 196, 106, 0.12), transparent 70%), var(--surface); }
.teaser .pill { display: inline-block; background: var(--gold-bright); color: var(--on-gold); font-size: 11px; font-weight: 900; letter-spacing: 1.5px; border-radius: 999px; padding: 3px 12px; margin-bottom: 12px; }
.teaser h2 { margin-top: 0; }
.perks { display: flex; justify-content: center; gap: 10px 22px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-size: 14px; font-weight: 700; }

.sponsor { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 34px 20px; margin: 48px 0; }

.talents { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 0; }
.talents a { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border-gold); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; }
.talents a:hover { border-color: var(--gold); color: var(--gold); }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-weight: 800; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }

/* Text pages (policies, contact, help) */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 0 48px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); }
.doc h2 { text-align: left; font-size: 20px; color: var(--gold); margin: 34px 0 6px; }
.doc p, .doc li { color: rgba(245, 238, 220, 0.86); }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; }
.doc dt { color: var(--muted); }
.doc dd { margin: 0; }

/* Footer */
footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 30px 0 48px; color: var(--muted); font-size: 13px; text-align: center; }
footer .links { display: flex; gap: 8px 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--gold); }
footer .company { color: var(--text); font-weight: 600; }

/* Forms */
.form { display: grid; gap: 16px; margin: 24px 0 8px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 12px; padding: 12px 14px; font: inherit; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.hint { text-align: right; font-size: 12px; color: var(--muted); margin-top: 4px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.status { min-height: 1.4em; margin: 0; font-size: 14px; }
.status.ok { color: #3FB950; }
.status.err { color: #FF6B6B; }
.form .cta { justify-self: start; border: none; cursor: pointer; font: inherit; font-weight: 800; margin: 0; }
.form .cta:disabled { opacity: 0.6; cursor: default; }

@media (max-width: 560px) {
  nav { gap: 14px; }
  .steps li { padding-left: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .emblem { animation: none; }
}
