/* =============================
   GLOBAL BACKGROUND
============================= */

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: #1E2A4A;

    /* Pure white base */
    background: #ffffff;
}

/* Subtle purple glow top-right */
body::after {
    content: "";
    position: fixed;
    top: -250px;
    right: -250px;
    width: 900px;
    height: 900px;
    background: radial-gradient(
        circle,
        rgba(122,107,255,0.18),
        transparent 70%
    );
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

/* Optional subtle second glow bottom-left */
body::before {
    content: "";
    position: fixed;
    bottom: -250px;
    left: -250px;
    width: 800px;
    height: 800px;
    background: radial-gradient(
        circle,
        rgba(91,124,255,0.15),
        transparent 70%
    );
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

/* REMOVE particle overlay for now */
.bg-overlay {
    display: none;
}

/* =============================
   HERO CONTAINER
============================= */

.container-hero {
    padding-top: 60px;
    padding-bottom: 100px;
    position: relative;
    z-index: 2;
}

/* Hero glow left */
.container-hero::before {
    content: "";
    position: absolute;
    top: -200px;
    left: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255,255,255,0.3), transparent 70%);
    filter: blur(120px);
    z-index: 0;
}

/* Animated floating glow */
@keyframes flow {
    0% { transform: translateX(-10%) rotate(0deg); }
    100% { transform: translateX(10%) rotate(360deg); }
}

.flow-light {
    position: absolute;
    top: 10%;
    right: -250px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 70%);
    filter: blur(120px);
    animation: flow 60s linear infinite;
    z-index: 1;
}

/* =============================
   TYPOGRAPHY
============================= */

.headline {
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 8px 40px rgba(0,0,0,0.35);
}

.muted {
    color: rgba(255,255,255,0.88);
}

.tiny {
    font-size: 0.85rem;
}

/* =============================
   BADGES
============================= */

.badge-ai {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* =============================
   GLASS CARDS
============================= */

.glass {
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(30px);
    border-radius: 28px;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.25),
        0 0 0 1px rgba(255,255,255,0.4) inset;
    position: relative;
    z-index: 3;
}

.card-soft {
    background: rgba(255,255,255,0.92);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* =============================
   DIVIDER
============================= */

.divider {
    height: 1px;
    background: rgba(30,42,74,0.15);
    margin: 20px 0;
}

/* =============================
   BUTTONS
============================= */

.btn-rounded {
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 600;
}

.btn-light {
    background: #ffffff;
    color: #5B7CFF;
    border: none;
}

.btn-light:hover {
    background: #f4f7ff;
    color: #4a68e0;
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.8);
    color: #ffffff;
}

.btn-outline-light:hover {
    background: #ffffff;
    color: #5B7CFF;
}

/* =============================
   ICON PILLS
============================= */

.icon-pill {
    background: linear-gradient(135deg,#5B7CFF,#8A6BFF);
    color: #ffffff;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* =============================
   SECTION SPACING + PANEL
============================= */

.section {
    margin-top: 40px;   /* was 140px */
    position: relative;
    z-index: 2;
}

/* Light panel wrapper for lower sections */
.section-panel {
    background: rgba(255,255,255,0.12);
    border-radius: 40px;
    padding: 80px 60px;
}

/* =============================
   INNER SITE SHELL
============================= */

.site-shell {
    width: 90%;
    margin: 50px auto;
    border-radius: 40px;
    overflow: hidden;
    position: relative;

    /* Base gradient */
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.25), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.18), transparent 45%),
        linear-gradient(135deg, #5B7CFF 0%, #6C63FF 45%, #8A6BFF 100%);

    box-shadow:
        0 60px 120px rgba(0,0,0,0.35);
}

/* =========================================
   STAR BACKGROUND LAYER
========================================= */

.site-shell::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("/images/star-background.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    opacity: 0.45;   /* Adjust 0.35–0.55 */
    pointer-events: none;
    z-index: 0;
}

/* =========================================
   ORBIT BACKGROUND (TOP RIGHT)
========================================= */

.site-shell::after {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("/images/orbit-background-right.png");
    background-repeat: no-repeat;

    /* push orbit off canvas */
    background-position: right -420px top -120px;

    /* scale large so it feels atmospheric */
    background-size: 2000px auto;

    opacity: 0.45;
    pointer-events: none;
    z-index: 1;
}

/* =========================================
   INNER BORDER OVERLAY
========================================= */

.site-shell .shell-border {
    position: absolute;
    inset: 0;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    pointer-events: none;
    z-index: 3;
}

/* =========================================
   CONTENT ABOVE BACKGROUNDS
========================================= */

.site-shell > * {
    position: relative;
    z-index: 2;
}

/* =============================
   NAVIGATION
============================= */

.site-logo{
  width: 340px;     /* adjust if needed */
  height: auto;
  display:block;
}

/* keep nav aligned with content width */
.site-nav .nav-inner{
  max-width: 1500px;   /* tune: 1320, 1400, 1500 */
}

/* make nav links readable next to the big logo */
.site-nav .nav-link{
  color: rgba(255,255,255,0.92) !important;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: .45rem .65rem;
  border-radius: 999px;
  transition: all .15s ease;
}

