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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0f;
  color: #e0e0e8;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 28px 0;
  transition: padding 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgb(10 10 15 / 92%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgb(255 255 255 / 6%);
}

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

.nav-logo {
  text-decoration: none;
  opacity: 1;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 32px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-family: Rajdhani, sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: rgb(255 255 255 / 70%);
  text-decoration: none;
  letter-spacing: 3px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #6c63ff;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

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

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 80vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background:
    radial-gradient(ellipse at 20% 50%, rgb(108 99 255 / 8%) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgb(0 200 200 / 5%) 0%, transparent 60%),
    linear-gradient(to bottom, transparent 60%, #0a0a0f 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.title-resistance {
  font-family: Rajdhani, sans-serif;
  font-weight: 300;
  font-size: clamp(48px, 10vw, 120px);
  letter-spacing: clamp(12px, 3vw, 36px);
  color: #fff;
  line-height: 1;
  opacity: 0;
  transform: translateY(30px);
  animation: title-reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.title-llc {
  font-family: Rajdhani, sans-serif;
  font-weight: 200;
  font-size: clamp(16px, 3vw, 32px);
  letter-spacing: clamp(8px, 2vw, 24px);
  color: rgb(255 255 255 / 45%);
  line-height: 1;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(20px);
  animation: title-reveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.hero-rule {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(108 99 255 / 60%), transparent);
  margin: 24px auto 0;
  animation: rule-expand 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

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

@keyframes rule-expand {
  to {
    width: min(300px, 60vw);
  }
}



/* ===== About Section ===== */
.about {
  padding: 0 40px 140px;
  position: relative;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.about-heading {
  font-family: Rajdhani, sans-serif;
  font-weight: 300;
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgb(255 255 255 / 85%);
  text-align: center;
  margin-bottom: 10px;
}

/* ===== Capsules ===== */
.capsules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.capsule {
  background: linear-gradient(135deg, rgb(255 255 255 / 3%) 0%, rgb(255 255 255 / 1%) 100%);
  border: 1px solid rgb(255 255 255 / 6%);
  border-radius: 20px;
  padding: 48px 36px;
  text-align: center;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.capsule::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgb(108 99 255 / 8%) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.capsule:hover {
  transform: translateY(-4px);
  border-color: rgb(108 99 255 / 20%);
  box-shadow: 0 20px 60px rgb(0 0 0 / 30%);
}

.capsule:hover::before {
  opacity: 1;
}

.capsule-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 28px;
  color: #6c63ff;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.capsule:hover .capsule-icon {
  opacity: 1;
}

.capsule h3 {
  font-family: Rajdhani, sans-serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
}

.capsule p {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.8;
  color: rgb(255 255 255 / 50%);
  position: relative;
}

/* ===== Scroll Reveal ===== */
.reveal {
  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);
}

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

/* Stagger capsule delays */
.capsule.reveal[data-delay="1"] { transition-delay: 0.15s; }
.capsule.reveal[data-delay="2"] { transition-delay: 0.3s; }

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 40px;
  border-top: 1px solid rgb(255 255 255 / 4%);
}

.footer p {
  font-size: 12px;
  letter-spacing: 2px;
  color: rgb(255 255 255 / 25%);
  font-weight: 300;
}

/* ===== Responsive ===== */
@media (width <= 768px) {
  .nav-inner {
    padding: 0 24px;
  }

  .nav-links {
    gap: 24px;
  }

  .about {
    padding: 80px 24px 100px;
  }

  .capsule {
    padding: 36px 28px;
  }

  .about-heading {
    margin-bottom: 48px;
    letter-spacing: 4px;
  }
}

@media (width <= 480px) {
  .capsules {
    grid-template-columns: 1fr;
  }
}
