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

:root {
  --navy: #1A1A2E;
  --charcoal: #2D2D3A;
  --card-dark: #3D3D4A;
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #a855f7;
  --white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-900: #111827;
  --radius: 0.5rem;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  color: var(--gray-900);
  background: var(--white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* Announcement bar */
.announcement {
  background: linear-gradient(to right, var(--charcoal), var(--card-dark), var(--charcoal));
  color: var(--white);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.announcement a { color: var(--pink); margin-left: 0.75rem; }
.announcement a:hover { color: #f9a8d4; }

/* Navigation */
.navbar {
  background: var(--charcoal);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-lg);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.logo img { height: 2.5rem; width: auto; }
.nav-links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a, .nav-dropdown > button {
  color: var(--white);
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a:hover, .nav-dropdown > button:hover { background: var(--card-dark); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-actions .btn-ghost { color: var(--white); padding: 0.5rem 1rem; border-radius: var(--radius); }
.nav-actions .btn-ghost:hover { background: var(--card-dark); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: linear-gradient(to right, var(--pink), var(--pink-dark));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(236,72,153,.25);
}
.btn-primary:hover { background: linear-gradient(to right, var(--pink-dark), #be185d); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
}
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-white { background: var(--white); color: var(--pink); }
.btn-white:hover { background: var(--gray-100); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}
.btn-lg { padding: 0.875rem 2.5rem; font-size: 1.125rem; }
.btn-blue { background: #3b82f6; color: var(--white); }
.btn-blue:hover { background: #2563eb; }

/* Hero */
.hero {
  background: var(--navy);
  color: var(--white);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(236,72,153,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(168,85,247,.1) 0%, transparent 50%);
}
.hero-content { position: relative; text-align: center; padding: 5rem 0; width: 100%; }
.badge {
  display: inline-block;
  background: rgba(236,72,153,.2);
  color: #fbcfe8;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(236,72,153,.3);
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.gradient-text {
  background: linear-gradient(to right, #f472b6, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--gray-400);
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}
.hero p strong { color: var(--white); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 4rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 48rem; margin: 0 auto; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-value { font-size: 2.5rem; font-weight: 700; color: var(--white); }
.stat-label { font-size: 0.875rem; color: var(--gray-400); margin-top: 0.25rem; }

/* Trust badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2rem;
}
.trust-badge { display: flex; align-items: center; gap: 0.5rem; color: var(--gray-400); font-size: 0.875rem; }
.trust-badge svg { color: var(--pink); width: 1.25rem; height: 1.25rem; }

/* Sections */
.section { padding: 5rem 0; }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-gray { background: var(--gray-100); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; }
.section-header p { font-size: 1.25rem; color: var(--gray-600); }
.section-dark .section-header p { color: var(--gray-400); }

/* Cards grid */
.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
.grid-4 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-dark {
  background: var(--card-dark);
  border: 1px solid #4d4d5a;
  color: var(--white);
}
.card-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(236,72,153,.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.card p { color: var(--gray-600); font-size: 0.875rem; line-height: 1.6; }
.card-dark p { color: var(--gray-400); }

/* Step number */
.step-num {
  width: 2rem;
  height: 2rem;
  background: var(--pink);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Testimonials */
.stars { color: #fbbf24; display: flex; gap: 0.125rem; margin-bottom: 1rem; }
.testimonial-quote { font-style: italic; color: var(--gray-600); margin-bottom: 1.5rem; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.avatar {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--pink);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.author-name { font-weight: 600; font-size: 0.875rem; }
.author-role { font-size: 0.75rem; color: var(--gray-500); }

/* CTA section */
.cta-section {
  background: linear-gradient(to right, var(--pink), var(--pink-dark));
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
}
.cta-section h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; }
.cta-section p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 2rem; max-width: 42rem; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Footer */
.footer {
  background: var(--charcoal);
  color: var(--gray-400);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; gap: 2rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h3 { color: var(--white); font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul a { font-size: 0.875rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--white); }
.footer-contact { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid var(--card-dark);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}
.social-links { display: flex; gap: 1rem; }
.social-links a { opacity: 0.7; transition: opacity 0.2s; }
.social-links a:hover { opacity: 1; }

/* Page layouts */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1rem; }
.page-hero p { color: var(--gray-400); font-size: 1.125rem; max-width: 42rem; margin: 0 auto; }
.page-content { padding: 4rem 0; }

/* Forms */
.form-card {
  max-width: 28rem;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  font-size: 1rem;
}
.form-group input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 2px rgba(236,72,153,.2); }
.form-footer { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: var(--gray-500); }
.form-footer a { color: var(--pink); }

/* Catalog */
.filters { background: var(--gray-100); padding: 1.5rem; border-radius: 0.75rem; margin-bottom: 2rem; }
.publisher-card { display: flex; flex-direction: column; gap: 0.75rem; }
.publisher-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.75rem; }
.tag { background: var(--gray-100); padding: 0.25rem 0.5rem; border-radius: 0.25rem; color: var(--gray-600); }
.price { font-size: 1.25rem; font-weight: 700; color: var(--pink); }

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-8 { margin-bottom: 2rem; }
