/* ═══════════════════════════════════════
   VERSO® — DIFERENCIÔMETRO · DESIGN SYSTEM
   ═══════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:         #eefa7a;
  --gold-light:   #f5ff9e;
  --gold-dim:     rgba(238,250,122,0.12);
  --gold-border:  rgba(238,250,122,0.25);
  --bg:           #0A0A0A;
  --surface:      #111111;
  --surface2:     #181818;
  --border:       rgba(255,255,255,0.07);
  --text:         #F0EDE8;
  --muted:        #7A7570;
  --muted2:       #504D49;
  --green:        #3DAA6E;
  --green-dim:    rgba(61,170,110,0.1);
  --green-border: rgba(61,170,110,0.3);
  --red:          #D94F3D;
  --red-dim:      rgba(217,79,61,0.1);
  --red-border:   rgba(217,79,61,0.3);
  --yellow:       #E8A030;
  --yellow-dim:   rgba(232,160,48,0.1);
  --yellow-border:rgba(232,160,48,0.3);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NOISE TEXTURE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── GOLDEN GLOW ── */
.glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(238,250,122,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── NAV / HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(12px);
}

.header-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 5px;
  color: var(--gold);
  text-decoration: none;
}

.header-tag {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 2px;
}

/* ── TYPOGRAPHY ── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.eyebrow-line { width: 24px; height: 1px; background: var(--gold); flex-shrink: 0; }
.eyebrow-text {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 32px;
  line-height: 1;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #0A0A0A;
  border: none;
  border-radius: 4px;
  padding: 16px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  border-color: var(--muted2);
  color: var(--text);
}

/* ── INPUTS / SELECTS ── */
.field { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.field-input,
.field-select,
.field-textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.field-input::placeholder,
.field-textarea::placeholder { color: var(--muted2); }
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--gold-border);
  background: #1c1c1c;
}
.field-select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23504D49' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field-select option { background: #1a1a1a; color: var(--text); }
.field-textarea { resize: vertical; min-height: 120px; }

.field-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 4px;
  display: none;
}
.field-error.visible { display: block; }
.field-input.error,
.field-textarea.error { border-color: var(--red-border); }

/* ── RADIO CARDS ── */
.radio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.radio-card {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  transition: all 0.15s;
  user-select: none;
  text-align: center;
}
.radio-card:hover { border-color: var(--gold-border); color: var(--text); }
.radio-card.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
  font-weight: 500;
}

/* ── TOGGLE ── */
.toggle-group {
  display: flex;
  gap: 8px;
}
.toggle-btn {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  text-align: center;
  transition: all 0.15s;
}
.toggle-btn:hover { border-color: var(--gold-border); color: var(--text); }
.toggle-btn.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
  font-weight: 500;
}

/* ── PROGRESS BAR ── */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.progress-track {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 1px;
  transition: width 0.4s ease;
}
.progress-label {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  white-space: nowrap;
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}
.badge-gold { background: var(--gold-dim); border: 1px solid var(--gold-border); color: var(--gold); }
.badge-red  { background: var(--red-dim);  border: 1px solid var(--red-border);  color: var(--red); }
.badge-yellow { background: var(--yellow-dim); border: 1px solid var(--yellow-border); color: var(--yellow); }
.badge-green  { background: var(--green-dim);  border: 1px solid var(--green-border);  color: var(--green); }
.badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:0.4 } }

/* ── CARDS ── */
.card {
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 4px;
}
.card-danger  { border-color: var(--red-border);    background: var(--red-dim); }
.card-warning { border-color: var(--yellow-border);  background: var(--yellow-dim); }
.card-success { border-color: var(--green-border);   background: var(--green-dim); }
.card-gold    { border-color: var(--gold-border);    background: var(--gold-dim); }

.card-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  font-size: 14px;
}
.card-icon-danger  { background: var(--red-dim);    border: 1px solid var(--red-border);    color: var(--red); }
.card-icon-warning { background: var(--yellow-dim); border: 1px solid var(--yellow-border); color: var(--yellow); }
.card-icon-success { background: var(--green-dim);  border: 1px solid var(--green-border);  color: var(--green); }

.card-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.card-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.card-text strong { color: var(--text); font-weight: 500; }

/* ── INSIGHT BOX ── */
.insight-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 20px 24px;
  margin-top: 24px;
}
.insight-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.insight-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  font-style: italic;
}
.insight-citation {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  font-style: normal;
}

/* ── STATUS PILLS ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}
.pill-danger  { background: var(--red-dim);    border: 1px solid var(--red-border);    color: var(--red); }
.pill-warning { background: var(--yellow-dim); border: 1px solid var(--yellow-border); color: var(--yellow); }
.pill-success { background: var(--green-dim);  border: 1px solid var(--green-border);  color: var(--green); }

/* ── SECTION CONTAINER ── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.section:last-child { border-bottom: none; }

/* ── TICKER ── */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  padding: 12px 0;
  position: relative;
  z-index: 1;
}
.ticker-inner {
  display: flex;
  gap: 64px;
  animation: ticker 22s linear infinite;
  white-space: nowrap;
  width: max-content;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted2);
  display: flex;
  align-items: center;
  gap: 16px;
}
.ticker-item::after { content: '◆'; color: var(--gold); font-size: 6px; }

/* ── FOOTER ── */
.site-footer {
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--muted2);
}
.footer-copy { font-size: 12px; color: var(--muted2); }

/* ── LOADING SCREEN ── */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.loading-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 6px;
  color: var(--gold);
}
.loading-message {
  font-size: 15px;
  color: var(--muted);
  font-weight: 300;
  text-align: center;
  min-height: 24px;
  transition: opacity 0.3s;
}
.loading-bar-wrap {
  width: 280px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 1px;
  animation: loading-indeterminate 1.8s ease-in-out infinite;
}
@keyframes loading-indeterminate {
  0%   { width: 0%;   margin-left: 0%; }
  50%  { width: 60%;  margin-left: 20%; }
  100% { width: 0%;   margin-left: 100%; }
}

/* ── ERROR SCREEN ── */
.error-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  padding: 40px;
}
.error-icon { font-size: 40px; }
.error-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 2px;
  color: var(--red);
}
.error-text { font-size: 14px; color: var(--muted); max-width: 400px; line-height: 1.7; }

/* ── UTIL ── */
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 768px) {
  .site-header { padding: 16px 24px; }
  .container   { padding: 0 24px; }
  .section     { padding: 40px 0; }
  .site-footer { padding: 24px; flex-direction: column; gap: 8px; text-align: center; }
  .radio-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .radio-cards { grid-template-columns: 1fr; }
  .toggle-group { flex-direction: row; }
}
