/* ================================================================
   CCTV Guard AI – Modern Landing Page Styles
   ================================================================ */

/* ===== ROOT VARIABLES ===== */
:root {
  --bg: #f0f4ff;
  --surface: #ffffff;
  --surface-alt: #f6f9ff;
  --text: #0f1f3d;
  --muted: #5b6b85;
  --brand: #0f80ff;
  --brand-2: #0bc89f;
  --brand-light: #e6f3ff;
  --border: rgba(225, 232, 242, 0.8);
  --shadow: 0 8px 32px rgba(8, 42, 88, 0.08);
  --shadow-lg: 0 20px 60px rgba(8, 42, 88, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.4);
}

:root.dark {
  --bg: #050d1c;
  --surface: #0d1929;
  --surface-alt: #0a1525;
  --text: #e8eff9;
  --muted: #a8b8d4;
  --brand: #2d9eff;
  --brand-2: #26e5b5;
  --brand-light: #1a2d44;
  --border: rgba(31, 53, 82, 0.8);
  --shadow: 0 8px 32px rgba(0, 5, 15, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 5, 15, 0.6);
  --glass-bg: rgba(13, 25, 41, 0.55);
  --glass-border: rgba(255, 255, 255, 0.06);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Sora', sans-serif; }

/* ===== GLASS UTILITIES ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.glass-dark {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 24px));
  padding: 12px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
  top: 0;
  border-radius: 0;
  width: 100%;
  padding: 8px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand div {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 10px;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 0.3s ease;
}

nav a:hover { color: var(--text); }
nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switcher {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--text);
  background: var(--brand-light);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
}

.theme-btn {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-btn:hover {
  transform: scale(1.08) rotate(15deg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ===== BUTTONS ===== */
.btn {
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: 0 8px 24px rgba(15, 128, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(15, 128, 255, 0.4);
}

.btn-secondary {
  background: var(--brand-light);
  color: var(--brand);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Hero-specific buttons */
.btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: #e8eff9;
}

.btn-outline-light:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(15, 128, 255, 0.1);
}

.btn-ghost-light {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.08);
  color: rgba(232, 239, 249, 0.6);
}

.btn-ghost-light:hover {
  border-color: var(--brand-2);
  color: var(--brand-2);
}

.btn-glow {
  animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 8px 24px rgba(15, 128, 255, 0.3); }
  50% { box-shadow: 0 8px 48px rgba(15, 128, 255, 0.5), 0 0 80px rgba(15, 128, 255, 0.15); }
}

.btn-block { width: 100%; }

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  background: linear-gradient(160deg, #050c1a 0%, #0b1e3d 35%, #0a2845 60%, #07162e 100%);
  padding: 140px 0 100px;
  overflow: hidden;
  color: #e8eff9;
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: rgba(15, 128, 255, 0.2);
  top: -200px;
  left: -100px;
}

.hero-glow-2 {
  width: 450px;
  height: 450px;
  background: rgba(11, 200, 159, 0.15);
  bottom: -100px;
  right: -80px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 128, 255, 0.12);
  color: var(--brand);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid rgba(15, 128, 255, 0.2);
  animation: fadeInDown 0.6s ease;
}

.hero-badge i {
  animation: sparkle 2s ease-in-out infinite;
}

/* Pioneer Badge - First in Indonesia */
.pioneer-badge {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease 0.3s both;
}

.pioneer-badge-glow {
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffd700, #ff8c00, #ffd700, #fffacd, #ffd700);
  background-size: 300% 300%;
  animation: pioneerGlow 3s ease infinite;
  filter: blur(8px);
  opacity: 0.6;
  z-index: 0;
}

.pioneer-badge-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 140, 0, 0.1) 50%, rgba(255, 215, 0, 0.15) 100%);
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: 14px;
  padding: 12px 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pioneer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a0a00;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  animation: pioneerPulse 2s ease-in-out infinite;
}

