/* ============================================
   vesan.ai — Cosmic Tech Aesthetic
   ============================================ */

:root {
  --void: #080c24;
  --void-deep: #050816;
  --void-surface: #0d1233;
  --void-elevated: #111842;
  --cobalt: #1439FC;
  --cobalt-glow: rgba(20, 57, 252, 0.35);
  --violet: #D334D7;
  --violet-glow: rgba(211, 52, 215, 0.3);
  --cyan: #00d4ff;
  --cyan-glow: rgba(0, 212, 255, 0.2);
  --text-primary: #f2f4f8;
  --text-secondary: #b0b8cc;
  --text-dim: #6e7794;
  --glass-bg: rgba(13, 18, 51, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.16);
  --light-bg: #f4f5f9;
  --light-bg-hover: #ebedf3;
  --light-text: #1a1e2e;
  --light-text-secondary: #4a5068;
  --light-border: rgba(0, 0, 0, 0.06);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--void);
  overflow-x: hidden;
  line-height: 1.65;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection {
  background: var(--cobalt);
  color: #fff;
}

/* ---- Particle Canvas ---- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ---- Floating Orbs ---- */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--cobalt-glow) 0%, transparent 70%);
  top: -200px; right: -150px;
  animation: orbFloat1 20s ease-in-out infinite;
}

.orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--violet-glow) 0%, transparent 70%);
  bottom: -100px; left: -200px;
  animation: orbFloat2 25s ease-in-out infinite;
}

.orb--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-80px, 60px) scale(1.1); }
  66% { transform: translate(40px, -40px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, -80px) scale(1.15); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-40%, -60%) scale(1.2); opacity: 0.8; }
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
  padding: 12px 0;
  background: rgba(8, 12, 36, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
}

.nav__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  transition: opacity 0.3s;
}

.nav__logo:hover { opacity: 0.8; }

.nav__logo-icon {
  color: var(--cobalt);
  font-size: 1.1rem;
  filter: drop-shadow(0 0 8px var(--cobalt-glow));
}

.nav__logo-dot { color: var(--cobalt); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.3s;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cobalt), var(--violet));
  border-radius: 1px;
  transition: width 0.35s var(--ease-out);
}

.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { width: 100%; }

.nav__donate {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--violet), #a020c0);
  color: #fff;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 2px 16px var(--violet-glow);
}

.nav__donate:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px var(--violet-glow);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.nav__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(5, 8, 22, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.mobile-menu__link:hover { color: var(--text-primary); }

.mobile-menu__donate {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  color: var(--violet) !important;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero__content {
  max-width: 720px;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s var(--ease-out) 0.35s forwards;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--cobalt), var(--violet), var(--cyan));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease-in-out infinite;
}

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

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 0.9s var(--ease-out) 0.5s forwards;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 0.9s var(--ease-out) 0.65s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.2s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--cobalt), #2850ff);
  color: #fff;
  box-shadow: 0 4px 24px var(--cobalt-glow), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--cobalt-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border-hover);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 11px 22px;
  font-size: 0.9rem;
}

/* ---- Sections ---- */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ---- Light Section ---- */
.section--light {
  background: var(--light-bg);
}

.section--light .section__title { color: var(--light-text); }
.section--light .section__desc { color: var(--light-text-secondary); }
.section--light .section__label { color: var(--cobalt); }

/* ---- App Cards Grid ---- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.app-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.45s var(--ease-out);
  overflow: hidden;
}

.app-card__glow {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(20, 57, 252, 0.06), transparent 40%, transparent 60%, rgba(211, 52, 215, 0.04));
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  z-index: -1;
}

.app-card:hover {
  border-color: rgba(20, 57, 252, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.app-card:hover .app-card__glow { opacity: 1; }

.app-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.app-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(20, 57, 252, 0.15), rgba(211, 52, 215, 0.1));
  border: 1px solid rgba(20, 57, 252, 0.2);
  color: var(--cobalt);
}

.app-card__icon--dim {
  background: var(--light-bg);
  border-color: var(--light-border);
  color: var(--light-text-secondary);
}

.app-card__version {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(20, 57, 252, 0.12);
  color: var(--cobalt);
  letter-spacing: 0.02em;
}

.app-card__version--soon {
  background: var(--light-bg);
  color: var(--light-text-secondary);
}

.app-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  color: var(--light-text);
}

.app-card__tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--violet);
  margin-bottom: 16px;
}

.app-card__desc {
  font-size: 0.95rem;
  color: var(--light-text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.app-card__features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--light-text-secondary);
}

.app-card__features li svg {
  color: var(--cyan);
  flex-shrink: 0;
}

.app-card__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.app-card__size {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--light-text-secondary);
  font-weight: 500;
}

.app-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  color: var(--light-text-secondary);
}

.app-card--coming {
  opacity: 0.6;
}

.app-card--coming:hover {
  opacity: 0.8;
}

/* ---- About Section ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__text .section__label { display: block; text-align: left; }
.about__text .section__title { text-align: left; margin-bottom: 20px; }

.about__text .section__title { color: var(--light-text); }

.about__text p {
  color: var(--light-text-secondary);
  font-size: 1.02rem;
  margin-bottom: 20px;
  line-height: 1.75;
}

.about__text .btn { margin-top: 8px; }

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--light-bg);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: all 0.35s var(--ease-out);
}

.stat-card:hover {
  background: var(--light-bg-hover);
  transform: translateY(-2px);
}

.stat-card__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.03em;
  color: var(--cobalt);
  margin-bottom: 6px;
}

.stat-card__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--light-text-secondary);
  letter-spacing: 0.02em;
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 1;
  padding: 48px 0;
  border-top: 1px solid var(--glass-border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.footer__links {
  display: flex;
  gap: 28px;
}

.footer__links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer__links a:hover { color: var(--text-primary); }

.footer__copy {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ---- Animations ---- */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

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

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__text .section__label,
  .about__text .section__title { text-align: center; }
  .about__text p { text-align: center; }
  .about__text { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .mobile-menu { display: flex; }

  .hero { min-height: 90vh; padding: 100px 20px 60px; }
  .hero__title { font-size: 2.4rem; }
  .hero__subtitle { font-size: 1rem; }

  .section { padding: 80px 0; }
  .section__header { margin-bottom: 40px; }

  .apps-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .app-card { padding: 28px; }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .about__stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 20px 16px; }
  .stat-card__number { font-size: 1.6rem; }
}
