/* ===========================
   VIGIL — Theme CSS
   Dark amber aesthetic
   =========================== */

:root {
  --bg: #0D0D0D;
  --surface: #141414;
  --surface-2: #1C1C1C;
  --text: #F2EDE6;
  --text-dim: #8A8278;
  --accent: #F59E0B;
  --accent-dim: rgba(245, 158, 11, 0.15);
  --accent-glow: rgba(245, 158, 11, 0.08);
  --border: rgba(242, 237, 230, 0.08);
  --font-head: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 3px; }

/* --- Navigation --- */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.tagline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* --- Section Label --- */
.section-label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
}

/* --- Hero --- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: calc(100vh - 73px);
  border-bottom: 1px solid var(--border);
}

.hero-content {
  padding: 80px 64px 80px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 28px;
  font-family: var(--font-head);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--text);
}

.lede {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 440px;
  font-weight: 300;
}

/* --- Radar Visual --- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 60% 50%, var(--accent-glow) 0%, transparent 65%);
}

.radar-wrap {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 11, 0.18);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.ring-1 { width: 80px; height: 80px; }
.ring-2 { width: 150px; height: 150px; border-color: rgba(245,158,11,0.14); }
.ring-3 { width: 230px; height: 230px; border-color: rgba(245,158,11,0.10); }
.ring-4 { width: 310px; height: 310px; border-color: rgba(245,158,11,0.07); }
.ring-5 { width: 380px; height: 380px; border-color: rgba(245,158,11,0.04); }

.scanner {
  position: absolute;
  width: 380px;
  height: 380px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(245,158,11,0.35) 25deg, transparent 50deg);
  animation: sweep 4s linear infinite;
  opacity: 0.7;
}

@keyframes sweep {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.center-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6), 0 0 40px rgba(245, 158, 11, 0.3);
  z-index: 2;
}

.blip {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
  animation: blink 2s ease-in-out infinite;
}
.blip-1 { top: 12%; left: 55%; animation-delay: 0s; }
.blip-2 { top: 28%; left: 88%; animation-delay: 0.6s; }
.blip-3 { top: 65%; left: 92%; animation-delay: 1.2s; }
.blip-4 { top: 82%; left: 60%; animation-delay: 0.4s; }
.blip-5 { top: 72%; left: 22%; animation-delay: 1.8s; }
.blip-6 { top: 30%; left: 18%; animation-delay: 1.0s; }

@keyframes blink {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(0.7); }
}

.scan-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.06) 3px,
    rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
}

/* --- Why Section --- */
.why {
  padding: 120px 48px;
  border-bottom: 1px solid var(--border);
}

.why-inner { max-width: 1100px; margin: 0 auto; }

.why-headline h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 72px;
  color: var(--text);
  max-width: 700px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.stat-card {
  background: var(--bg);
  padding: 40px 36px;
}

.stat-number {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-ten {
  font-size: 1.6rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* --- How Section --- */
.how {
  padding: 120px 48px;
  border-bottom: 1px solid var(--border);
}

.how-inner { max-width: 1100px; margin: 0 auto; }

.steps {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.step {
  flex: 1;
  padding: 0 48px 0 0;
}

.step-num {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 20px;
}

.step-body h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.step-body p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.step-divider {
  width: 1px;
  background: var(--border);
  margin-right: 48px;
  flex-shrink: 0;
}

/* --- What You Get --- */
.what-you-get {
  padding: 120px 48px;
  border-bottom: 1px solid var(--border);
}

.wyg-inner { max-width: 1100px; margin: 0 auto; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
}

.feature {
  background: var(--surface);
  padding: 40px 36px;
  transition: background 0.2s;
}

.feature:hover {
  background: var(--surface-2);
}

.feature-icon {
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.9;
}

.feature h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* --- Closing --- */
.closing {
  padding: 140px 48px;
  text-align: center;
}

.closing-inner { max-width: 800px; margin: 0 auto; }

.closing-text h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text);
}

.closing-text p {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* --- Signup Form --- */
.signup-form-wrap {
  margin-top: 56px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.signup-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.signup-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  margin-bottom: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.required {
  color: var(--accent);
}

.form-field input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-field input::placeholder {
  color: var(--text-dim);
  opacity: 0.6;
}

.form-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.field-error {
  font-size: 0.78rem;
  color: #f87171;
  min-height: 16px;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
}

.btn-primary {
  background: var(--accent);
  color: #0D0D0D;
  border: none;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 13px 28px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.88;
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.97);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 11px 24px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background: var(--accent);
  color: #0D0D0D;
}

.form-footnote {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  opacity: 0.7;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #0D0D0D;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.signup-success {
  background: var(--surface);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
}

.success-icon {
  margin-bottom: 20px;
}

.signup-success h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.signup-success p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.signup-error-banner {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  text-align: center;
}

.signup-error-banner.error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}

.signup-error-banner:not(.error) {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent);
}
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-wordmark {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  opacity: 0.6;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .topnav { padding: 16px 24px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 60px 24px 40px; }
  .hero-visual { min-height: 300px; }
  .why, .how, .what-you-get { padding: 80px 24px; }
  .why-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 40px; }
  .step-divider { display: none; }
  .step { padding-right: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .closing { padding: 80px 24px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .why-headline h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.4rem; }
  .lede { font-size: 1rem; }
  .stat-number { font-size: 2.4rem; }
  .radar-wrap { width: 240px; height: 240px; }
  .ring-5, .scanner { width: 280px; height: 280px; }
}