/* ============================================================
   RupeeDraw — global styles
   Palette:  bg #fff9f5 · ink #421d06 · accent #ff9021 · muted #5a3a28
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap");

:root {
  --bg: #fff9f5;
  --ink: #421d06;
  --muted: #5a3a28;
  --accent: #ff9021;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  /* keep anchored sections clear of the sticky navbar */
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

section {
  margin-bottom: 5rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

img {
  max-width: 100%;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============================================================
   Navbar + collapsing mobile menu
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 144, 33, 0.2);
  transition: box-shadow 0.25s ease;
}

.navbar.scrolled {
  box-shadow: 0 6px 20px -12px rgba(66, 29, 6, 0.35);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--nav-h);
  gap: 16px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--ink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* Hidden checkbox that drives the menu (no JavaScript needed) */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Hamburger button + animated icon */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-bars {
  top: 50%;
  margin-top: -1.25px;
}
.menu-bars::before {
  top: -8px;
}
.menu-bars::after {
  top: 8px;
}

.nav-toggle:checked ~ .mobile-menu-btn .menu-bars {
  background: transparent;
}
.nav-toggle:checked ~ .mobile-menu-btn .menu-bars::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}
.nav-toggle:checked ~ .mobile-menu-btn .menu-bars::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}
.nav-toggle:focus-visible ~ .mobile-menu-btn {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(145deg, #fff0e4 0%, #fde8d9 100%);
  padding: 70px 0 100px;
  overflow: hidden;
}

.hero-glow-1,
.hero-glow-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  max-width: 70vw;
  max-height: 70vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}
.hero-glow-1 {
  background: var(--accent);
  top: -100px;
  left: -100px;
}
.hero-glow-2 {
  background: var(--ink);
  bottom: -100px;
  right: -100px;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  position: relative;
}

.hero-content {
  flex: 1 1 320px;
  min-width: 280px;
}

.hero-title {
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
}

.highlight {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent) 40%, var(--ink) 80%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-primary {
  background: var(--accent);
  border: none;
  padding: 14px 28px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 20px -5px rgba(255, 144, 33, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -10px rgba(255, 144, 33, 0.6);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--ink);
  padding: 12px 28px;
  border-radius: 60px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: var(--ink);
  color: white;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.9rem;
  font-weight: 500;
}
.trust-badges span {
  background: rgba(255, 144, 33, 0.1);
  padding: 6px 14px;
  border-radius: 40px;
  backdrop-filter: blur(4px);
}

.hero-visual {
  flex: 1 1 280px;
  min-width: 260px;
  display: flex;
  justify-content: center;
}

.mobile-mockup {
  width: min(340px, 78vw);
  height: auto;
}

/* ============================================================
   Section title (shared)
   ============================================================ */
.section-title {
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--ink), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* ============================================================
   Prizes
   ============================================================ */
.prizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.prize-card {
  background: white;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid rgba(255, 144, 33, 0.2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}
.prize-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 25px 35px -12px rgba(66, 29, 6, 0.15);
}

.prize-icon {
  margin-bottom: 16px;
  width: 100%;
  max-width: 130px;
}
.prize-icon img {
  width: 100%;
  height: auto;
}

.prize-card h3 {
  font-size: 1.05rem;
}

/* ============================================================
   About / highlights
   ============================================================ */
.about {
  background: var(--ink);
  color: white;
  padding: 80px 0;
  margin-top: 60px;
}

.about .section-title {
  background: linear-gradient(100deg, var(--accent), #ffffff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.about-text {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 60px;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================================
   How it works
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
}

.step {
  text-align: center;
  background: white;
  border-radius: 40px;
  padding: 30px 20px;
  border: 1px solid var(--accent);
}

.step-number {
  background: var(--accent);
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 30px;
  color: white;
  font-weight: bold;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}
.step h3 {
  margin-bottom: 5px;
}

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta {
  background: linear-gradient(135deg, var(--accent), var(--ink));
  padding: 80px 0;
  text-align: center;
  color: white;
}
.final-cta h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  margin-bottom: 16px;
}
.final-cta p {
  margin-bottom: 30px;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============================================================
   Why choose / features
   ============================================================ */
.features-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.feature {
  background: rgba(255, 144, 33, 0.05);
  border-radius: 60px;
  padding: 14px 22px;
  text-align: center;
  font-weight: 500;
  border: 1px solid rgba(255, 144, 33, 0.3);
  transition: transform 0.2s, border-color 0.2s;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: white;
  padding: 50px 0 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.footer-col p {
  color: #ffd6b5;
  margin-bottom: 8px;
}

.footer-address {
  font-weight: bold;
  letter-spacing: 0.5px;
}

.footer-col h4 {
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: #ffd6b5;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  section {
    margin-bottom: 3.5rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Collapsed dropdown panel */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(255, 144, 33, 0.2);
    box-shadow: 0 18px 30px -18px rgba(66, 29, 6, 0.4);
    padding: 8px 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .nav-toggle:checked ~ .nav-links {
    max-height: 380px;
    opacity: 1;
    visibility: visible;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-radius: 0;
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 144, 33, 0.08);
  }

  .hero {
    padding: 50px 0 70px;
    text-align: center;
  }
  .hero-buttons,
  .trust-badges {
    justify-content: center;
  }

  .about {
    padding: 60px 0;
    margin-top: 40px;
  }

  .footer-container {
    gap: 28px;
  }
  .footer-bottom {
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }
  .prizes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .prize-card {
    min-height: 180px;
    padding: 22px 14px;
    border-radius: 26px;
  }
  .btn-primary {
    width: 100%;
  }
  .hero-buttons {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
