/* ===== CSS Variables ===== */
:root { 
  --primary-color: #0b5443; 
  --secondary-color: #b28e03; 
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Font Awesome icon fix */
.fa, .fas, .far, .fal, .fab {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ===== Background & floating icons ===== */
.hero-bg {
  position: relative;
  background: linear-gradient(135deg, rgba(11,84,67,.02) 0%, #fff 50%, rgba(178,142,3,.02) 100%);
}

.bg-pattern {
  position: absolute;
  inset: 0;
  opacity: .02;
  background-image: 
    repeating-linear-gradient(45deg, var(--primary-color) 0, var(--primary-color) 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, var(--primary-color) 0, var(--primary-color) 1px, transparent 0, transparent 50%);
  background-size: 30px 30px;
  z-index: 0;
}

.float-element {
  position: absolute;
  opacity: .06;
  z-index: 1;
  pointer-events: none;
}

.leaf-icon {
  font-size: 3rem;
  color: #22c55e;
  animation: floatSlow 8s ease-in-out infinite;
}

.signal-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  animation: floatSlow 10s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Navbar ===== */
.navbar {
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  padding: 1.2rem 0;
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-full {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.app-text-logo {
  width: 180px;
  height: auto;
  object-fit: contain;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Hero Section ===== */
.hero-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
}

.content-wrapper {
  position: relative;
  z-index: 2;
}

.badge-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(11,84,67,.08), rgba(178,142,3,.08));
  color: var(--primary-color);
  padding: .5rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: .875rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(11,84,67,.15);
}

.main-heading {
  font-size: clamp(2.2rem, 4vw, 3.75rem);
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.subheading {
  font-size: 1.125rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  max-width: 600px;
  font-weight: 400;
}

.highlight {
  color: var(--secondary-color);
  font-weight: 700;
}

/* ===== Feature Pills ===== */
.feature-pills {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  padding: .7rem 1.3rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: .875rem;
  border: 1.5px solid #e2e8f0;
  color: var(--primary-color);
  transition: .3s;
}

.feature-pill:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11,84,67,.15);
}

.feature-pill i {
  color: var(--secondary-color);
}

/* ===== Countdown Timer ===== */
.countdown-container {
  display: flex;
  gap: 1.25rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.countdown-item {
  text-align: center;
  background: #fff;
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
  min-width: 110px;
  border: 1px solid #e2e8f0;
  transition: .3s;
  box-shadow: none;
}

.countdown-number {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  line-height: 1;
}

.countdown-label {
  font-size: .8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: .5rem;
  font-weight: 600;
}

/* ===== Email Subscription Form ===== */
.email-form {
  max-width: 550px;
  margin: 1.5rem 0;
}

.email-form .form-group {
  margin-bottom: 12px;
}

.email-input {
  width: 100%;
  padding: 16px 20px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: .3s;
  background: #fff;
}

.email-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(11,84,67,.08);
  outline: none;
}

.btn-subscribe {
  background: var(--secondary-color);
  color: #fff;
  padding: 13px 32px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  transition: .3s;
  box-shadow: 0 4px 14px rgba(178,142,3,.25);
  margin-top: 6px;
  cursor: pointer;
}

.btn-subscribe:hover {
  background: #d4a800;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(178,142,3,.35);
}

/* ===== Phone Mockup ===== */
.visual-wrapper {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
}

.phone-mockup {
  width: 300px;
  height: 620px;
  margin: 0 auto 3rem;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-25px); }
}

.phone-frame {
  width: 100%;
  height: 100%;
  background: #1f2937;
  border-radius: 50px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.1);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 30px;
  background: #1f2937;
  border-radius: 0 0 20px 20px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0d6b54 100%);
  position: relative;
}

.phone-screen.has-bg {
  background: 
    linear-gradient(135deg, rgba(11,84,67,.85) 0%, rgba(13,107,84,.65) 40%),
    center/cover no-repeat url('../assets/mobile-bg.jpg');
}

.screen-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  color: #fff;
  text-align: center;
}

.app-icon {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.app-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.2));
  border-radius: 18px;
}

.app-name {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: .5rem;
  letter-spacing: .05em;
}

.app-tagline {
  font-size: .95rem;
  opacity: .9;
  font-weight: 400;
  margin-bottom: 2rem;
}

/* ===== Dashboard Preview Deck ===== */
.dash-dock-section {
  padding: 2rem 0 0;
}

