:root {
  --bg: #050505;
  --panel: #0b0b0b;
  --panel-soft: rgba(255,255,255,0.03);
  --border: rgba(212, 175, 55, 0.24);
  --gold: #d8b97a;
  --gold-strong: #d4af37;
  --text: #ffffff;
  --muted: rgba(255,255,255,0.7);
  --muted-2: rgba(255,255,255,0.45);
  --shadow: 0 25px 80px rgba(0,0,0,0.7);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.bg-glow {
  position: fixed;
  pointer-events: none;
  inset: auto;
  width: 42rem;
  height: 42rem;
  border-radius: 999px;
  filter: blur(80px);
  opacity: .18;
  z-index: 0;
}
.bg-glow-top { top: -18rem; left: 50%; transform: translateX(-50%); background: rgba(212,175,55,.28); }
.bg-glow-bottom { right: -12rem; bottom: -14rem; background: rgba(212,175,55,.18); }
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .06;
  pointer-events: none;
  z-index: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
}

.hero-copy {
  order: 2;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(216,185,122,.35);
  background: rgba(216,185,122,.1);
  color: var(--gold);
  border-radius: 999px;
  padding: .65rem 1rem;
  font-size: .7rem;
  letter-spacing: .26em;
}
.hero-copy h1 {
  margin: 1rem auto 0;
  max-width: 12ch;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1.03;
}
.hero-copy > p {
  margin: 1rem auto 0;
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.75;
}
.feature-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
}
.feature-card {
  background: var(--panel-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.2rem;
  padding: 1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.33);
  backdrop-filter: blur(10px);
}
.feature-card h3 {
  margin: 0;
  color: var(--gold);
  font-size: .96rem;
}
.feature-card p {
  margin: .4rem 0 0;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  font-size: .95rem;
}

.phone-stage {
  order: 1;
  display: flex;
  justify-content: center;
  position: relative;
}
.phone-glow {
  position: absolute;
  inset: -1rem;
  background: rgba(212,175,55,.14);
  filter: blur(45px);
  border-radius: 3rem;
}
.phone-frame {
  position: relative;
  width: min(100%, 380px);
  padding: 8px;
  border-radius: 2.8rem;
  border: 1px solid rgba(212,175,55,.2);
  background: linear-gradient(180deg, #1a1a1a 0%, #090909 100%);
  box-shadow: var(--shadow);
}
.phone-screen {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 2.35rem;
  overflow: hidden;
  padding: 1rem 1rem 1.2rem;
}
.phone-notch {
  width: 7rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(0,0,0,.82);
  border: 1px solid rgba(255,255,255,.06);
  margin: .7rem auto .55rem;
}
.form-header { text-align: center; }
.form-header span {
  display: inline-block;
  font-size: .65rem;
  letter-spacing: .33em;
  color: var(--gold);
}
.form-header h2 {
  margin: .55rem 0 0;
  font-size: 1.65rem;
}
.form-header p {
  margin: .55rem auto 0;
  color: var(--muted-2);
  line-height: 1.65;
  max-width: 18rem;
  font-size: .92rem;
}
form { margin-top: 1.25rem; }
.field-group { margin-bottom: .95rem; }
.field-group label {
  display: block;
  margin-bottom: .5rem;
  font-size: .95rem;
  font-weight: 600;
}
.field-group small {
  display: block;
  margin-top: .45rem;
  color: rgba(216,185,122,.95);
  font-size: .74rem;
  line-height: 1.55;
}
input, select {
  width: 100%;
  min-height: 48px;
  border-radius: 1.1rem;
  border: 1px solid rgba(216,185,122,.35);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: .9rem 1rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
input::placeholder { color: rgba(255,255,255,.3); }
input:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216,185,122,.16);
}
select option { color: #111; }
button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 1.1rem;
  padding: .95rem 1rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(90deg, #b68b3a 0%, #d4af37 50%, #b68b3a 100%);
  color: #111;
  box-shadow: 0 12px 28px rgba(212,175,55,.16);
}
button:hover { transform: translateY(-1px); }
.fine-print {
  margin: .85rem 0 0;
  text-align: center;
  color: rgba(255,255,255,.4);
  font-size: .68rem;
  line-height: 1.6;
}

.modal.hidden { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  border-radius: 1.5rem;
  padding: 1.4rem;
  border: 1px solid rgba(216,185,122,.28);
  background: linear-gradient(180deg, rgba(17,17,17,.98) 0%, rgba(9,9,9,.98) 100%);
  box-shadow: 0 25px 80px rgba(0,0,0,.75);
  text-align: center;
}
.modal-badge {
  display: inline-flex;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(216,185,122,.28);
  background: rgba(216,185,122,.08);
  color: var(--gold);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.modal-card h3 {
  margin: .95rem 0 .35rem;
  font-size: 1.8rem;
}
.modal-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.admin-body { min-height: 100vh; }
.admin-shell {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
}
.admin-login-card, .admin-results-card {
  background: rgba(11,11,11,.95);
  border: 1px solid rgba(216,185,122,.16);
  border-radius: 1.7rem;
  padding: 1.3rem;
  box-shadow: var(--shadow);
}
.admin-login-card h1, .admin-results-card h1 { margin: .9rem 0 .5rem; }
.admin-login-card p { color: var(--muted); line-height: 1.7; }
.admin-form { max-width: 440px; margin-top: 1rem; }
.admin-form label { display: block; margin-bottom: .5rem; }
.admin-error {
  margin-top: .9rem;
  padding: .8rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,110,110,.25);
  background: rgba(255,110,110,.08);
  color: #ffb3b3;
}
.admin-topbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.admin-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .8rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(216,185,122,.24);
  background: rgba(255,255,255,.03);
}
.results-panel {
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  padding: 1rem;
  overflow: auto;
}
.results-panel pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(255,255,255,.86);
  line-height: 1.68;
  font-size: .93rem;
}

@media (min-width: 768px) {
  .page-shell { padding: 2rem 0 2.5rem; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .phone-frame { width: 390px; border-radius: 3.2rem; padding: 10px; }
  .phone-screen { border-radius: 2.8rem; padding: 1.3rem 1.35rem 1.45rem; }
  .phone-notch { width: 9rem; height: 1.7rem; }
  .modal-card { padding: 1.8rem; }
}

@media (min-width: 1100px) {
  .page-shell {
    grid-template-columns: 1.05fr .95fr;
    gap: 3rem;
    width: min(1280px, calc(100% - 3rem));
    padding: 2.3rem 0;
  }
  .hero-copy { order: 1; text-align: left; }
  .hero-copy h1, .hero-copy > p { margin-left: 0; }
  .phone-stage { order: 2; justify-content: flex-end; }
}


.admin-stack {
  display: grid;
  gap: 1.5rem;
}

.admin-section-title {
  margin: 0 0 .75rem;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}
