/* ==========================================================================
   DESIGN SYSTEM - NETQUIZ INGLÊS TÉCNICO (EQUIPE 01)
   ========================================================================== */

:root {
  color-scheme: dark;
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Cores Cibernéticas Premium */
  --bg-color: #080c18;
  --bg-card: rgba(15, 23, 42, 0.55);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Cores Neon */
  --primary-rgb: 36, 87, 214;     /* Azul Royal */
  --secondary-rgb: 0, 240, 255;   /* Cyan Neon */
  --accent-rgb: 139, 92, 246;     /* Violeta Neon */
  
  --primary: rgb(var(--primary-rgb));
  --secondary: rgb(var(--secondary-rgb));
  --accent: rgb(var(--accent-rgb));
  
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(13, 18, 35, 0.45);
  --glass-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

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

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #04060c;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Glow Orbs background */
.glow-orb {
  position: absolute;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--primary), transparent 70%);
}

.orb-2 {
  top: 50%;
  right: -10%;
  background: radial-gradient(circle, var(--accent), transparent 70%);
}

main {
  position: relative;
  z-index: 1;
}

.hero,
.section,
footer {
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* Glassmorphism Common Panel */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Badges */
.badge-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  background: rgba(36, 87, 214, 0.12);
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(0, 240, 255, 0.25);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-glow {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 240, 255, 0.08);
  color: var(--secondary);
  border: 1px solid rgba(0, 240, 255, 0.2);
  margin-bottom: 0.75rem;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  border-radius: 10px;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(36, 87, 214, 0.3);
}

.button-primary:hover {
  transform: translateY(-2px);
  background: #3b6ef5;
  box-shadow: 0 12px 30px rgba(36, 87, 214, 0.45);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  margin-top: 1rem;
  border-radius: 12px;
  background: rgba(8, 12, 24, 0.7);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.35rem;
  color: #fff;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(36, 87, 214, 0.3);
}

.brand-dot {
  color: var(--secondary);
  font-size: 1.6rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}

nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  min-height: calc(100vh - 6.5rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 40%, rgba(255, 255, 255, 0.65));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-family: var(--font-title);
  color: var(--secondary);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3rem;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.95rem;
}

.step-num {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--secondary);
  font-size: 1.15rem;
  background: rgba(0, 240, 255, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  line-height: 1.1;
}

.step-list li strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.step-list li span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.hero-media-wrapper {
  perspective: 1200px;
}

.hero-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.5);
}

.visual-quiz-preview {
  padding: 1.5rem;
  min-height: 250px;
  background: #040713;
  border: 1px solid rgba(0, 240, 255, 0.15);
  font-family: monospace;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.terminal-title {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.terminal-cmd {
  color: #a7f3d0;
  margin-bottom: 0.25rem;
}

.terminal-output {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.text-dim { color: var(--text-muted); }
.neon-txt { color: var(--secondary); }

/* Section Header */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-heading {
  max-width: 38rem;
  margin-bottom: 2.85rem;
}

.section-subtitle {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.65rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.section-heading p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Quiz Section */
.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.quiz-progress-wrapper {
  flex-grow: 1;
}

#quiz-progress-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: block;
}

.progress-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.score-display {
  background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.score-display span {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
}

.score-display strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
}

.quiz-body {
  margin-bottom: 2rem;
}

.question-difficulty {
  margin-bottom: 0.75rem;
}

.question-title {
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  line-height: 1.3;
  margin-bottom: 1.75rem;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.option-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.option-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.option-btn:disabled {
  cursor: not-allowed;
}

.option-btn.correct {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
  font-weight: 600;
}

.option-btn.incorrect {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.option-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid;
  text-transform: uppercase;
}

/* Explanation Panel */
.explanation-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  gap: 1.25rem;
  margin-top: 1.5rem;
  align-items: flex-start;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.explanation-status-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.2rem;
}

.explanation-status-icon.correct {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid #10b981;
  color: #10b981;
}

.explanation-status-icon.incorrect {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid #ef4444;
  color: #ef4444;
}

.explanation-content {
  flex-grow: 1;
}

.explanation-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.explanation-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

/* Results panel */
.results-panel {
  text-align: center;
  padding: 1rem 0;
  animation: fadeIn 0.4s ease;
}

.trophy-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: pulseTrophy 2s infinite alternate;
}

@keyframes pulseTrophy {
  0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(239, 158, 11, 0.2)); }
  100% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(239, 158, 11, 0.6)); }
}

.results-panel h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.results-panel p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.results-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  min-width: 140px;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.stat-val {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-title);
}

.highlight-text {
  color: var(--secondary);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.results-feedback {
  max-width: 480px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Glossary Section */
.glossary-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2.25rem;
  align-items: stretch;
  padding: 2rem;
}

.glossary-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.glossary-tab {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  color: inherit;
  font-family: inherit;
}

.glossary-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.glossary-tab.is-active {
  background: rgba(0, 240, 255, 0.07);
  border-color: var(--secondary);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.15);
}

.glossary-tab strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.glossary-tab.is-active strong {
  color: var(--secondary);
}

.glossary-tab span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.glossary-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  border-left: 1px solid var(--border-color);
}

.term-phonetic {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.detail-block {
  margin-bottom: 1.25rem;
}

.detail-block strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.detail-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 12px 30px rgba(0, 240, 255, 0.08);
}

.feature-index {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.1);
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

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

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.member-card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.member-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.15);
}

.member-card:hover::before {
  opacity: 1;
}

.member-img {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-card:hover .member-img {
  border-color: var(--secondary);
  transform: scale(1.1) rotate(4deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.3);
}

.member-avatar-placeholder {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 1px solid var(--border-color);
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: #080c18;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-card:hover .member-avatar-placeholder {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.3);
}

.member-card span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.member-card strong {
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.25;
}

/* Footer */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 3rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

footer a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
}

/* Responsive media queries */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .step-list {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .glossary-container {
    grid-template-columns: 1fr;
  }
  .glossary-detail {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 1rem;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
    padding: 1rem;
    gap: 0.85rem;
  }
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .quiz-container {
    padding: 1.5rem;
  }
  .results-stats {
    flex-direction: column;
    align-items: center;
  }
  .stat-box {
    width: 100%;
  }
}
