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

:root {
  --bg-main: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-alt: #f1f5f9;
  --border-subtle: rgba(148, 163, 184, 0.4);
  --accent: #10b981;
  /* Emerald 500 */
  --accent-soft: rgba(16, 185, 129, 0.1);
  --accent-strong: #059669;
  /* Emerald 600 */
  --text-main: #0f172a;
  /* Slate 900 */
  --text-muted: #475569;
  /* Slate 600 */
  --text-soft: #64748b;
  /* Slate 500 */
  --glass: rgba(255, 255, 255, 0.7);
}

body.theme-dark {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top left, #f1f5f9 0, #f8fafc 28%, #ffffff 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header.glass {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, #a5b4fc, #4f46e5),
    radial-gradient(circle at 70% 80%, #22c55e, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #f9fafb;
  font-size: 0.9rem;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.28), 0 10px 30px rgba(15, 23, 42, 0.1);
}

.logo-text {
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.92rem;
}

.main-nav a {
  opacity: 0.8;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #22c55e, #a5b4fc);
  transition: width 0.16s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.1), rgba(255, 255, 255, 0.9));
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
  color: var(--accent-strong);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-main);
}

.hero {
  padding: 4.2rem 0 3.2rem;
}

.hero-small {
  padding: 3.2rem 0 2.2rem;
}

.hero-dark {
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.05), transparent 55%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.05), transparent 55%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.8rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-text p {
  max-width: 32rem;
  margin-bottom: 1.3rem;
  color: var(--text-muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent-strong);
  margin-bottom: 0.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.hero-image-card {
  border-radius: 1.35rem;
  padding: 1.4rem;
}

.neon-card {
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.hero-image-placeholder {
  border-radius: 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  padding: 2.6rem 1.7rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  background: #f8fafc;
}

.hero-caption {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.section {
  padding: 3.3rem 0;
}

.section.alt {
  background: #f1f5f9;
}

.section-intro {
  max-width: 36rem;
  margin: 0.6rem 0 2.1rem;
  color: var(--text-muted);
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

h3 {
  font-size: 1.23rem;
  margin-bottom: 0.4rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 1.6rem;
}

.card {
  background: #ffffff;
  border-radius: 1.15rem;
  padding: 1.45rem;
  box-shadow: 0 10px 30px rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-card ul {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.service-card li {
  margin-bottom: 0.32rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.93rem;
  cursor: pointer;
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    background 0.12s ease,
    border-color 0.12s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 60px rgba(22, 163, 74, 0.7);
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-list-horizontal {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-card-horizontal {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card-horizontal:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.blog-card-content h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.blog-card-content h2 a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-content h2 a:hover {
  color: var(--accent);
}

.blog-card-content p {
  margin-bottom: 1rem;
}

.blog-card-image {
  display: flex;
  align-items: center;
}

.blog-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
}

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

  .blog-card-image img {
    height: 150px;
  }
}

.btn.ghost {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-main);
}

.btn.ghost:hover {
  background: rgba(241, 245, 249, 0.8);
}

.icon-list {
  margin-top: 1.1rem;
  list-style: none;
}

.icon-list li {
  padding-left: 1.3rem;
  position: relative;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.icon-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent), #60a5fa);
}

.image-card {
  border-radius: 1.1rem;
  padding: 1.15rem;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(148, 163, 184, 0.15);
  border: 1px solid var(--border-subtle);
}

.image-card.wide {
  margin: 1.7rem 0;
}

.image-placeholder {
  border-radius: 0.95rem;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  padding: 2.4rem 1.7rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: #f8fafc;
}

.image-caption {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.7rem;
}

.cta-strip {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.cta-dark {
  background: radial-gradient(circle at left, rgba(16, 185, 129, 0.15), #1e293b);
}

.cta-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.cta-strip-inner p {
  color: var(--text-muted);
}

.cta-strip .btn {
  background: #ffffff;
  color: #0f172a;
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial .quote {
  font-style: italic;
  margin-bottom: 0.9rem;
}

.testimonial .person {
  font-weight: 600;
}

.testimonial .role {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.logo-card {
  background: #ffffff;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.logo-text-only {
  font-weight: 500;
}

.contact-form {
  margin-top: 1.1rem;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 1.15rem;
  box-shadow: 0 20px 50px rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.95rem;
}

label {
  font-size: 0.82rem;
  margin-bottom: 0.28rem;
  color: var(--text-soft);
}

input,
textarea {
  border-radius: 0.85rem;
  border: 1px solid rgba(203, 213, 225, 0.8);
  padding: 0.6rem 0.8rem;
  font: inherit;
  background: #f8fafc;
  color: var(--text-main);
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  background: #ffffff;
}

.contact-meta {
  font-size: 0.9rem;
  margin-top: 1.1rem;
  color: var(--text-muted);
}

.blog-list {
  display: grid;
  gap: 1.6rem;
}

.blog-card {
  background: #ffffff;
  border-radius: 1.15rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.blog-card h2 {
  font-size: 1.35rem;
}

.blog-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

.blog-read-more {
  display: inline-flex;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent);
}

.blog-post-header h1 {
  font-size: 2rem;
  margin: 0.3rem 0 0.45rem;
}

.blog-subtitle {
  color: var(--text-muted);
  max-width: 40rem;
}

.blog-body {
  margin-top: 1.6rem;
  color: var(--text-main);
}

.blog-body h2 {
  margin: 1.4rem 0 0.4rem;
}

.blog-body p {
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

.blog-body ul,
.blog-body ol {
  margin-left: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.blog-body li {
  margin-bottom: 0.35rem;
}

.blog-post-footer {
  margin-top: 1.5rem;
}

.site-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1.6rem 0;
  background: #f8fafc;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.site-footer.glass {
  backdrop-filter: blur(14px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

/* Responsive */

@media (max-width: 900px) {

  .hero-inner,
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .logo-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .main-nav.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

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

  .two-col,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Service List Grid */
.service-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-item h4 {
  color: var(--accent-strong);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.service-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 72px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 1.5rem 1.2rem;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .logo-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-strip-inner {
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}