/* =========================================================
   Design tokens
   Dark technical / trading-platform visual language
   ========================================================= */
:root {

  /* =========================================================
     Core backgrounds
     Neutral black / graphite — less green, less muddy
     ========================================================= */

  --bg: #111114;
  --bg-deep: #0b0b0d;
  --bg-footer: #0e0e11;

  --panel: #18181d;
  --panel-2: #1f1f25;
  --panel-3: #27272f;


  /* =========================================================
     Soft translucent surfaces
     ========================================================= */

  --surface-soft: rgba(255, 255, 255, 0.025);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.070);
  --surface-strong: rgba(255, 255, 255, 0.095);


  /* =========================================================
     Typography
     Brighter and cleaner
     ========================================================= */

  --text: #f7f7f8;
  --text-soft: rgba(247, 247, 248, 0.86);

  --muted: #aaaab4;
  --muted-2: #777781;


  /* =========================================================
     Borders
     ========================================================= */

  --border: rgba(255, 255, 255, 0.095);
  --border-soft: rgba(255, 255, 255, 0.055);
  --border-strong: rgba(255, 255, 255, 0.155);
  --border-hover: rgba(255, 255, 255, 0.26);


  /* =========================================================
     Shadows
     ========================================================= */

  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.30);
  --shadow-lg: 0 32px 90px rgba(0, 0, 0, 0.42);


  /* =========================================================
     Radius
     ========================================================= */

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-pill: 999px;


  /* =========================================================
     Brand / accent colors
     Slightly cleaner and more saturated
     ========================================================= */

  --blue: #4f8cff;
  --blue-2: #72a6ff;
  --blue-soft: rgba(79, 140, 255, 0.11);
  --blue-border: rgba(79, 140, 255, 0.30);

  --purple: #a855f7;
  --purple-2: #c084fc;
  --purple-soft: rgba(168, 85, 247, 0.10);
  --purple-border: rgba(168, 85, 247, 0.32);

  --green: #1fd19a;
  --green-soft: rgba(31, 209, 154, 0.10);

  --red: #ff466d;
  --red-soft: rgba(255, 70, 109, 0.10);

  --pink: #ff4ba8;
  --pink-soft: rgba(255, 75, 168, 0.10);
  --pink-border: rgba(255, 75, 168, 0.34);


  /* =========================================================
     Buttons
     ========================================================= */

  --button-light: #f5f5f6;
  --button-light-hover: #dddddf;
  --button-dark-text: #111114;


  /* =========================================================
     Misc
     ========================================================= */

  --overlay-dark: rgba(0, 0, 0, 0.26);

  /* --font-ui: "HostGrotesk", system-ui, -apple-system, sans-serif; */

}

/* =========================================================
   Utilities
   ========================================================= */

.hero-muted {
  color: var(--muted);
}

.py-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.py-7 {
  padding-top: 8rem;
  padding-bottom: 8rem;
}


/* =========================================================
   Hero section
   ========================================================= */

.hero-pill {
  padding: 8px 12px;

  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);

  backdrop-filter: blur(10px);
}

.hero-dot {
  width: 8px;
  height: 8px;

  display: inline-block;

  background: var(--purple);
  border-radius: 50%;
}


/* =========================================================
   Feature section
   ========================================================= */

.feature-shell {
  padding: clamp(2.5rem, 5vw, 4rem);

  background:
    radial-gradient(
      800px 400px at 20% 0%,
      var(--surface-hover),
      transparent 60%
    ),
    var(--panel);

  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.feature-placeholder {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 10;

  display: grid;
  place-items: center;

  color: var(--muted-2);
  background: var(--overlay-dark);

  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
}

.feature-item {
  display: flex;
  gap: 16px;

  padding: 18px;

  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: var(--r-sm);

  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.feature-item.active {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}


/* =========================================================
   Feature icons
   ========================================================= */

.feature-ico {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  color: var(--muted);
  background: var(--surface-strong);

  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
}

.feature-ico i {
  font-size: 18px;
  line-height: 1;
}

.feature-ico.accent {
  color: var(--purple);
  background: var(--purple-soft);
  border-color: var(--purple-border);
}


/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--bg-footer);
  font-family: "fontthree", sans-serif;
}

.site-footer .footer-top {
  border-color: var(--border) !important;
}

.site-footer .footer-muted {
  color: var(--muted-2);

  font-size: 11px;
  line-height: 1.3;
}

.site-footer .footer-link {
  color: var(--muted-2);

  font-size: 11px;
  line-height: 1.2;

  text-decoration: none;

  transition: color 160ms ease;
}

.site-footer .footer-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer .footer-bottom {
  background: var(--bg-footer);
}

@media (max-width: 768px) {
  .site-footer .footer-muted {
    font-size: 10.8px;
  }
}


