@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=Inter:wght@400;500;600;700&display=swap');

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

html,
body {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0a0e27;
  color: #e5e7eb;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Gradient text for headings */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow effect for accents */
.glow-accent {
  box-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
}

.glow-accent-purple {
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.3);
}

/* Animated background grid */
.grid-bg {
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Data point animation */
@keyframes float-points {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.3;
  }
}

.floating-point {
  animation: float-points 8s ease-in-out infinite;
  position: absolute;
}

/* Pulse animation for CTAs */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(96, 165, 250, 0.8);
  }
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Gradient borders */
.border-gradient {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(#0a0e27, #0a0e27) padding-box,
    linear-gradient(135deg, #60a5fa, #a78bfa) border-box;
}

/* Feature card hover effect */
.feature-card {
  transition: all 0.3s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(96, 165, 250, 0.15);
}

/* Section spacing */
section {
  padding: 120px 0;
}

/* Hero uses Tailwind pt/pb utilities; keep its intended vertical rhythm. */
#hero {
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.container-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

/* Architecture diagram styles */
.arch-layer {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(167, 139, 250, 0.1));
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.arch-layer:hover {
  border-color: rgba(96, 165, 250, 0.6);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(167, 139, 250, 0.15));
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.2);
}

.arch-layer-title {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #60a5fa;
}

.arch-connector {
  width: 2px;
  height: 30px;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.5), transparent);
  margin: 0 auto;
}

/* Timeline styles */
.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: #60a5fa;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
}

.timeline-line {
  position: absolute;
  left: 9px;
  top: 20px;
  width: 2px;
  height: 40px;
  background: rgba(96, 165, 250, 0.3);
}

.timeline-item:last-child .timeline-line {
  display: none;
}

/* Page hero for inner pages (below fixed nav) */
.page-hero {
  padding-top: 8rem;
  padding-bottom: 3rem;
}

/* Primary navigation */
.nav-primary a[aria-current='page'] {
  color: #60a5fa;
  font-weight: 600;
}

.nav-primary a:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.6);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Credibility / next-step cards on home */
.link-card {
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 16px 40px rgba(96, 165, 250, 0.08);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background: #2563eb;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  outline: 2px solid rgba(96, 165, 250, 0.8);
  outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  #hero {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .container-wide {
    padding: 0 24px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-point,
  .pulse-glow {
    animation: none !important;
  }
}
