html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 00px;
  background-color: #0b1f3a;
  color: #0b1f3a;
  position: relative;
  min-height: 100vh;
}

/* Fixed logo watermark: stays in place when scrolling */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("/images/logo.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: clamp(280px, 45vw, 600px);
  opacity: 0.07;
  z-index: -1;
  pointer-events: none;
}

/* Wrapper card: light background, rounded corners, separates content from blue body */
.card-light {
  background-color: #f8fafc;
  border-radius: 1rem;
  box-shadow: 0 0.25rem 1.5rem rgba(11, 31, 58, 0.2);
  margin: 0 0.75rem 1.5rem;
  min-height: 50vh;
}

@media (min-width: 576px) {
  .card-light {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

@media (min-width: 768px) {
  .card-light {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    border-radius: 1.25rem;
  }
}

/* Main content area: solid backgrounds so content stays readable on blue */
main .card,
main .accordion-item,
main .accordion .accordion-body {
  background-color: #fff;
}

main .card-body.bg-light {
  background-color: #f8f9fa !important;
}

/* Nav bar buttons: ensure they look like buttons and stay visible (no nav-link override) */
.navbar-nav .btn {
  display: inline-block;
}

/* Collapsed (mobile) nav: more spacing above/below each nav item */
@media (max-width: 575.98px) {
  .navbar-collapse .nav-item {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .navbar-collapse .nav-item:first-child {
    margin-top: 0.25rem;
  }
  .navbar-collapse .nav-item:last-child {
    margin-bottom: 0.25rem;
  }
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
}

.navbar-logo {
  height: 36px;
  width: auto;
}

@media (min-width: 768px) {
  .navbar-logo {
    height: 40px;
  }
}

.portfolio-tabs .nav-link {
  background-color: #d3e2f2;
  border-color: #b8cce2;
  color: #0b1f3a;
  margin-right: 0.25rem;
}

.portfolio-tabs .nav-link:hover {
  background-color: #c4d7ee;
  color: #0b1f3a;
}

.portfolio-tabs .nav-link.active {
  background-color: #0b1f3a;
  border-color: #0b1f3a;
  color: #fff;
}

.portfolio-performance {
  background-color: #efe6dd;
  border-color: #e3d6c8;
  color: #3a2a1a;
}

.table tr.trade-today > th,
.table tr.trade-today > td {
  background-color: #e6f2ff;
}

.trade-note-icon svg {
  width: 18px;
  height: 18px;
  fill: #0d6efd;
  vertical-align: text-bottom;
  margin-left: 0.25rem;
}

.trade-note-icon {
  display: inline-flex;
  align-items: center;
}

.trade-note-link {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  text-decoration: none;
}

.trade-note-link:hover {
  text-decoration: underline;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ----- Landing / sales-pitch ----- */
.landing-hero {
  position: relative;
  overflow: hidden;
}

.landing-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0b1f3a 0%, #1a3a5c 50%, #0b1f3a 100%);
  z-index: 0;
}

.landing-hero .container {
  position: relative;
  z-index: 1;
}

.min-vh-75 {
  min-height: 75vh;
}

.min-vh-50 {
  min-height: 50vh;
}

.landing-headline {
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.landing-headline-accent {
  color: #7dd3fc;
}

.landing-lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 28rem;
}

.landing-lead.text-lg-start + .landing-cta {
  margin-left: 0;
}

@media (min-width: 992px) {
  .landing-lead { max-width: 100%; }
}

.landing-cta {
  background: #0ea5e9;
  color: #fff;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.landing-cta:hover {
  background: #0284c7;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}

.landing-hero-visual {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.landing-hero-icon {
  font-size: 5rem;
  opacity: 0.9;
}

.landing-features {
  background: rgba(248, 250, 252, 0.97);
}

.landing-card {
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.landing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.12) !important;
}

.landing-card-icon {
  font-size: 2rem;
}

.landing-cta-section {
  background: linear-gradient(180deg, #f8fafc 0%, #e2ecf7 100%);
}

/* ----- How it works ----- */
.howto-step-num {
  width: 3rem;
  height: 3rem;
  background: #0b1f3a;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
}