/* RealStack marketing landing page styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #1d4ed8;
  --blue-dark: #1e40af;
  --blue-light: #eff6ff;
  --text: #111827;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --border: #e5e7eb;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

/* UTILS */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* BUTTONS */
.btn {
  display: inline-block;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm  { font-size: 14px; padding: 8px 16px; }
.btn-lg  { font-size: 17px; padding: 14px 28px; }
.btn-xl  { font-size: 18px; padding: 16px 36px; }

.btn-primary  { background: var(--blue); color: #fff; }
.btn-secondary { background: #fff; color: var(--blue); border: 2px solid var(--blue); }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 14px 20px;
}
.nav-links {
  display: flex; align-items: center; gap: 20px;
}
.nav-link {
  font-size: 14px; font-weight: 500; color: #374151; text-decoration: none;
}
.nav-link:hover { color: var(--blue); }
.nav-logo {
  font-size: 20px; font-weight: 800; color: var(--blue); text-decoration: none;
  letter-spacing: -0.5px;
}

/* HERO */
.hero { padding: 72px 0 80px; background: linear-gradient(160deg, #f0f9ff 0%, #ffffff 60%); }
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-light); border-radius: 999px;
  padding: 4px 14px; margin-bottom: 20px;
}
.hero-headline {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px; color: var(--text-muted); max-width: 520px; margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-trust { font-size: 13px; color: var(--text-muted); }
.hero-image-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.10); }
.hero-img { width: 100%; height: auto; display: block; }

/* FEATURES */
.features { padding: 80px 0; }
.section-title {
  text-align: center;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: #fafafa; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
}
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 15px; line-height: 1.65; }

/* SOCIAL PROOF */
.social-proof { padding: 80px 0; background: var(--blue-light); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: #fff; border-radius: var(--radius);
  padding: 28px 24px; border: 1px solid var(--border);
}
.testimonial-text { font-size: 15px; line-height: 1.7; color: var(--text); margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 14px; font-weight: 700; }
.testimonial-author span { font-size: 13px; color: var(--text-muted); }
/* Placeholder slot — visually dimmed */
.testimonial-placeholder { opacity: 0.4; border-style: dashed; }
.testimonial-empty { font-style: normal; color: var(--text-muted) !important; }

/* PRICING */
.pricing { padding: 80px 0; }
.pricing .container { display: flex; justify-content: center; }
.pricing-card {
  background: #fff; border: 2px solid var(--blue);
  border-radius: 20px; padding: 48px 48px 40px;
  text-align: center; max-width: 420px; width: 100%;
  box-shadow: 0 12px 40px rgba(29,78,216,0.12);
  position: relative;
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 16px; border-radius: 999px;
}
.pricing-title { font-size: 56px; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 10px; }
.pricing-desc { font-size: 16px; color: var(--text-muted); margin-bottom: 28px; }
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li {
  text-align: left; font-size: 16px; padding: 8px 0;
  border-bottom: 1px solid var(--border); color: var(--text);
}
.pricing-features li:last-child { border: none; }
.pricing-card .btn-xl { width: 100%; text-align: center; }
.pricing-alt { font-size: 14px; color: var(--text-muted); margin-top: 16px; }
.pricing-alt a { color: var(--blue); text-decoration: underline; }

/* TRUST STRIP */
.trust-strip { background: #111827; padding: 28px 0; }
.trust-items {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.trust-items span { color: #d1d5db; font-size: 14px; font-weight: 500; }

/* FOOTER */
.footer { padding: 56px 0 32px; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; flex-wrap: wrap; margin-bottom: 40px;
}
.footer-logo { font-size: 18px; font-weight: 800; color: var(--blue); text-decoration: none; }
.footer-brand p { font-size: 14px; color: var(--text-muted); margin-top: 8px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-muted); text-align: center; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero-image-wrap { order: -1; }
  .hero-headline { font-size: 28px; }
  .hero-sub { font-size: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .trust-items { gap: 20px; }
  .footer-inner { flex-direction: column; }
  .hero .container { text-align: center; }
  .hero-badge { display: block; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-trust { text-align: center; }
  .pricing-card { padding: 40px 24px 32px; }
  .pricing-title { font-size: 44px; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 0 60px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; text-align: center; }
}
