:root {
  --bg-dark: #0f172a;
  --accent: #2563eb;
  --accent-light: #60a5fa;
  --white: #ffffff;
  --text-grey: #94a3b8;
  --bg-subtle: #f8fafc;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #334155;
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 1.25rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 30px;
  font-weight: 700;
  color: var(--bg-dark);
  letter-spacing: -0.05em;
  text-transform: lowercase;
}

.nav-links {
  display: flex;
  gap: 3rem;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

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

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--bg-dark);
}

.hero {
  padding: 12rem 0 8rem;
  background: radial-gradient(circle at 100% 0%, #eff6ff 0%, #ffffff 50%);
  position: relative;
}

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

.hero h1 {
  font-size: 5rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bg-dark);
  margin-bottom: 2rem;
}

.hero p {
  font-size: 1.25rem;
  color: #64748b;
  max-width: 600px;
  margin-bottom: 3rem;
  font-weight: 400;
}

.btn-group {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
  background-color: #1d4ed8;
}

.btn-ghost {
  background-color: transparent;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-ghost:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
  color: var(--bg-dark);
}

.features {
  padding: 6rem 0;
  background-color: #f1f1f1;
  border-radius: 2rem;
  margin: 4rem 2rem;
}

.section-head {
  margin-bottom: 5rem;
  max-width: 100%;
}

.section-head h2 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bg-dark);
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.card {
  padding: 2.5rem;
  border-radius: 1.5rem;
  background: var(--white);
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 15rem;
  height: 15rem;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
  z-index: -1;
  transition: transform 0.4s ease;
}

.card:hover::before {
  transform: translate(20%, -20%) scale(1.1);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.01);
  border-color: rgba(37, 99, 235, 0.2);
}

.card-header {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card p {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
}

.card::after {
  content: "→";
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  font-family: sans-serif;
  font-weight: 300;
}

.card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.cta {
  background-color: var(--bg-dark);
  color: var(--white);
  padding: 6rem 0;
  border-radius: 2rem;
  margin: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.25rem;
  color: #94a3b8;
  margin-bottom: 3rem;
}

footer {
  background-color: var(--white);
  padding: 6rem 0 2rem;
  border-top: 1px solid #f1f5f9;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h4 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--bg-dark);
  margin-bottom: 1.5rem;
}

.footer-link-group h5 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.footer-link-group ul li {
  margin-bottom: 1rem;
}

.footer-link-group a {
  color: #475569;
  font-weight: 500;
}

.footer-link-group a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #f1f5f9;
  color: #94a3b8;
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta {
    margin: 2rem 1rem;
    border-radius: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero {
    padding-top: 10rem;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .btn-group {
    justify-content: center;
    flex-direction: column;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .cta h2 {
    font-size: 2.5rem;
  }
}

/* 404 Page Styles */
.hero-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 50%, #eff6ff 0%, #ffffff 50%);
}
.hero-404 h1 {
  font-size: 10rem;
  line-height: 1;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  user-select: none;
}
.hero-404 .content-wrapper {
  position: relative;
  z-index: 1;
}
.hero-404 h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--bg-dark);
}
@media (max-width: 768px) {
  .hero-404 h1 {
    font-size: 6rem;
  }
  .hero-404 h2 {
    font-size: 2rem;
  }
}

.hero-404 p {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.hero-404 .btn-group {
    justify-content: center;
}
