/* Coordinator - Design System Premium */
:root {
  --bg-deep: #0a0a0f;
  --bg-card: #12121a;
  --text-primary: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent: #8b5cf6;
  --accent-glow: #22d3ee;
  --radius: 16px;
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Animation de fond cosmique */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
}

/* Fond animé */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(10, 10, 15, 0) 70%);
  animation: gradientShift 15s ease infinite;
  z-index: -1;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 15, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 15px 5%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.cta-button {
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--text-primary), var(--accent-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.secondary-button {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* Sections */
.section {
  padding: 100px 5%;
  animation: fadeInUp 0.8s ease-out;
}

.section-visible {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: scaleIn 0.6s ease-out;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 25px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  animation: scaleIn 0.6s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Demo Section */
.demo-section {
  background: linear-gradient(90deg, var(--bg-card), var(--bg-deep));
  border-radius: var(--radius);
  padding: 80px;
  margin: 100px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.demo-image {
  animation: float 8s ease-in-out infinite;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.demo-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.pillar {
  text-align: center;
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--radius);
  animation: scaleIn 0.6s ease-out;
}

.pillar .number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 15px;
}

/* CTA */
.cta-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 60px;
}

.cta-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 50px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.cta-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin: 20px 0;
}

/* Footer */
.footer {
  padding: 60px 5% 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-muted);
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 1s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Responsive - Mobile Optimized */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
}

@media (max-width: 1024px) {
  .demo-section,
  .pillars,
  .cta-section {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .section {
    padding: 80px 5%;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 15px 5%;
  }
  
  .logo {
    font-size: 1.3rem;
  }
  
  .hero {
    height: 90vh;
  }
  
  .hero h1 {
    font-size: 1.7rem;
  }
  
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .cta-button,
  .secondary-button {
    width: 100%;
    max-width: 250px;
  }
  
  .section {
    padding: 60px 5%;
  }
  
  .feature-card {
    padding: 30px 20px;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .pillar {
    padding: 30px 20px;
  }
  
  .pillar .number {
    font-size: 2.5rem;
  }
  
  .demo-section {
    padding: 40px 20px;
    margin: 60px 5%;
  }
  
  .cta-card {
    padding: 30px 20px;
  }
  
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .gallery-item img {
    height: 180px;
  }
}