:root {
  --bg: #0a0714;
  --bg-elevated: #150f26;
  --bg-card: #17112b;
  --ink: #f4f0ff;
  --ink-dim: #b9b0d6;
  --ink-faint: #8378a3;
  --accent: #8b6cff;
  --accent-bright: #b79bff;
  --accent-dark: #6a4fd9;
  --accent-glow: rgba(139, 108, 255, 0.45);
  --border: rgba(183, 155, 255, 0.25);
  --max-width: 76rem;
}

* { box-sizing: border-box; }

html { font-size: 62.5%; } /* 1rem = 10px */

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
}

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

img { max-width: 100%; display: block; }

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

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 7, 20, 0.85);
  backdrop-filter: blur(0.8rem);
  border-bottom: 0.1rem solid var(--border);
}

.site-header .wrap {
  max-width: 96rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand img {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0.6rem;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.site-nav a {
  color: var(--ink-dim);
  font-weight: 600;
  font-size: 1.5rem;
}

.site-nav a:hover, .site-nav a.active { color: var(--ink); text-decoration: none; }

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff !important;
  padding: 0.9rem 1.8rem;
  border-radius: 0.6rem;
  font-weight: 700 !important;
}

@media (max-width: 700px) {
  .site-header .wrap { padding-top: 1.1rem; padding-bottom: 1.1rem; }
  .brand { font-size: 1.6rem; }
  .brand img { width: 3rem; height: 3rem; }
  .site-nav { gap: 1rem; }
  .site-nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 0.7rem 1.3rem; font-size: 1.3rem; }
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 1.3rem 3rem;
  border-radius: 0.7rem;
  font-size: 1.6rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}

.btn-primary:hover { background: linear-gradient(135deg, var(--accent-bright), var(--accent)); text-decoration: none; }

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border: 0.1rem solid var(--border);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.14); text-decoration: none; }

.btn-block { display: block; width: 100%; text-align: center; }

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(10,7,20,0.35) 0%, rgba(10,7,20,0.55) 55%, var(--bg) 100%),
              url('../icons/logo.png') center 30% / cover no-repeat;
}

.hero .wrap { max-width: 96rem; }

.hero-inner {
  max-width: 60rem;
  padding: 6rem 0;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 1.3rem;
  color: var(--accent-bright);
  font-weight: 700;
  margin: 0 0 1.2rem;
}

.hero h1 {
  font-size: 4.4rem;
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 1.6rem;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 1.9rem;
  color: var(--ink-dim);
  margin: 0 0 2.8rem;
  max-width: 48rem;
}

.hero-actions { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ---- Generic section ---- */

.section {
  padding: 6rem 0;
  border-bottom: 0.1rem solid rgba(255,255,255,0.06);
}

.section-head { max-width: 56rem; margin: 0 0 3.6rem; }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.2rem;
  color: var(--accent-bright);
  font-weight: 700;
  margin: 0 0 0.8rem;
}

.section h2 { font-size: 3rem; font-weight: 800; margin: 0 0 1.2rem; letter-spacing: -0.01em; }

.section-lead { color: var(--ink-dim); font-size: 1.7rem; margin: 0; }

/* ---- Steps grid ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
  gap: 2rem;
}

.step-card {
  background: var(--bg-card);
  border: 0.1rem solid var(--border);
  border-radius: 1.2rem;
  padding: 2.8rem 2.4rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 1.6rem;
}

.step-card h3 { font-size: 1.9rem; margin: 0 0 0.8rem; }
.step-card p { color: var(--ink-dim); margin: 0; font-size: 1.5rem; }

/* ---- Two-column feature rows ---- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-elevated);
  border: 0.1rem solid var(--border);
  border-radius: 1.2rem;
  padding: 2.4rem;
}

.feature-card h3 { font-size: 1.8rem; margin: 0 0 0.8rem; color: var(--ink); }
.feature-card p { color: var(--ink-dim); font-size: 1.5rem; margin: 0; }

/* ---- CTA band ---- */

.cta-band {
  background: radial-gradient(ellipse at 50% 0%, rgba(139,108,255,0.25), transparent 60%), var(--bg-elevated);
  text-align: center;
  padding: 6rem 0;
}

.cta-band h2 { font-size: 3rem; margin: 0 0 1.2rem; }
.cta-band p { color: var(--ink-dim); font-size: 1.7rem; margin: 0 0 2.8rem; }

/* ---- Forms ---- */

.form-card {
  background: var(--bg-card);
  border: 0.1rem solid var(--border);
  border-radius: 1.4rem;
  padding: 3.2rem;
  max-width: 68rem;
  margin: 0 auto;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.signed-in-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 0.1rem solid rgba(255,255,255,0.08);
}

.signout-btn {
  padding: 0.6rem 1.4rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 0.6rem;
  border: 0.1rem solid var(--border);
  background: transparent;
  color: var(--ink-dim);
  font-family: inherit;
  cursor: pointer;
}

.signout-btn:hover { background: rgba(255,255,255,0.06); color: var(--ink); }

.submission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 0.1rem solid rgba(255,255,255,0.06);
}

.submission-row:last-child { border-bottom: none; }

.submission-title { font-weight: 600; color: var(--ink); }
.submission-meta { font-size: 1.3rem; color: var(--ink-faint); }

