/* ================================================================
   Arkly Solutions — Light Corporate + AI Theme
   ================================================================ */

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #818cf8;
  --primary-bg: #eef2ff;
  --accent: #06b6d4;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
  --radius: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
  --primary: #818cf8;
  --primary-dark: #6366f1;
  --primary-light: #a5b4fc;
  --primary-bg: rgba(99,102,241,0.15);
  --accent: #22d3ee;
  --text: #e2e8f0;
  --text-light: #94a3b8;
  --text-muted: #64748b;
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --bg-card: #1e293b;
  --border: #334155;
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(79,70,229,0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(79,70,229,0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ── Navigation ───────────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-lg); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-img { height: 36px; }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

.nav-cta { font-size: 0.88rem; padding: 10px 22px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
}

/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #e0e7ff 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,70,229,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,70,229,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79,70,229,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  .hero { padding: 120px 0 56px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { gap: 24px; }
}

/* ── Sections ─────────────────────────────────────────────────── */

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* ── Services ─────────────────────────────────────────────────── */

.services {
  padding: 80px 0;
  background: var(--bg-alt);
}

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

.services-grid.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.3s;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.service-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 12px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-features li {
  font-size: 0.85rem;
  color: var(--text-light);
  padding-left: 20px;
  position: relative;
}
.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

@media (max-width: 1024px) { .services-grid, .services-grid.grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid, .services-grid.grid-4 { grid-template-columns: 1fr; } }

/* ── Why Us ───────────────────────────────────────────────────── */

.why-us { padding: 80px 0; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.why-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.why-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-bg);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 1024px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }

/* ── About ────────────────────────────────────────────────────── */

.about-section {
  padding: 80px 0;
  background: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-highlight {
  color: var(--primary) !important;
  font-weight: 600;
  font-style: italic;
}

.about-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-light);
  font-weight: 500;
}
.about-stat span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Testimonials ─────────────────────────────────────────────── */

.testimonials { padding: 80px 0; }

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

.testimonial-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--primary-light);
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 8px;
}

.testimonial-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

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

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.testimonial-author strong { font-size: 0.9rem; }
.testimonial-author span { color: var(--text-muted); font-size: 0.82rem; }

@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ── Brand Carousel ──────────────────────────────────────────── */

.brand-carousel-section {
  padding: 40px 0;
  background: var(--bg);
  overflow: hidden;
}

.brand-carousel-label {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.brand-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.brand-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 56px;
  width: max-content;
  min-width: max-content;
  animation: scroll-brands 35s linear infinite;
}

.brand-track:hover {
  animation-play-state: paused;
}

.brand-track img {
  flex: 0 0 auto;
  height: 32px;
  width: auto;
  max-width: 200px;
  max-height: 32px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.45);
  transition: filter 0.3s;
}

.brand-track img:hover {
  filter: grayscale(0%) opacity(1);
}

@keyframes scroll-brands {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .brand-carousel-section { padding: 32px 0; }
  .brand-track { gap: 40px; }
  .brand-track img { height: 22px; max-height: 22px; max-width: 120px; }
}

/* ── Product Highlight ────────────────────────────────────────── */

.product-highlight { padding: 80px 0; background: var(--bg-alt); }

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.highlight-tagline {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.highlight-content p { color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }

.highlight-features {
  list-style: none;
  margin: 24px 0;
}
.highlight-features li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--text-light);
  font-size: 0.92rem;
}
.highlight-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.phone-mockup {
  background: #1e293b;
  border-radius: 28px;
  padding: 8px;
  max-width: 300px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  overflow: hidden;
}

.phone-screen {
  background: #0f172a;
  border-radius: 20px;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.phone-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.chat-msg {
  display: block;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 85%;
}
.chat-msg.bot {
  background: #1e3a5f;
  color: #e2e8f0;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-msg.user {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

@media (max-width: 768px) {
  .highlight-grid { grid-template-columns: 1fr; gap: 32px; }
  .highlight-content h2 { font-size: 1.8rem; }
  .highlight-tagline { font-size: 1.05rem; }
  .highlight-features { max-width: 100%; margin: 20px 0; }
  .highlight-content .btn { width: 100%; justify-content: center; }
  .product-highlight .phone-mockup { max-width: 280px; margin: 0 auto; }
  .product-highlight .phone-screen { min-height: 240px; }
}

/* ── Manufacturer Grid ────────────────────────────────────────── */

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

.mfr-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  transition: all 0.2s;
}
.mfr-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

@media (max-width: 640px) { .mfr-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Logo Grid (Compatibility section) ───────────────────────── */

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

.logo-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  transition: all 0.3s;
}

.logo-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.logo-card img {
  height: 28px;
  max-height: 28px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.3s;
}

.logo-card:hover img {
  filter: grayscale(0%) opacity(1);
}

@media (max-width: 768px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 12px; }
  .logo-card { padding: 14px 10px; min-height: 50px; }
  .logo-card img { height: 20px; max-height: 20px; max-width: 90px; }
}

@media (max-width: 480px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .logo-card img { height: 18px; max-height: 18px; max-width: 80px; }
}

/* ── Two-column pricing ───────────────────────────────────────── */

.pricing-two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.pricing-includes {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.pricing-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
}

@media (max-width: 640px) { .pricing-two { grid-template-columns: 1fr; } }

