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: 60px;
}

.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 Page ===== */

:root {
  --lp-dark: #1a1a2e;
  --lp-darker: #16162a;
  --lp-darkest: #0f0f1e;
  --lp-accent: #00b4d8;
  --lp-accent-dark: #0096b7;
  --lp-text: #e0e0e0;
  --lp-text-muted: #8892b0;
  --lp-card-bg: #ffffff;
  --lp-light-bg: #f0f4f8;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

/* Navbar */
.landing-navbar {
  background: rgba(26, 26, 46, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.6rem 0;
  transition: background 0.3s;
}

.landing-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.landing-navbar .navbar-brand img {
  height: 32px;
  width: auto;
}

.landing-navbar .nav-link {
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}

.landing-navbar .nav-link:hover {
  color: var(--lp-accent) !important;
}

.landing-navbar .btn-outline-accent {
  color: var(--lp-accent);
  border-color: var(--lp-accent);
  font-weight: 600;
  padding: 0.4rem 1.25rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.landing-navbar .btn-outline-accent:hover {
  background: var(--lp-accent);
  color: #fff;
}

/* Hero */
.landing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--lp-darkest) 0%, var(--lp-dark) 50%, #1e2a4a 100%);
  overflow: hidden;
  padding: 7rem 0 4rem;
}

.landing-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.landing-hero::after {
  content: "";
  position: absolute;
  bottom: -15%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.landing-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
}

.landing-hero h1 .accent {
  color: var(--lp-accent);
}

.landing-hero .lead {
  font-size: 1.2rem;
  color: var(--lp-text-muted);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 2rem;
}

.btn-accent {
  background: var(--lp-accent);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-accent:hover {
  background: var(--lp-accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.35);
}

.btn-outline-light-custom {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.7rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  background: transparent;
}

.btn-outline-light-custom:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Hero Mockup */
.hero-mockup {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot.red { background: #ff5f56; }
.mockup-dot.yellow { background: #ffbd2e; }
.mockup-dot.green { background: #27c93f; }

.mockup-title {
  color: var(--lp-text-muted);
  font-size: 0.8rem;
  margin-left: 0.5rem;
  font-weight: 500;
}

.mockup-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  margin-bottom: 1.25rem;
  padding: 0 0.5rem;
}

.mockup-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  min-width: 20px;
  transition: height 0.3s;
}

.mockup-bar.accent { background: var(--lp-accent); }
.mockup-bar.muted { background: rgba(255, 255, 255, 0.15); }

.mockup-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mockup-stat {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-stat-label {
  font-size: 0.7rem;
  color: var(--lp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.mockup-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lp-accent);
}

.mockup-stat-value.green-val { color: #27c93f; }
.mockup-stat-value.yellow-val { color: #ffbd2e; }

/* Metrics Bar */
.landing-metrics {
  background: var(--lp-light-bg);
  padding: 3rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.metric-item {
  text-align: center;
  padding: 1rem;
}

.metric-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--lp-dark);
}

.metric-label {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Features */
.landing-features {
  padding: 5rem 0;
  background: #fff;
}

.landing-features .section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--lp-dark);
  margin-bottom: 0.75rem;
}

.landing-features .section-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.feature-card {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.feature-card .feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 180, 216, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  color: var(--lp-accent);
}

.feature-card h5 {
  font-weight: 700;
  color: var(--lp-dark);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* How It Works */
.landing-how-it-works {
  padding: 5rem 0;
  background: var(--lp-dark);
  color: #fff;
}

.landing-how-it-works .section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.landing-how-it-works .section-subtitle {
  font-size: 1.1rem;
  color: var(--lp-text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 180, 216, 0.15);
  border: 2px solid var(--lp-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--lp-accent);
  margin: 0 auto 1.25rem;
}

.step-card h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.step-card p {
  color: var(--lp-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Stats */
.landing-stats {
  padding: 4rem 0;
  background: var(--lp-light-bg);
}

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--lp-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: #6c757d;
  font-weight: 500;
}

/* CTA */
.landing-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--lp-darkest) 0%, var(--lp-dark) 50%, #1e2a4a 100%);
  text-align: center;
  color: #fff;
}

.landing-cta h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.landing-cta p {
  color: var(--lp-text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* Footer */
.landing-footer {
  background: var(--lp-darkest);
  padding: 3rem 0 0;
  color: var(--lp-text-muted);
}

.landing-footer h6 {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.landing-footer p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.landing-footer a {
  color: var(--lp-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 0.2rem 0;
  transition: color 0.2s;
}

.landing-footer a:hover {
  color: var(--lp-accent);
}

.landing-footer .footer-brand img {
  height: 28px;
  width: auto;
  margin-bottom: 0.75rem;
}

.landing-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.25rem 0;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}

/* Responsive */
@media (max-width: 991.98px) {
  .landing-hero h1 {
    font-size: 2.25rem;
  }

  .landing-hero .lead {
    font-size: 1.05rem;
  }

  .hero-mockup {
    margin-top: 3rem;
  }

  .mockup-chart {
    height: 80px;
  }
}

@media (max-width: 767.98px) {
  .landing-hero {
    padding: 6rem 0 3rem;
    min-height: auto;
  }

  .landing-hero h1 {
    font-size: 1.9rem;
  }

  .landing-features .section-title,
  .landing-how-it-works .section-title,
  .landing-cta h2 {
    font-size: 1.75rem;
  }

  .stat-number {
    font-size: 2.25rem;
  }

  .metric-number {
    font-size: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .landing-hero h1 {
    font-size: 1.6rem;
  }

  .btn-accent, .btn-outline-light-custom {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  .feature-card {
    padding: 1.5rem 1rem;
  }
}