/* ═══════════════════════════════════════════════════════════
   NexoERP Landing Page — style.css
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #0f0f13;
  --bg2: #16161d;
  --bg3: #1e1e2a;
  --border: rgba(255,255,255,0.08);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  --shadow-sm: 0 4px 20px rgba(0,0,0,0.3);
}

html { scroll-behavior: smooth; }

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

/* ── Utilities ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block; padding: 6px 16px; background: rgba(99,102,241,0.15);
  color: var(--primary-light); border: 1px solid rgba(99,102,241,0.3);
  border-radius: 100px; font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-header h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 16px; }
.section-header p { color: var(--text-muted); font-size: 18px; max-width: 560px; margin: 0 auto; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff; border: none; border-radius: var(--radius-sm); padding: 10px 22px;
  font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: all 0.2s; white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.4); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-sm); }
.btn-full { width: 100%; justify-content: center; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 22px; font-size: 15px; font-weight: 600; cursor: pointer;
  text-decoration: none; background: transparent; transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); }
.btn-lg.btn-outline { padding: 14px 28px; font-size: 16px; }

.btn-ghost {
  color: var(--text-muted); text-decoration: none; font-size: 15px;
  font-weight: 500; transition: color 0.2s; padding: 6px 12px;
}
.btn-ghost:hover { color: var(--text); }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0; transition: all 0.3s;
}
.navbar.scrolled {
  background: rgba(15,15,19,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; gap: 40px; }
.logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--text); font-size: 18px; font-weight: 600; flex-shrink: 0;
}
.logo strong { color: var(--primary-light); }
.nav-links { display: flex; gap: 32px; margin-left: auto; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 15px;
  font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px; margin-left: auto;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ══════════════════════════════════════════
   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; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15;
}
.blob-1 { width: 600px; height: 600px; background: var(--primary); top: -100px; right: -100px; }
.blob-2 { width: 400px; height: 400px; background: var(--secondary); bottom: 0; left: -100px; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner { position: relative; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.3);
  padding: 8px 18px; border-radius: 100px; font-size: 14px; font-weight: 500;
  color: var(--primary-light); margin-bottom: 28px;
}
.badge-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(16,185,129,0.4); } 50%{ box-shadow: 0 0 0 6px rgba(16,185,129,0); } }

.hero-title {
  font-size: clamp(40px, 7vw, 80px); font-weight: 900; line-height: 1.1;
  letter-spacing: -0.03em; margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px); color: var(--text-muted);
  max-width: 620px; margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { color: var(--text-dim); font-size: 14px; margin-bottom: 64px; }

/* Dashboard preview */
.hero-preview {
  max-width: 900px; margin: 0 auto;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.preview-bar {
  background: var(--bg3); padding: 12px 16px;
  display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.preview-url {
  flex: 1; text-align: center; font-size: 12px; color: var(--text-dim);
  background: var(--bg2); padding: 4px 16px; border-radius: 6px; max-width: 300px; margin: 0 auto;
}
.preview-body { display: flex; min-height: 280px; }
.preview-sidebar {
  width: 160px; background: var(--bg3); padding: 16px 8px;
  border-right: 1px solid var(--border); flex-shrink: 0;
}
.sidebar-item {
  padding: 10px 12px; border-radius: 8px; font-size: 13px; color: var(--text-muted);
  cursor: pointer; margin-bottom: 4px; transition: all 0.2s;
}
.sidebar-item.active { background: rgba(99,102,241,0.15); color: var(--primary-light); }
.preview-content { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.stat-cards { display: flex; gap: 12px; }
.stat-card {
  flex: 1; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px;
}
.stat-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-size: 22px; font-weight: 700; margin: 4px 0; }
.stat-badge { font-size: 11px; font-weight: 600; }
.stat-badge.up { color: var(--success); }
.stat-badge.down { color: var(--danger); }
.chart-placeholder { flex: 1; background: var(--bg3); border-radius: var(--radius-sm); padding: 16px; }
.chart-bars { display: flex; align-items: flex-end; height: 100%; gap: 8px; min-height: 80px; }
.bar {
  flex: 1; background: rgba(99,102,241,0.3); border-radius: 4px 4px 0 0;
  transition: height 0.3s;
}
.bar.active { background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%); }

/* ══════════════════════════════════════════
   LOGOS
══════════════════════════════════════════ */
.logos-section {
  padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.logos-label { text-align: center; font-size: 13px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 24px; }
.logos-row { display: flex; justify-content: center; align-items: center; gap: 32px; flex-wrap: wrap; }
.logo-item { color: var(--text-dim); font-size: 14px; font-weight: 600; }

/* ══════════════════════════════════════════
   FEATURES
══════════════════════════════════════════ */
.features { padding: 100px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: all 0.3s;
}
.feature-card:hover {
  border-color: rgba(99,102,241,0.4); transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(99,102,241,0.1);
}
.feature-card.featured {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
  border-color: rgba(99,102,241,0.3); grid-column: span 1;
}
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; line-height: 1.7; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.feature-list li { font-size: 14px; color: var(--text-muted); }
.feature-list li:first-child, .feature-list li:nth-child(2), .feature-list li:nth-child(3) { color: var(--text); }

/* ══════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════ */
.how-it-works {
  padding: 100px 0;
  background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.steps { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.step {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; text-align: center; max-width: 220px; flex: 1; min-width: 160px;
}
.step-num {
  width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; margin: 0 auto 16px;
}
.step h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); }
.step-arrow { font-size: 24px; color: var(--text-dim); flex-shrink: 0; }

/* ══════════════════════════════════════════
   PRICING
══════════════════════════════════════════ */
.pricing { padding: 100px 0; }
.pricing-toggle {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-bottom: 48px;
}
.toggle-label { font-size: 16px; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.toggle-label.active { color: var(--text); }
.badge-save {
  background: rgba(16,185,129,0.15); color: var(--success);
  border: 1px solid rgba(16,185,129,0.3); border-radius: 100px;
  font-size: 11px; padding: 2px 8px; font-weight: 600;
}
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.toggle-switch input { display: none; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 100px; transition: 0.3s;
}
.toggle-slider::before {
  content: ''; position: absolute; width: 18px; height: 18px;
  background: var(--text-muted); border-radius: 50%; left: 4px; top: 3px; transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: rgba(99,102,241,0.2); border-color: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); background: var(--primary-light); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 32px; position: relative; transition: all 0.3s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.popular {
  border-color: var(--primary); background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.05));
  transform: scale(1.03);
}
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: 13px; font-weight: 700; padding: 4px 20px; border-radius: 100px;
  white-space: nowrap;
}
.plan-name { font-size: 14px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.plan-price { display: flex; align-items: baseline; gap: 2px; margin-bottom: 8px; }
.price-currency { font-size: 20px; font-weight: 700; color: var(--text-muted); }
.price-value { font-size: 52px; font-weight: 900; line-height: 1; }
.price-period { font-size: 16px; color: var(--text-muted); }
.plan-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.plan-features li { font-size: 15px; color: var(--text); }
.plan-features li.disabled { color: var(--text-dim); }

/* ══════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════ */
.testimonials { padding: 100px 0; background: var(--bg2); border-top: 1px solid var(--border); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px;
}
.stars { color: var(--warning); font-size: 18px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 15px; }
.testimonial-author span { font-size: 13px; color: var(--text-dim); }

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact { padding: 100px 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.contact-info .section-tag { display: inline-block; margin-bottom: 16px; }
.contact-info h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); font-size: 16px; line-height: 1.7; margin-bottom: 36px; }
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--text-muted); }