.site-nav .nav-link:hover{
  color: #ffffff !important;
  background: rgba(255,255,255,0.10);
}

/* CTA button in nav feels “right sized” */
.site-nav .nav-cta{
  padding: 10px 18px;
  font-size: 1.02rem;
}

/* HERO tighter + clearer */
.hero { position: relative; }

/* Score preview bubble */
.score-bubble{
  background: rgba(255,255,255,0.9);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  padding: 18px 14px;
  text-align: center;
}

.score-num{
  font-size: 2.2rem;
  font-weight: 800;
  color: #5B7CFF;
  line-height: 1;
}

.score-label{
  margin-top: 6px;
  color: rgba(30,42,74,0.65);
  font-weight: 600;
}

/* =========================================================
   HERO - RIGHT COLUMN: TWO CARDS SIDE BY SIDE
========================================================= */

.hero-right-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* Optional: make them sit side-by-side on XL screens */
@media (min-width: 9920px) {
  .hero-right-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Make both cards visually consistent */
.hero-card {
  border-radius: 28px;
  overflow: hidden;
}

/* =========================================================
   SCORE PREVIEW CARD (Round Gauge Version)
========================================================= */

.score-card-bg{
  position: relative;
  min-height: 320px;                 /* Match scan card height */
  border-radius: 28px;
  overflow: hidden;
  background-color: rgba(255,255,255,0.92);
  box-shadow: 0 30px 80px rgba(0,0,0,0.20);
}

/* Circular gauge image */
.score-card-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("/images/scorecard-bg.png");
  background-repeat:no-repeat;
  background-size: 250px 250px;      /* Adjust 220–260 if needed */
  background-position: center 35%;   /* Controls vertical alignment */
  z-index:0;
}

/* Content wrapper */
.score-card-content{
  position: relative;
  z-index:2;
  padding: 20px 20px 18px;
  display:flex;
  flex-direction:column;
  height:100%;
}

/* Title */
.score-title{
  font-weight:700;
  color:#1E2A4A;
}

/* Center gauge area */
.score-center{
  flex-grow:1;
  min-height:240px;                 /* Prevents footer overlap */
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Animated score number */
.score-number{
  font-size:64px;
  font-weight:800;
  line-height:1;
  color:#ffffff;

  text-shadow:
    0 0 6px rgba(180,150,255,0.8),
    0 0 18px rgba(140,90,255,0.6),
    0 8px 20px rgba(0,0,0,0.6);

  letter-spacing:1px;
}

/* Footer text */
.score-footer{
  font-size:0.85rem;
  color:rgba(30,42,74,0.75);
}

.scan-card {
  border-radius: 28px !important;
}

.btn-purple {
  background: linear-gradient(
    90deg,
    #2563eb 0%,
    #3b82f6 35%,
    #8b5cf6 75%,
    #a855f7 100%
  );
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-weight: 500;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(59,130,246,0.35);
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,92,246,0.45);
  color: #fff;
}

.btn-purple:focus,
.btn-purple:active {
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(139,92,246,0.35);
}

.site-nav .nav-link {
  color: rgba(255,255,255,0.85);
  transition: 0.2s ease;
}

.site-nav .nav-link:hover {
  color: #ffffff;
}

.dashboard-wrapper {
  background: #f8f9fb;
  min-height: 100vh;
}

.dashboard-topbar {
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
  padding: 12px 0;
}

.dashboard-sidebar {
  background: #f4f5f7;
  min-height: calc(100vh - 60px);
  border-right: 1px solid #e6e6e6;
}

.dashboard-sidebar .nav-link {
  color: #555;
  margin-bottom: 8px;
}

.dashboard-sidebar .nav-link.active {
  color: #6f42c1;
  font-weight: 500;
}

.dashboard-main {
  background: #ffffff;
}

.dash-card {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-top: 3px solid #6f42c1;
  padding: 20px;
  border-radius: 6px;
}

.dash-title {
  font-size: 14px;
  color: #777;
  margin-bottom: 8px;
}

.dash-number {
  font-size: 28px;
  font-weight: 600;
}

/* Outer page background */
.dashboard-outer {
  background: #f3f4f8;
  padding: 30px;
  min-height: 100vh;
}

/* Inner rounded app container */
.dashboard-wrapper {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

/* Top bar */
.dashboard-topbar {
  background: #ffffff;
  border-bottom: 1px solid #e9e9ef;
  padding: 14px 0;
}

/* Sidebar */
.dashboard-sidebar {
  background: #f7f7fa;
  border-right: 1px solid #e9e9ef;
  min-height: calc(100vh - 70px);
}

/* Main */
.dashboard-main {
  background: #ffffff;
}

/* Cards */
.dash-card {
  background: #ffffff;
  border: 1px solid #ececf2;
  border-top: 3px solid #7c4dff;
  border-radius: 12px;
  padding: 20px;
}

.dash-title {
  font-size: 13px;
  color: #7a7a85;
  margin-bottom: 6px;
}

.dash-number {
  font-size: 26px;
  font-weight: 600;
}