/* ========================================
   Safe-Limits — Global Styles
   ======================================== */

/* --- Design Tokens --- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --secondary: #0d9488;
  --secondary-dark: #0f766e;
  --secondary-light: #14b8a6;
  --secondary-50: #f0fdfa;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fbbf24;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-section: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #10b981;
  --error: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Manrope', var(--font);
  --header-h: 72px;
  --container: 1200px;
  --transition: 0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
address { font-style: normal; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: var(--text);
  color: #fff;
}

.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p, .section-dark li { color: #cbd5e1; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-top: 0.75rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* --- Grid --- */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--bg-alt);
  color: var(--text);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #1e293b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: #1e293b;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
  border-radius: 14px;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Cards --- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.card-icon-blue  { background: var(--primary-50); color: var(--primary); }
.card-icon-teal  { background: var(--secondary-50); color: var(--secondary); }
.card-icon-amber { background: #fffbeb; color: var(--accent); }
.card-icon-green { background: #ecfdf5; color: var(--success); }

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.9375rem; }

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
  height: var(--header-h);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { color: var(--text); }

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-main a {
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--primary);
  background: var(--primary-50);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-main a.btn.nav-cta {
  color: #fff;
  background: var(--primary);
}

.nav-main a.btn.nav-cta:hover {
  color: #fff;
  background: var(--primary-dark);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1010;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }

  .nav-main {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem;
    gap: 0.25rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1005;
    overflow-y: auto;
  }

  .nav-main.open { right: 0; }

  .nav-main a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .nav-cta { margin-left: 0; margin-top: 0.5rem; }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1002;
  }

  .nav-overlay.open { display: block; }
}

/* --- Hero --- */
.hero {
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--primary-50) 0%, #fff 40%, var(--secondary-50) 100%);
}

.hero-content {
  max-width: 720px;
}

.hero-centered {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-centered .hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 { margin-bottom: 1.25rem; }

.hero p {
  font-size: 1.1875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.5rem;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Hero decorative shapes */
.hero-shapes {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}

.hero-shape-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -150px;
  right: -100px;
}

.hero-shape-2 {
  width: 350px;
  height: 350px;
  background: var(--secondary);
  bottom: -100px;
  left: -80px;
}

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* --- Feature Rows (alternating) --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-row-reverse {
  direction: rtl;
}
.feature-row-reverse > * {
  direction: ltr;
}

.feature-visual {
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-visual-icon {
  font-size: 4rem;
  opacity: 0.8;
}

.feature-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.feature-info p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row-reverse { direction: ltr; }
}

/* --- Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
  counter-increment: step;
  position: relative;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.9375rem; }

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1.125rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-100), var(--secondary-50));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary);
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.price-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.price-card-popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-md);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 0.25rem 1.25rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.price-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.price-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.price-features {
  text-align: left;
  margin-bottom: 2rem;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.price-features li:last-child { border-bottom: none; }

.price-features .check {
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.price-features .cross {
  color: var(--text-light);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item.open {
  border-color: var(--primary-100);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
}

.faq-question:hover { background: var(--bg-alt); }

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 0.9375rem;
}

.comparison-table thead th {
  background: var(--text);
  color: #fff;
  padding: 1rem 1.5rem;
  font-weight: 600;
  text-align: left;
}

.comparison-table thead th:first-child {
  text-align: left;
}

.comparison-table tbody td {
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

.comparison-table tbody tr:last-child td { border-bottom: none; }

.comparison-table .check-cell { color: var(--success); font-weight: 700; text-align: center; }
.comparison-table .cross-cell { color: var(--text-light); text-align: center; }

@media (max-width: 768px) {
  .comparison-table,
  .comparison-table thead,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table th,
  .comparison-table td {
    display: block;
    width: 100%;
  }

  .comparison-table thead { display: none; }

  .comparison-table tbody tr {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
  }

  .comparison-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    text-align: right;
    border-bottom: 1px solid var(--border-light);
  }

  .comparison-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    text-align: left;
    color: var(--text);
    flex: 1;
    padding-right: 1rem;
  }

  .comparison-table tbody td:first-child {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--text);
    text-align: left;
  }

  .comparison-table tbody td:first-child::before { display: none; }
  .comparison-table .check-cell,
  .comparison-table .cross-cell { text-align: right; }
}

/* --- Timeline --- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary-100);
}

.timeline-year {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.timeline-item h3 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.timeline-item p { color: var(--text-muted); font-size: 0.9375rem; }

/* --- Blog Cards --- */
.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-card-body { padding: 1.5rem; }

.blog-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--primary-50);
  padding: 0.2rem 0.625rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.blog-card-body h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.blog-card-body h3 a {
  color: var(--text);
  text-decoration: none;
}
.blog-card-body h3 a:hover { color: var(--primary); }

.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-card-meta {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
}

.contact-info-card:last-child { border-bottom: none; }

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.125rem;
  flex-shrink: 0;
}

.contact-info-card h4 { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.contact-info-card p { color: var(--text-muted); font-size: 0.875rem; margin: 0; }
.contact-info-card a { color: var(--primary); }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 50%, var(--secondary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.125rem; max-width: 600px; margin: 0 auto 2rem; }

.cta-section .btn-accent { color: #1e293b; }
.cta-section .btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.cta-section .btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* --- Footer --- */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #94a3b8;
}

.footer-heading {
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: color var(--transition);
  text-decoration: none;
}

.footer-links a:hover { color: #fff; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.footer-contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary-light);
}

.footer-contact-item a {
  color: #94a3b8;
  text-decoration: none;
}
.footer-contact-item a:hover { color: #fff; }

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- Page Hero (for inner pages) --- */
.page-hero {
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  background: linear-gradient(135deg, var(--primary-50) 0%, #fff 60%, var(--secondary-50) 100%);
  text-align: center;
}

.page-hero h1 { margin-bottom: 0.75rem; }

.page-hero p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.legal-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.legal-content ul, .legal-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 0.5rem; }

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* --- Newsletter --- */
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  background: var(--bg);
  transition: border-color var(--transition);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
}

/* --- Guarantee Badge --- */
.guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  max-width: 500px;
  margin: 2.5rem auto 0;
}

.guarantee-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.guarantee-text h4 { font-size: 0.9375rem; margin-bottom: 0.125rem; }
.guarantee-text p { color: var(--text-muted); font-size: 0.8125rem; margin: 0; }

/* --- Value Cards --- */
.value-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
