/* ========================================
   CSS Variables & Reset
======================================== */
:root {
  --primary: #B8956A;
  --primary-dark: #A07D4F;
  --accent: #FF8C42;
  --accent-dark: #E67A30;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --purple-100: #f3e8ff;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --emerald-100: #d1fae5;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --violet-500: #8b5cf6;
  --violet-700: #6d28d9;
  --orange-100: #ffedd5;
  --orange-600: #ea580c;
  --pink-100: #fce7f3;
  --pink-600: #db2777;
  --indigo-100: #e0e7ff;
  --indigo-600: #4f46e5;
  --teal-100: #ccfbf1;
  --teal-600: #0d9488;
  --amber-100: #fef3c7;
  --amber-600: #d97706;
  --radius: 0.65rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   Utility Classes
======================================== */
.min-h-screen {
  min-height: 100vh;
}

.bg-white {
  background-color: var(--white);
}

.text-center {
  text-align: center;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  max-width: 1280px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ========================================
   Buttons
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background-color: var(--gray-100);
}

.btn-lg {
  font-size: 1.125rem;
  padding: 1rem 2rem;
}

.btn-full {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
}

/* ========================================
   Popup
======================================== */
.popup-container {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.popup-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}

.popup-content {
  position: relative;
  width: 100%;
  max-width: 56rem;
  height: 90vh;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
  overflow: hidden;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: background 0.2s;
}

.popup-close:hover {
  background: var(--white);
}

/* ========================================
   Navigation
======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 5rem;
  width: 5rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border-radius: 9999px;
  padding: 0.25rem;
}

.lang-btn {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  color: var(--gray-700);
}

.lang-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.mobile-menu.open {
  display: flex;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ========================================
   Hero Section
======================================== */
.hero {
  padding: 10rem 1.5rem 6rem;
}

.hero-content {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 3rem;
}

.badge {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(to right, rgba(184, 149, 106, 0.1), rgba(255, 140, 66, 0.1));
  border-radius: 9999px;
  border: 1px solid rgba(184, 149, 106, 0.2);
  color: var(--primary);
  font-weight: 600;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-description {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-sub-cta {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 1rem;
}

.hero-image-wrapper {
  max-width: 64rem;
  margin: 0 auto;
}

.hero-image-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 8px solid var(--gray-100);
}

.hero-image {
  width: 100%;
  display: block;
}

/* ========================================
   Integrations Section
======================================== */
.integrations {
  padding: 4rem 1.5rem;
  background: var(--gray-50);
}

.integrations-text {
  color: var(--gray-600);
  margin-bottom: 2rem;
  font-weight: 500;
}

.integrations-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  opacity: 0.6;
}

.integration-icon {
  width: 3rem;
  height: 3rem;
}

/* ========================================
   Section Styles
======================================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-description {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 48rem;
  margin: 0 auto;
}

/* ========================================
   Challenge Section
======================================== */
.challenge {
  padding: 5rem 1.5rem;
}

/* ========================================
   Cards
======================================== */
.cards-grid-3 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cards-grid-2 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cards-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cards-grid-4 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon.gray {
  background: var(--gray-100);
  color: var(--gray-700);
}

.card-icon.purple {
  background: var(--purple-100);
  color: var(--purple-600);
}

.card-icon.emerald {
  background: var(--emerald-100);
  color: var(--emerald-600);
}

.card-icon.blue {
  background: var(--blue-100);
  color: var(--blue-600);
}

.card-icon.orange {
  background: var(--orange-100);
  color: var(--orange-600);
}

.card-icon.pink {
  background: var(--pink-100);
  color: var(--pink-600);
}

.card-icon.indigo {
  background: var(--indigo-100);
  color: var(--indigo-600);
}

.card-icon.teal {
  background: var(--teal-100);
  color: var(--teal-600);
}

.card-icon.amber {
  background: var(--amber-100);
  color: var(--amber-600);
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.card-title-sm {
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--gray-600);
}

.card-description-sm {
  color: var(--gray-600);
  font-size: 0.875rem;
}

/* ========================================
   Solution Section
======================================== */
.solution {
  padding: 5rem 1.5rem;
  background: linear-gradient(to bottom right, var(--gray-50), var(--white));
}

.feature-card {
  padding: 2rem;
  border-radius: var(--radius);
  color: var(--white);
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: scale(1.02);
}

.feature-card.purple {
  background: linear-gradient(to bottom right, var(--purple-500), var(--purple-700));
}

.feature-card.emerald {
  background: linear-gradient(to bottom right, var(--emerald-500), var(--emerald-700));
}

.feature-card.blue {
  background: linear-gradient(to bottom right, var(--blue-500), var(--blue-700));
}

.feature-card.violet {
  background: linear-gradient(to bottom right, var(--violet-500), var(--violet-700));
}

.feature-image {
  margin-bottom: 1.5rem;
}

.feature-image img {
  width: 100%;
  border-radius: var(--radius);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-description {
  opacity: 0.9;
}

/* ========================================
   Use Cases Section
======================================== */
.use-cases {
  padding: 5rem 1.5rem;
}

/* ========================================
   Features List Section
======================================== */
.features-list {
  padding: 5rem 1.5rem;
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.feature-item:hover {
  background: var(--white);
}

.feature-item-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background: rgba(184, 149, 106, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.feature-item-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature-item-title {
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.feature-item-desc {
  color: var(--gray-600);
}

/* ========================================
   Modular Section
======================================== */
.modular {
  padding: 5rem 1.5rem;
  background: linear-gradient(to bottom right, rgba(184, 149, 106, 0.05), rgba(255, 140, 66, 0.05));
}

.modular-content {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.modular-description {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.modular-steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .modular-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.modular-step {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.step-number {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-number.gold {
  color: var(--primary);
}

.step-number.orange {
  color: var(--accent);
}

.step-title {
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.step-desc {
  color: var(--gray-600);
}

/* ========================================
   Pricing Section
======================================== */
.pricing {
  padding: 5rem 1.5rem;
}

.pricing-card-wrapper {
  max-width: 28rem;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  padding: 2rem;
  background: linear-gradient(to bottom right, rgba(184, 149, 106, 0.1), rgba(255, 140, 66, 0.1));
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
}

.pricing-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-header {
  margin-bottom: 1.5rem;
}

.pricing-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.pricing-desc {
  color: var(--gray-600);
}

.pricing-amount {
  margin-bottom: 0.5rem;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gray-900);
}

.period {
  color: var(--gray-600);
}

.early-bird {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
}

.regular-price {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-decoration: line-through;
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.pricing-features li svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.pricing-sub-cta {
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 1rem;
}

/* ========================================
   CTA Section
======================================== */
.cta-section {
  padding: 5rem 1.5rem;
  background: linear-gradient(to bottom right, var(--primary), var(--primary-dark));
  color: var(--white);
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 2.25rem;
  }
}

.cta-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-subtext {
  font-size: 0.875rem;
  margin-top: 1rem;
  opacity: 0.8;
}

/* ========================================
   Footer
======================================== */
.footer {
  padding: 3rem 1.5rem;
  background: var(--gray-900);
  color: var(--white);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo .logo-img {
  height: 5rem;
  width: 5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
  text-align: center;
  color: var(--gray-400);
  font-size: 0.875rem;
}

.company-info {
  margin-top: 1rem;
  color: var(--gray-500);
  font-size: 0.75rem;
}

/* ========================================
   Animations
======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out;
}

/* ========================================
   Gradient Text
======================================== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
