/* ============================================================
   Gives Spark – Main Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-primary:   #7C3AED;   /* violet-700 */
  --brand-secondary: #A855F7;   /* purple-500 */
  --brand-accent:    #F59E0B;   /* amber-400  */
  --brand-dark:      #0F0A1E;
  --brand-card:      #1A1130;
  --brand-border:    rgba(124,58,237,.25);
  --text-primary:    #F8F5FF;
  --text-muted:      #9CA3AF;
  --text-dim:        #6B7280;
  --surface:         #130E24;
  --gradient-hero:   linear-gradient(135deg,#7C3AED 0%,#A855F7 50%,#F59E0B 100%);
  --gradient-card:   linear-gradient(145deg,#1A1130,#0F0A1E);
  --radius-sm:       .5rem;
  --radius-md:       1rem;
  --radius-lg:       1.5rem;
  --radius-xl:       2rem;
  --shadow-glow:     0 0 40px rgba(124,58,237,.3);
  --shadow-card:     0 8px 32px rgba(0,0,0,.4);
  --transition:      .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--brand-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem,6vw,4.5rem); }
h2 { font-size: clamp(1.8rem,4vw,3rem); }
h3 { font-size: clamp(1.2rem,2.5vw,1.75rem); }
p  { color: var(--text-muted); }

a { color: inherit; text-decoration: none; }