/* =========================================================
   Navbar
   ========================================================= */

.navbar {
  border-bottom: 1px solid var(--border-strong);
}

.navbar .nav-link {
  padding: 18px 12px;

  font-size: 12px;

  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.navbar-brand img {
  height: 15px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
}


/* =========================================================
   Header buttons
   ========================================================= */

.header-btn-primary {
  padding: 10px 20px;

  color: var(--button-dark-text);
  background: var(--button-light);

  border: 1px solid var(--button-light);
  border-radius: var(--r-sm);

  font-size: 12px;
  font-weight: 600;

  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.header-btn-primary:hover {
  color: var(--button-dark-text);
  background: var(--button-light-hover);
  border-color: var(--button-light-hover);
}

.header-btn-secondary {
  padding: 10px 18px;

  color: var(--text-soft);
  background: transparent;

  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);

  font-size: 12px;

  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.header-btn-secondary:hover {
  color: var(--text);
  background: var(--surface-soft);
  border-color: var(--border-hover);
}


/* =========================================================
   Navigation badge
   ========================================================= */

.nav-item-badge {
  position: relative;
}

@media (min-width: 992px) {
  .nav-item-badge {
    margin-right: 72px !important;
  }
}

.nav-badge {
  position: absolute;
  top: 50%;
  left: calc(100% + 6px);

  transform: translateY(-50%);

  padding: 5px 8px;

  color: var(--purple);
  background: var(--purple-soft);

  border: 1px solid var(--purple-border);
  border-radius: var(--r-xs);

  font-size: 10px;
  line-height: 1;

  letter-spacing: 0.04em;

  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 991px) {
  .nav-badge {
    position: static;

    display: inline-flex;

    margin-left: 8px;

    transform: none;
    vertical-align: middle;
  }
}


/* =========================================================
   Disclaimer
   ========================================================= */

.glen-disclaimer {
  color: var(--text-soft);
  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: var(--r-md);

  backdrop-filter: blur(14px);

  box-shadow: var(--shadow-md);
}

.disclaimer-icon {
  width: 24px;
  height: 24px;

  display: grid;
  place-items: center;

  color: var(--pink);
  background: var(--pink-soft);

  border: 1px solid var(--pink-border);
  border-radius: var(--r-pill);

  font-size: 13px;
  font-weight: 800;
}

.disclaimer-link {
  color: var(--text-soft);

  text-decoration: underline;
  text-decoration-color: var(--pink-border);
  text-underline-offset: 3px;

  transition: color 160ms ease;
}

.disclaimer-link:hover {
  color: var(--pink);
}



/* THE CODE BELOW FOR THE FINANCIAL CHART */

/* =========================================================
   TRADING WINDOW / APPLICATION STYLE
   ========================================================= */

.trade-app-window {
  width: 100%;
  overflow: hidden;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0)),
    var(--bg-deep);

  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);

  font-family: var(--font-ui);
}


/* =========================================================
   TOP BAR
   ========================================================= */

