/* --------------------------------------------------------- */
/*  FINANCIAL INSIGHTS AI™ — STRIPE DARK PREMIUM UI (FINAL) */
/* --------------------------------------------------------- */

:root {
  --bg: #0f172a;
  --bg-light: #1e293b;
  --bg-soft: #192233;
  --bg-card: #1e293b;

  --text: #e2e8f0;
  --text-light: #94a3b8;
  --text-blue: #3b82f6;

  --primary: #3b82f6;
  --primary-soft: #60a5fa33;

  --radius: 14px;
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 4px 9px rgba(0, 0, 0, 0.25);

  --font-main: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* GLOBAL -------------------------------------------------- */

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
}

.section {
  padding: 100px 70px;
  text-align: center;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 50px;
  color: var(--text);
}

/* NAVBAR -------------------------------------------------- */

.navbar {
  background: #0a1220;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  margin-left: 35px;
  font-weight: 500;
  transition: 0.2s;
}

.nav-links a:hover {
  color: var(--text-blue);
}

/* HERO ---------------------------------------------------- */

.hero {
  padding: 160px 70px 130px;
  background: var(--bg);
  text-align: center;
}

.hero h1 {
  color: var(--text);
  font-size: 3.3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  color: var(--text-light);
  font-size: 1.35rem;
  max-width: 700px;
  margin: 0 auto 35px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* BUTTONS -------------------------------------------------- */

.btn-primary {
  background: var(--primary);
  padding: 14px 30px;
  border-radius: var(--radius);
  color: white;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  border: 2px solid var(--primary);
  padding: 14px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}

/* TRUST CAROUSEL — FIXED CONTINUOUS LOOP ------------------- */

.trust-carousel {
  overflow: hidden;
  padding: 25px 0;
  background: var(--bg-light);
  border-top: 1px solid #1a2535;
  border-bottom: 1px solid #1a2535;
}

.trust-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: scrollLoop 22s linear infinite;
}

.trust-track img {
  width: 140px;
  opacity: 0.85;
  filter: grayscale(100%);
  transition: 0.3s;
}

.trust-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes scrollLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* WHY SECTION --------------------------------------------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.why-card {
  background: var(--bg-light);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: 0.2s;
}

.why-card h3 {
  margin-bottom: 15px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
}

.why-card p {
  color: var(--text-light);
  line-height: 1.55;
}

.why-card:hover {
  background: var(--bg-soft);
  transform: translateY(-4px);
}

/* USE CASES ------------------------------------------------ */

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.usecase-card {
  background: var(--bg-light);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: 0.2s;
}

.usecase-card:hover {
  background: var(--bg-soft);
  transform: translateY(-4px);
}

.usecase-card h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: var(--text);
}

.usecase-card p {
  color: var(--text-light);
}

/* ARCHITECTURE CARD --------------------------------------- */

.architecture-card {
  background: var(--bg-light);
  padding: 35px;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.architecture-card img {
  width: 100%;
  border-radius: var(--radius);
}

/* LIVE KPI SECTION ---------------------------------------- */

.live-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
  max-width: 1300px;
  margin: 50px auto;
}

.live-kpi {
  background: var(--bg-light);
  padding: 35px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.live-kpi-title {
  color: var(--text-light);
  font-size: 1rem;
}

.live-kpi-value {
  margin-top: 12px;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-blue);
}

/* CHARTS --------------------------------------------------- */

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1300px;
  margin: 60px auto;
}
/* DASHBOARD GRID 2x2 */
.charts-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 20px;
}

/* CONTROL CHART SIZE IN DASHBOARD */
.charts-grid-2x2 .chart-card canvas {
    width: 100% !important;
    height: 280px !important;
    max-height: 280px !important;
}


.chart-card {
  background: var(--bg-light);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.chart-card canvas {
  width: 100% !important;
  height: 320px !important;
}

/* ROADMAP -------------------------------------------------- */

.roadmap {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 35px;
}

.roadmap-item {
  background: var(--bg-light);
  padding: 30px;
  border-radius: var(--radius);
  text-align: left;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--primary);
}

.roadmap-item h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.roadmap-item p {
  color: var(--text-light);
  line-height: 1.5;
}

/* FOOTER -------------------------------------------------- */

.footer {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 50px 0;
  margin-top: 80px;
  border-top: 1px solid #1e293b;
}

/* RESPONSIVE ---------------------------------------------- */

@media (max-width: 1200px) {
  .why-grid,
  .usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .live-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 70px 25px;
  }

  .hero {
    padding: 120px 25px;
  }

  .why-grid,
  .usecases-grid {
    grid-template-columns: 1fr;
  }

  .live-kpi-grid {
    grid-template-columns: 1fr;
  }

  .chart-card canvas {
    height: 260px !important;
  }
}

/* ===========================================================
   STRIPE METRICS CARDS — DASHBOARD
   =========================================================== */

.metrics-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1400px;
  margin: 40px auto 60px;
  padding: 0 20px;
}

.metric-card {
  background: var(--bg-light);
  padding: 28px;
  border-radius: var(--radius);
  text-align: left;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  border: 1px solid #1e293b;
  animation: fadeUp 0.6s ease both;
}

.metric-title {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

/* ===========================================================
   AI INSIGHTS BOX (PREMIUM)
   =========================================================== */

.insights-card {
  max-width: 1200px;
  margin: 0 auto 40px;
  background: var(--bg-light);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border-left: 3px solid var(--primary);
  animation: fadeUp 0.7s ease both;
}

.insights-title {
  margin: 0 0 15px;
  font-size: 1.5rem;
  font-weight: 700;
}

.insights-list {
  padding-left: 20px;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Fade-in animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FIX – CENTER DASHBOARD HEADER */
.dash-header-wrapper {
    max-width: 1400px;
    margin: 40px auto 10px;
    padding: 0 20px;
}

.dash-title {
    text-align: left;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.dash-subtitle {
    text-align: left;
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 35px;
}

/* ===========================================================
   ACTION BAR — EXECUTIVE COMMANDS (STRIPE STYLE)
   =========================================================== */

.action-bar {
  max-width: 1400px;
  margin: 0 auto 30px;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  animation: fadeUp 0.6s ease both;
}

.action-btn {
  background: var(--bg-light);
  border: 1px solid #1f2a3a;
  color: var(--text);
  padding: 12px 22px;
  font-size: 0.95rem;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.25s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.action-btn:hover {
  background: #1f2a3a;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.icon {
  font-size: 1.1rem;
  line-height: 1;
}
