/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #ffffff;
  font-weight: 400;
  overflow-x: hidden;
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  }
}

@keyframes flowRight {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translateX(calc(100vw + 100px));
    opacity: 0;
  }
}

@keyframes flowLeft {
  0% {
    transform: translateX(calc(100vw + 100px));
    opacity: 0;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: translateX(-100px);
    opacity: 0;
  }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure all content is visible by default */
section, .hero-content, .nav {
  opacity: 1;
  visibility: visible;
}

/* Staggered animation delays */
.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000;
}

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: #000;
  margin: 3px 0;
  transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .back-link,
  .nav-cta {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
  }

  .back-link {
    background: #f8f9fa;
    color: #666;
  }
}

.back-link {
  color: #666;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #000;
}

.nav-cta {
  background: #000;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: #333;
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: #000;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  background: transparent;
  color: #000;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #f8f9fa;
  border-color: #000;
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Visual separator elements */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
  margin: 4rem 0;
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
  opacity: 0.3;
}

/* Immersive content breaks */
.immersive-break {
  height: 200px;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  position: relative;
  margin: 6rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.immersive-break::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 100px,
    rgba(0, 0, 0, 0.02) 101px,
    rgba(0, 0, 0, 0.02) 102px
  );
  animation: subtle-flow 20s linear infinite;
}

@keyframes subtle-flow {
  0% { transform: translateX(0); }
  100% { transform: translateX(102px); }
}

.immersive-text {
  font-size: 1.5rem;
  font-weight: 300;
  color: #666;
  text-align: center;
  letter-spacing: 0.5px;
  z-index: 2;
  position: relative;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #000;
  color: #fff;
  overflow: hidden;
}

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

.brand-logo {
  font-size: 1.25rem;
  font-weight: 400;
  color: #ccc;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #ccc;
  margin-bottom: 3rem;
  font-weight: 300;
}

.scroll-hint {
  color: #999;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
  animation: bounce 2s infinite;
}

.scroll-hint:hover {
  color: #fff;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  color: #000;
  line-height: 1.2;
}

/* How It Works Section */
.works-section {
  background: #f8f9fa;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.work-card {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.work-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  animation: float 3s ease-in-out infinite;
}

.work-card:nth-child(2) .work-icon { animation-delay: -1s; }
.work-card:nth-child(3) .work-icon { animation-delay: -2s; }
.work-card:nth-child(4) .work-icon { animation-delay: -3s; }

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

.work-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #000;
}

.work-card p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* VS Section */
.vs-section {
  background: #fff;
}

.vs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.vs-left h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #000;
  line-height: 1.2;
}

.vs-left p {
  font-size: 1.25rem;
  color: #666;
  line-height: 1.6;
}

.comparison-list {
  margin-top: 1rem;
}

.comparison-item {
  font-size: 1.1rem;
  padding: 1rem 0;
  font-weight: 500;
}

.comparison-item.negative {
  color: #999;
}

.comparison-item.positive {
  color: #000;
  font-weight: 600;
}

/* Capabilities Section */
.capabilities-section {
  background: #f8f9fa;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.capability-card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.capability-card::before {
  content: attr(data-hover);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #000;
  color: #fff;
  padding: 1rem;
  font-size: 0.9rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.capability-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.capability-card:hover::before {
  transform: translateY(0);
}

.capability-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.capability-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000;
}

/* Personas Section */
.personas-section {
  background: #fff;
}

.personas-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.persona-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 16px;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.persona-card:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.persona-avatar {
  font-size: 3rem;
  flex-shrink: 0;
}

.persona-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #000;
}

.persona-quote {
  color: #666;
  font-style: italic;
  line-height: 1.5;
}

/* Tech Section */
.tech-section {
  background: #000;
  color: #fff;
  text-align: center;
}

.tech-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
}

.tech-description {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  color: #ccc;
  font-weight: 300;
}

.tech-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.tech-block {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.tech-block:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.tech-block-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tech-block h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

/* Manifesto Section */
.manifesto-section {
  background: #000;
  color: #fff;
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.manifesto-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.starfield {
  position: relative;
  width: 100%;
  height: 100%;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

.star:nth-child(1) {
  width: 2px;
  height: 2px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.star:nth-child(2) {
  width: 1px;
  height: 1px;
  top: 40%;
  left: 70%;
  animation-delay: 1s;
}

.star:nth-child(3) {
  width: 3px;
  height: 3px;
  top: 70%;
  left: 30%;
  animation-delay: 2s;
}

.star:nth-child(4) {
  width: 1px;
  height: 1px;
  top: 30%;
  left: 80%;
  animation-delay: 0.5s;
}

.star:nth-child(5) {
  width: 2px;
  height: 2px;
  top: 60%;
  left: 20%;
  animation-delay: 1.5s;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.manifesto-content {
  z-index: 2;
  position: relative;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.manifesto-quote {
  font-size: 1.75rem;
  line-height: 1.6;
  font-weight: 300;
  color: #ccc;
  font-style: italic;
}

/* CTA Section */
.cta-section {
  background: #f8f9fa;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #000;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: #000;
  color: #fff;
  padding: 3rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-logo-text {
  color: #fff;
}

.footer-brand p {
  color: #ccc;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-section h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-section a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.social-icon {
  width: 24px;
  height: 24px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.social-links a:hover .social-icon {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #888;
  margin-bottom: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

  .section-title {
    font-size: 2rem;
  }

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

  .vs-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .personas-scroll {
    grid-template-columns: 1fr;
  }

  .tech-blocks {
    grid-template-columns: 1fr;
  }

  .manifesto-quote {
    font-size: 1.25rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
