/* ===== CSS Variables ===== */
:root {
  --bg-dark: #0a0a0f;
  --bg-dark-lighter: #12121a;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.4);
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-light: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Animated Background ===== */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: var(--bg-dark);
  overflow: hidden;
}

.animated-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(ellipse 800px 600px at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 600px 400px at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 400px 300px at 50% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
  animation: drift 20s ease-in-out infinite;
}

.animated-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 500px 400px at 70% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 300px 200px at 30% 80%, rgba(168, 85, 247, 0.04) 0%, transparent 50%);
  animation: drift 25s ease-in-out infinite reverse;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(2%, 3%) rotate(1deg); }
  50% { transform: translate(-1%, 2%) rotate(-1deg); }
  75% { transform: translate(1%, -2%) rotate(0.5deg); }
}

/* ===== Grid Overlay ===== */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.5rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 80rem;
  margin: 0 auto;
}

.logo img {
  height: 28px;
  width: auto;
}

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

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(168, 85, 247, 0.8));
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.5), 0 0 40px rgba(99, 102, 241, 0.3);
}

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

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
}

.hero-content {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

.hero-label {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(90deg, #818cf8, #a78bfa, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 48rem;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 32rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero-form {
    flex-direction: row;
  }
}

/* ===== Form Elements ===== */
.form-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.btn {
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: #4f46e5;
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.btn-white {
  background: white;
  color: #111;
}

.btn-white:hover {
  background: #f3f4f6;
}

/* ===== Scroll Hint ===== */
.scroll-hint {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.scroll-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.scroll-btn:hover {
  color: var(--text-secondary);
}

.scroll-icon {
  width: 1.25rem;
  height: 1.25rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== Sections ===== */
.section {
  padding: 8rem 1.5rem;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-label {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 40rem;
  margin: 0 auto;
}

/* ===== Capabilities Grid ===== */
.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.capability-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.glow-card:hover {
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.capability-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.capability-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
}

.capability-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.capability-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Steps Grid ===== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.step {
  position: relative;
}

.step-number {
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  line-height: 1;
}

.step-content {
  position: relative;
  padding-top: 2rem;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.step-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== CTA Card ===== */
.cta-card {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), transparent);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 4rem 2rem;
  text-align: center;
}

@media (min-width: 640px) {
  .cta-card {
    padding: 5rem 4rem;
  }
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .cta-form {
    flex-direction: row;
  }
}

/* ===== Footer ===== */
.footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* ===== Page Template ===== */
.page-hero {
  min-height: auto;
  padding: 10rem 1.5rem 4rem;
}

.page-content {
  max-width: 48rem;
  margin: 0 auto;
}

.page-label {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.page-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.5), rgba(168, 85, 247, 0.3), transparent);
  margin-bottom: 2rem;
}

.page-text {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-up-delay-1 {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.1s forwards;
}

.fade-in-up-delay-2 {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.fade-in-up-delay-3 {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.fade-in-up-delay-4 {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

/* ===== Mobile Menu (for smaller screens) ===== */
@media (max-width: 480px) {
  .nav-links {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.85rem;
  }
  
  .logo img {
    height: 24px;
  }
}
