/* ============================================
   SHARED DESIGN SYSTEM — Low-Profile Modern SaaS
   ============================================ */

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

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Neutral palette — overridden per site */
  --color-primary: #2563eb;
  --color-primary-light: #3b82f6;
  --color-primary-dark: #1d4ed8;
  --color-accent: #f59e0b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #0f172a;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-border: #e2e8f0;
  --color-white: #ffffff;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --max-width: 1200px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }

img { max-width: 100%; display: block; }

/* Typography */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 600; color: var(--color-text); }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
p { color: var(--color-text-muted); font-size: 1.0625rem; }

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ===== NAVBAR ===== */
#nav-main {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
#nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
#nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#nav-logo span { color: var(--color-primary); }
#nav-links { display: flex; gap: 2rem; list-style: none; }
#nav-links a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}
#nav-links a:hover, #nav-links a.active { color: var(--color-text); }
#nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: var(--color-primary);
  color: var(--color-white) !important;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
#nav-cta:hover { background: var(--color-primary-dark); transform: translateY(-1px); }

/* Mobile nav toggle */
#nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
#nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: var(--transition);
}

/* ===== HERO ===== */
#hero-section {
  padding: 5rem 0 4rem;
  text-align: center;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}
#hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(37,99,235,0.08);
  color: var(--color-primary);
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
#hero-title { margin-bottom: 1.25rem; max-width: 720px; margin-left: auto; margin-right: auto; }
#hero-subtitle {
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--color-text-muted);
}
#hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--color-white); }
.btn-secondary {
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-text-light); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { max-width: 560px; margin: 0.75rem auto 0; }

/* ===== FEATURE GRID ===== */
#features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  padding: 2rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.feature-card:hover { border-color: var(--color-primary-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,0.08);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.125rem; }
.feature-card p { font-size: 0.9375rem; }

/* ===== PRICING ===== */
#pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  padding: 2.5rem 2rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-name { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.pricing-price { font-size: 2.5rem; font-weight: 700; color: var(--color-text); margin-bottom: 0.25rem; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--color-text-muted); }
.pricing-desc { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }
.pricing-features { list-style: none; margin-bottom: 2rem; text-align: left; }
.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pricing-features li::before {
  content: "\2713";
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-card .btn { width: 100%; justify-content: center; }

/* ===== STATS ===== */
#stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
  text-align: center;
}
.stat-item h3 { font-size: 2rem; color: var(--color-primary); margin-bottom: 0.25rem; }
.stat-item p { font-size: 0.875rem; color: var(--color-text-muted); }

/* ===== TEAM / ABOUT ===== */
#team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.team-card {
  text-align: center;
  padding: 2rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 700;
}
.team-card h3 { font-size: 1.0625rem; margin-bottom: 0.25rem; }
.team-card p { font-size: 0.875rem; }

/* ===== SERVICES ===== */
#services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}
.service-card {
  padding: 2rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 1.25rem;
  transition: all var(--transition);
}
.service-card:hover { border-color: var(--color-primary-light); box-shadow: var(--shadow-md); }
.service-num {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(37,99,235,0.15);
  line-height: 1;
  flex-shrink: 0;
}
.service-card h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.9375rem; }

/* ===== CONTACT ===== */
#contact-section { padding: 5rem 0; }
#contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
#contact-info h2 { margin-bottom: 1rem; }
#contact-info > p { margin-bottom: 2rem; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,0.08);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-detail p { font-size: 0.9375rem; margin: 0; }
.contact-detail strong { color: var(--color-text); font-size: 0.875rem; display: block; margin-bottom: 0.125rem; }

/* Form embed placeholder */
#form-embed-wrapper {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-height: 400px;
}
#form-embed-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

/* ===== TESTIMONIALS ===== */
#testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  padding: 2rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.testimonial-card p { font-style: italic; margin-bottom: 1rem; font-size: 0.9375rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700; color: var(--color-primary);
}
.testimonial-name { font-weight: 600; font-size: 0.875rem; color: var(--color-text); }
.testimonial-role { font-size: 0.8125rem; color: var(--color-text-light); }

/* ===== CTA BANNER ===== */
#cta-banner {
  background: var(--color-bg-dark);
  padding: 4rem 0;
  text-align: center;
}
#cta-banner h2 { color: var(--color-white); margin-bottom: 0.75rem; }
#cta-banner p { color: var(--color-text-light); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }
#cta-banner .btn-primary { background: var(--color-white); color: var(--color-text); }
#cta-banner .btn-primary:hover { background: var(--color-bg-alt); }

/* ===== FOOTER ===== */
#footer-main {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 4rem 0 2rem;
}
#footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
#footer-brand p { font-size: 0.875rem; margin-top: 0.75rem; max-width: 280px; }
#footer-main h4 { color: var(--color-white); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
#footer-main ul { list-style: none; }
#footer-main ul li { margin-bottom: 0.5rem; }
#footer-main ul a { color: var(--color-text-light); font-size: 0.875rem; transition: color var(--transition); }
#footer-main ul a:hover { color: var(--color-white); }
#footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #nav-links { display: none; }
  #nav-toggle { display: block; }
  #nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
  }
  #hero-section { padding: 3rem 0; }
  #contact-grid { grid-template-columns: 1fr; }
  #footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  #footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  #services-grid { grid-template-columns: 1fr; }
  #pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 480px) {
  #footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 1rem; }
}
