/* ─────────────────────────────────────────────
   Laviso — style.css
   Dark theme, glassmorphism, modern SaaS
───────────────────────────────────────────── */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #080c14;
  color: #e2e8f0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── CSS Variables ── */
:root {
  --purple: #7C5CFC;
  --purple-light: #9b80fd;
  --purple-dim: rgba(124, 92, 252, 0.15);
  --teal: #2A9D8F;
  --teal-light: #3bbdad;
  --teal-dim: rgba(42, 157, 143, 0.15);
  --bg: #080c14;
  --bg-2: #0d1117;
  --bg-3: #111827;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(124, 92, 252, 0.4);
  --text-1: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.22s ease;
  --shadow-card: 0 4px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 60px rgba(124,92,252,0.12);
  --max-w: 1140px;
}

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 100px 0; }

/* ── Typography ── */
.gradient-text {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--teal-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 560px;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-desc { margin: 0 auto; }

/* ─────────────────── HEADER ─────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  background: rgba(8, 12, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}
.header.scrolled {
  background: rgba(8, 12, 20, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  flex-shrink: 0;
}
.logo-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  border-radius: 7px;
  display: block;
  flex-shrink: 0;
}
.logo--sm .logo-mark { width: 22px; height: 22px; border-radius: 5px; }
.logo--sm { font-size: 0.95rem; }
.logo-img { height: 32px; width: auto; display: block; }
.logo-img--sm { height: 26px; }
.logo-name { letter-spacing: -0.01em; }
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-2);
  font-weight: 450;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text-1); background: var(--surface-hover); }
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-btn {
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  transition: color var(--transition), background var(--transition);
}
.lang-btn:hover, .lang-btn.active {
  color: var(--purple-light);
  background: var(--purple-dim);
}
.lang-sep { color: var(--text-3); font-size: 0.7rem; user-select: none; }
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(8,12,20,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 12px 0 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  padding: 12px 24px;
  font-size: 0.95rem;
  color: var(--text-2);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav-link:hover { color: var(--text-1); background: var(--surface); }

/* ─────────────────── HERO ─────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
  bottom: -80px; right: -80px;
  animation-delay: -3s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(124,92,252,0.6) 0%, transparent 70%);
  top: 40%; left: 50%;
  transform: translate(-50%,-50%);
  animation-delay: -6s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.97); }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(124,92,252,0.1);
  border: 1px solid rgba(124,92,252,0.25);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--purple-light);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--teal-light);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), #6044d0);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,92,252,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,92,252,0.45);
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
}
.btn-ghost {
  background: var(--surface);
  color: var(--text-1);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #fff, var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 500;
  white-space: nowrap;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─────────────────── PRODUCTS ─────────────────── */
.products { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.product-card:hover, .product-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}
.product-card--featured {
  background: linear-gradient(135deg, rgba(124,92,252,0.08) 0%, rgba(42,157,143,0.06) 100%);
  border-color: rgba(124,92,252,0.2);
}
.card-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover .card-glow { opacity: 1; }
.card-icon {
  width: 52px; height: 52px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  margin-bottom: 16px;
  transition: background var(--transition), border-color var(--transition);
}
.product-card:hover .card-icon {
  background: var(--purple-dim);
  border-color: rgba(124,92,252,0.3);
}
.card-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--teal-dim);
  border: 1px solid rgba(42,157,143,0.2);
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--teal-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.card-tag--new {
  background: var(--purple-dim);
  border-color: rgba(124,92,252,0.25);
  color: var(--purple-light);
}
.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
}
.card-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 20px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.card-platform {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 500;
}
.card-arrow {
  font-size: 1rem;
  color: var(--text-3);
  transition: transform var(--transition), color var(--transition);
}
.product-card:hover .card-arrow {
  transform: translateX(4px);
  color: var(--purple-light);
}

/* ─────────────────── ABOUT ─────────────────── */
.about { background: var(--bg-2); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-body {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 18px;
}
.about-values {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.about-values li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.value-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--teal-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
  margin-top: 1px;
}
.about-visual { display: flex; justify-content: center; }
.glass-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-card);
}
.about-card-header {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c840; }
.code-block {
  padding: 22px 24px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.82rem;
  line-height: 1.9;
}
.c-comment { color: #4a5568; }
.c-const { color: #7C5CFC; }
.c-key { color: #2A9D8F; }
.c-str { color: #f6ad55; }
.c-bool { color: #f687b3; }

/* ─────────────────── TRUST ─────────────────── */
.trust { background: var(--bg-3); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.trust-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}
.trust-card:hover {
  border-color: rgba(42,157,143,0.3);
  transform: translateY(-3px);
}
.trust-icon {
  width: 48px; height: 48px;
  background: var(--teal-dim);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
  margin-bottom: 16px;
}
.trust-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
}
.trust-card p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ─────────────────── FOOTER ─────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  padding-bottom: 60px;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-3);
  margin: 10px 0 6px;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-3);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.87rem;
  color: var(--text-2);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text-1); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal-note {
  font-size: 0.75rem;
  color: var(--text-3);
  max-width: 640px;
  line-height: 1.55;
}
.footer-bottom a {
  font-size: 0.8rem;
  color: var(--text-3);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--purple-light); }

/* ─────────────────── ANIMATIONS ─────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease forwards; opacity: 0; }
.fade-in-up.delay-1 { animation-delay: 0.1s; }
.fade-in-up.delay-2 { animation-delay: 0.2s; }
.fade-in-up.delay-3 { animation-delay: 0.3s; }
.fade-in-up.delay-4 { animation-delay: 0.4s; }
.fade-in-up.delay-5 { animation-delay: 0.5s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────── RESPONSIVE ─────────────────── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-stats { gap: 24px; }
  .stat-divider { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .footer-links { grid-template-columns: 1fr; }
}

/* ─────────────────── ACCESSIBILITY ─────────────────── */
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
