/* ============================================================
   Gifternise Public / Marketing Site Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

.public-site { background: var(--white); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}
.navbar-brand { display: flex; align-items: center; gap: .625rem; text-decoration: none; }
.brand-logo { height: 36px; width: auto; }
.brand-text { font-size: 1.25rem; font-weight: 800; color: var(--primary); }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}
.navbar-nav .nav-link {
  padding: .5rem .875rem;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all .15s;
}
.navbar-nav .nav-link:hover { color: var(--text); background: var(--bg); text-decoration: none; }
.navbar-nav .nav-cta .btn { margin-left: .5rem; }

.navbar-toggler {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.navbar-toggler span { display: block; width: 22px; height: 2px; background: var(--text); transition: all .3s; border-radius: 1px; }
.navbar-toggler.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler.active span:nth-child(2) { opacity: 0; }
.navbar-toggler.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background: linear-gradient(135deg, #f5f3ff 0%, #fce7f3 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(108,99,255,.08) 0%, transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(255,101,132,.06) 0%, transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .375rem;
  background: var(--primary-light); color: var(--primary);
  padding: .375rem .875rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem; }
.hero h1 span { color: var(--primary); }
.hero-lead { font-size: 1.2rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 2.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-visual { margin-top: 3.5rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ---- Features ---- */
.features { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  transition: box-shadow .2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.5rem;
}
.feature-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.feature-card p { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* ---- How It Works ---- */
.how-it-works { padding: 5rem 0; background: var(--bg); }
.steps { display: flex; gap: 2rem; flex-wrap: wrap; }
.step { flex: 1; min-width: 200px; text-align: center; position: relative; }
.step-number {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-size: 1.25rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step h3 { font-size: 1rem; margin-bottom: .5rem; }
.step p { color: var(--text-muted); font-size: .875rem; }

/* ---- Pricing Preview ---- */
.pricing-preview { padding: 5rem 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--white);
  text-align: center;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(108,99,255,.2);
  position: relative;
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--white);
  font-size: .75rem; font-weight: 700; padding: .2rem .875rem; border-radius: 999px;
}
.pricing-plan { font-size: .875rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .75rem; }
.pricing-price { font-size: 2.5rem; font-weight: 800; line-height: 1; margin-bottom: .25rem; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-period { font-size: .875rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 2rem; }
.pricing-features li { padding: .4rem 0; font-size: .9rem; display: flex; align-items: center; gap: .5rem; }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; }

/* ---- CTA Section ---- */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  color: var(--white);
}
.cta-section h2 { color: var(--white); margin-bottom: .875rem; }
.cta-section p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2rem; }

/* ---- Footer ---- */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand .brand-text { color: var(--white); }
.footer-brand p { margin-top: .75rem; font-size: .9rem; }
.site-footer h4 { color: var(--white); font-size: .875rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255,255,255,.65); font-size: .875rem; transition: color .15s; }
.site-footer a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; text-align: center; font-size: .875rem; }

.social-links { display: flex; gap: .75rem; }
.social-links a { display: flex; align-items: center; color: rgba(255,255,255,.6); }
.social-links a:hover { color: var(--white); }

/* ---- Auth pages ---- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f3ff 0%, #fce7f3 100%);
  padding: 2rem;
}
.auth-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-brand { text-align: center; margin-bottom: 2rem; }
.auth-brand .brand-text { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.auth-title { font-size: 1.5rem; font-weight: 700; margin-bottom: .375rem; }
.auth-sub { color: var(--text-muted); margin-bottom: 2rem; font-size: .9rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: .875rem; color: var(--text-muted); }

/* ---- CMS page blocks ---- */
.page-hero { padding: 4rem 0; background: linear-gradient(135deg, #f5f3ff 0%, #fce7f3 100%); }
.page-hero h1 { margin-bottom: .875rem; }
.page-content { padding: 3rem 0; }
.content-block { margin-bottom: 2.5rem; }
.content-block img { border-radius: var(--radius); }
.block-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.block-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; background: var(--white); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
  .hero-lead { font-size: 1rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .features, .how-it-works, .pricing-preview { padding: 3rem 0; }
  .navbar-toggler { display: flex; }
  .navbar-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem; gap: .25rem; }
  .navbar-nav.show { display: flex; }
  .site-header { position: relative; }
  .navbar { position: relative; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .auth-box { padding: 1.5rem; }
}