.pioneer-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pioneer-label {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #ffd700, #fffacd, #ffd700);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 2.5s linear infinite;
}

.pioneer-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  max-width: 320px;
  line-height: 1.3;
}

.pioneer-flag {
  display: flex;
  flex-direction: column;
  width: 28px;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pioneer-flag .flag-red {
  flex: 1;
  background: #e60012;
}

.pioneer-flag .flag-white {
  flex: 1;
  background: #ffffff;
}

@keyframes pioneerGlow {
  0%, 100% { background-position: 0% 50%; opacity: 0.5; }
  50% { background-position: 100% 50%; opacity: 0.8; }
}

@keyframes pioneerPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6); }
}

@keyframes shimmerText {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@media (max-width: 600px) {
  .pioneer-badge-inner {
    gap: 10px;
    padding: 10px 16px;
  }
  .pioneer-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .pioneer-label {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
  }
  .pioneer-desc {
    font-size: 0.7rem;
    max-width: 200px;
  }
}

/* Hero heading */
.hero-section h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  line-height: 1.12;
  margin: 0 0 20px;
  background: linear-gradient(135deg, #ffffff 0%, #b8dcff 40%, #26e5b5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideUp 0.8s ease 0.2s both;
}

.hero-subtitle {
  color: rgba(232, 239, 249, 0.6);
  font-size: 1.1rem;
  max-width: 580px;
  margin-bottom: 28px;
  animation: slideUp 0.8s ease 0.3s both;
}

/* Hero feature pills */
.hero-features {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  animation: slideUp 0.8s ease 0.4s both;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(232, 239, 249, 0.8);
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-feature-item i {
  color: var(--brand-2);
  font-size: 16px;
}

/* Hero CTA */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  animation: slideUp 0.8s ease 0.5s both;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 40px;
  animation: fadeIn 1s ease 0.6s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2d9eff, #26e5b5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-item span {
  color: rgba(232, 239, 249, 0.4);
  font-size: 13px;
  margin-top: 4px;
}

/* Hero visual panel */
.hero-visual {
  position: relative;
  animation: fadeIn 1s ease 0.4s both;
}

.hero-panel {
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.panel-header i {
  color: var(--brand);
  font-size: 24px;
}

.panel-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.feature-list li:hover {
  background: rgba(15, 128, 255, 0.08);
}

.feature-list i {
  color: var(--brand-2);
  font-size: 16px;
}

.pulse-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(38, 229, 181, 0.08);
  border: 1px solid rgba(38, 229, 181, 0.15);
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  background: var(--brand-2);
  border-radius: 50%;
  position: relative;
  animation: pulse 2s ease-in-out infinite;
}

.pulse-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--brand-2);
  border-radius: 50%;
  animation: pulseRing 2s ease-in-out infinite;
}

/* Floating notification card */
.floating-card {
  position: absolute;
  top: -20px;
  right: -20px;
  padding: 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 250px;
  animation: float 3s ease-in-out infinite;
}

.floating-alert {
  animation: float 3s ease-in-out infinite, alertPulse 4s ease-in-out infinite;
}

.floating-card i {
  font-size: 24px;
  color: var(--brand);
}

.floating-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.floating-card small {
  color: rgba(232, 239, 249, 0.4);
  font-size: 12px;
}

/* Hero wave */
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 3;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

.hero-wave path {
  fill: var(--bg);
}

/* ===== MAIN CONTENT ===== */
main {
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
  position: relative;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
  position: relative;
}

.section h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 50px;
  font-size: 1.05rem;
}

/* Alt-section (rounded card bg) */
.section-alt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px 32px;
  margin: 0 0 20px;
}

/* ===== FLOATING BLOBS ===== */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--brand);
  top: -100px;
  right: -200px;
}

.blob-2 {
  width: 350px;
  height: 350px;
  background: var(--brand-2);
  bottom: -80px;
  left: -150px;
}

