/* ==================== BASE STYLES ==================== */
:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --secondary: #00d9ff;
  --accent: #10b981;
  --bg-dark: #0a0a1a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-secondary: linear-gradient(135deg, #00d9ff 0%, #4f46e5 100%);
  --gradient-accent: linear-gradient(135deg, #10b981 0%, #00d9ff 100%);
  --shadow-glow: 0 0 60px rgba(79, 70, 229, 0.3);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 26, 0.95);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: "Outfit", sans-serif;
}

.logo-icon {
  color: var(--secondary);
  font-size: 1.2rem;
}

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

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

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-secondary);
  transition: var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switcher {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border);
}

.lang-btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--primary);
  color: var(--text);
}

.lang-btn:hover:not(.active) {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--primary);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(79, 70, 229, 0.15) 0%,
    transparent 60%
  );
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 1;
  padding-left: 24px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
}

.hero-title span {
  display: block;
}

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

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.device-mockup {
  position: relative;
  width: 380px;
  height: 280px;
  background: linear-gradient(145deg, #1a1a2e 0%, #0f0f1a 100%);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: var(--transition);
}

.device-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.device-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-radius: 12px;
  overflow: hidden;
}

.dashboard-preview {
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dash-header {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.dash-stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.dash-stat.online {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.stat-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.dash-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 0;
}

.chart-bar {
  flex: 1;
  height: var(--height);
  background: linear-gradient(
    180deg,
    var(--primary) 0%,
    rgba(79, 70, 229, 0.3) 100%
  );
  border-radius: 4px 4px 0 0;
  transition: var(--transition);
}

.chart-bar.active {
  background: linear-gradient(
    180deg,
    var(--secondary) 0%,
    rgba(0, 217, 255, 0.3) 100%
  );
}

.device-glow {
  position: absolute;
  inset: -50px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(79, 70, 229, 0.2) 0%,
    transparent 60%
  );
  z-index: -1;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* ==================== STATS BAR ==================== */
.stats-bar {
  background: linear-gradient(
    180deg,
    rgba(79, 70, 229, 0.1) 0%,
    transparent 100%
  );
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: "Outfit", sans-serif;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
}

.stat-text {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==================== SECTIONS COMMON ==================== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ==================== FEATURES ==================== */
.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.3);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  margin-bottom: 20px;
}

.feature-icon.purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}
.feature-icon.green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.feature-icon.orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.feature-icon.pink {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}
.feature-icon.cyan {
  background: linear-gradient(135deg, #00d9ff 0%, #0ea5e9 100%);
}
.feature-icon.indigo {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}
.feature-icon.red {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.feature-icon.teal {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}
.feature-icon.violet {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}
.feature-icon.gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}
.feature-icon.emerald {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==================== SOLUTIONS ==================== */
.solutions {
  padding: 100px 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(79, 70, 229, 0.05) 50%,
    transparent 100%
  );
}

.solutions-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.pos-device {
  text-align: center;
}

.device-frame {
  width: 200px;
  height: 340px;
  background: linear-gradient(180deg, #2d2d3a 0%, #1a1a24 100%);
  border-radius: 24px;
  margin: 0 auto;
  padding: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.device-screen-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.screen-icons {
  display: flex;
  gap: 8px;
}

.screen-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}

.product-slot {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.product-slot.active {
  background: rgba(79, 70, 229, 0.3);
  border: 1px solid var(--primary);
  color: var(--text);
}

.price-display {
  text-align: center;
  padding: 12px;
  background: var(--primary);
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 12px;
}

.device-label {
  margin-top: 16px;
  font-weight: 600;
  color: var(--text-muted);
}

.solution-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.solution-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.solution-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.solution-text h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.solution-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==================== REPORTS ==================== */
.reports {
  padding: 100px 0;
}

.reports-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.report-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.3);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.report-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.report-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: 50px;
}

.report-value {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: "Outfit", sans-serif;
  margin-bottom: 8px;
}

.report-change {
  font-size: 0.85rem;
  font-weight: 600;
}

.report-change.positive {
  color: var(--accent);
}

.export-options {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.export-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.export-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.export-btn i {
  color: var(--accent);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(79, 70, 229, 0.1) 100%
  );
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-content > p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cta-form input {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
}

.cta-form input::placeholder {
  color: var(--text-muted);
}

.cta-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* ==================== FOOTER ==================== */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

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

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .solutions-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .solution-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 100px 0 60px;
  }

  .hero-content {
    padding: 0 24px;
    max-width: 100%;
  }

  .hero-subtitle {
    margin: 0 auto 40px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 60px;
  }

  .device-mockup {
    width: 300px;
    height: 220px;
    transform: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .reports-preview {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stat-number {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 24px;
  }
}

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

[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
