/* ===== CAFORA MODERN APP THEME ===== */
:root {
  --bg-main: #0B1720;
  --bg-surface: #153042;
  --bg-surface-2: #102634;
  --bg-soft: #EEF5F7;
  --border-color: rgba(238, 245, 247, 0.18);

  --cafora-brown: #9A7158;
  --sand: #D9C8B4;

  --accent: #2F8F5B;
  --accent-hover: #46A971;
  --accent-blue: #4A90A4;
  --accent-blue-soft: #8FC1D0;

  --text-primary: #F7FBFC;
  --text-secondary: rgba(247, 251, 252, 0.76);
  --text-dark: #0B1720;

  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.22);
  --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.35);
}

/* ===== BASE ===== */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

section,
header,
footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
}

.text-muted {
  color: var(--text-secondary) !important;
}

.section-soft {
  background: linear-gradient(
    180deg,
    rgba(238, 245, 247, 0.06),
    rgba(238, 245, 247, 0.02)
  );
}

/* ===== NAV ===== */
.landing-nav {
  background: rgba(8, 17, 31, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.brand-text,
.navbar .nav-link {
  color: var(--text-primary) !important;
  font-weight: 600;
}

.navbar .nav-link {
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.navbar .nav-link:hover {
  color: var(--accent-blue-soft) !important;
  opacity: 1;
}

.navbar-brand {
  text-decoration: none;
}

.navbar-toggler {
  border-color: var(--border-color);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 55px;
  width: auto;
  max-height: 55px;
  object-fit: contain;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(74, 144, 164, 0.2), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(154, 113, 88, 0.12), transparent 24%),
    linear-gradient(180deg, #153042 0%, #0B1720 100%);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.18;
  z-index: 0;
}

.hero-glow-1 {
  width: 260px;
  height: 260px;
  top: 80px;
  left: -40px;
  background: var(--accent-blue);
}

.hero-glow-2 {
  width: 220px;
  height: 220px;
  bottom: 80px;
  right: -20px;
  background: rgba(154, 113, 88, 0.72);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.kicker {
  display: inline-block;
  color: var(--accent-blue-soft);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero h1 {
  color: var(--text-primary);
  font-weight: 800;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.08;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero .lead {
  color: rgba(248, 251, 255, 0.84);
  max-width: 860px;
  font-size: 1.12rem;
}

.hero-note {
  color: var(--text-secondary);
}

/* ===== HERO PREVIEW ===== */
.hero-preview {
  max-width: 920px;
  margin: 0 auto;
}

.hero-preview-card {
  background: rgba(21, 48, 66, 0.82);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(10px);
}

.hero-preview-top {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(12, 23, 39, 0.5);
}

.hero-preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(248, 251, 255, 0.4);
}

.hero-preview-body {
  display: flex;
  min-height: 360px;
}

.preview-sidebar {
  width: 220px;
  border-right: 1px solid var(--border-color);
  background: rgba(12, 23, 39, 0.52);
  padding: 22px 16px;
}

.preview-sidebar-line {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 16px;
  opacity: 0.8;
}

.preview-sidebar-line.active {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-blue-soft));
  opacity: 1;
}

.preview-content {
  flex: 1;
  padding: 24px;
}

.preview-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.preview-stat,
.preview-chart,
.preview-table {
  background: rgba(8, 17, 31, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 18px;
}

.preview-stat {
  height: 88px;
  padding: 14px;
}

.preview-stat-label {
  width: 46%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 14px;
}

.preview-stat-value {
  width: 72%;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-blue), #D7EEF3);
}

.preview-chart {
  height: 150px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.preview-chart::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 24px;
  height: 70px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(63, 125, 88, 0.26), rgba(74, 144, 164, 0.24), rgba(154, 113, 88, 0.12));
  clip-path: polygon(0 85%, 15% 55%, 32% 70%, 50% 30%, 68% 48%, 84% 18%, 100% 42%, 100% 100%, 0 100%);
}

.preview-table {
  height: 100px;
  position: relative;
  overflow: hidden;
}

.preview-table::before,
.preview-table::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.preview-table::before {
  top: 24px;
}

.preview-table::after {
  top: 50px;
  width: calc(100% - 80px);
}

/* ===== TITLES ===== */
.section-title {
  color: var(--text-primary);
  font-weight: 800;
  margin-bottom: 1rem;
}

/* ===== FEATURES ===== */
.features {
  padding: 80px 0;
}

.feature-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid var(--border-color);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  box-shadow: var(--shadow-soft);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), transparent);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-blue-soft);
  box-shadow: 0 0 24px rgba(74, 144, 164, 0.18);
}

.feature-card h5 {
  color: var(--text-primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.feature-icon {
  font-size: 1.7rem;
  margin-bottom: 12px;
  line-height: 1;
}

/* ===== ABOUT ===== */
.about-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.about-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.about-list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  top: -1px;
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1.2;
}

.contact-card {
  background: linear-gradient(180deg, rgba(21, 48, 66, 0.96), rgba(16, 38, 52, 0.98));
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.about-card-box {
  width: 100%;
  max-width: 360px;
  min-height: 220px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-badge-title {
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-badge-sub {
  color: var(--sand);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ===== FAQ ===== */
.faq-accordion .accordion-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
}

.faq-accordion .accordion-button {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--bg-surface-2);
  color: var(--accent-blue-soft);
}

.faq-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(74, 144, 164, 0.22);
}

.faq-accordion .accordion-button::after {
  filter: invert(1);
}

.faq-accordion .accordion-body {
  color: var(--text-secondary);
  background: rgba(8, 17, 31, 0.56);
}

/* ===== BUTTONS ===== */
.btn-primary-modern {
  background: var(--accent);
  border: 1px solid rgba(248, 251, 252, 0.12);
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(7, 20, 29, 0.16);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary-modern:hover {
  background: var(--accent-hover);
  border-color: rgba(248, 251, 252, 0.14);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(7, 20, 29, 0.18);
}

.btn-primary-modern:focus {
  box-shadow:
    0 0 0 0.16rem rgba(74, 144, 164, 0.14),
    0 6px 16px rgba(7, 20, 29, 0.16);
}

/* ===== LINKS ===== */
a {
  color: var(--accent-blue-soft);
}

a:hover {
  color: #A7D0FF;
}

/* ===== FOOTER ===== */
.landing-footer {
  background: #08111F;
  color: var(--text-secondary);
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.landing-footer p {
  color: var(--text-secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .hero {
    padding: 90px 0 70px;
  }

  .hero-preview-body {
    min-height: 320px;
  }
}

@media (max-width: 767.98px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .hero-preview-body {
    min-height: auto;
    display: block;
  }

  .preview-sidebar {
    display: none;
  }

  .preview-content {
    padding: 18px;
  }

  .preview-stat-row {
    grid-template-columns: 1fr;
  }

  .features {
    padding: 60px 0;
  }

  .about-card-box {
    min-height: auto;
  }
}
