/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; background: var(--bg); color: var(--fg); min-height: 100vh; display: flex; flex-direction: column; }

/* === Theme Variables === */
:root, .dark {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: rgba(59, 130, 246, 0.1);
  --bg: #0f172a;
  --fg: #e2e8f0;
  --muted-bg: #1e293b;
  --muted-fg: #94a3b8;
  --card-bg: #1e293b;
  --card-border: rgba(255,255,255,0.08);
  --input-bg: #1e293b;
  --input-border: #334155;
  --input-fg: #e2e8f0;
  --accent-bg: rgba(59, 130, 246, 0.15);
  --accent-fg: #60a5fa;
}

/* Light theme override */
html:not(.dark) {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: rgba(37, 99, 235, 0.08);
  --bg: #ffffff;
  --fg: #1e293b;
  --muted-bg: #f1f5f9;
  --muted-fg: #64748b;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --input-fg: #1e293b;
  --accent-bg: rgba(37, 99, 235, 0.1);
  --accent-fg: #1d4ed8;
}

/* === Layout === */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 5rem 0; }
.section-muted { background: var(--muted-bg); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.grid { display: grid; }

/* === Typography === */
h1 { font-size: 2.25rem; font-weight: 800; line-height: 1.15; }
h2 { font-size: 1.875rem; font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-muted { color: var(--muted-fg); }
.text-primary { color: var(--primary); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.leading-relaxed { line-height: 1.7; }

/* === Navbar === */
.navbar { position: sticky; top: 0; z-index: 50; background: rgba(15,23,42,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--card-border); }
html:not(.dark) .navbar { background: rgba(255,255,255,0.85); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.navbar-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.25rem; color: var(--fg); text-decoration: none; }
.navbar-logo img { height: 1.75rem; width: auto; }
.navbar-links { display: none; align-items: center; gap: 0.25rem; }
.navbar-links a { padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500; color: var(--muted-fg); text-decoration: none; border-radius: 0.375rem; transition: color 0.15s, background 0.15s; }
.navbar-links a:hover { color: var(--fg); background: rgba(255,255,255,0.05); }
.navbar-links a.active { background: var(--accent-bg); color: var(--accent-fg); }
.navbar-actions { display: flex; align-items: center; gap: 0.5rem; }

@media (min-width: 768px) {
  .navbar-links { display: flex; }
  .mobile-menu-btn { display: none; }
  .desktop-only { display: inline-flex; }
}
.mobile-menu-btn { display: flex; }
.desktop-only { display: none; }

/* === Mobile Nav === */
.mobile-nav-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.5); display: none; }
.mobile-nav-overlay.open { display: block; }
.mobile-nav-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 280px; z-index: 101; background: var(--bg); border-left: 1px solid var(--card-border); padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; transform: translateX(100%); transition: transform 0.3s ease; }
.mobile-nav-overlay.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-panel a { font-size: 1.125rem; font-weight: 500; color: var(--muted-fg); text-decoration: none; transition: color 0.15s; }
.mobile-nav-panel a:hover, .mobile-nav-panel a.active { color: var(--primary); }
.mobile-nav-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--muted-fg); font-size: 1.5rem; cursor: pointer; }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; border-radius: 0.375rem; cursor: pointer; text-decoration: none; transition: all 0.15s; border: 1px solid transparent; }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--input-border); }
.btn-outline:hover { background: var(--accent-bg); }
.btn-ghost { background: transparent; color: var(--muted-fg); }
.btn-ghost:hover { color: var(--fg); background: rgba(255,255,255,0.05); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-w-full { width: 100%; }

/* === Badge === */
.badge { display: inline-flex; align-items: center; padding: 0.125rem 0.625rem; font-size: 0.75rem; font-weight: 500; border-radius: 9999px; }
.badge-secondary { background: var(--muted-bg); color: var(--muted-fg); border: 1px solid var(--card-border); }
.badge-outline { border: 1px solid var(--input-border); color: var(--muted-fg); }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-pill { border-radius: 9999px; padding: 0.25rem 0.75rem; }

/* === Cards === */
.card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 0.75rem; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.card-body { padding: 1.5rem; }
.card-horizontal { display: flex; gap: 1rem; align-items: flex-start; }
.card-image { width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--muted-bg); display: flex; align-items: center; justify-content: center; }
.card-image img { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; transition: transform 0.5s; }
.card:hover .card-image img { transform: scale(1.05); }
.card-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background: var(--primary-light); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; transition: background 0.3s, color 0.3s; }
.card:hover .card-icon { background: var(--primary); color: #fff; }

/* === Forms === */
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label { font-size: 0.875rem; font-weight: 500; }
.form-input { padding: 0.5rem 0.75rem; font-size: 0.875rem; background: var(--input-bg); color: var(--input-fg); border: 1px solid var(--input-border); border-radius: 0.375rem; width: 100%; transition: border-color 0.15s; }
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-error { color: #ef4444; font-size: 0.8125rem; }

/* === Tabs === */
.tabs-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-bottom: 2rem; }
.tab-btn { padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; background: var(--muted-bg); color: var(--muted-fg); border: 1px solid var(--card-border); border-radius: 0.375rem; cursor: pointer; transition: all 0.15s; }
.tab-btn:hover { color: var(--fg); }
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* === Hero === */
.hero-section { position: relative; overflow: hidden; min-height: 90vh; display: flex; align-items: center; background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%); }
html:not(.dark) .hero-section { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #e0e7ff 100%); }
.hero-inner { display: grid; gap: 3rem; padding: 3rem 0; }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1fr 1fr; } }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: rgba(255,255,255,0.1); color: #fff; font-size: 0.875rem; font-weight: 500; border-radius: 9999px; backdrop-filter: blur(4px); }
html:not(.dark) .hero-badge { background: rgba(37,99,235,0.1); color: var(--primary); }
.hero-title { font-size: 2.5rem; font-weight: 800; color: #fff; line-height: 1.1; }
html:not(.dark) .hero-title { color: #1e293b; }
.hero-title span { display: block; color: #93c5fd; }
html:not(.dark) .hero-title span { color: var(--primary); }
.hero-desc { color: rgba(219,234,254,0.8); font-size: 1.125rem; max-width: 32rem; margin-top: 1.5rem; }
html:not(.dark) .hero-desc { color: #475569; }
.hero-image-wrap { position: relative; display: none; }
@media (min-width: 1024px) { .hero-image-wrap { display: block; } }
.hero-image-wrap img { width: 100%; height: auto; border-radius: 1rem; border: 1px solid rgba(255,255,255,0.1); }
.hero-floating-badge { position: absolute; bottom: -1.5rem; left: -1.5rem; padding: 1rem; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.75rem; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 1.5rem; padding-top: 1rem; }

/* === Features Grid === */
.features-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

/* === Products Grid === */
.products-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

/* === Industries Grid === */
.industries-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .industries-grid { grid-template-columns: repeat(5, 1fr); } }

/* === Contact Layout === */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 2fr; } }

/* === Footer === */
.footer { background: var(--muted-bg); border-top: 1px solid var(--card-border); padding: 3rem 0; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.25rem; margin-bottom: 1rem; color: var(--fg); text-decoration: none; }
.footer-brand img { height: 1.5rem; width: auto; }
.footer a { color: var(--muted-fg); text-decoration: none; font-size: 0.875rem; transition: color 0.15s; }
.footer a:hover { color: var(--primary); }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer h3 { margin-bottom: 1rem; }
.separator { border: none; border-top: 1px solid var(--card-border); margin: 2rem 0; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-icon { color: var(--primary); flex-shrink: 0; margin-top: 0.125rem; }

/* === Two Column === */
.two-col { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col-image { width: 100%; border-radius: 1rem; box-shadow: 0 10px 25px rgba(0,0,0,0.25); }
.two-col-image-sm { width: 100%; max-width: 28rem; border-radius: 0.75rem; box-shadow: 0 10px 25px rgba(0,0,0,0.25); }

/* === CTA Section === */
.cta-section { position: relative; overflow: hidden; padding: 5rem 0; background: var(--primary-light); }
.cta-bg-blob { position: absolute; top: 0; right: 0; width: 400px; height: 400px; border-radius: 50%; background: var(--primary-light); filter: blur(60px); opacity: 0.5; }

/* === Success Message === */
.success-message { text-align: center; padding: 3rem 0; }

/* === Map === */
.map-container { border-radius: 0.75rem; overflow: hidden; border: 1px solid var(--card-border); margin-top: 3rem; }
.map-container iframe { width: 100%; height: 400px; border: 0; }

/* === Quote Block === */
.quote-block { text-align: center; background: var(--muted-bg); border-radius: 1rem; padding: 2rem; margin-top: 3rem; }

/* === Icons (inline SVG sizing) === */
.icon { display: inline-block; vertical-align: middle; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }

/* === Utility === */
.shrink-0 { flex-shrink: 0; }
.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.inline-flex { display: inline-flex; align-items: center; }
.relative { position: relative; }
.object-cover { object-fit: cover; }
.h-64 { height: 16rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mr-1 { margin-right: 0.25rem; }
.ml-1 { margin-left: 0.25rem; }
.text-xs { font-size: 0.75rem; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* === Category Filter Buttons === */
.category-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 3rem; }

/* === Feature item in card === */
.feature-dot { color: var(--primary); }

/* === Form row === */
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
