:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fc;
  --color-surface: #ffffff;
  --color-border: #e6eaf2;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-accent: #2563eb;
  --color-accent-2: #06b6d4;
  --gradient-accent: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 999px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 28px -8px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: #1d4ed8;
}

p {
  color: var(--color-text-muted);
  max-width: 62ch;
}

/* Gradient-filled phrase inside the hero headline. background-clip:text
   renders correctly across wrapped lines, unlike box-shadow underlines. */
.mark {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Entrance ---------- */
@keyframes settle-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-enter {
    animation: settle-in 0.7s cubic-bezier(0.16, 0.84, 0.44, 1) both;
  }

  .hero-enter:nth-child(2) { animation-delay: 0.12s; }
}

/* Pill-style section label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  display: none;
}

/* Soft blurred gradient blobs behind hero sections */
.grid-field {
  background: none;
}

.grid-field::before,
.grid-field::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
}

.grid-field::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -60px;
  background: var(--color-accent);
}

.grid-field::after {
  width: 320px;
  height: 320px;
  bottom: -120px;
  left: -60px;
  background: var(--color-accent-2);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.navbar-nav .nav-link {
  position: relative;
  color: var(--color-text-muted);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  transition: color 0.15s ease, background 0.15s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-accent);
  background: rgba(37, 99, 235, 0.08);
}

.navbar-toggler {
  border-color: var(--color-border);
}

.btn-cta {
  display: inline-block;
  background: var(--gradient-accent);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-cta:hover {
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline-light {
  display: inline-block;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.75rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.btn-outline-light:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-accent);
  color: var(--color-text);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4.5rem;
}

.hero .grid-field {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 1.4rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-card {
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-card-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--color-border);
}

.hero-card-row:last-child {
  border-bottom: none;
}

.hero-card-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-accent);
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
}

.stats-section {
  padding: 3rem 0;
  background: var(--color-bg-alt);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 0.3rem;
  font-weight: 500;
}

/* ---------- Cards ---------- */
.feature-card,
.service-card,
.portfolio-card {
  position: relative;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover,
.service-card:hover,
.portfolio-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.08);
}

.icon {
  width: 26px;
  height: 26px;
  color: var(--color-accent);
  transition: color 0.2s ease;
}

.feature-card h3,
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.service-card {
  padding: 2.25rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

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

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-accent);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-accent);
}

.service-price {
  font-size: 0.95rem;
  color: var(--color-text);
  margin: 0.75rem 0 0;
}

.service-price strong {
  color: var(--color-accent);
  font-family: var(--font-heading);
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.1rem;
}

.portfolio-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
}

.portfolio-note {
  margin-top: 1rem;
  color: var(--color-text-muted);
}

.portfolio-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.portfolio-links a {
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Process ---------- */
.process-section {
  background: var(--color-bg-alt);
}

.process-step {
  height: 100%;
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.process-step h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

/* ---------- About ---------- */
.values-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
}

.value-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.75rem;
}

.value-row .hero-card-dot {
  margin-top: 0.4rem;
}

.value-row h4 {
  font-size: 1.02rem;
  margin-bottom: 0.25rem;
}

.value-row p {
  margin: 0;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3rem;
  background: var(--color-bg-alt);
}

.page-hero .grid-field {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  max-width: 760px;
}

.page-hero .hero-lead {
  max-width: 680px;
  margin-bottom: 0;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--gradient-accent);
  border-radius: var(--radius);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.cta-banner p {
  margin: 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.85);
}

.cta-banner .btn-cta {
  background: #fff;
  color: var(--color-accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-banner .btn-cta:hover {
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* ---------- Contact ---------- */
.contact-info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  height: 100%;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.contact-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.08);
}

.contact-icon .icon {
  width: 20px;
  height: 20px;
}

.contact-info-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

.contact-map-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.map-embed {
  margin-top: 3rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.contact-form .form-label {
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.contact-form .form-control {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
}

.contact-form .form-control:focus {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.contact-form .form-control::placeholder {
  color: #93a2ad;
}

.contact-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  border-radius: var(--radius-sm);
}

.contact-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: var(--radius-sm);
}

.contact-error a {
  color: #991b1b;
  text-decoration: underline;
}

/* ---------- Legal ---------- */
.legal-content {
  max-width: 760px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 3.5rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-logo {
  height: 100px;
  width: auto;
  display: block;
}

.footer-tagline {
  color: var(--color-text-muted);
  max-width: 320px;
  font-size: 0.92rem;
}

.footer-heading {
  font-family: var(--font-heading);
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a,
.footer-links li {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

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

.footer-links-icon li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-links-icon .icon {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 1rem;
    gap: 1rem;
  }

  .cta-banner {
    justify-content: center;
    text-align: center;
  }
}
