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

:root {
  --bg-primary: #090D16;
  --bg-secondary: #0F172A;
  --bg-card: rgba(15, 23, 42, 0.45);
  --border-card: rgba(255, 255, 255, 0.08);
  --accent-primary: #6366F1; /* Indigo */
  --accent-primary-glow: rgba(99, 102, 241, 0.15);
  --accent-secondary: #10B981; /* Emerald */
  --accent-secondary-glow: rgba(16, 185, 129, 0.15);
  --accent-cyan: #06B6D4;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

.gradient-text {
  background: linear-gradient(135deg, #FFF 30%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #FFF 30%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  z-index: 1000;
  background: rgba(9, 13, 22, 0.7);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  text-decoration: none;
}

.logo span {
  color: var(--accent-primary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

nav a:hover {
  color: var(--text-main);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--text-main);
  box-shadow: 0 4px 14px var(--accent-primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-card);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border-card);
  padding: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  animation: float 6s ease-in-out infinite;
}

.hero-image-wrapper img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* Features Section */
.features {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px auto;
}

.section-header h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.1);
}

.feature-icon {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  background: var(--accent-primary);
  color: var(--text-main);
  box-shadow: 0 0 15px var(--accent-primary-glow);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
}

/* Feature Spotlight Sections */
.spotlight {
  padding: 80px 0;
  border-top: 1px solid var(--border-card);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.spotlight-grid.reverse {
  direction: rtl;
}

.spotlight-grid.reverse .spotlight-content {
  direction: ltr;
}

.spotlight-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.spotlight-content p {
  font-size: 16px;
  margin-bottom: 24px;
}

.spotlight-bullets {
  list-style: none;
}

.spotlight-bullets li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--text-main);
}

.spotlight-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-weight: bold;
}

.spotlight-image-wrapper {
  border-radius: 16px;
  border: 1px solid var(--border-card);
  padding: 6px;
  background: rgba(255,255,255,0.02);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.spotlight-image-wrapper img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* Contact / Upgrade Form Section */
.upgrade-section {
  padding: 100px 0;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 48px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.4);
}

.form-wrapper h2 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 12px;
}

.form-wrapper p {
  text-align: center;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  margin-top: 12px;
}

/* Footer */
footer {
  padding: 60px 0 30px 0;
  border-top: 1px solid var(--border-card);
  background: rgba(9, 13, 22, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 16px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--border-card);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    text-align: center;
  }
  .hero-content h1 {
    font-size: 44px;
  }
  .hero-content p {
    margin: 0 auto 32px auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spotlight-grid, .spotlight-grid.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  header nav {
    display: none; /* Can expand to hamburger menu in full apps */
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .form-wrapper {
    padding: 32px 20px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* --- 3D Canvas Background Container & Interactive Tilt Setup --- */
#three-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2; /* Sits behind standard page contents */
  pointer-events: none; /* Allows cursor hover to pass through to elements */
  overflow: hidden;
}

#three-canvas-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Add custom transition properties for smooth tilt effects on hoverable cards */
.feature-card, .hero-image-wrapper, .form-wrapper {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Ensure glassmorphism cards show the particles clearly */
.feature-card, .form-wrapper {
  background: rgba(9, 13, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
}