.contact-form-wrap {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 12px 16px; font-size: 15px; font-family: inherit;
  transition: border-color 0.2s; outline: none; resize: vertical;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-group select option { background: var(--bg3); }
.form-feedback {
  margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; text-align: center;
}
.form-feedback.success { background: rgba(16,185,129,0.1); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.form-feedback.error { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border); background: var(--bg2); padding: 60px 0 32px;
}
.footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 15px; max-width: 280px; line-height: 1.7; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h5 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-dim);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .pricing-card.popular { transform: none; grid-column: span 2; max-width: 400px; margin: 0 auto; width: 100%; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid .testimonial-card:last-child { grid-column: span 2; max-width: 500px; margin: 0 auto; width: 100%; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    padding: 24px; gap: 20px; z-index: 99;
  }
  .nav-links.open + .nav-actions { display: flex; position: fixed; top: calc(64px + 180px); left: 0; right: 0; z-index: 98; padding: 16px 24px; background: var(--bg2); }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.popular { transform: none; grid-column: auto; max-width: 100%; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid .testimonial-card:last-child { grid-column: auto; max-width: 100%; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .preview-sidebar { display: none; }
  .stat-cards { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-lg { text-align: center; justify-content: center; }
  .footer-links { grid-template-columns: 1fr; }
}
