/* ============================================================
   EGOPLAN LANDING PAGE STYLES
   ============================================================ */

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --c-primary: #1a56db;
  --c-primary-dark: #1347b8;
  --c-primary-light: #3b82f6;
  --c-accent: #f59e0b;
  --c-accent-light: #fbbf24;
  --c-bg: #f8fafc;
  --c-bg-dark: #0f172a;
  --c-bg-card: #ffffff;
  --c-text: #1e293b;
  --c-text-muted: #64748b;
  --c-text-light: #94a3b8;
  --c-text-inv: #ffffff;
  --c-border: #e2e8f0;
  --c-success: #10b981;
  --c-danger: #ef4444;
  --c-info: #3b82f6;
  --c-purple: #8b5cf6;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .07), 0 2px 4px -2px rgba(0, 0, 0, .05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .08), 0 4px 6px -4px rgba(0, 0, 0, .04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --transition: .25s cubic-bezier(.4, 0, .2, 1);
  --transition-slow: .4s cubic-bezier(.4, 0, .2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

/* --- TYPOGRAPHY --- */
.landing h1, .landing h2, .landing h3, .landing h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(26, 86, 219, .08);
  color: var(--c-primary);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--c-bg-dark);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 18px;
  color: var(--c-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* --- NAVBAR --- */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
  background: transparent;
}

.landing-nav.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.landing-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--c-text-inv);
  transition: color var(--transition);
}

.landing-nav.scrolled .nav-logo {
  color: var(--c-bg-dark);
}

.nav-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: var(--c-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

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

.nav-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  display: inline-flex;
}

.nav-menu a {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .8);
  transition: all var(--transition);
}

.nav-menu a:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.landing-nav.scrolled .nav-menu a {
  color: var(--c-text-muted);
}

.landing-nav.scrolled .nav-menu a:hover {
  background: rgba(0, 0, 0, .06);
  color: var(--c-bg-dark);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn:active {
  transform: scale(.97);
}

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 86, 219, .35);
}

.btn-primary:hover {
  background: var(--c-primary-dark);
  box-shadow: 0 6px 20px rgba(26, 86, 219, .45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .4);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .8);
}

.landing-nav.scrolled .btn-outline {
  border-color: var(--c-border);
  color: var(--c-bg-dark);
}

.landing-nav.scrolled .btn-outline:hover {
  background: var(--c-bg-dark);
  color: #fff;
  border-color: var(--c-bg-dark);
}

.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--c-border);
  color: var(--c-bg-dark);
}

.btn-outline-dark:hover {
  background: var(--c-bg-dark);
  color: #fff;
  border-color: var(--c-bg-dark);
}

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

.btn-white {
  background: #fff;
  color: var(--c-primary);
  box-shadow: var(--shadow-lg);
}

.btn-white:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #1a56db 100%);
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, .25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, .15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(16, 185, 129, .1) 0%, transparent 50%);
  pointer-events: none;
}

.hero .decoration-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  color: var(--c-text-inv);
}

.hero-content .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}

.hero-content .badge-pill .dot {
  width: 8px;
  height: 8px;
  background: var(--c-accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.5); }
}

.hero-content h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--c-accent-light), #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content .hero-text {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stat .stat-num {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
}

.hero-stat .stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  text-transform: uppercase;
  letter-spacing: .04em;
}

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

.hero-dashboard {
  width: 100%;
  max-width: 540px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-xl);
  padding: 24px;
  backdrop-filter: blur(8px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, .3);
  transform: perspective(800px) rotateY(-3deg) rotateX(2deg);
  transition: transform var(--transition-slow);
}

.hero-dashboard:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

.dash-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dash-card {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  transition: transform var(--transition);
}

.dash-card:nth-child(1) { background: rgba(59, 130, 246, .4); }
.dash-card:nth-child(2) { background: rgba(139, 92, 246, .4); }
.dash-card:nth-child(3) { background: rgba(16, 185, 129, .4); }
.dash-card:nth-child(4) { background: rgba(245, 158, 11, .4); grid-column: span 2; aspect-ratio: auto; height: 60px; }
.dash-card:nth-child(5) { background: rgba(239, 68, 68, .3); }

.dash-card:hover {
  transform: scale(1.05);
}

/* floating badge */
.floating-badge {
  position: absolute;
  top: -20px;
  right: -20px;
  background: #fff;
  color: var(--c-bg-dark);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  animation: float 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-badge .check-circle {
  width: 32px;
  height: 32px;
  background: var(--c-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

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

.floating-badge-2 {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: rgba(255, 255, 255, .95);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  animation: float 3s ease-in-out infinite .6s;
  color: var(--c-bg-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-badge-2 .icon {
  font-size: 24px;
}

/* --- PROBLEMS SECTION --- */
.problems {
  background: #fff;
}

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

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

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--c-danger);
  opacity: 0;
  transition: opacity var(--transition);
}

.problem-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.problem-card:hover::before {
  opacity: 1;
}

.problem-card .icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  background: rgba(239, 68, 68, .08);
}

.problem-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--c-bg-dark);
}