/* ---------- Utility ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 6rem 0; }
.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .9rem;
  background: rgba(124,58,237,.15);
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: var(--brand-secondary);
  letter-spacing: .04em; text-transform: uppercase;
}
.badge .dot { width:6px;height:6px;border-radius:50%;background:var(--brand-accent);animation:pulse 2s infinite; }

@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.8)} }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600; font-size: .95rem;
  border: none; cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,58,237,.5); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--brand-border);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--brand-secondary); background: rgba(124,58,237,.1); }

.btn-cta {
  background: var(--brand-accent);
  color: #0F0A1E;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  box-shadow: 0 4px 24px rgba(245,158,11,.35);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(245,158,11,.5); }

.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  padding: 1.1rem 0;
  background: rgba(15,10,30,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--brand-border);
  transition: var(--transition);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 800; font-size: 1.25rem;
}
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a { font-size: .9rem; color: var(--text-muted); font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--brand-secondary); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; }
.hamburger span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* ---------- Hero ---------- */
.hero {
  padding: 10rem 0 7rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%,rgba(124,58,237,.35) 0%,transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .07;
  background-image:
    linear-gradient(var(--brand-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--brand-border) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; max-width: 750px; }
.hero-badge { margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero-sub {
  font-size: 1.2rem; color: var(--text-muted); max-width: 560px;
  margin-bottom: 2.5rem; line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }
.hero-stats {
  display: flex; gap: 3rem; flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--brand-border);
}
.stat-item h3 { font-size: 2rem; margin-bottom: .2rem; }
.stat-item p  { font-size: .85rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Section headers ---------- */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .badge { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 550px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(124,58,237,.5);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: rgba(124,58,237,.15);
  border: 1px solid var(--brand-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.card h3 { margin-bottom: .6rem; font-size: 1.15rem; }
.card p  { font-size: .92rem; line-height: 1.65; }

/* ---------- Feature Grid ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 1.5rem; }
.feature-card.highlight { border-color: rgba(168,85,247,.5); background: linear-gradient(145deg,rgba(124,58,237,.12),#0F0A1E); }

/* ---------- How It Works ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 2rem; position: relative; }
.step-card { text-align: center; padding: 2.5rem 1.5rem; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 24px rgba(124,58,237,.4);
}
.step-card h3 { margin-bottom: .6rem; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.pricing-card { position: relative; }
.pricing-card.featured {
  border-color: var(--brand-secondary);
  background: linear-gradient(145deg,rgba(124,58,237,.18),#0F0A1E);
}
.pricing-badge-top {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-hero); color: #fff;
  padding: .3rem 1.2rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap;
}
.price { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; margin: 1rem 0 .5rem; }
.price span { font-size: 1rem; font-weight: 400; color: var(--text-dim); }
.plan-name { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.plan-features { list-style: none; margin: 1.5rem 0; display: flex; flex-direction: column; gap: .75rem; }
.plan-features li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--text-muted); }
.plan-features li::before { content: '✓'; color: var(--brand-secondary); font-weight: 700; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 1.5rem; }
.testimonial-card { }
.testimonial-stars { color: var(--brand-accent); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-text { font-size: .95rem; color: var(--text-primary); line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .8rem; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
}
.author-info strong { display: block; font-size: .9rem; }
.author-info span   { font-size: .8rem; color: var(--text-dim); }

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 7rem 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%,rgba(124,58,237,.2) 0%,transparent 70%);
  text-align: center;
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p  { font-size: 1.1rem; max-width: 500px; margin: 0 auto 2.5rem; }

/* ---------- Footer ---------- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--brand-border);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: .9rem; margin: 1rem 0 1.5rem; max-width: 280px; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: .9rem; color: var(--text-dim); transition: var(--transition); }
.footer-links a:hover { color: var(--text-primary); }
.social-links { display: flex; gap: .75rem; }
.social-link {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--brand-border);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: var(--text-muted);
  transition: var(--transition);
}
.social-link:hover { border-color: var(--brand-secondary); color: var(--brand-secondary); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--brand-border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: .85rem; color: var(--text-dim);
}

/* ---------- Giveaway Page ---------- */
.giveaway-hero {
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.giveaway-header { max-width: 680px; }
.giveaway-header .company-label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem;
}
.company-logo-sm {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700;
}
.giveaway-main { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; padding-bottom: 5rem; }
.giveaway-card-main {
  background: var(--gradient-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.giveaway-card-img {
  width: 100%; height: 280px;
  background: linear-gradient(135deg,#1A1130,rgba(124,58,237,.3));
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  position: relative;
}
.giveaway-prize-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--brand-accent);
  color: #0F0A1E;
  padding: .4rem .9rem;
  border-radius: 999px; font-weight: 700; font-size: .85rem;
}
.giveaway-card-body { padding: 2rem; }
.giveaway-card-body h2 { margin-bottom: .75rem; font-size: 1.6rem; }
.giveaway-card-body p { margin-bottom: 1.5rem; }
.giveaway-meta-row {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.25rem 0;
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
  margin-bottom: 1.5rem;
}
.meta-item strong { display: block; font-size: 1.1rem; margin-bottom: .15rem; }
.meta-item span   { font-size: .8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; }

/* Sidebar */
.giveaway-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-card {
  background: var(--gradient-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.sidebar-card h3 { font-size: 1rem; margin-bottom: 1rem; }
.countdown-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .5rem; text-align: center; }
.countdown-item { background: rgba(124,58,237,.12); border-radius: var(--radius-sm); padding: .6rem; }
.countdown-item .cd-val { font-size: 1.5rem; font-weight: 800; display: block; }
.countdown-item .cd-lbl { font-size: .65rem; color: var(--text-dim); text-transform: uppercase; }
.participants-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.participant-item { display: flex; align-items: center; gap: .75rem; }
.participant-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; flex-shrink: 0;
}
.participant-info strong { display: block; font-size: .88rem; }
.participant-info span   { font-size: .75rem; color: var(--text-dim); }
.participants-more { font-size: .82rem; color: var(--brand-secondary); cursor: pointer; }

/* Progress bar */
.progress-bar-wrap { background: rgba(255,255,255,.07); border-radius: 999px; height: 8px; margin: .5rem 0 .25rem; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 999px; background: var(--gradient-hero); transition: width .6s ease; }

/* Participation iframe wrapper */
.iframe-wrapper {
  background: var(--gradient-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.iframe-wrapper iframe { width: 100%; height: 480px; border: none; display: block; }

/* Security trust bar */
.trust-bar {
  display: flex; align-items: center; justify-content: center; gap: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
  flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-muted); }
.trust-item svg { color: var(--brand-secondary); }

/* ---------- Features Page ---------- */
.features-hero {
  padding: 10rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.features-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0,rgba(124,58,237,.3) 0%,transparent 70%);
}
.features-hero-content { position: relative; z-index: 1; }
.big-feature-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: 1.5rem; }
.big-feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition);
}
.big-feature-card:hover {
  border-color: rgba(168,85,247,.5);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.big-feature-card .feature-icon-lg {
  width: 64px; height: 64px; border-radius: var(--radius-md);
  background: rgba(124,58,237,.15);
  border: 1px solid var(--brand-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 1.5rem;
}
.big-feature-card h3 { font-size: 1.3rem; margin-bottom: .75rem; }
.feature-sub-list { list-style: none; margin-top: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.feature-sub-list li { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--text-muted); }
.feature-sub-list li::before { content: '→'; color: var(--brand-secondary); }

/* Comparison table */
.comparison-wrap { overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th,
.comparison-table td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--brand-border); }
.comparison-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.comparison-table td { font-size: .92rem; color: var(--text-muted); }
.comparison-table .highlight-col { color: var(--text-primary); font-weight: 600; }
.comparison-table tr:last-child td { border-bottom: none; }
.check { color: #22C55E; } .cross { color: #EF4444; }

/* ---------- Animations ---------- */
@keyframes floatUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }
.fade-in { animation: floatUp .7s ease both; }
.fade-in-delay-1 { animation-delay: .1s; }
.fade-in-delay-2 { animation-delay: .2s; }
.fade-in-delay-3 { animation-delay: .35s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .giveaway-main { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .security-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 8rem 0 5rem; }
  .hero-stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .trust-bar { gap: 1.2rem; }
}

/* Mobile nav overlay */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 998;
  background: rgba(15,10,30,.97);
  backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.4rem; font-weight: 600; color: var(--text-primary); }
.mobile-nav .close-btn { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 1.5rem; cursor: pointer; background: none; border: none; color: var(--text-primary); }
