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

:root {
  /* Colors */
  --background: hsl(210, 20%, 98%);
  --foreground: hsl(222, 47%, 11%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(222, 47%, 11%);
  --primary: hsl(217, 91%, 60%);
  --primary-foreground: hsl(210, 40%, 98%);
  --secondary: hsl(210, 40%, 96%);
  --secondary-foreground: hsl(222, 47%, 11%);
  --muted: hsl(210, 40%, 96%);
  --muted-foreground: hsl(215, 16%, 47%);
  --accent: hsl(172, 66%, 50%);
  --accent-foreground: hsl(222, 47%, 11%);
  --border: hsl(214, 32%, 91%);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --container-max: 1280px;
  --container-padding: 1rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== HEADER ==================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsla(210, 20%, 98%, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--foreground);
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--muted-foreground);
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ==================== HERO ==================== */
.hero {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

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

.hero-gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.hero-gradient-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -100px;
}

.hero-gradient-2 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  bottom: -150px;
  left: -100px;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, hsla(217, 91%, 60%, 0.1), hsla(172, 66%, 50%, 0.1));
  border: 1px solid hsla(217, 91%, 60%, 0.2);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: 9999px;
  box-shadow: 0 10px 40px -10px hsla(217, 91%, 60%, 0.5);
  transition: all 0.3s;
}

.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px -10px hsla(217, 91%, 60%, 0.6);
}

/* ==================== TOOLS SECTION ==================== */
.tools-section {
  padding: 6rem 0;
  background: hsla(210, 40%, 96%, 0.3);
}

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

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==================== TOOL CARD ==================== */
.tool-card {
  position: relative;
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid hsla(214, 32%, 91%, 0.5);
  box-shadow: 0 4px 20px -5px hsla(222, 47%, 11%, 0.08);
  transition: all 0.3s;
}

.tool-card:hover {
  box-shadow: 0 12px 40px -10px hsla(222, 47%, 11%, 0.15);
  border-color: hsla(217, 91%, 60%, 0.2);
}

.tool-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  background: hsla(172, 66%, 50%, 0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
}

.tool-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.25rem;
  transition: transform 0.3s;
}

.tool-card:hover .tool-icon {
  transform: scale(1.1);
}

.tool-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--card-foreground);
}

.tool-description {
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.tool-notify {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.tool-action {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.2s;
}

.tool-action:hover {
  gap: 0.5rem;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--foreground);
  color: hsla(210, 40%, 98%, 0.8);
  padding: 4rem 0 2rem;
}

.footer-inner {
  max-width: 1200px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid hsla(210, 40%, 98%, 0.1);
}

.footer-brand .logo {
  color: white;
  margin-bottom: 0.75rem;
}

.footer-brand .logo-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.footer-tagline {
  color: hsla(210, 40%, 98%, 0.6);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-heading {
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.footer-link {
  color: hsla(210, 40%, 98%, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  padding-top: 2rem;
  text-align: center;
}

.copyright {
  font-size: 0.875rem;
  color: hsla(210, 40%, 98%, 0.5);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-links {
    gap: 2rem;
  }
}