/* ===== FEATURE CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.card {
  padding: 28px;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 128, 255, 0.1), rgba(11, 200, 159, 0.08));
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  transition: all 0.4s ease;
}

.card:hover .card-icon {
  background: linear-gradient(135deg, rgba(15, 128, 255, 0.18), rgba(11, 200, 159, 0.15));
  transform: scale(1.1);
}

.card-icon i {
  color: var(--brand);
  font-size: 24px;
}

.card h3 {
  margin: 0;
  font-size: 1.05rem;
}

/* ===== BENTO GRID (Advanced Features) ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.bento-item {
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
}

.bento-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.bento-item:hover::before {
  transform: scaleX(1);
}

.bento-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-medium { grid-column: span 2; }
.bento-wide { grid-column: span 4; }
.bento-small { grid-column: span 1; }

.bento-item h3 {
  margin: 14px 0 8px;
  font-size: 1.1rem;
}

.bento-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Bento icon variants */
.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  transition: all 0.3s ease;
}

.bento-item:hover .bento-icon {
  transform: scale(1.12);
}

.bento-icon-green {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
}

.bento-icon-red {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.bento-icon-purple {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
}

.bento-icon-blue {
  background: rgba(15, 128, 255, 0.12);
  color: var(--brand);
}

.bento-icon-teal {
  background: rgba(11, 200, 159, 0.12);
  color: var(--brand-2);
}

.bento-icon-orange {
  background: rgba(251, 146, 60, 0.12);
  color: #fb923c;
}

.bento-icon-indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

.bento-icon-rose {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
}

/* WhatsApp bubble preview */
.bento-preview {
  margin-top: 20px;
}

.wa-bubble {
  border-radius: 14px;
  padding: 16px;
  max-width: 280px;
  position: relative;
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
}

.wa-header i {
  color: var(--brand);
}

.wa-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wa-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}

.wa-body small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.wa-time {
  text-align: right;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  opacity: 0.6;
}

/* Mini chart bars */
.bento-mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  margin-top: 16px;
}

.mini-bar {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  opacity: 0.7;
  transition: all 0.3s ease;
  animation: barGrow 1.5s ease forwards;
}

.bento-item:hover .mini-bar {
  opacity: 1;
}

@keyframes barGrow {
  from { height: 0; }
  to { height: var(--h); }
}

.mini-bar:nth-child(1) { animation-delay: 0.1s; }
.mini-bar:nth-child(2) { animation-delay: 0.2s; }
.mini-bar:nth-child(3) { animation-delay: 0.3s; }
.mini-bar:nth-child(4) { animation-delay: 0.4s; }
.mini-bar:nth-child(5) { animation-delay: 0.5s; }
.mini-bar:nth-child(6) { animation-delay: 0.6s; }
.mini-bar:nth-child(7) { animation-delay: 0.7s; }

/* PDF preview */
.bento-content-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.bento-pdf-preview {
  flex-shrink: 0;
}

.pdf-doc {
  width: 120px;
  padding: 16px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.4s ease;
}

