* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f9fafb;
  color: #020617;
  line-height: 1.5;
}

/* Refined Color System */
:root {
  --primary: #6366f1;
  --primary-light: #a5b4fc;
  --gradient-start: #7c3aed;
  --gradient-end: #22d3ee;
  --bg-light: #f9fafb;
  --text-dark: #020617;
  --text-soft: #475569;
  --card-shadow: 0 18px 28px -12px rgba(99, 102, 241, 0.18);
  --footer-bg: #020617;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  margin: 1rem 2rem;
  z-index: 1000;
  border-radius: 1rem;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  font-size: 1.8rem;
  background: linear-gradient(130deg, var(--primary), #3b82f6);
  -webkit-background-clip: text;
  color: transparent;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.5rem 0;
  transition: 0.2s;
}

nav ul li a:hover {
  color: var(--primary);
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -0.75rem;
  background: white;
  box-shadow: 0 15px 25px -5px rgba(0,0,0,0.1);
  border-radius: 20px;
  padding: 0.9rem 0;
  min-width: 190px;
  border: 1px solid rgba(99,102,241,0.15);
}

.dropdown li a {
  display: block;
  padding: 0.6rem 1.8rem;
  font-weight: 500;
  color: var(--text-soft);
}

.dropdown li a:hover {
  background: #f1f5f9;
  color: var(--primary);
}

nav li:hover .dropdown {
  display: block;
}

/* Hero */
#hero {
  height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image:
    url('https://images.pexels.com/photos/3184418/pexels-photo-3184418.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2'),
    linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  background-blend-mode: overlay;
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 2rem;
}

#hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.2rem);
  font-weight: 800;
  text-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

#hero p {
  font-size: 1.3rem;
  margin: 1.5rem 0 2rem;
}

/* Updated Button */
.btn {
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  color: var(--primary);
  padding: 14px 38px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.15rem;
  box-shadow: 0 12px 24px -8px rgba(0,0,0,0.25);
  transition: all 0.25s ease;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 22px 35px -10px rgba(0,0,0,0.35);
  background: white;
}

/* Features */
#features {
  padding: 5rem 0;
  background: var(--bg-light);
}

#features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 32px;
  box-shadow: var(--card-shadow);
  transition: 0.3s ease;
  text-align: center;
  border: 1px solid rgba(99,102,241,0.12);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 38px -14px rgba(99,102,241,0.35);
}

.feature-card i {
  font-size: 3rem;
  background: linear-gradient(145deg, #4facfe, #3b82f6);
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 1.3rem;
}

/* Footer */
footer {
  background: var(--footer-bg);
  color: #cbd5e1;
  padding: 2.5rem 0;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.footer-links a {
  color: #e2e8f0;
  text-decoration: none;
  transition: 0.2s;
}

.footer-links a:hover {
  color: #38bdf8;
}

hr {
  width: 80px;
  border: 1px solid #334155;
  margin: 1rem auto;
}