.problem-card p {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* --- SERVICES SECTION --- */
.services {
  background: var(--c-bg-dark);
  color: var(--c-text-inv);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(59, 130, 246, .12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 100%, rgba(139, 92, 246, .1) 0%, transparent 60%);
  pointer-events: none;
}

.services .section-header h2 {
  color: #fff;
}

.services .section-header p {
  color: var(--c-text-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.service-card:nth-child(1)::after { background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, .15), transparent 70%); }
.service-card:nth-child(2)::after { background: radial-gradient(circle at 0% 100%, rgba(139, 92, 246, .15), transparent 70%); }
.service-card:nth-child(3)::after { background: radial-gradient(circle at 100% 100%, rgba(16, 185, 129, .12), transparent 70%); }
.service-card:nth-child(4)::after { background: radial-gradient(circle at 0% 0%, rgba(245, 158, 11, .15), transparent 70%); }
.service-card:nth-child(5)::after { background: radial-gradient(circle at 50% 50%, rgba(239, 68, 68, .12), transparent 70%); }
.service-card:nth-child(6)::after { background: radial-gradient(circle at 100% 50%, rgba(59, 130, 246, .15), transparent 70%); }

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.service-card:nth-child(1) .service-icon { background: rgba(59, 130, 246, .2); }
.service-card:nth-child(2) .service-icon { background: rgba(139, 92, 246, .2); }
.service-card:nth-child(3) .service-icon { background: rgba(16, 185, 129, .2); }
.service-card:nth-child(4) .service-icon { background: rgba(245, 158, 11, .2); }
.service-card:nth-child(5) .service-icon { background: rgba(239, 68, 68, .2); }
.service-card:nth-child(6) .service-icon { background: rgba(59, 130, 246, .2); }

.service-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #fff;
}

.service-card p {
  font-size: 14px;
  color: var(--c-text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}

.tag-calendar { background: rgba(59, 130, 246, .2); color: #93c5fd; }
.tag-build { background: rgba(139, 92, 246, .2); color: #c4b5fd; }
.tag-car { background: rgba(16, 185, 129, .2); color: #6ee7b7; }
.tag-transport { background: rgba(245, 158, 11, .2); color: #fcd34d; }
.tag-inventory { background: rgba(239, 68, 68, .2); color: #fca5a5; }
.tag-floor { background: rgba(59, 130, 246, .2); color: #93c5fd; }

/* --- HOW IT WORKS --- */
.how-it-works {
  background: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--c-border);
  transform: translateX(50%);
  z-index: 0;
}

.step .step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(26, 86, 219, .3);
}

.step h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--c-bg-dark);
}

.step p {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* --- AUDIENCE --- */
.audience {
  background: var(--c-bg);
}

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

.audience-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--c-border);
  transition: all var(--transition);
}

.audience-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--c-primary);
}

.audience-card .icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.audience-card h4 {
  font-size: 16px;
  color: var(--c-bg-dark);
  margin-bottom: 6px;
}

.audience-card p {
  font-size: 13px;
  color: var(--c-text-muted);
}

/* --- TESTIMONIAL / RESULT --- */
.result {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.result::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(26, 86, 219, .3) 0%, transparent 70%);
  pointer-events: none;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.result-card {
  text-align: center;
  padding: 40px 24px;
  background: rgba(255, 255, 255, .04);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .08);
}

.result-card .result-num {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--c-accent-light), var(--c-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.result-card .result-label {
  font-size: 15px;
  color: rgba(255, 255, 255, .7);
}

/* --- CTA SECTION --- */
.cta-section {
  background: #fff;
  text-align: center;
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 40px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a56db 100%);
  border-radius: var(--radius-xl);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(26, 86, 219, .25);
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
  position: relative;
}

.cta-box p {
  font-size: 17px;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 32px;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* --- FOOTER --- */
.landing-footer {
  background: var(--c-bg-dark);
  color: var(--c-text-light);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.landing-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

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

.footer-links a {
  font-size: 14px;
  color: var(--c-text-light);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .hero-visual {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .result-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 60px 0;
  }

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

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

  .hero-content h1 {
    font-size: 30px;
  }

  .cta-box {
    padding: 40px 24px;
    border-radius: var(--radius-lg);
  }

  .floating-badge,
  .floating-badge-2 {
    display: none;
  }

  .nav-menu {
    display: none;
  }
}
