/* =========================================================
   Market Vision AI — Shared Design System
   ========================================================= */
:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-2: rgba(15, 23, 42, 0.58);
  --border: rgba(148, 163, 184, 0.16);
  --text: #e5eefb;
  --muted: #9fb0c8;
  --soft: #cbd5e1;
  --green: #22c55e;
  --red: #f43f5e;
  --cyan: #22d3ee;
  --purple: #8b5cf6;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 22%),
    linear-gradient(180deg, #020617 0%, #08111f 100%);
  color: var(--text);
  min-height: 100vh;
}

/* ---- NAVBAR ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 8px var(--cyan); }
  50%       { box-shadow: 0 0 18px var(--cyan), 0 0 30px rgba(34,211,238,0.4); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.nav-cta {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff !important;
  border-radius: 10px !important;
  padding: 9px 18px !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  opacity: 0.9;
  background: linear-gradient(135deg, var(--cyan), var(--purple)) !important;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px;
}

/* ---- BADGE ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: #b6f4ff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- HERO ---- */
.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-top: 18px;
  margin-bottom: 22px;
}

.panel {
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-main { padding: 28px; }

.hero h1 {
  margin: 14px 0 10px;
  font-size: 52px;
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 820px;
}

.hero p {
  color: var(--muted);
  max-width: 760px;
  font-size: 16px;
  line-height: 1.7;
}

.hero-side {
  padding: 22px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.mini-box {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
}

.mini-box .label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.mini-box .value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---- GRID 4 ---- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.card {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 70%);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.symbol {
  color: var(--soft);
  font-size: 12px;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}

.title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }

.price { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }

.sub { margin-top: 10px; font-size: 13px; color: var(--muted); }

.up, .down {
  font-size: 13px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 999px;
  height: fit-content;
}

.up {
  color: #c7ffd9;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.18);
}

.down {
  color: #ffd0da;
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

/* ---- MAIN LAYOUT ---- */
.main-layout {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.chart-panel, .side-panel, .table-panel, .insight-panel { padding: 22px; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-header h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.section-header span { color: var(--muted); font-size: 13px; }

.chart {
  height: 360px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.08), rgba(34, 211, 238, 0.01)),
    rgba(2, 6, 23, 0.5);
  position: relative;
  overflow: hidden;
}

.chart-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 100% 60px, 80px 100%;
}

.line {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 18%;
  bottom: 14%;
}

.line svg { width: 100%; height: 100%; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.stat-box {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
}

.stat-box .label { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.stat-box .value { font-size: 22px; font-weight: 700; }

.top-movers { display: grid; gap: 12px; }

.mover {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.02);
}

table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 18px; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid rgba(148, 163, 184, 0.1); font-size: 14px; }
th { color: var(--muted); font-weight: 500; }

.insight-list { display: grid; gap: 14px; }

.insight-item {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255,255,255,0.02);
}

.insight-item h3 { margin-bottom: 8px; font-size: 16px; }
.insight-item p { color: var(--muted); line-height: 1.65; font-size: 14px; }

.footer-note {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 20px;
  background: rgba(34, 211, 238, 0.07);
  color: #dffbff;
  font-size: 14px;
  line-height: 1.7;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--soft);
  font-size: 13px;
}

/* ---- AD UNIT WRAPPER ---- */
.ad-unit-wrap {
  margin: 28px 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---- SECTION BLOCKS ---- */
.section-block {
  margin: 40px 0;
}

.section-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ---- ARTICLES GRID ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.article-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.24);
  color: #c4b5fd;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
}

.article-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.article-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  flex: 1;
}

.article-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
}

.article-card .read-more:hover { opacity: 0.75; }

/* ---- HOW IT WORKS ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-card {
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34,211,238,0.2), rgba(139,92,246,0.2));
  border: 1px solid rgba(34,211,238,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--cyan);
}

.step-card h4 { font-size: 16px; font-weight: 700; }
.step-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ---- FAQ ---- */
.faq-list { display: grid; gap: 14px; }

