/* ===== COLOR VARIABLES ===== */
:root {
  --primary-green: #145c3a;
  --primary-green-dark: #0d3c27;
  --primary-green-light: #f0f7f3;
  --accent-orange: #f39c12;
  --accent-orange-dark: #e67e22;
  --accent-orange-light: #fff5e6;
  --text-dark: #1a1a1a;
  --text-muted: #5f6368;
  --bg-light: #f8faf9;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
}

/* ===== BASE STYLES ===== */
*, ::before, ::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  padding-right: 20px;
  padding-left: 20px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

/* ===== NAVIGATION ===== */
.landing-nav {
  position: sticky;
  padding: 12px 0;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

@media (min-width: 992px) {
  .landing-nav {
    backdrop-filter: blur(15px);
  }
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.logo {
  flex-shrink: 1;
  min-width: 0;
  position: relative;
  z-index: 1002;
}

.logo img {
  height: 38px;
  width: auto;
  max-width: 100%;
  display: block;
}

@media (max-width: 768px) {
  .logo img { height: 28px; }
}

@media (max-width: 480px) {
  .logo img { height: 24px; }
  .nav-inner { gap: 10px; }
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-link {
  margin: 0 12px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  font-size: 14px;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--primary-green);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width 0.3s ease;
}

@media (min-width: 992px) {
  .nav-link:hover::after {
    width: 100%;
  }
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 35px;
  left: 0;
  display: none;
  background: var(--white);
  padding: 30px;
  width: 700px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  gap: 30px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  pointer-events: none;
  z-index: 9999;
  border: 1px solid rgba(0,0,0,0.05);
}

@media (min-width: 992px) {
  .nav-item.dropdown:hover .mega-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.menu-column {
  flex: 1;
}

.menu-column h4 {
  margin-bottom: 15px;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.menu-column a {
  display: block;
  margin-bottom: 4px;
  color: var(--text-dark);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.menu-column a:hover {
  background: var(--primary-green-light);
  color: var(--primary-green);
  transform: translateX(5px);
}

.menu-column.highlight {
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-orange);
}

.menu-column.highlight p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

/* ===== MOBILE MENU TOGGLE ===== */
.menu-toggle {
  width: 44px; /* Increased hit area */
  height: 44px; /* Increased hit area */
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 1005; /* Above everything */
  background: transparent;
  border: none;
  padding: 0;
  flex-shrink: 0;
  margin-right: -10px; /* Offset the larger hit area */
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--primary-green);
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== NAVIGATION ACTIONS ===== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions-mobile-bar {
  display: none;
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 60px 0 80px;
  background: radial-gradient(circle at 70% 20%, var(--primary-green-light) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1.2;
}

.hero-text h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
  letter-spacing: -1.5px;
  color: #0f2419;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-green), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  margin-bottom: 35px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
}

/* Hero Visual - Workflow Visualization */
.hero-visual {
  flex: 1;
  position: relative;
  width: 100%;
}

.workflow-container {
  background: var(--white);
  padding: 40px 25px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.05);
  width: 100%;
  position: relative;
  overflow: visible;
}

.workflow-viz {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
  z-index: 2;
  transition: all 0.4s ease;
}

.step-icon {
  width: 54px;
  height: 54px;
  background: var(--bg-light);
  color: var(--primary-green);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
}

.step-label {
  font-weight: 700;
  font-size: 12px;
  color: var(--text-dark);
  text-align: center;
  white-space: nowrap;
}

.workflow-connector {
  flex: 0.6;
  height: 2px;
  position: relative;
  margin: 0 -5px;
  transform: translateY(-12px);
}

.connector-line {
  width: 100%;
  height: 100%;
  background: #edf2f0;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.connector-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
  animation: flow-progress 2s infinite linear;
}

@keyframes flow-progress {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Step Animations */
.workflow-step {
  animation: step-highlight 10s infinite;
}

@keyframes step-highlight {
  0%, 15%, 100% { transform: translateY(0); }
  5%, 10% { transform: translateY(-8px); }
}

.workflow-step:nth-child(1) { animation-delay: 0s; }
.workflow-step:nth-child(3) { animation-delay: 2s; }
.workflow-step:nth-child(5) { animation-delay: 4s; }
.workflow-step:nth-child(7) { animation-delay: 6s; }
.workflow-step:nth-child(9) { animation-delay: 8s; }

/* Icon Pulse matching the highlight */
.workflow-step .step-icon {
  animation: icon-pulse 10s infinite;
}

.workflow-step:nth-child(1) .step-icon { animation-delay: 0s; }
.workflow-step:nth-child(3) .step-icon { animation-delay: 2s; }
.workflow-step:nth-child(5) .step-icon { animation-delay: 4s; }
.workflow-step:nth-child(7) .step-icon { animation-delay: 6s; }
.workflow-step:nth-child(9) .step-icon { animation-delay: 8s; }

@keyframes icon-pulse {
  0%, 15%, 100% { background: var(--bg-light); color: var(--primary-green); box-shadow: var(--shadow-sm); }
  5%, 10% { background: var(--white); color: var(--accent-orange); border-color: var(--accent-orange); box-shadow: 0 10px 25px rgba(243, 156, 18, 0.2); }
}

/* Connector delays */
.workflow-connector:nth-child(2) .connector-line::after { animation-delay: 1s; }
.workflow-connector:nth-child(4) .connector-line::after { animation-delay: 3s; }
.workflow-connector:nth-child(6) .connector-line::after { animation-delay: 5s; }
.workflow-connector:nth-child(8) .connector-line::after { animation-delay: 7s; }

/* Floating Accents */
.workflow-accent {
  position: absolute;
  width: 100px;
  height: 100px;
  background: var(--primary-green);
  opacity: 0.03;
  filter: blur(40px);
  border-radius: 50%;
  z-index: 1;
}

.accent-1 { top: -20px; left: -20px; }
.accent-2 { bottom: -20px; right: -20px; }

/* ===== FEATURES SECTION ===== */
.features {
  padding: 100px 0;
  background: var(--bg-light);
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 50px;
  letter-spacing: -1px;
  color: #0f2419;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  padding: 40px 30px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: rgba(243, 156, 18, 0.2);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-orange-light);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 20px;
  font-size: 24px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--accent-orange);
  color: var(--white);
  transform: scale(1.1) rotate(8deg);
}

.feature-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ===== PRODUCT PREVIEW ===== */
.product-preview {
  padding: 100px 0;
  background: var(--white);
}

.preview-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.preview-glow {
  position: absolute;
  inset: -15px;
  background: var(--primary-green);
  opacity: 0.12;
  filter: blur(50px);
  border-radius: var(--radius-lg);
  z-index: 1;
}

.preview-card {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--white);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.preview-card:hover {
  transform: scale(1.02) translateY(-5px);
}

.preview-card img {
  width: 100%;
  display: block;
}

/* ===== CTA SECTION ===== */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 20px;
}

.cta p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 35px;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 14px 28px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: inline-block;
  text-decoration: none;
  font-size: 15px;
  border: none;
  cursor: pointer;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn-primary {
  background: var(--accent-orange);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(243, 156, 18, 0.25);
}

.btn-primary:hover {
  background: var(--accent-orange-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(243, 156, 18, 0.35);
  color: var(--white);
}

.btn-login {
  background: transparent;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
}

.btn-login:hover {
  background: var(--primary-green);
  color: var(--white);
  transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.footer {
  padding: 80px 0 40px;
  background: #08120d;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}

.footer h4 {
  color: var(--accent-orange);
  font-weight: 800;
  margin-bottom: 20px;
}

.footer h5 {
  font-weight: 700;
  margin-bottom: 25px;
  font-size: 16px;
}

.footer a {
  color: #9aa0a6;
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
  transition: all 0.2s;
  font-weight: 500;
  font-size: 14px;
}

.footer a:hover {
  color: var(--white);
  transform: translateX(5px);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .hero-text h1 { font-size: 48px; }
  .hero-grid { gap: 40px; }
  .footer-grid { gap: 40px; }
}

@media (max-width: 991px) {
  .menu-toggle { 
    display: flex !important; 
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    padding: 65px 24px 40px; /* Reduced top padding to 65px to start menu items higher */
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.4s;
    z-index: 1004;
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
  }
  
  .nav-links.show {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 14px 0; /* Slightly reduced vertical padding */
    margin: 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 18px;
  }

  .nav-link::after { display: none; }

  .nav-item.dropdown { 
    width: 100%; 
    border-bottom: 1px solid #f5f5f5;
  }
  
  .nav-item.dropdown .nav-link {
    border-bottom: none;
  }
  
  .nav-item.dropdown .nav-link::after {
    content: " \f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 10px;
    display: inline-block;
  }

  .mega-menu {
    position: static;
    width: 100%;
    display: none;
    opacity: 1;
    transform: none;
    box-shadow: none;
    padding: 10px 20px;
    flex-direction: column;
    gap: 15px;
    background: var(--bg-light);
    pointer-events: auto;
    border: none;
    border-radius: var(--radius-sm);
    margin: 5px 0 15px;
  }

  .mega-menu.show {
    display: flex;
  }

  .menu-column { width: 100%; }
  .menu-column h4 { margin-top: 10px; }
  .menu-column a { padding: 10px 0; }
  
  .menu-column.highlight {
    border-left: none;
    border-top: 4px solid var(--accent-orange);
    margin-top: 10px;
  }

  .nav-actions { display: none !important; }
  
  .nav-actions-mobile {
    display: block !important;
    width: 100%;
    margin-top: 30px;
  }
  
  .nav-actions-mobile .btn {
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
  }

  /* Hero adjustments */
  .hero { padding: 40px 0 60px; text-align: center; }
  .hero-grid { flex-direction: column; gap: 50px; }
  .hero-text h1 { font-size: 42px; margin-bottom: 20px; }
  .hero-text p { font-size: 17px; margin-bottom: 30px; }
  .hero-actions { display: flex; flex-direction: column; gap: 15px; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; }

  /* Features */
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .section-title { font-size: 32px; margin-bottom: 40px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer a:hover { transform: translateY(-3px); }
}

@media (max-width: 768px) {
  .hero-text h1 { font-size: 36px; letter-spacing: -1px; }
  .features-grid { grid-template-columns: 1fr; }
  .cta h2 { font-size: 32px; }
  .cta p { font-size: 16px; }
  .cta { padding: 70px 0; }
  
  .workflow-viz { flex-direction: column; gap: 15px; }
  .workflow-connector {
    width: 2px;
    height: 30px;
    margin: -10px 0;
    transform: none;
  }
  .connector-line { width: 2px; height: 100%; }
  .connector-line::after {
    width: 100%;
    height: 100%;
    top: -100%;
    left: 0;
    background: linear-gradient(180deg, transparent, var(--accent-orange), transparent);
    animation: flow-progress-vertical 2s infinite linear;
  }
}

@keyframes flow-progress-vertical {
  0% { top: -100%; }
  100% { top: 100%; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 32px; }
  .section-title { font-size: 28px; }
  .container { padding-right: 15px; padding-left: 15px; }
  .feature-card { padding: 30px 20px; }
  .btn { width: 100%; }
}
