/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'PT Sans', sans-serif;
  font-size: 16px;
  color: #555;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ===== Preloader ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(74, 83, 21);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  will-change: transform;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Navbar ===== */
.navbar {
  background-color: transparent;
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar.navbar-scrolled {
  background-color: #2b2b2b;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar-default .navbar-nav > li > a {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  padding: 22px 16px;
  transition: color 0.2s ease;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: #fff;
  background: transparent;
}

.navbar-default .navbar-toggle {
  border: none;
  background: transparent;
  margin-top: 14px;
  margin-right: 14px !important;
  padding: 8px 10px;
  box-shadow: none;
}

.navbar-default .navbar-toggle .icon-bar {
  background-color: #fff;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  display: block;
}

.navbar-default .navbar-toggle .icon-bar + .icon-bar {
  margin-top: 5px;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background: transparent;
  outline: none;
}

#logo {
  float: left;
  padding: 12px 0;
}

.fixed-logo {
  height: 32px;
  width: auto;
}

/* ===== Header / Hero ===== */
#header {
  position: relative;
  min-height: 100vh;
  background-color: rgb(74, 83, 21);
  display: flex;
  align-items: center;
  overflow: hidden;
}

#header .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 0;
}

.intro-text {
  width: 100%;
}

.intro-lead-in {
  font-family: 'Work Sans', sans-serif;
  font-size: 50px;
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.intro-heading {
  display: block;
  font-family: 'PT Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  line-height: 1.5;
}

.header-buttons {
  margin-bottom: 40px;
}

.primary-button {
  display: inline-block;
  background-color: #fff;
  color: rgb(74, 83, 21);
  font-family: 'Work Sans', sans-serif;
  font-size: 0.875em;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 40px;
  border-radius: 3px;
  border: 1px solid #fff;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.primary-button:hover,
.primary-button:focus {
  background-color: rgb(74, 83, 21);
  color: #fff;
  border-color: #fff;
  text-decoration: none;
}

.header-dashboard {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.dashboard {
  width: 100%;
  display: block;
  filter: drop-shadow(0 -10px 40px rgba(0, 0, 0, 0.35));
}

/* Particles canvas */
#particles-js {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#headerbackground {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: #f7f8fa;
}

.section-heading {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 300;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0;
  margin-bottom: 36px;
  padding-bottom: 14px;
  border-bottom: 3px solid rgb(74, 83, 21);
  display: inline-block;
}

/* ===== Features ===== */
#features p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 14px;
}

#features ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

#features ul li {
  font-size: 15px;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Screenshot carousel */
#screenshot-carousel {
  width: 300px;
  margin: 0 auto;
  background: transparent;
}

#screenshot-carousel .carousel-inner,
#screenshot-carousel .item {
  background: transparent;
}

#screenshot-carousel .item img {
  width: 300px;
  height: 300px;
  object-fit: cover;
}

#screenshot-carousel .carousel-control {
  background: none;
  width: 28px;
}

#screenshot-carousel .carousel-control .glyphicon {
  font-size: 14px;
  top: 50%;
  margin-top: -7px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* App Store badge */
.appstore-wrap {
  margin-top: 20px;
  text-align: center;
}

.appstore-img {
  width: 165px;
  height: 40px;
  display: inline-block;
}

/* ===== Accordion ===== */
.accordion .panel {
  border: none;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid #e0e0e0;
  background: transparent;
}

.accordion .panel:first-child {
  border-top: 1px solid #e0e0e0;
}

.accordion .panel-heading {
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
}

.accordion .panel-title {
  margin: 0;
  font-size: 15px;
}

.accordion-toggle {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
  line-height: 1.4;
}

.accordion-toggle:hover,
.accordion-toggle:focus {
  color: rgb(74, 83, 21);
  background-color: rgba(232, 112, 10, 0.04);
  outline: none;
}

.accordion-toggle[aria-expanded="true"] {
  color: rgb(74, 83, 21);
}

.accordion-icon {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 12px;
  vertical-align: middle;
  flex-shrink: 0;
}

.accordion-icon .icon-bar {
  position: absolute;
  background-color: rgb(74, 83, 21);
  border-radius: 1px;
}

.icon-bar--h {
  width: 14px;
  height: 2px;
  top: 6px;
  left: 0;
}

.icon-bar--v {
  width: 2px;
  height: 14px;
  top: 0;
  left: 6px;
  transition: transform 0.3s ease;
}

.accordion-toggle[aria-expanded="true"] .icon-bar--v {
  transform: rotate(90deg);
}

.accordion .panel-body {
  padding: 10px 20px 24px 50px;
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  overflow: hidden;
}

.tip-img {
  float: right;
  max-width: 300px;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 0 16px 24px;
  border-radius: 6px;
}

/* ===== Footer ===== */
#footer {
  background-color: rgb(74, 83, 21);
  padding: 24px 0;
}

.lower-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.lower-footer span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Work Sans', sans-serif;
}

#social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  margin-left: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

#social-icons a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .tip-img {
    float: none;
    display: block;
    margin: 0 auto 16px;
    max-width: 100%;
  }

  .accordion .panel-body {
    padding-left: 20px;
  }
}

@media (max-width: 767px) {
  .navbar-default .navbar-collapse {
    background-color: #2b2b2b;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .section {
    padding: 60px 0;
  }

  #screenshot-carousel {
    width: 260px;
  }

  #screenshot-carousel .item img {
    width: 260px;
    height: 260px;
  }

  .lower-footer {
    flex-direction: column;
    text-align: center;
  }

  #social-icons {
    margin-top: 8px;
  }

  #social-icons a:first-child {
    margin-left: 0;
  }
}
