:root {
  color-scheme: light dark;
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  --bg-gradient: linear-gradient(135deg, #f7f8ff 0%, #eef3ff 40%, #f9f9ff 100%);
  --text-color: #1b1e34;
  --muted-text: #5c6280;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(58, 75, 189, 0.12);
  --accent: #3a4bbd;
  --accent-strong: #212d8f;
  --soft-shadow: 0 25px 50px -12px rgba(33, 45, 143, 0.25);
  --radius-lg: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: var(--bg-gradient);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo h2 {
  color: var(--accent);
  font-weight: 700;
  margin: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.auth-buttons {
  display: flex;
  gap: 1rem;
  margin-left: 1rem;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 8rem 1.5rem 3rem; /* Added top padding for navbar */
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero__content {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: rgba(58, 75, 189, 0.12);
  color: var(--accent-strong);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero__title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-size: 1.1rem;
  max-width: 520px;
  color: var(--muted-text);
}

.hero__illustration {
  flex: 1 1 360px;
  display: flex;
  justify-content: center;
}

.hero__glow {
  width: min(460px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 36% 64% 70% 30% / 45% 35% 65% 55%;
  background: radial-gradient(circle at 30% 30%, rgba(58, 75, 189, 0.18), rgba(58, 75, 189, 0));
  position: relative;
}

.hero__glow::before,
.hero__glow::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(33, 45, 143, 0.08);
  filter: blur(0px);
}

.hero__glow::before {
  inset: 15% 10% 35% 20%;
}

.hero__glow::after {
  inset: 30% 20% 10% 25%;
}

.cards {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--soft-shadow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.card::before {
  content: '';
  position: absolute;
  inset: -40% -40% auto auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(33, 45, 143, 0.12), rgba(33, 45, 143, 0));
  transform: rotate(25deg);
}

.card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1;
}

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(33, 45, 143, 0.08);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 1.2rem;
}

.card__title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card__body {
  color: var(--muted-text);
  font-size: 1rem;
  z-index: 1;
}

.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1;
}

.card__cta svg {
  width: 16px;
  height: 16px;
}

.card__cta:hover,
.card__cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(33, 45, 143, 0.55);
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  z-index: 1;
}

.store-button {
  flex: 1 1 160px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.2rem;
  border-radius: 18px;
  background: #0f172a;
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-button:hover,
.store-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(15, 23, 42, 0.65);
}

.store-button__icon {
  width: 32px;
  height: 32px;
}

.store-button__label {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.store-button__title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
}

footer {
  margin-top: auto;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  color: rgba(27, 30, 52, 0.6);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .hero {
    padding-top: 3.5rem;
    text-align: center;
  }

  .hero__content {
    align-items: center;
  }

  .hero__subtitle {
    max-width: none;
  }
}
