/* ============================================================
   VEMICON — Stealth Landing Page
   Design System: Black + White + Cyan→Pink gradient accents
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Custom Properties --- */
:root {
  --black: #000000;
  --white: #FFFFFF;
  --cyan: #22D3EE;
  --pink: #EC4899;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-800: #1F2937;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  cursor: default;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Canvas Layer --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* --- Atmospheric Layers --- */
.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    transparent 30%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Content Overlay --- */
.content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  text-align: center;
  padding: 2rem;
  gap: 0;
}

/* --- Logo --- */
.logo-container {
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  animation: reveal-up 1.2s var(--ease-out-expo) 0.6s forwards;
}

.logo-container svg {
  width: 220px;
  height: auto;
  fill: var(--white);
}

@media (min-width: 768px) {
  .logo-container svg {
    width: 280px;
  }
}

@media (min-width: 1200px) {
  .logo-container svg {
    width: 320px;
  }
}

/* --- Taglines --- */
.tagline-primary {
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateY(12px);
  animation: reveal-up 1s var(--ease-out-expo) 1.8s forwards;
}

.tagline-primary span {
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .tagline-primary span {
    font-size: 1.2rem;
    letter-spacing: 0.05em;
  }
}

/* --- Gradient Accent Line --- */
.gradient-line-container {
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1px;
  opacity: 0;
  animation: fade-in 0.6s ease 2.6s forwards;
}

.gradient-line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  animation: line-expand 1.2s var(--ease-out-expo) 2.8s forwards;
  position: relative;
}

.gradient-line::after {
  content: '';
  position: absolute;
  inset: -4px -8px;
  background: linear-gradient(90deg,
    rgba(34, 211, 238, 0.25),
    rgba(236, 72, 153, 0.25)
  );
  filter: blur(8px);
  border-radius: 50%;
  opacity: 0;
  animation: glow-pulse 4s ease-in-out 3.8s infinite;
}

/* --- Secondary Tagline --- */
.tagline-secondary {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal-up 1s var(--ease-out-expo) 3.4s forwards;
}

.tagline-secondary span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .tagline-secondary span {
    font-size: 0.85rem;
  }
}

/* --- Contact CTA --- */
.contact {
  margin-top: 3.5rem;
  opacity: 0;
  transform: translateY(8px);
  animation: reveal-up 1s var(--ease-out-expo) 4.4s forwards;
}

.contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.5s ease, gap 0.4s var(--ease-out-expo);
  position: relative;
  padding: 0.75rem 0;
}

.contact a::before {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(34, 211, 238, 0),
    rgba(34, 211, 238, 0.3),
    rgba(236, 72, 153, 0.3),
    rgba(236, 72, 153, 0)
  );
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out-expo);
}

.contact a:hover {
  color: rgba(255, 255, 255, 0.85);
  gap: 0.75rem;
}

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

.contact .arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out-expo);
  font-size: 1rem;
}

.contact a:hover .arrow {
  transform: translateX(3px);
}

/* --- Footer --- */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fade-in 1s ease 5.2s forwards;
}

.footer span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.15);
}

/* --- Cursor Glow (desktop only) --- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(
    circle,
    rgba(34, 211, 238, 0.04) 0%,
    rgba(236, 72, 153, 0.02) 40%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-glow {
    opacity: 1;
  }
}

/* ============================================================
   KEYFRAMES
   ============================================================ */

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes line-expand {
  to {
    width: 80px;
  }
}

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .logo-container,
  .tagline-primary,
  .tagline-secondary,
  .gradient-line-container,
  .contact,
  .footer {
    opacity: 1;
    transform: none;
  }

  .gradient-line {
    width: 80px;
  }

  .gradient-line::after {
    opacity: 0.5;
  }
}

/* ============================================================
   SELECTION
   ============================================================ */

::selection {
  background: rgba(34, 211, 238, 0.25);
  color: var(--white);
}

::-moz-selection {
  background: rgba(34, 211, 238, 0.25);
  color: var(--white);
}
