/* ============================================================
   Pulse — Main stylesheet
   ============================================================ */

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

:root {
  --blue:      #3b82f6;
  --blue-dark: #2563eb;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-500:  #6b7280;
  --gray-700:  #374151;
  --gray-900:  #111827;
  --radius:    8px;
  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* Container */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.15s, box-shadow 0.15s, opacity 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--blue-dark); }

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.btn-ghost:hover { background: var(--gray-50); }

.btn-lg { padding: 13px 28px; font-size: 1rem; }

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 12px;
  background: #eff6ff;
  color: var(--blue-dark);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 20px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--gray-900);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--gray-700);
  font-size: 0.9375rem;
}
.site-nav a:hover { color: var(--gray-900); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 88px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, #f0f9ff 0%, #fff 100%);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--gray-900);
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 1.125rem;
  color: var(--gray-500);
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* ============================================================
   Grids
   ============================================================ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ============================================================
   Features
   ============================================================ */
.features-grid {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  color: var(--gray-900);
}

.feature-card {
  padding: 28px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials {
  padding: 80px 0;
  background: var(--gray-50);
}

.testimonial {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.testimonial p {
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.65;
  margin-bottom: 16px;
}

.testimonial footer {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ============================================================
   CTA band
   ============================================================ */
.cta {
  padding: 80px 0;
  text-align: center;
  background: #1e40af;
  color: #fff;
}

.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta p {
  font-size: 1.0625rem;
  opacity: .85;
  margin-bottom: 32px;
}

.cta .btn-primary {
  background: #fff;
  color: #1e40af;
}
.cta .btn-primary:hover { background: #eff6ff; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 56px 0 32px;
  background: var(--gray-900);
  color: var(--gray-500);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo { color: #fff; margin-bottom: 12px; }

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--gray-500);
  transition: color .15s;
}
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-copy {
  border-top: 1px solid #374151;
  padding-top: 24px;
  font-size: 0.875rem;
  text-align: center;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-nav a:not(.btn) { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 56px; }
}
