:root {
  /* VIVIM Brand Palette */
  --vivim-pink: #FF2D6E;
  --vivim-cyan: #00D4E8;
  --vivim-green: #00C786;
  --vivim-navy: #1A1F3C;
  --vivim-purple: #4A4E69;
  --vivim-white: #FFFFFF;
  --vivim-black: #0D0D0D;
  --vivim-dark-gray: #343A40;
  --vivim-medium-gray: #6C757D;
  --vivim-light-gray: #ADB5BD;
  
  /* Glassmorphism Tokens */
  --glass-bg: rgba(26, 31, 60, 0.25);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body, html {
  width: 100%;
  min-height: 100%;
  background-color: var(--vivim-black);
  color: var(--vivim-white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Background Atmosphere --- */
#ambient-canvas {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  background: radial-gradient(circle at 50% 50%, var(--vivim-navy) 0%, var(--vivim-black) 90%);
  overflow: hidden;
}

/* Animated glowing orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: float 25s infinite ease-in-out;
  z-index: 1;
  opacity: 0;
  transition: opacity 2s ease-in;
}

.orb.visible {
  opacity: 0.5;
}

.orb-1 {
  width: 50vw;
  height: 50vw;
  background: var(--vivim-pink);
  top: -10vw;
  left: -10vw;
  animation-duration: 25s;
}

.orb-2 {
  width: 60vw;
  height: 60vw;
  background: var(--vivim-cyan);
  bottom: -20vw;
  right: -10vw;
  animation-duration: 30s;
  animation-direction: reverse;
}

.orb-3 {
  width: 40vw;
  height: 40vw;
  background: var(--vivim-purple);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 40s;
  opacity: 0;
}

.orb-3.visible {
  opacity: 0.3;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(5%, -5%) scale(1.1) rotate(10deg); }
  66% { transform: translate(-5%, 5%) scale(0.9) rotate(-10deg); }
}

/* Noise overlay for cinematic texture */
.noise-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: color-dodge;
}

/* Interactive cursor glow */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 232, 0.12), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 2rem;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
  background: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--vivim-white);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.3s, opacity 0.3s;
  position: relative;
}

.nav-link:hover {
  color: var(--vivim-white);
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--vivim-cyan);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-docs {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.nav-link-docs:hover {
  background: rgba(0, 212, 232, 0.15);
}

.nav-link-github {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--vivim-white);
  transition: 0.3s;
}

.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);
}

/* --- Layout & Main --- */
.stealth-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 199, 134, 0.15);
  border: 1px solid rgba(0, 199, 134, 0.3);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--vivim-green);
  margin-bottom: 2rem;
  opacity: 0;
  animation: popIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--vivim-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.logo-wrapper {
  position: relative;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(-20px) perspective(1000px);
  animation: fadeInDown 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-style: preserve-3d;
}

.vivim-logo {
  width: 110px;
  height: 110px;
  border-radius: 28px;
  object-fit: cover;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 1px var(--glass-highlight), 0 20px 40px rgba(0,0,0,0.6);
  transition: box-shadow 0.4s;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--vivim-pink), var(--vivim-cyan));
  filter: blur(25px);
  z-index: 1;
  opacity: 0.4;
  border-radius: 35px;
  animation: pulse-glow 5s infinite alternate;
}

@keyframes pulse-glow {
  0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.9); }
  100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.motto {
  font-family: 'Outfit', sans-serif;
  font-size: 3.2rem;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  perspective: 1000px;
}

.word, .divider, .highlight, .subtitle, .action-wrapper, .footer-note, .hero-stats, .hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: popIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  to { opacity: 1; transform: translateY(0); }
}

.word { color: var(--vivim-white); font-weight: 400; }
.divider { color: rgba(255,255,255,0.15); font-weight: 300; margin: 0 12px; }

.highlight {
  font-weight: 800;
  background: linear-gradient(135deg, var(--vivim-pink) 0%, var(--vivim-cyan) 55%, var(--vivim-white) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: block;
  margin-top: 8px;
  font-size: 4.8rem;
  letter-spacing: -2px;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--vivim-light-gray);
  margin-bottom: 2rem;
  letter-spacing: 0px;
  font-weight: 300;
  max-width: 600px;
  line-height: 1.7;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding: 1rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

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

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vivim-cyan);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--vivim-medium-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

/* Form & CTA */
.action-wrapper {
  width: 100%;
  max-width: 460px;
  position: relative;
  margin-bottom: 1.5rem;
}

