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

:root {
  --bg:        #070b14;
  --bg2:       #0d1225;
  --bg3:       #141b33;
  --surface:   #111827;
  --surface2:  #1a233a;
  --border:    #1e293b;
  --text:      #e2e8f0;
  --text2:     #94a3b8;
  --text3:     #64748b;
  --accent:    #8b5cf6;
  --accent2:   #a78bfa;
  --accent3:   #c4b5fd;
  --cyan:      #06b6d4;
  --cyan2:     #22d3ee;
  --green:     #10b981;
  --orange:    #f59e0b;
  --red:       #ef4444;
  --radius:    16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow:    0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.4);
  --font:      'Inter', -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }

/* ── UTILITIES ───────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  padding: 0 20px;
}
.section-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(139,92,246,0.15);
  color: var(--accent2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(139,92,246,0.2);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text2);
  font-size: 1.1rem;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139,92,246,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139,92,246,0.5);
}
.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--border);
  transform: translateY(-2px);
}
.btn-large { padding: 18px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── REVEAL ANIMATION ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(7,11,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30,41,59,0.5);
  padding: 10px 0;
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}
.logo-img { height: 36px; width: auto; border-radius: 6px; }
.logo-accent { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  color: var(--text2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--surface2); }
.nav-version {
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(139,92,246,0.1);
  color: var(--text3);
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 8px;
}
.nav-cta {
  padding: 10px 20px;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(139,92,246,0.4); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle 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;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(139,92,246,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(6,182,212,0.08) 0%, transparent 60%);
}
.hero-particles {
  position: absolute;
  inset: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  text-align: center;
}
.hero-logo { margin-bottom: 20px; }
.hero-logo-img { height: 80px; width: auto; border-radius: 12px; box-shadow: 0 0 40px rgba(139,92,246,0.2); }
.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 100px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  color: var(--accent2);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero-subtitle {
  color: var(--text2);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-subtitle strong { color: var(--text); }
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { color: var(--text3); font-size: 0.85rem; font-weight: 500; }

/* Mockup */
.hero-mockup {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  opacity: 0.5;
  pointer-events: none;
}
.mockup-window {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.mockup-header span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--text3);
}
.mockup-header span:nth-child(1) { background: #ef4444; }
.mockup-header span:nth-child(2) { background: #f59e0b; }
.mockup-header span:nth-child(3) { background: #10b981; }
.mockup-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text3);
}
.mockup-body {
  display: flex;
  height: 380px;
}
.mockup-sidebar {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mockup-search {
  height: 32px;
  background: var(--surface);
  border-radius: 6px;
}
.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
}
.mockup-card {
  background: var(--surface);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.mockup-card::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 30%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
}
.mockup-card::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 40%;
  background: var(--bg3);
  border-radius: 4px;
}
.mockup-cart {
  width: 200px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mockup-cart-header {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text3);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.mockup-cart-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mockup-cart-item {
  height: 40px;
  background: var(--bg2);
  border-radius: 6px;
}
.mockup-cart-total {
  height: 44px;
  background: var(--bg3);
  border-radius: 6px;
  margin-top: auto;
}
.mockup-cart-pay {
  height: 40px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border-radius: 6px;
  opacity: 0.5;
}

/* ── FEATURES ─────────────────────────────────────────────── */
.features {
  padding: 120px 24px;
  position: relative;
}
.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--border));
}
.features-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  padding: 0 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  border-color: rgba(139,92,246,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent2);
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.15);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.7;
}
.features-cta {
  text-align: center;
  margin-top: 48px;
  color: var(--text3);
  font-size: 0.95rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── MULTI-POSTE ──────────────────────────────────────────── */
.multiposte {
  padding: 120px 24px;
  background: var(--bg2);
}
.topology {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.topology-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.topo-svg {
  width: 100%;
  height: auto;
  color: var(--border);
}
.topo-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.server-node {
  border-color: rgba(139,92,246,0.3);
  background: rgba(139,92,246,0.08);
}
.client-node {
  border-color: rgba(6,182,212,0.2);
  background: rgba(6,182,212,0.05);
}
.topo-icon { font-size: 2rem; }
.topo-node span { font-weight: 600; font-size: 0.95rem; }
.topo-node small { color: var(--text3); font-size: 0.8rem; }
.topo-clients {
  display: flex;
  gap: 20px;
  margin-top: -20px;
  flex-wrap: wrap;
  justify-content: center;
}
.topo-features { display: flex; flex-direction: column; gap: 20px; }
.topo-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.topo-check {
  width: 28px; height: 28px;
  min-width: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16,185,129,0.15);
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
}
.topo-item strong { display: block; margin-bottom: 2px; }
.topo-item div { color: var(--text2); font-size: 0.9rem; line-height: 1.6; }

/* ── PRICING ──────────────────────────────────────────────── */
.pricing {
  padding: 120px 24px;
}
.pricing-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 0 20px;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  transition: all 0.3s ease;
}
.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(139,92,246,0.06), var(--surface));
  box-shadow: 0 0 40px rgba(139,92,246,0.08);
  transform: scale(1.03);
}
.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 20px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.pricing-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}
.pricing-sub { color: var(--text3); font-size: 0.9rem; margin-top: 4px; }
.pricing-amount {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent2);
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text2);
}
.check { color: var(--green); font-weight: 700; }
.cross { color: var(--text3); opacity: 0.4; }
.pricing-features li .check, .pricing-features li .cross { width: 20px; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { padding: 120px 24px; background: var(--bg2); }
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: rgba(139,92,246,0.2); }
.faq-item.open { border-color: rgba(139,92,246,0.3); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--accent2); }
.faq-arrow {
  font-size: 1.1rem;
  color: var(--text3);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--accent); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 400px;
}
.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text2);
  line-height: 1.8;
  font-size: 0.92rem;
}

/* ── CTA ──────────────────────────────────────────────────── */
.cta {
  padding: 120px 24px;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 30% 50%, rgba(139,92,246,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 70% 50%, rgba(6,182,212,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}
.cta-note {
  margin-top: 20px;
  color: var(--text3);
  font-size: 0.85rem;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  padding: 60px 24px 40px;
  border-top: 1px solid var(--border);
}
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.footer-brand { margin-bottom: 40px; }
.footer-logo-row { display: flex; align-items: center; gap: 12px; }
.footer-logo-img { height: 32px; width: auto; border-radius: 6px; }
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
}
.footer-brand p {
  color: var(--text3);
  font-size: 0.9rem;
  margin-top: 8px;
  max-width: 400px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text3);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: var(--text2);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent2); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text3);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-mockup { display: none; }
  .topology { grid-template-columns: 1fr; }
  .topo-clients { justify-content: center; }
  .pricing-card.featured { transform: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7,11,20,0.98);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .nav-version { display: none; }
  .hero { padding: 100px 20px 60px; }
  .hero-stats { gap: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
}
