:root {
  --bg-deep: #060b16;
  --bg-navy: #0b1324;
  --bg-card: #101a30;
  --bg-card-hover: #14213d;
  --border: rgba(148, 163, 184, 0.14);
  --border-emerald: rgba(16, 185, 129, 0.35);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.16);
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 12px;
  --max-w: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 18% 8%, rgba(16, 185, 129, 0.08), transparent 36%),
              radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.06), transparent 34%),
              var(--bg-deep);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* Header */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 11, 22, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.08rem; color: var(--text); text-decoration: none; }
.brand span.accent { color: var(--emerald-bright); }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 0.92rem; }
.nav-links a { color: var(--text-muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: all 0.18s ease;
}
.btn-primary { background: var(--emerald); color: #04130d; }
.btn-primary:hover { background: var(--emerald-bright); text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--emerald); color: var(--emerald-bright); text-decoration: none; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* Hero */
.hero { padding: 72px 0 56px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--emerald-glow); border: 1px solid var(--border-emerald);
  color: var(--emerald-bright); font-size: 0.82rem; font-weight: 600;
  margin-bottom: 20px;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-bright); box-shadow: 0 0 8px var(--emerald-bright); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
h1 { font-size: clamp(2rem, 4vw, 3.05rem); line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 1.08rem; color: var(--text-muted); margin: 0 0 26px; max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.trust-note { font-size: 0.82rem; color: var(--text-muted); border-left: 2px solid var(--emerald); padding-left: 12px; }

/* Cards & Grids */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.card-highlight { border-color: var(--border-emerald); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.section { padding: 56px 0; }
.section-hdr { max-width: 680px; margin-bottom: 32px; }
.section-hdr h2 { font-size: 1.75rem; margin: 0 0 10px; letter-spacing: -0.01em; }
.section-hdr p { color: var(--text-muted); margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.feat-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--emerald-glow); color: var(--emerald-bright);
  margin-bottom: 14px; font-weight: 700;
}
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }

/* Architecture / Status Mini-Panel */
.status-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.status-row:last-child { border-bottom: none; }
.tag { padding: 3px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.tag-ok { background: var(--emerald-glow); color: var(--emerald-bright); }
.tag-wip { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
.tag-next { background: rgba(148, 163, 184, 0.14); color: var(--text-muted); }

/* Video Slot */
.video-box {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0b1324 0%, #101f3a 100%);
  border: 1px dashed var(--border-emerald); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; overflow: hidden;
}
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Form */
.form-group { margin-bottom: 16px; }
label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"] {
  width: 100%; padding: 11px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-deep); color: var(--text);
  font-size: 0.95rem; outline: none;
}
input:focus { border-color: var(--emerald); }
.consent-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.84rem; color: var(--text-muted); margin: 14px 0 18px; }
.consent-row input[type="checkbox"] { margin-top: 3px; accent-color: var(--emerald); width: 16px; height: 16px; flex-shrink: 0; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.alert { padding: 12px 14px; border-radius: 8px; font-size: 0.9rem; margin-top: 14px; display: none; }
.alert-ok { background: var(--emerald-glow); border: 1px solid var(--border-emerald); color: var(--emerald-bright); display: block; }
.alert-err { background: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.35); color: #fca5a5; display: block; }

/* Table (Admin) */
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 600; }

/* Footer */
footer {
  border-top: 1px solid var(--border); padding: 36px 0 48px; margin-top: 32px;
  font-size: 0.84rem; color: var(--text-muted);
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 18px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.risk-box {
  background: rgba(15, 23, 42, 0.75); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 16px; font-size: 0.8rem; line-height: 1.55;
}

@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 44px 0 32px; }
}
