/* ==========================================================================
   EQERRA — Design System
   Built on top of Bootstrap 5. Include this file AFTER bootstrap.min.css.
   ========================================================================== */

/* --- Fonts -----------------------------------------------------------
   Space Grotesk  -> display / headings (technical, geometric character)
   Inter          -> body copy
   IBM Plex Mono  -> data, prices, tickers, timestamps
   -------------------------------------------------------------------- */

/* ==========================================================================
   EQERRA — Design System
   Built on top of Bootstrap 5. Include this file AFTER bootstrap.min.css.
   ========================================================================== */

/* --- Fonts ----------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Surfaces */
  --ink-900: #0B1220;
  --ink-800: #121B2E;
  --ink-700: #1B2740;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --paper: #F3F4F6;
  --paper-dim: #A7B0C0;
  --paper-faint: #6B7590;

  /* Accent */
  --amber: #E8A33D;
  --amber-soft: rgba(232, 163, 61, 0.14);
  --amber-line: rgba(232, 163, 61, 0.35);

  /* Semantic */
  --up: #34D399;
  --up-soft: rgba(52, 211, 153, 0.12);
  --down: #F87171;
  --down-soft: rgba(248, 113, 113, 0.12);

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Radius & motion */
  --radius: 10px;
  --radius-sm: 6px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base */
body {
  background-color: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.font-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--amber);
  text-decoration: none;
}
a:hover {
  color: #f0b25e;
}

/* Keyboard focus */
a:focus,
button:focus,
.btn:focus,
input:focus {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Navbar */
.navbar-eqerra {
  background-color: var(--ink-900);
  border-bottom: 1px solid var(--line);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.navbar-eqerra .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--paper);
  letter-spacing: -0.02em;
}
.navbar-eqerra .navbar-brand span {
  color: var(--amber);
}

.navbar-eqerra .nav-link {
  color: var(--paper-dim);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.15s var(--ease);
}
.navbar-eqerra .nav-link:hover,
.navbar-eqerra .nav-link.active {
  color: var(--paper);
}
.navbar-eqerra .nav-link.active {
  position: relative;
}
.navbar-eqerra .nav-link.active::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.1rem;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.navbar-eqerra .dropdown-menu {
  background-color: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
}
.navbar-eqerra .dropdown-item {
  color: var(--paper-dim);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}
.navbar-eqerra .dropdown-item:hover {
  background-color: var(--amber-soft);
  color: var(--paper);
}

/* Language switcher pill */
.lang-switch {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  background: transparent;
}
.lang-switch:hover {
  border-color: var(--amber-line);
  color: var(--paper);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4.5rem;
  border-bottom: 1px solid var(--line);
}

.hero-graph {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.hero-graph .edge {
  stroke: var(--line-strong);
  stroke-width: 1;
  fill: none;
}

.hero-graph .node {
  fill: var(--ink-700);
  stroke: var(--amber-line);
  stroke-width: 1;
}

.hero-graph .node.pulse {
  animation: node-pulse 3.2s var(--ease) infinite;
}

@keyframes node-pulse {
  0%, 100% { opacity: 0.7; r: 3; }
  50% { opacity: 1; r: 4.5; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.12;
  margin-bottom: 1.1rem;
}

.hero p.lead {
  color: var(--paper-dim);
  font-size: 1.05rem;
  max-width: 520px;
}

/* Live dot */
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 rgba(52, 211, 153, 0.5);
  animation: live-ping 2s var(--ease) infinite;
}
@keyframes live-ping {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Buttons */
.btn-amber {
  background-color: var(--amber);
  color: var(--ink-900);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.4rem;
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.btn-amber:hover {
  background-color: #f0b25e;
  color: var(--ink-900);
  transform: translateY(-1px);
}

.btn-outline-eqerra {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.4rem;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.btn-outline-eqerra:hover {
  border-color: var(--amber-line);
  color: var(--amber);
}

/* Ticker panel */
.ticker-panel {
  background-color: var(--ink-800);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Section */
.section {
  padding: 4.5rem 0;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
}

/* Cards */
.card-eqerra {
  background-color: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.card-eqerra:hover {
  border-color: var(--amber-line);
  transform: translateY(-2px);
}

.card-eqerra .card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.card-eqerra .card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.card-eqerra .card-sub {
  color: var(--paper-faint);
  font-size: 0.85rem;
}

.stat-figure {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--paper);
}
.stat-figure.up { color: var(--up); }
.stat-figure.down { color: var(--down); }

.badge-timestamp {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--paper-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

/* Footer */
.footer-eqerra {
  background-color: var(--ink-800);
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  color: var(--paper-faint);
  font-size: 0.88rem;
}
.footer-eqerra a {
  color: var(--paper-dim);
}
.footer-eqerra a:hover {
  color: var(--amber);
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero { padding: 4rem 0 3rem; }
  .hero-graph { opacity: 0.3; }
  .hero h1 { font-size: 2.1rem; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.6rem; }
}
/* Corecție afișare logo în Footer */
footer .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--paper) !important; /* Forțează "EQ" să fie Alb */
  text-decoration: none;
  display: inline-block;
}

footer .navbar-brand span {
  color: var(--amber) !important; /* Forțează "ERRA" să fie Portocaliu */
}