/* ============================================
   DéclikIA — Landing Page Styles
   Brand Colors:
     Electric Blue: #2D5BFF
     Deep Purple:   #7B2FBE
     Neon Cyan:     #00E5CC
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f18;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);

  --blue: #2D5BFF;
  --purple: #7B2FBE;
  --cyan: #00E5CC;
  --white: #ffffff;
  --gray-100: #f0f0f5;
  --gray-300: #a0a0b8;
  --gray-500: #6b6b80;
  --gray-700: #2a2a3a;

  --gradient-blue-purple: linear-gradient(135deg, var(--blue), var(--purple));
  --gradient-purple-cyan: linear-gradient(135deg, var(--purple), var(--cyan));
  --gradient-full: linear-gradient(135deg, var(--blue), var(--purple), var(--cyan));

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 20px;

  --shadow-glow-blue: 0 0 30px rgba(45, 91, 255, 0.3);
  --shadow-glow-cyan: 0 0 30px rgba(0, 229, 204, 0.3);
  --shadow-glow-purple: 0 0 30px rgba(123, 47, 190, 0.3);

  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--gray-100);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient-full);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-300);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-blue-purple);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-blue);
}

.btn-glow {
  box-shadow: 0 0 20px rgba(45, 91, 255, 0.25);
}

.btn-glow:hover {
  box-shadow: 0 0 40px rgba(45, 91, 255, 0.4), 0 0 80px rgba(123, 47, 190, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--glass-border);
  backdrop-filter: blur(8px);
  width: 100%;
}

.btn-secondary:hover {
  background: var(--gradient-purple-cyan);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-cyan);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-icon { font-size: 1.3rem; }

.logo-accent {
  background: var(--gradient-blue-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-300);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-blue-purple);
  transition: width var(--transition);
}

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

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

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--blue);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--purple);
  bottom: -10%;
  left: -5%;
  animation-delay: -3s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: var(--cyan);
  top: 40%;
  left: 50%;
  opacity: 0.2;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 60px rgba(45, 91, 255, 0.15);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--gray-300);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ---------- Products Section ---------- */
.products {
  padding: 100px 0;
  position: relative;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 1rem;
}

/* Glassmorphism Card */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: all var(--transition);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(45, 91, 255, 0.08);
}

.card {
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-full);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover::before {
  opacity: 1;
}

.card-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(45, 91, 255, 0.15);
  color: var(--cyan);
  margin-bottom: 1.2rem;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient-purple-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.card-features {
  text-align: left;
  margin-bottom: 2rem;
}

.card-features li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--gray-300);
  font-size: 0.95rem;
}

.card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

/* ---------- Newsletter Section ---------- */
.newsletter {
  padding: 100px 0;
}

.newsletter-card {
  max-width: 650px;
  margin: 0 auto;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-full);
}

.newsletter-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.newsletter-tagline {
  color: var(--gray-300);
  font-size: 1.05rem;
  margin: 1rem 0 2rem;
  line-height: 1.7;
}

.newsletter-form .form-group {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.form-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition);
}

.form-input::placeholder {
  color: var(--gray-500);
}

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(45, 91, 255, 0.15);
}

.form-note {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 1rem;
}

/* ---------- About Section ---------- */
.about {
  padding: 100px 0;
}

.about-content {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.about-text {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  line-height: 1.7;
  margin-top: 1.5rem;
  color: var(--gray-100);
}

.about-description {
  color: var(--gray-300);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-top: 1.5rem;
}

/* ---------- Footer ---------- */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-secondary);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
}

.footer-tagline {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-top: 4px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--gray-300);
  transition: all var(--transition);
}

.social-link:hover {
  color: var(--white);
  border-color: var(--blue);
  background: rgba(45, 91, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-blue);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.85rem;
}

/* ---------- Scroll Animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Stagger children */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px 24px;
    display: block;
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero { padding: 100px 0 60px; }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .newsletter-card {
    padding: 40px 24px;
  }

  .newsletter-form .form-group {
    flex-direction: column;
  }

  .newsletter-form .btn {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .card {
    padding: 32px 24px;
  }
}