.pricing-four {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
}
.pricing-four .pricing-card { padding: 28px 20px; }
.pricing-four .pricing-price { font-size: 2.4rem; }
.pricing-four .pricing-card.featured { transform: scale(1.03); }
.pricing-four .pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); }

@media (max-width: 860px) { .pricing-four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .pricing-four { grid-template-columns: 1fr; }
  .pricing-four .pricing-card.featured { transform: none; }
}

/* ── Active nav link ──────────────────────────────────────────── */

.nav-links a.active { color: var(--primary); font-weight: 600; }

/* ── Sticky CTA bar ──────────────────────────────────────────── */

.sticky-cta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--primary);
  color: white;
  padding: 8px 0;
  font-size: 0.85rem;
  transform: translateY(-100%);
  transition: transform 0.3s;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.btn-sm { padding: 6px 16px; font-size: 0.8rem; border-radius: 8px; }
.sticky-cta .btn-white {
  background: white;
  color: var(--primary);
  font-weight: 600;
}
@media (max-width: 640px) {
  .sticky-cta-inner span { display: none; }
}

/* ── Hero trust line ─────────────────────────────────────────── */

.hero-trust {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -20px;
  margin-bottom: 36px;
  letter-spacing: 0.3px;
}

/* ── Compare grid (Before vs After) ──────────────────────────── */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.compare-card {
  border-radius: var(--radius);
  padding: 32px 28px;
}
.compare-before {
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.compare-after {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.compare-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.compare-card ul {
  list-style: none;
}
.compare-card li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-light);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.compare-card li:last-child { border: none; }

@media (max-width: 640px) { .compare-grid { grid-template-columns: 1fr; } }

/* ── FAQ ──────────────────────────────────────────────────────── */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.faq-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.faq-item p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

@media (max-width: 640px) { .faq-grid { grid-template-columns: 1fr; } }

/* ── Mobile nav animation ─────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav-links.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }
}


/* ── Pricing ──────────────────────────────────────────────────── */

.pricing { padding: 80px 0; background: var(--bg-alt); }

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

.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
  transform: scale(1.05);
}
.pricing-card.featured:hover { transform: scale(1.05) translateY(-4px); }

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}
.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}
.pricing-card li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  padding-left: 24px;
  position: relative;
}
.pricing-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

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

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-card.featured { transform: none; }
}

/* ── CTA ──────────────────────────────────────────────────────── */

.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ── Contact ──────────────────────────────────────────────────── */

.contact { padding: 80px 0; background: var(--bg-alt); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-details { margin-bottom: 24px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-light);
}
.contact-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.contact-item svg { color: var(--primary); flex-shrink: 0; }

.contact-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-left: 3px solid var(--primary-light);
  padding-left: 16px;
}

.contact-form-wrap {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-alt);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.contact-form textarea { resize: vertical; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Footer ───────────────────────────────────────────────────── */

.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
}

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

.footer-logo { height: 32px; margin-bottom: 16px; filter: brightness(10); }

.footer-brand p { font-size: 0.9rem; line-height: 1.6; max-width: 300px; }

.footer-links h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
  .footer-grid > :nth-child(4) { grid-column: 2 / -1; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > :nth-child(4) { grid-column: auto; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Theme Toggle ────────────────────────────────────────────── */

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: color 0.2s, border-color 0.2s;
  margin-left: 8px;
}
.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary-light);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.nav-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

@media (max-width: 768px) {
  .theme-toggle { margin-left: 0; }
}

/* ── Dark theme overrides ────────────────────────────────────── */

[data-theme="dark"] .navbar {
  background: rgba(15,23,42,0.85);
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e293b 100%);
}

[data-theme="dark"] .hero-badge {
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .mfr-card,
[data-theme="dark"] .logo-card,
[data-theme="dark"] .contact-form-wrap,
[data-theme="dark"] .about-stat {
  background: var(--bg-card);
}

[data-theme="dark"] .btn-primary {
  box-shadow: 0 2px 8px rgba(129,140,248,0.3);
}
[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 4px 16px rgba(129,140,248,0.4);
}

[data-theme="dark"] .btn-outline {
  color: var(--primary);
  border-color: var(--primary);
}
[data-theme="dark"] .btn-outline:hover {
  background: var(--primary);
  color: #0f172a;
}

[data-theme="dark"] .btn-white {
  background: var(--bg-card);
  color: var(--primary);
}

[data-theme="dark"] .compare-before {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.3);
}
[data-theme="dark"] .compare-after {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.3);
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form select,
[data-theme="dark"] .contact-form textarea {
  background: var(--bg);
  color: var(--text);
}

[data-theme="dark"] .footer {
  background: #020617;
}

[data-theme="dark"] .footer-logo {
  filter: brightness(10);
}

[data-theme="dark"] .brand-track img {
  filter: grayscale(100%) opacity(0.35) invert(1);
}
[data-theme="dark"] .brand-track img:hover {
  filter: grayscale(0%) opacity(1);
}

[data-theme="dark"] .logo-card img {
  filter: grayscale(100%) opacity(0.4) invert(1);
}
[data-theme="dark"] .logo-card:hover img {
  filter: grayscale(0%) opacity(1);
}

[data-theme="dark"] .nav-toggle span {
  background: var(--text);
}

@media (max-width: 768px) {
  [data-theme="dark"] .nav-links.open {
    background: var(--bg-alt);
  }
}

[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

[data-theme="dark"] .sticky-cta {
  background: var(--primary-dark);
}