.trade-app-topbar {
  min-height: 58px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 10px 16px;

  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.trade-app-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trade-app-dot {
  width: 8px;
  height: 8px;

  display: inline-block;

  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.trade-app-title-block {
  display: flex;
  flex-direction: column;

  margin-left: 10px;
}

.trade-app-title-block strong {
  color: var(--text);

  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
}

.trade-app-title-block span {
  color: var(--muted);

  font-size: 11px;
  line-height: 1.1;
}

.trade-app-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trade-top-btn {
  min-height: 34px;
  padding: 0 12px;

  color: var(--muted);
  background: rgba(255,255,255,0.02);

  border: 1px solid var(--border);
  border-radius: var(--r-xs);

  font-family: var(--font-ui);
  font-size: 11px;

  cursor: pointer;

  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.trade-top-btn:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.trade-top-btn-active {
  color: var(--text);
  background: var(--blue-soft);
  border-color: var(--blue-border);
}


/* =========================================================
   MAIN BODY
   ========================================================= */

.trade-app-main {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
}


/* =========================================================
   LEFT TOOLBAR
   ========================================================= */

.trade-app-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  padding: 14px 8px;

  background: rgba(255, 255, 255, 0.012);
  border-right: 1px solid var(--border);
}

.trade-side-btn {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  color: var(--muted);
  background: transparent;

  border: 1px solid transparent;
  border-radius: var(--r-xs);

  font-size: 13px;
  cursor: pointer;

  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.trade-side-btn:hover {
  color: var(--text);
  background: var(--surface-soft);
  border-color: var(--border);
}

.trade-side-btn-active {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: var(--blue-border);
}


/* =========================================================
   WORKSPACE
   ========================================================= */

.trade-app-workspace {
  position: relative;

  min-height: 560px;
  padding: 14px 14px 12px;

    background: var(--bg-deep);

}


/* =========================================================
   FLOATING CARD LEFT
   ========================================================= */

.trade-floating-card {
  position: absolute;
  z-index: 4;

  min-width: 180px;
  padding: 14px;

  background: rgba(15, 17, 23, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);

  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.trade-floating-card-left {
  top: 18px;
  left: 18px;
}

.trade-symbol-block {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 14px;
}

.trade-symbol-icon {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  color: var(--text);
  background: var(--panel-2);

  border: 1px solid var(--border);
  border-radius: 50%;

  font-size: 13px;
  font-weight: 700;
}

.trade-symbol-name {
  color: var(--text);

  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
}

.trade-symbol-sub {
  color: var(--muted);

  font-size: 11px;
  line-height: 1.1;
}

.trade-metric-list {
  display: grid;
  gap: 10px;
}

.trade-metric-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;

  color: var(--muted);

  font-size: 11px;
}

.trade-metric-row strong {
  color: var(--text);
  font-weight: 600;
}

.trade-value-green {
  color: var(--green) !important;
}


/* =========================================================
   FLOATING CONTROLS
   ========================================================= */

.trade-floating-controls {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.trade-control-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  padding: 4px;

  background: rgba(15, 17, 23, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);

  backdrop-filter: blur(10px);
}

.trade-mini-btn {
  min-height: 30px;
  padding: 0 10px;

  color: var(--muted);
  background: transparent;

  border: 0;
  border-radius: var(--r-xs);

  font-family: var(--font-ui);
  font-size: 11px;

  cursor: pointer;

  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.trade-mini-btn:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.trade-mini-btn-active {
  color: var(--text);
  background: rgba(255,255,255,0.08);
}


/* =========================================================
   CAPTION
   ========================================================= */

.trade-chart-caption {
  position: absolute;
  top: 104px;
  left: 18px;
  right: 18px;
  z-index: 3;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  pointer-events: none;
}

.trade-chart-caption-label {
  color: var(--muted-2);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.trade-chart-caption-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  color: var(--muted);

  font-size: 10px;
}

.trade-chart-caption-live span {
  width: 6px;
  height: 6px;

  background: var(--green);
  border-radius: 50%;

  box-shadow: 0 0 10px rgba(24, 197, 143, 0.55);
}


/* =========================================================
   CHART
   ========================================================= */

.trade-chart-shell {
  position: relative;

  width: 100%;
  height: 500px;

  margin-top: 38px;
  padding-top: 32px;

  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.trade-chart-shell canvas {
  width: 100% !important;
  height: 100% !important;
}


/* =========================================================
   BOTTOM STRIP
   ========================================================= */

.trade-chart-bottom-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding-top: 12px;
}

.trade-chart-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trade-chart-tags span {
  min-height: 30px;
  padding: 0 11px;

  display: inline-flex;
  align-items: center;

  color: var(--muted);

  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);

  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.trade-chart-live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--muted-2);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.trade-chart-live-status span {
  width: 6px;
  height: 6px;

  background: var(--purple);
  border-radius: 50%;

  box-shadow: 0 0 10px rgba(183, 124, 255, 0.55);
}


/* =========================================================
   FLOATING NOTE
   ========================================================= */

.trade-floating-note {
  position: absolute;
  right: 18px;
  bottom: 56px;
  z-index: 4;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  min-height: 36px;
  padding: 0 12px;

  color: var(--muted);
  background: rgba(15, 17, 23, 0.82);

  border: 1px solid var(--border);
  border-radius: var(--r-sm);

  backdrop-filter: blur(10px);

  font-size: 11px;
}

.trade-floating-note-dot {
  width: 7px;
  height: 7px;

  background: var(--blue);
  border-radius: 50%;

  box-shadow: 0 0 10px rgba(77, 145, 255, 0.55);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {
  .trade-app-main {
    grid-template-columns: 1fr;
  }

  .trade-app-sidebar {
    display: none;
  }

  .trade-app-workspace {
    min-height: 500px;
  }

  .trade-chart-shell {
    height: 420px;
  }
}

@media (max-width: 767px) {
  .trade-app-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .trade-app-topbar-right {
    flex-wrap: wrap;
  }

  .trade-floating-controls {
    position: static;
    margin-bottom: 12px;

    align-items: flex-start;
  }

  .trade-floating-card-left {
    position: static;
    margin-bottom: 12px;
  }

  .trade-chart-caption {
    position: static;
    margin-bottom: 10px;
  }

  .trade-chart-shell {
    margin-top: 0;
    padding-top: 0;
    height: 340px;
  }

  .trade-floating-note {
    display: none;
  }

  .trade-chart-bottom-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}