.dash-dock {
  max-width: 1100px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.deck-switch {
  position: relative;
  z-index: 5;
  display: inline-flex;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.deck-switch button {
  all: unset;
  cursor: pointer;
  padding: .6rem 1rem;
  font-weight: 800;
  color: #64748b;
  transition: all .3s ease;
}

.deck-switch button[aria-selected="true"] {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
}

.deck {
  display: grid;
  grid-template-areas: 'stack';
  position: relative;
  width: 100%;
  height: auto;
  perspective: 1200px;
}

.deck-card {
  position: relative;
  grid-area: stack;
  background: #fff;
  border-radius: 28px;
  border: 1px solid rgba(11,84,67,.08);
  box-shadow: 0 30px 80px rgba(0,0,0,.12);
  padding: 2rem;
  transform-origin: center;
  transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .4s ease, filter .4s ease;
  overflow: hidden;
}

.deck-card[data-pos="left"] {
  position: absolute;
  inset: 0;
  transform: translateX(-10%) rotateY(12deg) scale(.94);
  filter: blur(1px);
  opacity: .001;
  pointer-events: none;
}

.deck-card[data-pos="right"] {
  position: absolute;
  inset: 0;
  transform: translateX(10%) rotateY(-12deg) scale(.94);
  filter: blur(1px);
  opacity: .001;
  pointer-events: none;
}

.deck-card[data-pos="center"] {
  transform: none;
  opacity: 1;
}

.deck-footer {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: background .3s ease;
}

.dot[aria-current="true"] {
  background: var(--secondary-color);
}

/* ===== Card Headers ===== */
.card-header-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid transparent;
  background: linear-gradient(#fff,#fff) padding-box, 
              linear-gradient(90deg, var(--primary-color), var(--secondary-color)) border-box;
  border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color), transparent) 1;
}

.card-title-custom {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: .75rem;
  letter-spacing: -.02em;
}

/* ===== Fleet Value Bubbles ===== */
.value-bubbles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bubble {
  border: 2px solid rgba(11,84,67,.08);
  border-radius: 20px;
  padding: 1.25rem;
  background: #fff;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.bubble:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(11,84,67,.12);
  border-color: rgba(11,84,67,.18);
}

.kpi-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(11,84,67,.07);
  padding: .35rem .7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.bubble-num {
  margin: .5rem 0 .25rem;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--primary-color);
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  line-height: 1;
}

.bubble-sub {
  font-size: .85rem;
  color: #64748b;
}

/* ===== Capability Chips ===== */
.capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .25rem;
  margin-bottom: .75rem;
  justify-content: center;
}

.capability-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  padding: .55rem .9rem;
  background: #fff;
  color: var(--primary-color);
  font-weight: 700;
  font-size: .85rem;
  transition: .25s;
}

.capability-chip:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* ===== Install Strip ===== */
.install-strip {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .8rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11,84,67,.06), rgba(178,142,3,.06));
  border: 1px solid rgba(11,84,67,.12);
}

.install-strip span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #334155;
  font-weight: 700;
  font-size: .85rem;
}

/* ===== Rental Value Grid ===== */
.rental-value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.value-node {
  background: #fff;
  border: 2px solid rgba(11,84,67,.08);
  border-radius: 20px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: .35s ease;
}

.value-node:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(11,84,67,.18);
  border-color: rgba(11,84,67,.18);
}

.node-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 8px 22px rgba(11,84,67,.35);
}

.node-title {
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: .35rem;
  font-size: 1rem;
}

.node-desc {
  font-size: .85rem;
  color: #64748b;
  line-height: 1.45;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .phone-mockup {
    width: 260px;
    height: 540px;
  }
  
  .rental-value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .deck {
    min-height: 520px;
  }
  
  .deck-card {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .countdown-container {
    gap: 1rem;
  }
  
  .countdown-item {
    min-width: 85px;
    padding: 1.3rem 1rem;
  }
  
  .countdown-number {
    font-size: 2rem;
  }
  
  .visual-wrapper {
    margin-top: 3rem;
  }
  
  .phone-mockup {
    width: 240px;
    height: 500px;
  }
  
  .feature-pills {
    gap: .75rem;
  }
  
  .value-bubbles {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
}

@media (max-width: 576px) {
  .rental-value-grid {
    grid-template-columns: 1fr;
  }
}