/* ═══════════════════════════════════════════════════
   Lambda ERP - Marketing Page Styles
   ═══════════════════════════════════════════════════ */

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

/* ── Screen-reader-only (visible to crawlers) ────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Utilities ────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1600px; margin: 0 auto; padding: 0 40px; }
.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scroll Animations ────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* ── Nav ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}
.nav-logo-icon { width: 32px; height: 32px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: opacity 0.2s, transform 0.2s !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}
.blob-1 {
  width: 600px; height: 600px;
  background: #3b82f6;
  top: -200px; left: -100px;
  animation-delay: 0s;
}
.blob-2 {
  width: 500px; height: 500px;
  background: #8b5cf6;
  top: 100px; right: -150px;
  animation-delay: -7s;
}
.blob-3 {
  width: 400px; height: 400px;
  background: #ec4899;
  bottom: -100px; left: 30%;
  animation-delay: -14s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}
.hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #818cf8;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: #94a3b8;
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}
.btn-lg { padding: 16px 40px; font-size: 17px; border-radius: 12px; }

/* ── Hero Screenshot ──────────────────────────────── */
.hero-screenshot {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  max-width: 1400px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
}
.hero-screenshot img { width: 100%; }

/* ── Sections ─────────────────────────────────────── */
.section { padding: 120px 0; }
.section-dark { background: rgba(255,255,255,0.02); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #818cf8;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Feature Cards Grid ───────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.feature-card:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  transform: translateY(-4px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon.blue    { background: rgba(59,130,246,0.12); color: #60a5fa; }
.feature-icon.violet  { background: rgba(139,92,246,0.12); color: #a78bfa; }
.feature-icon.emerald { background: rgba(16,185,129,0.12); color: #34d399; }
.feature-icon.amber   { background: rgba(245,158,11,0.12); color: #fbbf24; }
.feature-icon.rose    { background: rgba(244,63,94,0.12);  color: #fb7185; }
.feature-icon.cyan    { background: rgba(6,182,212,0.12);  color: #22d3ee; }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
}

/* ── Split Rows (text + image) ────────────────────── */
.split-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: center;
}
.split-row.reverse { grid-template-columns: 2fr 1fr; }
.split-row.reverse .split-text { order: 2; }
.split-row.reverse .split-image { order: 1; }
.split-row.split-row-wide { grid-template-columns: 1fr 3fr; }

.split-text .section-eyebrow { text-align: left; }
.split-text .section-title { text-align: left; }
.split-text .section-sub { text-align: left; margin: 0 0 24px; max-width: none; }

.split-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
}
.split-image img { width: 100%; }

.import-image {
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
  background: #1e1e2e;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  font-size: 15px;
  color: #cbd5e1;
  padding-left: 28px;
  position: relative;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(59,130,246,0.15);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20,6 9,17 4,12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Themes Block ─────────────────────────────────── */
.themes-block {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 64px;
  align-items: center;
}
.themes-text .section-eyebrow { text-align: left; }
.themes-text .section-title { text-align: left; }
.themes-text .section-sub { text-align: left; margin: 0; max-width: none; }
.themes-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
}
.themes-image img { width: 100%; }

/* ── Mobile Showcase ──────────────────────────────── */
.mobile-showcase {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  position: relative;
  height: 420px;
}
.mobile-device {
  position: absolute;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-device:hover {
  transform: translateY(-12px);
}
.mobile-device img {
  width: 100%;
  border-radius: 24px;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.5));
}
/* Samsung - behind, larger */
.mobile-device.android {
  width: 380px;
  z-index: 1;
  left: 50%;
  transform: translateX(-70%);
  bottom: 0;
}
.mobile-device.android:hover {
  transform: translateX(-70%) translateY(-12px);
}
/* iPhone - in front, smaller, overlapping Samsung's right edge */
.mobile-device.ios {
  width: 195px;
  z-index: 2;
  left: 50%;
  transform: translateX(20%);
  bottom: 0;
}
.mobile-device.ios:hover {
  transform: translateX(20%) translateY(-12px);
}

/* ── Trust Grid ───────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.trust-item { text-align: center; }
.trust-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: rgba(99,102,241,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
}
.trust-icon svg { width: 26px; height: 26px; }
.trust-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.trust-item p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
}

/* ── CTA Section ──────────────────────────────────── */
.section-cta {
  background: linear-gradient(180deg, rgba(59,130,246,0.08) 0%, rgba(139,92,246,0.08) 100%);
  border-top: 1px solid rgba(99,102,241,0.15);
}
.cta-block {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.cta-block .section-title { margin-bottom: 16px; }
.cta-block .section-sub { margin-bottom: 32px; }
.cta-note {
  margin-top: 20px;
  font-size: 14px;
  color: #64748b;
}
.cta-note strong { color: #94a3b8; }

/* ── Footer ───────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}
.footer-logo { width: 28px; height: 28px; }
.footer-copy {
  font-size: 13px;
  color: #64748b;
}

/* ── Lightbox ─────────────────────────────────────── */
.screenshot-clickable { cursor: zoom-in; }
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.active { opacity: 1; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-overlay.active img { transform: scale(1); }

/* ═══════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .split-row { grid-template-columns: 1fr; gap: 40px; }
  .split-row.split-row-wide { grid-template-columns: 1fr; }
  .split-row.reverse .split-text { order: 1; }
  .split-row.reverse .split-image { order: 2; }
  .themes-block { grid-template-columns: 1fr; gap: 40px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero-screenshot { margin-top: 40px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .mobile-showcase { height: 340px; }
  .mobile-device.android { width: 280px; transform: translateX(-65%); }
  .mobile-device.android:hover { transform: translateX(-65%) translateY(-12px); }
  .mobile-device.ios { width: 156px; transform: translateX(15%); bottom: 0; }
  .mobile-device.ios:hover { transform: translateX(15%) translateY(-12px); }
  .trust-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; }
  .mobile-showcase { height: 280px; }
  .mobile-device.android { width: 220px; transform: translateX(-60%); bottom: 0; }
  .mobile-device.android:hover { transform: translateX(-60%) translateY(-12px); }
  .mobile-device.ios { width: 130px; transform: translateX(10%); bottom: 0; }
  .mobile-device.ios:hover { transform: translateX(10%) translateY(-12px); }
}
