:root {
  --purple: #5B2EFF;
  --purple-deep: #2A1060;
  --purple-dark: #1E1433;
  --gold: #D4AF37;
  --gold-bright: #FFD60A;
  --light: #F7F5FF;
  --light-soft: #EDE8FF;
  --ink: #2A1060;
  --muted: #5A4A86;
  --card: #FBF9FF;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(42, 16, 96, 0.18);
  font-synthesis: none;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Figtree, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--light);
  line-height: 1.6;
  min-height: 100%;
}

img { max-width: 100%; height: auto; }

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--purple-dark);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 5vw;
  background: rgba(30, 20, 51, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--light);
  min-width: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: block;
  background: var(--purple-deep);
  flex-shrink: 0;
}
.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-name span { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
}
.btn-gold {
  background: var(--gold);
  color: var(--purple-dark);
}
.btn-gold:hover { background: var(--gold-bright); }
.btn-ghost {
  background: transparent;
  color: var(--light);
  border: 1px solid rgba(212, 175, 55, 0.55);
}
.btn:active { transform: translateY(1px); }

.hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(91, 46, 255, 0.45), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(212, 175, 55, 0.18), transparent 40%),
    linear-gradient(165deg, var(--purple-dark) 0%, var(--purple-deep) 58%, #3b1a86 100%);
  color: var(--light);
  padding: 3rem 5vw 4.25rem;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}
.seal {
  width: min(68vw, 280px);
  margin: 0 auto;
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.35), 0 24px 50px rgba(30, 20, 51, 0.45);
  background: var(--purple-deep);
}
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}
h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); color: var(--purple-deep); }
.lede {
  font-size: 1.12rem;
  color: #EDE8FF;
  max-width: 36rem;
  margin: 0 0 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.section {
  padding: 3.25rem 5vw;
  max-width: 1100px;
  margin: 0 auto;
}
.section-head { max-width: 38rem; margin-bottom: 1.75rem; }
.section-head p { color: var(--muted); margin: 0; }

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.feature {
  background: var(--card);
  border: 1px solid rgba(91, 46, 255, 0.12);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: 0 8px 24px rgba(42, 16, 96, 0.06);
}
.feature h3 {
  font-size: 1.35rem;
  color: var(--purple-deep);
  margin-bottom: 0.35rem;
}
.feature p { margin: 0; color: var(--muted); }

.signup-wrap {
  background:
    linear-gradient(180deg, var(--light) 0%, var(--light-soft) 100%);
}
.signup-card {
  max-width: 640px;
  margin: 0 auto;
  background: #FFFCFF;
  border-radius: 24px;
  padding: 1.5rem 1.25rem 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.form-row { margin-bottom: 1rem; }
label, .label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.4rem;
  color: var(--purple-deep);
}
.req { color: var(--purple); }
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--purple-dark);
  background: var(--light);
  border: 1.5px solid rgba(42, 16, 96, 0.18);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  min-height: 48px;
}
textarea { min-height: 110px; resize: vertical; }
.hint { color: var(--muted); font-size: 0.92rem; margin: 0 0 1rem; }
.alert {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-weight: 550;
}
.alert-error {
  background: #fde8ff;
  color: #6b1058;
  border: 1px solid #e7a0d8;
}
.alert-ok {
  background: #fff6d4;
  color: var(--purple-deep);
  border: 1px solid var(--gold);
}
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-actions .btn { width: 100%; }

.site-footer {
  background: var(--purple-dark);
  color: var(--light);
  padding: 2rem 5vw 2.5rem;
  text-align: center;
}
.site-footer a { color: var(--gold); }
.site-footer p { margin: 0.35rem 0; }

.admin-body { background: var(--light); }
.admin-shell { max-width: 1100px; margin: 0 auto; padding: 2rem 5vw 3rem; }
.admin-card {
  background: #FFFCFF;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(91, 46, 255, 0.1);
  max-width: 420px;
}
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFCFF;
  border-radius: 16px;
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(42, 16, 96, 0.1);
  vertical-align: top;
  font-size: 0.95rem;
}
th {
  background: var(--purple-deep);
  color: var(--gold);
  font-weight: 650;
}
tr:nth-child(even) td { background: #F4F0FF; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}
.note-cell { max-width: 16rem; }

@media (min-width: 700px) {
  .hero-inner { grid-template-columns: 0.8fr 1.2fr; }
  .seal { margin: 0; width: min(100%, 320px); }
  .features { grid-template-columns: 1fr 1fr; }
  .signup-card { padding: 2rem 2.1rem; }
  .form-actions .btn { width: auto; min-width: 220px; }
}
@media (min-width: 980px) {
  .features { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
