:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #60a5fa;
  --dark: #0f172a;
  --gray: #475569;
  --light: #f8fafc;
  --light-gray: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-gray);
  z-index: 1000;
  transition: all 0.4s;
}

.navbar.scrolled {
  box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 1.5rem;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -6px;
  left: 0;
  background: var(--primary);
  transition: width 0.35s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.btn {
  padding: 0.95rem 2.4rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 30px rgba(37,99,235,0.35);
}

/* Hero */
.hero {
  min-height: 95vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding-top: 8rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(96,165,250,0.2) 10%, transparent 40%);
  animation: float 18s infinite ease-in-out;
}

@keyframes float {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(8%,12%) rotate(3deg); }
}

.hero-content {
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(3.2rem, 8vw, 5.2rem);
  line-height: 1.05;
  margin-bottom: 1.6rem;
}

.hero p {
  font-size: 1.35rem;
  color: var(--gray);
  margin-bottom: 2.8rem;
  max-width: 640px;
}

/* Sections */
section {
  padding: 9rem 0;
}

.section-title {
  text-align: center;
  font-size: 3.2rem;
  margin-bottom: 1.2rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.3rem;
  color: var(--gray);
  max-width: 720px;
  margin: 0 auto 5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.card {
  background: white;
  border-radius: 1.5rem;
  padding: 2.4rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
  transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
  border: 1px solid var(--light-gray);
}

.card:hover {
  transform: translateY(-16px);
  box-shadow: 0 25px 70px rgba(0,0,0,0.14);
}

.card-icon {
  font-size: 3.5rem;
  margin-bottom: 1.4rem;
  color: var(--primary);
}

/* Footer */
footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3.5rem;
}

footer a {
  color: #cbd5e1;
  text-decoration: none;
}

footer a:hover {
  color: white;
}

.copyright {
  text-align: center;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #334155;
  font-size: 0.98rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; } /* you can add hamburger later */
  .hero { padding-top: 10rem; min-height: 80vh; }
  .section-title { font-size: 2.6rem; }
}