/* ==========================================
   Decode Labs — Landing Page Styles
   Color Palette: Dark Blue, Gray, White
   ========================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #2d3748;
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ==========================================
   Navigation
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  height: 36px;
  width: auto;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: -0.5px;
}

.logo-accent {
  color: #3b82f6;
}

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

.nav-links a {
  text-decoration: none;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #1a202c;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  padding: 120px 24px 80px;
}

.hero-content {
  max-width: 720px;
}

.hero-logo {
  max-width: 400px;
  width: 80%;
  height: auto;
  margin-bottom: 32px;
  filter: brightness(0) invert(1);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  /* Visually hidden since we show the logo image instead */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tagline {
  font-size: 1.35rem;
  color: #94a3b8;
  font-weight: 400;
  margin-bottom: 12px;
}

.subtitle {
  font-size: 1.05rem;
  color: #64748b;
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: #3b82f6;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

/* ==========================================
   About Section
   ========================================== */
.about {
  padding: 100px 24px;
  text-align: center;
  background: #ffffff;
}

.about h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #1a202c;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.divider {
  width: 48px;
  height: 3px;
  background: #3b82f6;
  margin: 0 auto 32px;
  border-radius: 2px;
}

.about p {
  font-size: 1.05rem;
  color: #475569;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==========================================
   Products Section
   ========================================== */
.products {
  padding: 100px 24px;
  text-align: center;
  background: #f8fafc;
}

.products h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #1a202c;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 16px;
}

/* Product Card */
.product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 48px 36px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.product-icon {
  color: #3b82f6;
  margin-bottom: 20px;
}

.product-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 12px;
}

.product-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.7;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact {
  padding: 100px 24px;
  text-align: center;
  background: #ffffff;
}

.contact h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #1a202c;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.contact p {
  font-size: 1.05rem;
  color: #475569;
  margin-bottom: 24px;
}

.contact-email {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 500;
  color: #3b82f6;
  text-decoration: none;
  padding: 12px 32px;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-email:hover {
  background: #3b82f6;
  color: #ffffff;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  padding: 32px 24px;
  text-align: center;
  background: #0f172a;
  color: #64748b;
  font-size: 0.85rem;
}

/* ==========================================
   Fade-in Animation
   ========================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.6rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-card {
    padding: 36px 24px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 0.85rem;
  }
}

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

  .nav-container {
    height: 60px;
  }

  .logo-icon {
    height: 28px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .hero-logo {
    max-width: 280px;
  }

  .nav-links {
    gap: 16px;
  }

  .about,
  .products,
  .contact {
    padding: 72px 16px;
  }
}