.status-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pending { background: rgba(255, 206, 92, 0.15); color: #ffce5c; }
.status-approved { background: rgba(92, 255, 184, 0.15); color: #5cffb8; }
.status-rejected { background: rgba(255, 138, 92, 0.15); color: #ff8a5c; }

label {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink-dim);
  margin: 1.8rem 0 0.6rem;
}

label:first-child { margin-top: 0; }

input[type="text"], input[type="email"], input[type="url"], input[type="number"], input[type="file"], select, textarea {
  width: 100%;
  padding: 1.1rem 1.3rem;
  border-radius: 0.7rem;
  border: 0.1rem solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--ink);
  font-size: 1.5rem;
  font-family: inherit;
}

textarea { resize: vertical; min-height: 10rem; }

input:focus, select:focus, textarea:focus {
  outline: 0.2rem solid var(--accent-bright);
  outline-offset: 0.1rem;
}

.field-hint { font-size: 1.3rem; color: var(--ink-faint); margin: 0.5rem 0 0; }
.field-hint-over-limit { color: #ff9d9d; font-weight: 600; }

.upload-progress {
  margin-top: 0.8rem;
  height: 0.6rem;
  border-radius: 0.3rem;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  transition: width 0.2s ease;
}

.broadcast-check {
  margin-top: 1.2rem;
  padding: 1.4rem 1.6rem;
  border-radius: 0.8rem;
  border: 0.1rem solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.broadcast-check-result { margin-top: 1rem; }

.broadcast-check-metrics {
  font-size: 1.3rem;
  color: var(--ink-dim);
  margin: 0.8rem 0 0;
}

.broadcast-check-issues {
  margin: 0.8rem 0 0;
  padding-left: 1.8rem;
  font-size: 1.3rem;
  color: #ffce5c;
}

.broadcast-check-issues li { margin: 0.3rem 0; }

.thumbnail-preview {
  display: block;
  margin-top: 0.8rem;
  max-width: 20rem;
  max-height: 12rem;
  border-radius: 0.6rem;
  object-fit: cover;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2.4rem;
  font-size: 1.4rem;
  color: var(--ink-dim);
}

.checkbox-row input { width: auto; margin-top: 0.3rem; }

.form-error {
  color: #ff9d9d;
  font-size: 1.4rem;
  margin-top: 1.6rem;
  min-height: 1.4rem;
}

.form-actions { margin-top: 2.8rem; }

.demo-notice {
  background: rgba(255, 206, 92, 0.1);
  border: 0.1rem solid rgba(255, 206, 92, 0.35);
  color: #ffce5c;
  border-radius: 0.8rem;
  padding: 1.2rem 1.6rem;
  font-size: 1.4rem;
  margin-bottom: 2.8rem;
}

.success-panel { text-align: center; padding: 2rem 0; }
.success-panel h3 { font-size: 2.4rem; margin: 0 0 1.2rem; }
.success-panel p { color: var(--ink-dim); font-size: 1.6rem; }

.ai-disclosure {
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 0.1rem solid rgba(255,255,255,0.08);
}

.ai-disclosure-title {
  font-size: 1.6rem;
  color: var(--ink);
  margin: 0 0 0.6rem;
}

.toggle-group {
  display: flex;
  gap: 1rem;
  margin: 0.6rem 0 0.4rem;
}

.toggle-btn {
  flex: 1;
  padding: 1rem;
  border-radius: 0.7rem;
  border: 0.1rem solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--ink-dim);
  font-size: 1.5rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.toggle-btn:hover { background: rgba(255,255,255,0.09); }

.toggle-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: transparent;
  color: #fff;
}

.copyright-note {
  background: rgba(255, 206, 92, 0.1);
  border: 0.1rem solid rgba(255, 206, 92, 0.35);
  color: #ffce5c;
  border-radius: 0.6rem;
  padding: 1rem 1.3rem;
  font-size: 1.3rem;
  margin-top: 1rem;
}

.hidden { display: none !important; }

/* ---- Agreement page ---- */

.agreement-doc {
  background: var(--bg-card);
  border: 0.1rem solid var(--border);
  border-radius: 1.4rem;
  padding: 4rem;
  max-width: 76rem;
  margin: 0 auto;
}

.agreement-doc h2 { font-size: 2rem; margin: 2.8rem 0 1rem; }
.agreement-doc h2:first-child { margin-top: 0; }
.agreement-doc p, .agreement-doc li { color: var(--ink-dim); font-size: 1.5rem; }
.agreement-doc ol, .agreement-doc ul { padding-left: 2rem; }
.agreement-doc strong { color: var(--ink); }

.disclaimer-banner {
  background: rgba(255, 138, 92, 0.12);
  border: 0.1rem solid rgba(255, 138, 92, 0.4);
  color: #ffb28c;
  border-radius: 1rem;
  padding: 1.8rem 2.2rem;
  font-size: 1.4rem;
  max-width: 76rem;
  margin: 0 auto 3rem;
}

.disclaimer-banner strong { color: #ffce5c; }

/* ---- Footer ---- */

.site-footer {
  padding: 3.6rem 0;
  color: var(--ink-faint);
  font-size: 1.3rem;
  text-align: center;
  border-top: 0.1rem solid rgba(255,255,255,0.06);
}

.site-footer a { color: var(--ink-dim); }
.site-footer nav { display: flex; gap: 1.6rem; justify-content: center; margin-bottom: 1rem; flex-wrap: wrap; }