.stealth-form {
  display: flex;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 6px;
  transition: border-color 0.4s, box-shadow 0.4s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.stealth-form:focus-within {
  border-color: rgba(0, 212, 232, 0.5);
  box-shadow: 0 0 25px rgba(0, 212, 232, 0.15), 0 10px 30px rgba(0,0,0,0.4);
}

.stealth-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0 24px;
  color: var(--vivim-white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
}

.stealth-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.stealth-button {
  background: var(--vivim-white);
  color: var(--vivim-navy);
  border: none;
  border-radius: 100px;
  padding: 0 28px;
  height: 52px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, background 0.3s, color 0.3s, box-shadow 0.3s;
}

.stealth-button:hover {
  background: var(--vivim-cyan);
  color: var(--vivim-black);
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(0, 212, 232, 0.4);
}

.stealth-button:active {
  transform: scale(0.98);
}

.arrow-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stealth-button:hover .arrow-icon {
  transform: translateX(6px);
}

/* Success State */
.success-message {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-highlight);
  border-radius: 100px;
  color: var(--vivim-green);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  transition: opacity 0.5s, transform 0.5s;
}

.stealth-form.submitted {
  opacity: 0;
  pointer-events: none;
}

.stealth-form.submitted + .success-message {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
  box-shadow: 0 0 30px rgba(0, 199, 134, 0.2);
}

/* Hero CTA */
.hero-cta {
  margin-top: 1rem;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--vivim-medium-gray);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.cta-secondary:hover {
  color: var(--vivim-white);
}

.cta-secondary i {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* --- Section Shared Styles --- */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--vivim-white) 0%, var(--vivim-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--vivim-medium-gray);
  max-width: 500px;
  margin: 0 auto;
}

/* --- Features Section --- */
.features {
  background: linear-gradient(180deg, transparent 0%, rgba(26, 31, 60, 0.3) 50%, transparent 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  text-align: left;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  opacity: 0;
  animation: popIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 232, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
  transform: translateY(-4px);
  border-color: rgba(0, 212, 232, 0.3: 0 20px 40px rgba(0);
  box-shadow, 0, 0, 0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--vivim-pink), var(--vivim-cyan));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon i {
  font-size: 1.5rem;
  color: var(--vivim-white);
}

.feature-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--vivim-white);
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--vivim-medium-gray);
}

/* --- Demo Section --- */
.demo {
  text-align: center;
}

.demo-container {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.demo-browser-bar {
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.browser-dots {
  display: flex;
  gap: 8px;
}

.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #FF5F57; }
.browser-dots span:nth-child(2) { background: #FEBC2E; }
.browser-dots span:nth-child(3) { background: #28C840; }

.browser-url {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--vivim-medium-gray);
}

.demo-screenshot {
  position: relative;
  line-height: 0;
}

.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  cursor: pointer;
}

.demo-screenshot:hover .screenshot-overlay {
  opacity: 1;
}

.play-button {
  width: 80px;
  height: 80px;
  background: var(--vivim-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.play-button i {
  font-size: 1.8rem;
  color: var(--vivim-navy);
  margin-left: 4px;
}

.demo-screenshot:hover .play-button {
  transform: scale(1.1);
}

.demo-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.demo-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--vivim-medium-gray);
  font-size: 0.95rem;
}

.demo-feature i {
  color: var(--vivim-cyan);
  font-size: 1rem;
}

/* --- Community Section --- */
.community {
  text-align: center;
  padding-bottom: 4rem;
}

.community-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.community-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  text-decoration: none;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.community-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 232, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.community-card .card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--vivim-navy), var(--vivim-purple));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.community-card .card-icon i {
  font-size: 1.6rem;
  color: var(--vivim-white);
}

.community-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--vivim-white);
}

.community-card p {
  font-size: 0.9rem;
  color: var(--vivim-medium-gray);
  margin-bottom: 1rem;
}

.community-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--vivim-cyan);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--vivim-medium-gray);
  letter-spacing: 0.5px;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

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

.footer-links i {
  font-size: 1.1rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .motto { font-size: 2.6rem; }
  .highlight { font-size: 3.8rem; }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: right 0.3s;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hero { padding: 7rem 1.5rem 3rem; }
  .logo-wrapper { margin-bottom: 2rem; }
  .vivim-logo { width: 90px; height: 90px; }
  .logo-glow { width: 110px; height: 110px; }
  
  .motto { font-size: 2.2rem; }
  .highlight { font-size: 3.2rem; }
  .subtitle { font-size: 1.1rem; }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .stat-divider {
    width: 60px;
    height: 1px;
  }
  
  .stealth-form {
    flex-direction-column: column;
    background: transparent;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
  }
  
  .stealth-input {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    height: 60px;
    margin-bottom: 16px;
    text-align: center;
    padding: 0 20px;
  }
  
  .stealth-button {
    justify-content: center;
    height: 60px;
    width: 100%;
  }
  
  .success-message {
    border-radius: 20px;
  }
  
  .section-title { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .community-cards { grid-template-columns: 1fr; }
  
  .demo-features {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .motto { font-size: 1.8rem; }
  .highlight { font-size: 2.6rem; }
  .section-title { font-size: 1.8rem; }
}
