/*
Theme Name: CaseFiles
Theme URI: https://casefiles.in
Author: CaseFiles Team
Author URI: https://casefiles.in
Description: A professional WordPress theme for CaseFiles - Legal Practice Management Software for Indian Lawyers. Light, modern SaaS design with green accent, featuring hero, features, pricing, testimonials, FAQ, and more. Fully compatible with Elementor page builder, accessible, and extensible via plugins.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casefiles-theme
Tags: business, e-commerce, portfolio, two-columns, custom-menu, featured-images, threaded-comments, translation-ready, elementor-accessible, full-width-template, custom-background
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* CaseFiles Marketing Website - Light Theme (Hookly Style) */
:root {
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --bg-card: #ffffff;
  --bg-card-hover: #f9fafb;
  --border: #e5e7eb;
  --border-hover: #d1d5db;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-light: rgba(16, 185, 129, 0.08);
  --accent-border: rgba(16, 185, 129, 0.25);
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --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);
  --transition: all 0.2s ease;
  --focus-ring: 0 0 0 2px var(--accent), 0 0 0 4px rgba(16, 185, 129, 0.2);
}

/* ===== ACCESSIBILITY ===== */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 0;
  outline: none;
  box-shadow: var(--focus-ring);
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 12px 24px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--accent);
  color: #fff;
  z-index: 10000;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.navbar-logo svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.navbar-logo .custom-logo-link {
  display: flex;
  align-items: center;
}

