/* CSS Reset & Roots */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Typography */
  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Premium Vibrant Light Theme Colors (CropSort Based) */
  --bg-gradient: linear-gradient(135deg,
            rgba(200, 255, 255, 0.8) 0%,
            rgba(230, 200, 255, 0.6) 25%,
            rgba(255, 255, 255, 0.9) 50%,
            rgba(255, 220, 180, 0.6) 75%,
            rgba(200, 255, 200, 0.5) 100%);
  --color-bg-fallback: #f8fafc;
  --color-text-main: #1a1a2e;
  --color-text-secondary: #4a4a6a;
  --color-text-muted: #7a7a9a;
  --color-highlight: #4A90E2;
  
  /* Buttons & Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --btn-primary: #7c8ce0;
  --btn-hover: #6b7cd0;
  
  --gradient-glass: rgba(255, 255, 255, 0.95);
  --gradient-glass-hover: #ffffff;
  --border-glass: #e8e8f0;
  
  /* Shadows */
  --shadow-glass: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 15px rgba(124, 140, 224, 0.4);
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background: var(--bg-gradient);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* ==================================
   Background Magic (Mapped from CropSort)
================================== */
.bg-animated {
  display: none;
}

/* Hide the old animated shapes, not needed for cropsort style */
.bg-shape { display: none; }
.shape-1 { display: none; }
.shape-2 { display: none; }
.shape-3 { display: none; }

.glass-overlay { display: none; }

/* ==================================
   Reusable Glassmorphism Panel
================================== */
.glass-card {
  background: var(--gradient-glass);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==================================
   Header & Navbar
================================== */
.navbar {
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--color-text-main);
}

.logo .highlight {
  color: var(--color-highlight);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-highlight);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ==================================
   Main Layout Container
================================== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: calc(100vh - 80px);
}

/* ==================================
   Hero Section
================================== */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  margin-top: 4rem;
}

.full-width-header {
  grid-column: 1 / -1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.full-width-header .hero-subtitle {
  margin-bottom: 0;
  max-width: 800px;
}

.hero-title {
  font-size: 3.8rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 90%;
}

.hero-list {
  list-style: none;
  margin-bottom: 3rem;
  display: grid;
  gap: 1rem;
}

.hero-list li {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
  font-weight: 500;
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(0, 119, 255, 0.1);
  color: var(--color-highlight);
  border-radius: 50%;
  margin-right: 14px;
  flex-shrink: 0;
}

.hero-image-wrapper {
  margin-top: 2rem;
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  transform: perspective(1000px) rotateY(4deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: #fff;
}

.hero-image-wrapper:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ==================================
   Login Card
================================== */
.login-card-wrapper {
  perspective: 1000px;
}

.login-card {
  padding: 3rem;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.card-title {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  font-weight: 700;
  text-align: center;
  color: #0f172a;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group input {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  color: #0f172a;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-group input::placeholder {
  color: #94a3b8;
}

.input-group input:focus {
  outline: none;
  border-color: var(--color-highlight);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--color-highlight), 0 0 15px rgba(0, 119, 255, 0.15);
}

.btn {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1rem;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--btn-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(124, 140, 224, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(124, 140, 224, 0.4);
  background: var(--btn-hover);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-text-main);
  border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: var(--color-highlight);
  color: var(--color-highlight);
}

.register-text {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
}

.register-link {
  color: var(--color-highlight);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
}

.register-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ==================================
   Features Section
================================== */
.features-section {
  margin-top: 8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  background: rgba(255, 255, 255, 0.7);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.95);
}

.icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.bg-gradient-magenta { background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), transparent); }
.bg-gradient-blue { background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), transparent); }
.bg-gradient-green { background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), transparent); }

.feature-card h4 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: #0f172a;
}

.feature-card p {
  color: var(--color-text-muted);
}

/* ==================================
   Process Section
================================== */
.process-section {
  margin-top: 8rem;
}

.process-container {
  padding: 4rem 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 3.5rem;
  font-weight: 800;
  color: #0f172a;
}

.process-steps {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 25%;
}

.step-icon {
  width: 90px;
  height: 90px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
}

.step:hover .step-icon {
  transform: scale(1.15);
}