.bento-item:hover .pdf-doc {
  transform: translateY(-4px) rotate(-2deg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.pdf-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.pdf-line.pdf-title {
  height: 10px;
  width: 70%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  opacity: 0.6;
}

.pdf-line.short { width: 60%; }

.pdf-chart {
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(15, 128, 255, 0.2), rgba(11, 200, 159, 0.2));
  margin: 4px 0;
}

/* Bento reveal stagger */
.reveal .bento-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active .bento-item {
  opacity: 1;
  transform: translateY(0);
}

.reveal.active .bento-item:nth-child(1) { transition-delay: 0.1s; }
.reveal.active .bento-item:nth-child(2) { transition-delay: 0.15s; }
.reveal.active .bento-item:nth-child(3) { transition-delay: 0.2s; }
.reveal.active .bento-item:nth-child(4) { transition-delay: 0.25s; }
.reveal.active .bento-item:nth-child(5) { transition-delay: 0.3s; }
.reveal.active .bento-item:nth-child(6) { transition-delay: 0.35s; }
.reveal.active .bento-item:nth-child(7) { transition-delay: 0.4s; }
.reveal.active .bento-item:nth-child(8) { transition-delay: 0.45s; }
.reveal.active .bento-item:nth-child(9) { transition-delay: 0.5s; }
.reveal.active .bento-item:nth-child(10) { transition-delay: 0.55s; }
.reveal.active .bento-item:nth-child(11) { transition-delay: 0.6s; }
.reveal.active .bento-item:nth-child(12) { transition-delay: 0.65s; }

/* Timeline Playback Preview */
.timeline-preview {
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 12px;
}

.timeline-bar {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: visible;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  animation: timelineSlide 4s ease-in-out infinite;
}

.timeline-marker {
  position: absolute;
  top: -5px;
  left: 45%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid #fff;
  box-shadow: 0 0 12px rgba(15, 128, 255, 0.5);
  animation: timelineSlide 4s ease-in-out infinite;
}

@keyframes timelineSlide {
  0%, 100% { width: 30%; left: 30%; }
  50% { width: 65%; left: 65%; }
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  opacity: 0.5;
}

/* SOS / Panic Button Preview */
.sos-preview {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.sos-btn-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.pulse-ring {
  position: relative;
}

.pulse-ring::before,
.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50px;
  border: 2px solid rgba(239, 68, 68, 0.5);
  animation: sosPulse 2s ease-out infinite;
}

.pulse-ring::after {
  animation-delay: 1s;
}

@keyframes sosPulse {
  0% { inset: -4px; opacity: 1; }
  100% { inset: -20px; opacity: 0; }
}

/* ===== TIMELINE / HOW IT WORKS ===== */
.timeline .steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

.timeline .steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  z-index: 0;
}

.step {
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(15, 128, 255, 0.3);
  transition: all 0.3s ease;
}

.step:hover .step-number {
  transform: scale(1.15);
  box-shadow: 0 6px 24px rgba(15, 128, 255, 0.4);
}