.navbar-logo .custom-logo-link img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.navbar-logo span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.navbar-links a:hover {
  color: var(--text);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-actions a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-ghost {
  color: var(--text-secondary) !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.btn-ghost:hover {
  color: var(--text) !important;
  background: var(--bg-alt);
}

.btn-primary {
  background: var(--accent);
  color: white !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 160px 24px 80px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero p {
  margin-top: 20px;
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-hero-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-hero-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-hero-outline {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-hero-outline:hover {
  border-color: var(--border-hover);
  background: var(--bg-alt);
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-screenshot {
  margin-top: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-screenshot img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== STATS ===== */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat-label {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 24px;
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.section-header h2 .highlight {
  color: var(--accent);
}

.section-header p {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ===== PRODUCT GRID (Feature Cards) ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.product-card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.product-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.product-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== SOLUTION SECTION ===== */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.solution-card {
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
}

.solution-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
}

.solution-card-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.tag-solo { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.tag-firm { background: rgba(139, 92, 246, 0.1); color: #7c3aed; }
.tag-enterprise { background: rgba(249, 115, 22, 0.1); color: #ea580c; }
.tag-team { background: rgba(16, 185, 129, 0.1); color: #059669; }

.solution-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.solution-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.solution-card ul {
  list-style: none;
}

.solution-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
}

.solution-card li svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== PRICING ===== */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.pricing-toggle span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-toggle span.active {
  color: var(--text);
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 28px;
  background: var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-switch.active {
  background: var(--accent);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.toggle-switch.active::after {
  transform: translateX(20px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.pricing-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.pricing-card.highlighted {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.pricing-card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.pricing-card-price .currency {
  font-size: 16px;
  color: var(--text-secondary);
}

.pricing-card-price .amount {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pricing-card-price .period {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-card-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 7px 0;
}

.pricing-card-features li svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.pricing-card-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.cta-primary {
  background: var(--accent);
  color: white;
}

.cta-primary:hover {
  background: var(--accent-hover);
}

.cta-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.cta-outline:hover {
  border-color: var(--border-hover);
  background: var(--bg-alt);
}

/* ===== COMPARISON TABLE ===== */
.comparison-section {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th {
  font-weight: 700;
  color: var(--text);
  background: var(--bg-alt);
}

.comparison-table thead th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.comparison-table thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.comparison-table tbody td {
  color: var(--text-secondary);
}

.comparison-table tbody td:first-child {
  font-weight: 500;
  color: var(--text);
}

.comparison-table .check {
  color: var(--accent);
  font-weight: 700;
}

.comparison-table .cross {
  color: var(--text-muted);
}

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

.testimonial-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  color: #f59e0b;
  fill: #f59e0b;
}

.testimonial-card blockquote {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.testimonial-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== BUILT FOR YOU (Carousel) ===== */
.built-for-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.built-for-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  text-decoration: none;
  transition: var(--transition);
}

.built-for-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.built-for-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--bg-alt);
}

.built-for-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.built-for-card-body {
  padding: 20px;
}

.built-for-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.built-for-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.built-for-card .link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.built-for-card .link:hover {
  text-decoration: underline;
}

/* ===== COMPARISON COLUMNS (Old vs New Way) ===== */
.way-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.way-column h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.way-step {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.way-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.way-step-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  min-width: 80px;
}

.way-step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.way-column.old .way-step-label {
  color: var(--text-muted);
}

.way-column.new .way-step-label {
  color: var(--accent);
}

.way-quote {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
}

/* ===== FAQ (Accordion) ===== */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== TIME WASTE SECTION ===== */
.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.time-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.time-card-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.time-card-label {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== FOUNDER SECTION ===== */
.founder-section {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
}

.founder-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--border);
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-text h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.founder-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.founder-text a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.founder-text a:hover {
  text-decoration: underline;
}

/* ===== CTA ===== */
.cta-section {
  padding: 100px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 24px 32px;
  background: var(--bg-alt);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .pricing-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .built-for-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .navbar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid,
  .pricing-grid-5 {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .built-for-grid {
    grid-template-columns: 1fr;
  }

  .way-grid {
    grid-template-columns: 1fr;
  }

  .time-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .founder-section {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 120px 16px 60px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-hero {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 60px 16px;
  }

  .time-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== BLOG LAYOUT ===== */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.blog-posts { min-width: 0; }
.blog-card { display: flex; gap: 24px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); margin-bottom: 20px; transition: var(--transition); }
.blog-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow-md); }
.blog-card-thumb { flex-shrink: 0; width: 220px; height: 150px; border-radius: var(--radius-sm); overflow: hidden; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.05); }
.blog-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; flex-wrap: wrap; }
.blog-card-meta a { color: var(--text-muted); text-decoration: none; transition: color 0.2s ease; }
.blog-card-meta a:hover { color: var(--accent); }
.blog-card-sep { color: var(--border); }
.blog-card-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; color: var(--text); }
.blog-card-title a { color: var(--text); text-decoration: none; transition: color 0.2s ease; }
.blog-card-title a:hover { color: var(--accent); }
.blog-card-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.7; flex: 1; }
.blog-card-readmore { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; transition: gap 0.2s ease; }
.blog-card-readmore:hover { gap: 10px; }
.blog-pagination { margin-top: 40px; }
.blog-pagination .nav-links { display: flex; align-items: center; justify-content: center; gap: 8px; }
.blog-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); font-size: 14px; font-weight: 500; text-decoration: none; transition: var(--transition); }
.blog-pagination .page-numbers:hover { border-color: var(--accent-border); color: var(--text); }
.blog-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: white; }

/* ===== BLOG SIDEBAR ===== */
.blog-sidebar { position: sticky; top: 96px; }
.blog-sidebar .widget { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); margin-bottom: 20px; }
.blog-sidebar .widget-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); color: var(--text); }
.blog-sidebar ul { list-style: none; }
.blog-sidebar li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.blog-sidebar li:last-child { border-bottom: none; }
.blog-sidebar li a { color: var(--text-secondary); text-decoration: none; }
.blog-sidebar li a:hover { color: var(--accent); }
.blog-sidebar .tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-sidebar .tagcloud a { display: inline-block; padding: 4px 12px; border-radius: 100px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); font-size: 12px; text-decoration: none; }
.blog-sidebar .tagcloud a:hover { border-color: var(--accent-border); color: var(--accent); }

/* ===== SINGLE POST ===== */
.single-post-hero { max-width: 800px; margin: 0 auto 32px; border-radius: var(--radius); overflow: hidden; }
.single-post-hero img { width: 100%; height: auto; display: block; }
.single-post-header { text-align: center; margin-bottom: 40px; }
.single-post-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.2; margin-top: 16px; color: var(--text); }
.single-post-content { max-width: 700px; margin: 0 auto; color: var(--text-secondary); line-height: 1.8; font-size: 16px; }
.single-post-content h2, .single-post-content h3, .single-post-content h4 { color: var(--text); margin-top: 32px; margin-bottom: 16px; }
.single-post-content p { margin-bottom: 20px; }
.single-post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.single-post-content img { border-radius: var(--radius-sm); max-width: 100%; height: auto; }
.single-post-content blockquote { border-left: 3px solid var(--accent); padding-left: 20px; margin: 24px 0; font-style: italic; }
.single-post-content pre { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; overflow-x: auto; margin: 24px 0; }
.single-post-content code { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 14px; }
.single-post-content ul, .single-post-content ol { margin: 16px 0; padding-left: 24px; }
.single-post-content li { margin-bottom: 8px; }
.single-post-tags { max-width: 700px; margin: 32px auto; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.single-post-tags a { color: var(--accent); text-decoration: none; margin-left: 4px; }
.single-post-nav { max-width: 700px; margin: 40px auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-nav-link { padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-card); text-decoration: none; transition: var(--transition); }
.post-nav-link:hover { border-color: var(--accent-border); box-shadow: var(--shadow-md); }
.post-nav-next { text-align: right; }
.post-nav-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.post-nav-title { display: block; font-size: 15px; font-weight: 600; color: var(--text); }

/* ===== AUTHOR BIO ===== */
.author-bio { max-width: 700px; margin: 48px auto; padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); display: flex; gap: 20px; align-items: flex-start; }
.author-bio-avatar { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--accent-border); }
.author-bio-name { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.author-bio-name a { color: var(--text); text-decoration: none; }
.author-bio-name a:hover { color: var(--accent); }
.author-bio-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ===== RELATED POSTS ===== */
.related-posts { max-width: 800px; margin: 60px auto 0; padding-top: 40px; border-top: 1px solid var(--border); }
.related-posts-title { font-size: 22px; font-weight: 700; margin-bottom: 24px; text-align: center; color: var(--text); }
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-post-card { border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); overflow: hidden; text-decoration: none; transition: var(--transition); }
.related-post-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related-post-thumb { width: 100%; height: 140px; overflow: hidden; }
.related-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-post-body { padding: 16px; }
.related-post-date { font-size: 12px; color: var(--text-muted); }
.related-post-title { font-size: 15px; font-weight: 600; color: var(--text); margin-top: 6px; line-height: 1.4; }

/* ===== COMMENTS ===== */
.single-post-comments { max-width: 700px; margin: 48px auto 0; }
.comment-respond h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.comment-respond input, .comment-respond textarea { width: 100%; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font-size: 14px; margin-bottom: 12px; outline: none; font-family: inherit; }
.comment-respond input:focus, .comment-respond textarea:focus { border-color: var(--accent); box-shadow: var(--focus-ring); }
.comment-respond textarea { min-height: 120px; resize: vertical; }
.comment-respond .submit { padding: 12px 24px; border-radius: var(--radius-sm); background: var(--accent); color: white; border: none; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.comment-respond .submit:hover { background: var(--accent-hover); }
.comment-list { list-style: none; }
.comment-list .comment { padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-card); margin-bottom: 16px; }
.comment-list .comment-author img { border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.comment-list .comment-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.comment-list .comment-meta a { color: var(--text-secondary); text-decoration: none; }
.comment-list .comment-content { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.comment-list .reply-link { font-size: 13px; color: var(--accent); text-decoration: none; margin-top: 8px; display: inline-block; }
.children { list-style: none; margin-left: 24px; margin-top: 16px; }

/* ===== BLOG RESPONSIVE ===== */
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 768px) {
  .blog-card { flex-direction: column; }
  .blog-card-thumb { width: 100%; height: 200px; }
  .blog-sidebar { grid-template-columns: 1fr; }
  .related-posts-grid { grid-template-columns: 1fr; }
  .single-post-nav { grid-template-columns: 1fr; }
}