.step:hover .glow-magenta { border-color: #ec4899; box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3); }
.step:hover .glow-blue { border-color: #3b82f6; box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3); }
.step:hover .glow-green { border-color: #10b981; box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3); }

.step p {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text-main);
}

.step-arrow {
  color: #94a3b8;
}

.pulsating {
  animation: pulse-arrow 2s infinite ease-in-out;
}
.delay-1 {
  animation-delay: 1s;
}

@keyframes pulse-arrow {
  0%, 100% { transform: translateX(0); color: #94a3b8; }
  50% { transform: translateX(10px); color: var(--color-highlight); }
}

/* ==================================
   About Section
================================== */
.about-section {
  margin-top: 8rem;
  margin-bottom: 6rem;
}

.about-card {
  padding: 5rem 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.7);
}

.about-card p {
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--color-text-muted);
}

/* ==================================
   Footer
================================== */
.footer {
  padding: 0 2rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-card {
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
}

.footer p {
  color: #64748b;
  font-size: 0.95rem;
}

/* ==================================
   Animations Utility
================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* ==================================
   Responsive Design
================================== */
@media (max-width: 968px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    margin: 0 auto 2rem auto;
  }
  
  .hero-list {
    text-align: left;
    max-width: 300px;
    margin: 0 auto 3rem auto;
  }
  
  .login-card {
    margin-top: 2rem;
  }

  .process-steps {
    flex-direction: column;
    gap: 2.5rem;
  }

  .step {
    width: 100%;
  }

  .step-arrow {
    transform: rotate(90deg);
  }
  
  @keyframes pulse-arrow {
    0%, 100% { transform: translateY(0) rotate(90deg); color: #94a3b8; }
    50% { transform: translateY(10px) rotate(90deg); color: var(--color-highlight); }
  }

  .hidden-mobile {
    display: none;
  }

  .mobile-menu-icon {
    display: block !important;
    cursor: pointer;
    color: var(--color-text-main);
  }
}

/* ==================================
   Pricing Section
================================== */
.pricing-section {
  max-width: 1100px;
  margin: 2rem auto 2rem;
  text-align: center;
}

.pricing-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  margin-top: 3rem;
  padding: 0 1rem;
}

.pricing-card {
  flex: 1;
  min-width: 300px;
  background: white;
  border: 1px solid #e2e8f0;
  padding: 2.5rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.starter {
  border-radius: 12px 0 0 12px;
}

.pricing-card.advance {
  border-radius: 0 12px 12px 0;
}

.pricing-card.selected {
  border: 2px solid #0ea5e9;
  border-radius: 4px;
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  padding-top: 3rem;
}

.best-value-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #0ea5e9;
  color: white;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 0;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.pricing-card.selected h3 {
  color: #0ea5e9;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.pricing-card.selected .pricing-price {
  color: #0ea5e9;
}

.pricing-currency {
  font-size: 1.5rem;
  margin-right: 0.2rem;
}

.pricing-period {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.pricing-tax {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-left: 0.3rem;
}

.pricing-card.selected .pricing-period,
.pricing-card.selected .pricing-tax {
  color: #0ea5e9;
}

.billed-annually {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  margin-top: 0.5rem;
}

.pricing-card.selected .billed-annually {
  color: #0ea5e9;
}

.client-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  font-weight: 700;
  color: #0f172a;
}

.stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #0ea5e9;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.stepper-btn:hover {
  opacity: 0.9;
}

.stepper-btn.minus {
  background: #bae6fd;
  color: white;
}

.stepper-value {
  width: 40px;
  text-align: center;
  font-size: 1.1rem;
}

.btn-buy {
  background: #333333;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-bottom: 2rem;
  text-transform: uppercase;
  transition: background 0.2s;
}

.btn-buy:hover {
  background: #1f2937;
}

.pricing-card.selected .btn-buy {
  background: #0ea5e9;
}

.pricing-card.selected .btn-buy:hover {
  background: #0284c7;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.pricing-features li {
  margin-bottom: 1rem;
  color: #334155;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-features li::before {
  content: '✓';
  color: #0ea5e9;
  font-weight: bold;
}

@media (max-width: 900px) {
  .pricing-cards {
    flex-direction: column;
    gap: 2rem;
  }
  .pricing-card.starter, .pricing-card.advance {
    border-radius: 12px;
  }
  .pricing-card.selected {
    transform: none;
  }
}

.pricing-card .btn-buy {
  display: none;
}

.pricing-card.selected .btn-buy {
  display: block;
}

.best-value-badge {
  display: none;
}

.pricing-card.selected .best-value-badge {
  display: block;
}

.pricing-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.original-price {
  font-size: 1.5rem;
  color: #ef4444;
  text-decoration: line-through;
  text-decoration-color: #ef4444;
  text-decoration-thickness: 2px;
  font-weight: 600;
  margin-bottom: 0.2rem;
  display: flex;
  justify-content: center;
}

.pricing-price .asterisk {
  font-size: 1.5rem;
  color: inherit;
  vertical-align: super;
}
