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

/* Light mode - slate blue family throughout */
:root {
  --color-bg: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --color-bg-card: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: rgba(37, 99, 235, 0.08);
  --color-accent: #0d9488;
  --color-border: #e2e8f0;
  --color-nav-link: #475569;
  --color-nav-active: #2563eb;
  --color-hero-bg: #1e293b;
  --color-hero-text: #f1f5f9;
  --color-hero-muted: #94a3b8;
  --color-card-hover: #f1f5f9;
  --color-footer-bg: #1e293b;
  --color-footer-text: #94a3b8;
  --color-footer-link-hover: #e2e8f0;
  --color-focus-ring: rgba(37, 99, 235, 0.15);
  --color-icon: #475569;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.1);
  --radius: 8px;
  --max-width: 1100px;
}

/* Dark mode - same slate family, inverted */
/* Applied via system preference OR manual toggle */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #0f172a;
    --color-bg-alt: #1e293b;
    --color-bg-card: #1e293b;
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-primary: #60a5fa;
    --color-primary-dark: #3b82f6;
    --color-primary-light: rgba(96, 165, 250, 0.1);
    --color-accent: #2dd4bf;
    --color-border: #334155;
    --color-nav-link: #94a3b8;
    --color-nav-active: #60a5fa;
    --color-hero-bg: #020617;
    --color-hero-text: #f1f5f9;
    --color-hero-muted: #64748b;
    --color-card-hover: #334155;
    --color-footer-bg: #020617;
    --color-footer-text: #64748b;
    --color-footer-link-hover: #94a3b8;
    --color-focus-ring: rgba(96, 165, 250, 0.2);
    --color-icon: #94a3b8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  }
}

/* Manual dark mode override */
:root[data-theme="dark"] {
  --color-bg: #0f172a;
  --color-bg-alt: #1e293b;
  --color-bg-card: #1e293b;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-primary: #60a5fa;
  --color-primary-dark: #3b82f6;
  --color-primary-light: rgba(96, 165, 250, 0.1);
  --color-accent: #2dd4bf;
  --color-border: #334155;
  --color-nav-link: #94a3b8;
  --color-nav-active: #60a5fa;
  --color-hero-bg: #020617;
  --color-hero-text: #f1f5f9;
  --color-hero-muted: #64748b;
  --color-card-hover: #334155;
  --color-footer-bg: #020617;
  --color-footer-text: #64748b;
  --color-footer-link-hover: #94a3b8;
  --color-focus-ring: rgba(96, 165, 250, 0.2);
  --color-icon: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

strong {
  color: var(--color-text);
}

/* === Header === */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-brand .brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.site-brand .brand-separator {
  width: 1px;
  height: 1.25rem;
  background: var(--color-border);
}

.site-brand .brand-tagline {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  color: var(--color-nav-link);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-nav-active);
  background: var(--color-card-hover);
}

/* === Theme Toggle === */
.theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-nav-link);
  transition: color 0.2s ease, border-color 0.2s ease;
  margin-left: 0.25rem;
}

.theme-toggle:hover {
  color: var(--color-nav-active);
  border-color: var(--color-nav-active);
}

.theme-toggle .material-symbols-outlined {
  font-size: 1.25rem;
}

/* === Hero Section === */
.hero {
  background: var(--color-hero-bg);
  padding: 5rem 2rem;
  text-align: center;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--color-hero-text);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero .hero-subtitle {
  color: var(--color-hero-muted);
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

a.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}

a.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-hero-text);
  border: 1px solid var(--color-hero-muted);
}

.btn-secondary:hover {
  color: var(--color-hero-text);
  border-color: var(--color-hero-text);
}

/* === Content Sections === */
.section {
  padding: 4rem 2rem;
}

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

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === Service Cards === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 2rem;
  text-decoration: none;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.service-card .card-icon {
  font-family: "Material Symbols Outlined";
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga";
  color: var(--color-primary);
}

.service-card h3 {
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.service-card .card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}

.service-card:hover .card-link {
  color: var(--color-primary-dark);
}

/* === Value Props / Features === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature {
  padding: 1.5rem;
  border-left: 3px solid var(--color-primary);
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.feature h3 {
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.9375rem;
}

/* === Page Content === */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.page-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.page-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.page-content li {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.page-content li::marker {
  color: var(--color-primary);
}

.page-content a {
  color: var(--color-primary);
  font-weight: 500;
}

.page-content a:hover {
  text-decoration: underline;
}

.page-content a.btn-primary {
  color: #ffffff;
  text-decoration: none;
}

.page-content a.btn-secondary {
  color: var(--color-text-muted);
  text-decoration: none;
  border: 1px solid var(--color-border);
}

.page-content a.btn-secondary:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
  text-decoration: none;
}

/* === Page Hero (inner pages) === */
.page-hero {
  background: var(--color-hero-bg);
  padding: 3rem 2rem;
  text-align: center;
}

.page-hero h1 {
  color: var(--color-hero-text);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--color-hero-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* === Contact Options === */
.contact-options {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.contact-option-icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.contact-option h3 {
  margin-bottom: 0.5rem;
}

.contact-option p {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.contact-option .btn {
  margin-bottom: 0;
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.contact-divider::before,
.contact-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.contact-divider span {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* === Contact Form === */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.contact-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.375rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input[type="submit"] {
  width: 100%;
  padding: 0.875rem;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-form input[type="submit"]:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* === Pricing === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pricing-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pricing-card .price-label {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.pricing-card li {
  padding: 0.375rem 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.pricing-card li::before {
  content: "\2713";
  color: var(--color-accent);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* === CTA Banner === */
.cta-banner {
  background: var(--color-hero-bg);
  padding: 4rem 2rem;
  text-align: center;
}

.cta-banner h2 {
  color: var(--color-hero-text);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: var(--color-hero-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* === Footer === */
.site-footer {
  background: var(--color-footer-bg);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-size: 0.875rem;
  color: var(--color-footer-text);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-footer-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* === Responsive === */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
  }

  .site-nav {
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    justify-content: center;
  }

  .site-nav a {
    padding: 0.375rem 0.625rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .hero-subtitle {
    font-size: 1.0625rem;
  }

  .section {
    padding: 2.5rem 1.5rem;
  }

  .page-content {
    padding: 2rem 1.5rem;
  }

  .page-hero {
    padding: 2rem 1.5rem;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

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

  .site-brand .brand-separator,
  .site-brand .brand-tagline {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

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

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

/* === Utilities === */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