.step p {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.price-card {
  border-radius: 24px;
  padding: 36px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.price-card:hover {
  box-shadow: var(--shadow-lg);
}

.price-card h3 {
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.price-period {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}

.price-features li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.price-features li:last-child {
  border-bottom: none;
}

.price-features i {
  color: var(--brand-2);
  font-size: 14px;
  flex-shrink: 0;
}

/* Featured pricing card */
.price-card.featured {
  transform: scale(1.05);
  z-index: 2;
  border-color: transparent;
}

.price-card.featured:hover {
  transform: scale(1.07);
}

.popular-badge {
  position: absolute;
  top: 18px;
  right: -32px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  padding: 6px 44px;
  font-size: 11px;
  font-weight: 800;
  transform: rotate(45deg);
  box-shadow: 0 4px 12px rgba(15, 128, 255, 0.3);
  letter-spacing: 0.5px;
}

/* Glowing border animation */
.glow-border {
  position: relative;
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  padding: 2px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2), #a855f7, var(--brand));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: glowRotate 4s ease infinite;
  z-index: -1;
}

@keyframes glowRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== REGISTER + DOWNLOAD ===== */
.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.register-form {
  display: grid;
  gap: 12px;
}

.register-form input {
  border: 1px solid var(--border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.register-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(15, 128, 255, 0.08);
}

.password-field {
  position: relative;
  display: grid;
}

.password-field input {
  padding-right: 44px;
}

.toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.toggle-password:hover {
  color: var(--text);
  background: var(--brand-light);
}

.google-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
}
.google-divider::before,
.google-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-google:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(15, 128, 255, 0.08);
  transform: translateY(-1px);
}

.download-block {
  border-radius: 24px;
  padding: 36px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.download-block img {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.download-block h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.download-block p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  background: var(--surface);
  margin-top: 60px;
  border-top: 1px solid var(--border);
}

footer p {
  margin: 8px 0;
  font-size: 14px;
}

.footer-contact {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-brand strong {
  font-size: 1.1rem;
  color: var(--text);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  font-size: 14px;
}

.footer-info div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-info i {
  color: var(--brand);
  width: 16px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-links a:hover::after {
  width: 100%;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.9s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered child reveals */
.reveal .card,
.reveal .step,
.reveal .price-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active .card,
.reveal.active .step,
.reveal.active .price-card {
  opacity: 1;
  transform: translateY(0);
}

.reveal.active .card:nth-child(1),
.reveal.active .step:nth-child(1),
.reveal.active .price-card:nth-child(1) { transition-delay: 0.1s; }

.reveal.active .card:nth-child(2),
.reveal.active .step:nth-child(2),
.reveal.active .price-card:nth-child(2) { transition-delay: 0.2s; }

.reveal.active .card:nth-child(3),
.reveal.active .step:nth-child(3),
.reveal.active .price-card:nth-child(3) { transition-delay: 0.3s; }

.reveal.active .card:nth-child(4),
.reveal.active .step:nth-child(4) { transition-delay: 0.4s; }

.reveal.active .card:nth-child(5) { transition-delay: 0.5s; }
.reveal.active .card:nth-child(6) { transition-delay: 0.6s; }

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes sparkle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
}

@keyframes alertPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(15, 128, 255, 0.15); }
  50% { box-shadow: 0 0 40px rgba(15, 128, 255, 0.35), 0 0 80px rgba(15, 128, 255, 0.1); }
}

/* 3D Tilt interaction (applied via JS) */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav { display: none; }

  .site-header {
    top: 0;
    border-radius: 0;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
  }

  .brand img { width: 28px; height: 28px; }
  .brand div { font-size: 14px; }

  .hero-section {
    padding: 100px 0 80px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    width: calc(100% - 32px);
  }

  .hero-section h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .hero-subtitle { font-size: 1rem; }

  .hero-stats { gap: 24px; }
  .stat-item strong { font-size: 1.5rem; }

  .hero-wave svg { height: 50px; }

  .floating-card {
    position: static;
    margin-top: 20px;
    max-width: 100%;
  }

  .cards-grid,
  .pricing-grid,
  .timeline .steps,
  .split {
    grid-template-columns: 1fr;
  }

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

  .bento-large,
  .bento-medium,
  .bento-wide,
  .bento-small {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-content-row {
    flex-direction: column;
    gap: 20px;
  }

  .section-alt {
    border-radius: 16px;
    padding: 40px 20px;
  }

  .timeline .steps::before { display: none; }

  .price-card.featured {
    transform: none;
  }

  .price-card.featured:hover {
    transform: none;
  }

  .popular-badge {
    right: -28px;
    top: 14px;
    padding: 4px 36px;
    font-size: 10px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .hero-features {
    gap: 8px;
  }

  .hero-feature-item {
    font-size: 12px;
    padding: 5px 10px;
  }

  .section { padding: 60px 0; }

  .blob { display: none; }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* ===== Package Builder ===== */
.pricing-builder { position: relative; }
.pb-section { margin-bottom: 4px; }
.pb-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.pb-counter { display: flex; align-items: center; gap: 10px; }
.pb-counter .btn-sm { min-width: 32px; height: 32px; padding: 0; font-size: 1.1em; border-radius: 8px; cursor: pointer; }
.pb-check, .pb-radio { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-size: 0.88em; transition: background 0.15s; }
.pb-check:hover, .pb-radio:hover { background: rgba(var(--primary-rgb), 0.08); }
.pb-check input, .pb-radio input { accent-color: var(--primary); width: 16px; height: 16px; }
.pb-check i, .pb-radio i { font-size: 14px; }
@media (max-width: 600px) {
  .pricing-builder { padding: 20px !important; }
  .pb-check, .pb-radio { font-size: 0.82em; padding: 5px 6px; }
}