.faq-item {
  padding: 22px 26px;
  border-radius: 20px;
}

.faq-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.faq-item p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ---- MARKETS TABLE ---- */
.markets-full { padding: 26px; margin-bottom: 18px; }

/* ---- PAGE CONTENT (about, privacy, contact) ---- */
.page-hero {
  padding: 60px 0 40px;
  text-align: center;
}

.page-hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-content { max-width: 820px; margin: 0 auto; }

.prose-section {
  padding: 28px;
  margin-bottom: 20px;
}

.prose-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.prose-section h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--soft);
}

.prose-section p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.prose-section ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.prose-section ul li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.prose-section ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 12px;
}

/* ---- CONTACT FORM ---- */
.form-grid { display: grid; gap: 16px; }

.form-group { display: grid; gap: 8px; }

.form-group label { font-size: 13px; font-weight: 600; color: var(--soft); }

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(34,211,238,0.4);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.btn-submit {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}

.btn-submit:hover { opacity: 0.85; }

.info-cards { display: grid; gap: 14px; margin-top: 28px; }

.info-card {
  padding: 20px 24px;
  border-radius: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(34,211,238,0.12);
  border: 1px solid rgba(34,211,238,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.info-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.info-card p  { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  background: rgba(2,6,23,0.7);
}

.footer-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 48px 28px 32px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 300px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: grid; gap: 10px; }

.footer-col ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1380px;
  margin: 0 auto;
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-bottom p { color: var(--muted); font-size: 12px; }
.footer-bottom a { color: var(--muted); text-decoration: none; font-size: 12px; }
.footer-bottom a:hover { color: var(--text); }

.disclaimer {
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(244, 63, 94, 0.15);
  border-radius: 16px;
  background: rgba(244, 63, 94, 0.05);
  color: #fda3b0;
  font-size: 12px;
  line-height: 1.7;
}

/* ---- TEAM GRID ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.team-card {
  padding: 26px;
  text-align: center;
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

.team-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.team-card .role { color: var(--cyan); font-size: 13px; margin-bottom: 10px; font-weight: 600; }
.team-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ---- VALUES GRID ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.value-card {
  padding: 24px;
}

.value-icon { font-size: 28px; margin-bottom: 14px; }
.value-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1180px) {
  .grid-4       { grid-template-columns: repeat(2, 1fr); }
  .hero,
  .main-layout  { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .steps-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .team-grid    { grid-template-columns: repeat(2, 1fr); }
  .values-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .container    { padding: 18px; }
  .hero h1      { font-size: 34px; }
  .grid-4,
  .stats-row,
  .steps-grid,
  .values-grid,
  .form-row     { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .price        { font-size: 26px; }
  .section-title { font-size: 26px; }
  .page-hero h1 { font-size: 34px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .nav-links    { display: none; }
  .team-grid    { grid-template-columns: 1fr; }
}

/* ---- ARTICLE META (date / author) ---- */
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: -4px;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.article-meta-item svg {
  width: 13px;
  height: 13px;
  opacity: 0.6;
  flex-shrink: 0;
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(2, 6, 23, 0.97);
  border-top: 1px solid rgba(34, 211, 238, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 18px 28px;
  transition: opacity 0.3s ease;
}

.cookie-consent-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 260px;
}

.cookie-consent-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.cookie-consent-text p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.cookie-consent-text a {
  color: var(--cyan);
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.cookie-btn-primary:hover { opacity: 0.85; }

.cookie-btn-outline {
  background: transparent;
  color: var(--soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}

.cookie-btn-outline:hover {
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text);
}

@media (max-width: 720px) {
  .cookie-consent { padding: 18px; }
  .cookie-consent-actions { width: 100%; }
  .cookie-btn-primary,
  .cookie-btn-outline { flex: 1; text-align: center; padding: 12px; }
}
