:root {
  --bg-main: #0b0d17;
  --bg-deep: #14162b;

  --purple: #7b6cff;
  --blue: #4d7cff;

  --cta: #ff8a5b;
  --cta-hover: #f36f3d;

  --text-main: #f4f5ff;
  --text-muted: #cdcee6;
}

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

body {
  background: radial-gradient(circle at top, #1a1e45, var(--bg-main));
  font-family: Inter, system-ui, sans-serif;
  color: var(--text-main);
}

/* ================= NAVBAR ================= */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 22px 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  z-index: 1000;

  background: rgba(11, 13, 23, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.35s ease, background 0.3s ease;
}

.navbar.hidden { transform: translateY(-100%); }
.navbar.scrolled { background: rgba(11, 13, 23, 0.85); }

.nav-left img { width: 100px; height: auto; }

.nav-center { display: flex; justify-content: center; gap: 28px; }
.nav-center a { color: #e6e8ff; text-decoration: none; font-size: 14px; opacity: 0.9; transition: color 0.2s ease; }
.nav-center a:hover { color: var(--purple); }

.nav-right { display: flex; gap: 12px; }

/* ================= BUTTONS ================= */

.btn-outline {
  background: transparent;
  border: 1px solid rgba(123, 108, 255, 0.6);
  color: #e6e8ff;
  padding: 8px 18px;
  border-radius: 999px;
  transition: background 0.2s ease, border 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline:hover { background: rgba(123, 108, 255, 0.15); border-color: var(--purple); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #0b0d17;
  border: none;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(123, 108, 255, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(123, 108, 255, 0.65);
}

/* ===== MOBILE NAV ===== */

.menu-toggle { display: none; background: none; border: none; color: var(--text-main); font-size: 26px; cursor: pointer; }

.mobile-menu {
  position: absolute; top: 100%; left: 12px; right: 12px;
  background: rgba(11, 13, 23, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px; padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0; pointer-events: none; transform: translateY(-10px); transition: 0.25s ease;
}

.mobile-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-menu a { color: #e6e8ff; text-decoration: none; font-size: 15px; }

/* ================= HERO ================= */

.hero { position: relative; min-height: 80vh; overflow: hidden; padding-top: 96px; }
.hero-bg { position: absolute; inset: 0; background: url("https://images.unsplash.com/photo-1508609349937-5ec4ae374ebf") center / cover no-repeat; filter: grayscale(100%) blur(2px); transform: scale(1.05); }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(123,108,255,0.25), rgba(11,13,23,0.95)); }
.hero-content { position: relative; max-width: 760px; margin: auto; padding-top: 26vh; text-align: center; }
.hero h1 { font-size: 58px; font-weight: 800; line-height: 1.1; margin-bottom: 24px; }
.hero p { font-size: 18px; color: var(--text-muted); line-height: 1.6; }
.hero .big { margin-top: 32px; padding: 16px 42px; font-size: 15px; }
.hero-note { display: block; margin-top: 14px; font-size: 14px; color: #c6c9ff; }

/* ================= HOW IT WORKS ================= */

.how-it-works { padding: 120px 6%; }
.how-it-works h2 { font-size: 42px; margin-bottom: 48px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  position: relative;
  background: linear-gradient(180deg, #181c3a, #0b0d17);
  border-radius: 18px;
  padding: 24px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 120px rgba(0,0,0,0.7), 0 0 0 1px rgba(123,108,255,0.35);
}

.card-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;

  background-repeat: no-repeat;
  background-position: center 20%;
  background-size: contain;

  padding-top: 32%;
  opacity: 0.8;

  filter: grayscale(67%) saturate(0.6) contrast(0.95);
  z-index: 0;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,13,23,0.2) 0%, rgba(11,13,23,0.75) 55%, rgba(11,13,23,0.95) 100%);
  border-radius: 18px;
  z-index: 1;
}

.card span strong { display: block; font-weight: 600; }
.card span { position: relative; z-index: 2; font-size: 0.95rem; }
.card:hover .card-img { opacity: 0.45; transform: scale(1.03); transition: opacity 0.3s ease, transform 0.3s ease; }
.card span small, .card span br + * { font-size: 0.8rem; opacity: 0.8; }

.card-1 .card-img { background-image: url("../assets/card1.png"); }
.card-2 .card-img { background-image: url("../assets/card2.png"); }
.card-3 .card-img { background-image: url("../assets/card3.png"); }
.card-4 .card-img { background-image: url("../assets/card4.png"); }

/* ================= FOOTER ================= */

.site-footer {
  margin-top: 140px;
  padding: 80px 6% 32px;
  background: radial-gradient(circle at top, rgba(123,108,255,0.15), rgba(11,13,23,0.95));
  border-top: 1px solid rgba(123,108,255,0.2);
}

.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; max-width: 1200px; margin: auto; }
.footer-brand img { width: 120px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.6; max-width: 280px; }
.footer-links h4 { font-size: 14px; margin-bottom: 14px; color: #e6e8ff; letter-spacing: 0.5px; }
.footer-links a { display: block; font-size: 14px; color: var(--text-muted); text-decoration: none; margin-bottom: 10px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--purple); }
.footer-cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-cta span { font-size: 14px; color: var(--text-muted); }
.footer-bottom { margin-top: 64px; padding-top: 24px; text-align: center; font-size: 13px; color: #9aa0ff; border-top: 1px solid rgba(123,108,255,0.15); }

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .hero h1 { font-size: 42px; } }
@media (max-width: 768px) {
  /* Hide desktop + mobile nav elements */
  .desktop-nav,
  .menu-toggle,
  .mobile-menu {
    display: none !important;
  }

  /* Center logo */
  .navbar {
    grid-template-columns: 1fr;
    padding: 14px 20px;
    justify-items: center;
  }

  .nav-left {
    justify-self: center;
  }
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-cta { grid-column: span 2; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } .footer-cta { align-items: stretch; } }

@media (max-width: 768px) {
  /* Reduce top padding */
  .hero {
    padding-top: 64px;
  }

  /* Push content down a bit */
  .hero-content {
    padding-top: 18vh;
    padding-bottom: 40px;
  }
}

