/* ============================================
   BRAINLATENCY.COM - ANNEXE CSS
   Dark Mode | NYC Trader Professional
   ============================================ */

:root {
  /* Color Palette - Financial Terminal Inspired */
  --bg-primary: #0a0e14;
  --bg-secondary: #111820;
  --bg-tertiary: #1a2332;
  --bg-card: #141b26;
  
  --accent-primary: #00d4aa;
  --accent-secondary: #00ffcc;
  --accent-warning: #ffa726;
  
  --text-primary: #e8eaed;
  --text-secondary: #9ba4b5;
  --text-muted: #6b7688;
  
  --border-color: #2a3441;
  --border-accent: #00d4aa33;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(0, 212, 170, 0.15);
}

/* ============================================
   RESET & BASE
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
               "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse at top, rgba(0, 212, 170, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(0, 100, 255, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--accent-secondary);
  border-bottom-color: var(--accent-secondary);
}

ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

li::marker {
  color: var(--accent-primary);
}

.muted {
  color: var(--text-muted);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================
   LAYOUT
   ============================================ */

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

@media (max-width: 768px) {
  .wrap {
    padding: 2rem 1.5rem;
  }
}

/* ============================================
   HEADER
   ============================================ */

header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bg-primary);
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  z-index: -1;
  opacity: 0.2;
  filter: blur(8px);
}

/* ============================================
   CARD
   ============================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--accent-primary), 
    transparent
  );
  opacity: 0.3;
}

@media (max-width: 768px) {
  .card {
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }
}

/* ============================================
   DISCLAIMER BOX
   ============================================ */

.disclaimer-box {
  background: linear-gradient(135deg, 
    rgba(255, 167, 38, 0.08), 
    rgba(255, 87, 51, 0.08)
  );
  border: 2px solid var(--accent-warning);
  border-radius: 12px;
  padding: 2rem;
  margin: 2.5rem 0;
  position: relative;
  box-shadow: 0 4px 20px rgba(255, 167, 38, 0.1);
}

.disclaimer-box::before {
  content: '⚠';
  position: absolute;
  top: -18px;
  left: 2rem;
  background: var(--bg-card);
  padding: 0 0.75rem;
  font-size: 1.5rem;
  color: var(--accent-warning);
}

.disclaimer-box h2 {
  color: var(--accent-warning);
  font-size: 1.125rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
  border: none;
  padding-bottom: 0;
  letter-spacing: 0.05em;
}

.disclaimer-box h2::after {
  display: none;
}

.disclaimer-box p {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.disclaimer-box p:last-child {
  margin-bottom: 0;
}

/* ============================================
   NOTICE BOX (for Legal Notices page)
   ============================================ */

.notice-box {
  background: linear-gradient(135deg, 
    rgba(255, 50, 50, 0.1), 
    rgba(255, 100, 100, 0.08)
  );
  border: 2px solid #ff3333;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 0 0 2.5rem 0;
  position: relative;
  box-shadow: 0 4px 20px rgba(255, 50, 50, 0.15);
}

.notice-box::before {
  content: 'ℹ';
  position: absolute;
  top: -16px;
  left: 2rem;
  background: var(--bg-card);
  padding: 0 0.75rem;
  font-size: 1.5rem;
  color: #ff3333;
}

.notice-box p {
  color: var(--text-primary);
  margin-bottom: 0;
  font-weight: 500;
}

.notice-box a {
  color: #ff6666;
  font-weight: 600;
}

.notice-box a:hover {
  color: #ff8888;
}

/* ============================================
   SECTION CONTENT
   ============================================ */

.section-content {
  padding-left: 1rem;
  border-left: 3px solid var(--border-accent);
  margin-left: 0.5rem;
}

/* ============================================
   FAQ SPECIFIC STYLES
   ============================================ */

/* First h2 (section title) has different styling */
.card h2:first-of-type {
  font-size: 1.25rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0;
  margin-bottom: 2rem;
  border-bottom: none;
  padding-bottom: 0;
}

.card h2:first-of-type::after {
  display: none;
}

/* FAQ questions styling */
.card h2:not(:first-of-type) {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  border-bottom: none;
}

.card h2:not(:first-of-type)::after {
  display: none;
}

/* FAQ answers (paragraphs following questions) */
.card h2 + p {
  margin-top: 1rem;
  line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-gradient {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.6s ease-out;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

::-moz-selection {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  body {
    background: white;
    color: black;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
