/* ================================================================
   KEEN WEBSITE DESIGN — styles.css
   ================================================================ */

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

:root {
  --bg:         #0b1120;
  --navy:       #0d1b2a;
  --surface:    #132035;
  --surface-2:  #1a2a40;
  --border:     #253650;
  --blue:       #2563eb;
  --blue-dark:  #1d4ed8;
  --text:       #f8fafc;
  --muted:      #94a3b8;
  --text-dark:  #1e293b;
  --muted-dark: #475569;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --font:       'Inter', system-ui, sans-serif;
  --radius:     10px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}


/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo-mark {
  background: var(--blue);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  line-height: 1;
}

.logo-text {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.logo-img {
  height: 54px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease;
  mix-blend-mode: screen;
}

.logo-img:hover { transform: scale(1.06); }

.logo-img.logo-pop {
  animation: logoPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes logoPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.88); }
  70%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover { color: var(--text); }

.nav-link.active {
  color: var(--text);
  border-bottom-color: var(--blue);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.575rem 1.25rem;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 1.5rem 1.5rem;
  background: var(--navy);
  border-top: 1px solid var(--border);
}

.nav-mobile-drawer.open { display: flex; }

.nav-mobile-drawer .nav-link {
  text-align: left;
  padding: 0.875rem 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  border-top: none;
  border-left: none;
  border-right: none;
}

.nav-mobile-drawer .nav-link.active {
  color: var(--blue);
  border-bottom-color: var(--border);
}

.drawer-cta {
  margin-top: 1rem;
  width: 100%;
  text-align: center;
  padding: 0.875rem;
}


/* ================================================================
   PAGE TRANSITIONS
   ================================================================ */
.page {
  display: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.page.active  { display: block; }
.page.visible { opacity: 1; transform: translateY(0); }

/* Dark blue overlay applied to pages that show the background directly */
#services, #blog, #contact {
  background: linear-gradient(160deg, rgba(7,16,24,0.72) 0%, rgba(13,27,42,0.68) 50%, rgba(15,32,64,0.74) 100%);
  min-height: 100vh;
}


/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }


/* ================================================================
   SHARED LAYOUT
   ================================================================ */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.625rem;
}

.section-header h2,
.section-header .dark-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.dark-heading { color: var(--text-dark); }


/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.38);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}


/* ================================================================
   PAGE HEADER (Services / Contact)
   ================================================================ */
.page-header {
  padding: 9rem 2rem 4rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.875rem;
}

.page-header p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}


/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  background: linear-gradient(160deg, rgba(7,16,24,0.72) 0%, rgba(13,27,42,0.68) 50%, rgba(15,32,64,0.74) 100%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1.125rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.6s ease both;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-brand-name {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.1;
  animation: fadeUp 0.6s 0.05s ease both;
}

.hero .btn-primary {
  font-size: 1.0625rem;
  animation: fadeUp 0.6s 0.3s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ================================================================
   FEATURES SECTION (Home)
   ================================================================ */
.features-section {
  background: var(--gray-50);
  padding: 5rem 2rem;
}

.features-section .section-tag { color: var(--blue); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.1);
  border-color: #bfdbfe;
}

.feature-icon {
  font-size: 1.875rem;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted-dark);
  line-height: 1.7;
}


/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonials-section {
  background: var(--gray-100);
  padding: 5rem 2rem;
}

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

.testimonial-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.09);
}

.quote-mark {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 0.7;
  font-family: Georgia, 'Times New Roman', serif;
  opacity: 0.55;
  user-select: none;
}

.quote-text {
  font-size: 0.9375rem;
  color: var(--text-dark);
  line-height: 1.75;
  flex: 1;
}

.quote-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.quote-author strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.quote-author span {
  font-size: 0.78rem;
  color: var(--muted-dark);
}


/* ================================================================
   ABOUT / LOCAL
   ================================================================ */
.about-local {
  background: var(--navy);
  padding: 5rem 2rem;
}

.about-local .section-container {
  max-width: 800px;
  text-align: center;
}

.about-local .section-tag { margin-bottom: 0.75rem; }

.about-local h2 {
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.about-local p {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.85;
}


/* ================================================================
   CTA STRIP
   ================================================================ */
.cta-strip {
  background: var(--blue);
  padding: 4.5rem 2rem;
  text-align: center;
}

.cta-strip h2 {
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-strip p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}


/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex: 1;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
}

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

.footer-nav button,
.footer-nav a {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.375rem 0.75rem;
  border-radius: 5px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav button:hover,
.footer-nav a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  width: 100%;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}


/* ================================================================
   LOGO CORNER WATERMARK
   ================================================================ */
.page-logo-corner {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 180px;
  height: auto;
  object-fit: contain;
  opacity: 0.7;
  pointer-events: none;
  z-index: 50;
  transition: opacity .25s ease;
}
body[data-tab="blog"] .page-logo-corner,
body[data-tab="portfolio"] .page-logo-corner { opacity: 0; }


/* ================================================================
   BLOG + PORTFOLIO — FOOTER PINNED TO BOTTOM
   ================================================================ */
#blog.active, #portfolio.active {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#blog .footer, #portfolio .footer { margin-top: auto; }


/* ================================================================
   PORTFOLIO — COMING SOON
   ================================================================ */
.portfolio-coming-soon {
  min-height: calc(100vh - 110px);
  background: linear-gradient(160deg, rgba(7,16,24,0.72) 0%, rgba(13,27,42,0.68) 60%, rgba(15,32,64,0.74) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 6rem;
}

.pcs-inner {
  text-align: center;
  max-width: 600px;
}

.pcs-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
  line-height: 1;
}

.pcs-inner h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.pcs-inner p {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.25rem;
}


/* ================================================================
   SERVICES PAGE
   ================================================================ */
.services-wrap {
  padding-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.1);
}

.service-icon {
  font-size: 1.875rem;
  line-height: 1;
}

.service-card h3 {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.service-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
}


/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-outer {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

/* ── Contact form block ── */
.contact-form-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cf-success {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}

.cf-success-icon {
  width: 40px;
  height: 40px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cf-success h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.cf-success p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.cf-global-error {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 9px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #fca5a5;
  line-height: 1.5;
}

.cf-global-error:empty { display: none; }

.cf-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.cf-row {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.cf-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cf-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.68rem;
  opacity: 0.65;
}

.cf-input,
.cf-select,
.cf-textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cf-input::placeholder,
.cf-textarea::placeholder { color: rgba(148, 163, 184, 0.45); }

.cf-input:focus,
.cf-select:focus,
.cf-textarea:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cf-input[aria-invalid="true"],
.cf-select[aria-invalid="true"],
.cf-textarea[aria-invalid="true"] {
  border-color: rgba(248, 113, 113, 0.55);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.08);
}

.cf-textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.cf-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.cf-select option { background: #1a2a40; color: var(--text); }

.cf-error-msg {
  font-size: 0.75rem;
  color: #f87171;
  line-height: 1.4;
  min-height: 1rem;
}

.cf-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

.cf-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── What to expect card ── */
.contact-expect-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-expect-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.expect-steps {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.expect-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.expect-num {
  width: 28px;
  height: 28px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.expect-step h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.expect-step p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .nav-links,
  .nav-right .nav-cta {
    display: none;
  }

  .nav-mobile-toggle { display: flex; }

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

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

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

  .contact-page-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-brand {
    flex-direction: row;
  }

  .footer-copy {
    text-align: left;
  }

  /* Decorative corner watermark overlaps the back-to-top button and footer on small screens */
  .page-logo-corner { display: none; }
}

@media (max-width: 480px) {
  .nav-container { padding: 0 1.25rem; }

  .logo-text { display: none; }

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

  .hero { padding: 7rem 1.5rem 5rem; }

  .page-header { padding: 8rem 1.5rem 3rem; }

  .contact-outer { padding: 0 1.5rem 4rem; }

  .services-wrap { padding-bottom: 3rem; }

  .pcs-inner h1 { font-size: 2rem; }
}


/* ================================================================
   WHY KEEN WEBSITE DESIGN SECTION
   ================================================================ */
.why-section {
  background: var(--navy);
  padding: 5rem 2rem;
}

.why-section .section-header h2 { color: var(--text); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.1);
}

.why-check {
  width: 32px;
  height: 32px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
  flex-shrink: 0;
}

.why-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.why-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}


/* ================================================================
   BLOG PAGE
   ================================================================ */
.blog-section-wrap {
  padding: 0 0 5rem;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.blog-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.blog-preview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.4);
}

.blog-card-icon-bar {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
}

.blog-icon-blue   { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.blog-icon-green  { background: linear-gradient(135deg, #14532d, #16a34a); }
.blog-icon-amber  { background: linear-gradient(135deg, #78350f, #d97706); }
.blog-icon-teal   { background: linear-gradient(135deg, #134e4a, #0d9488); }

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.blog-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.125rem;
}

.blog-preview-card h3 {
  font-size: 0.9875rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
}

.blog-expand-wrap {
  text-align: center;
  padding: 0.5rem 0;
}

/* Expanded articles */
.blog-articles-expanded {
  display: none;
  margin-top: 4rem;
}

.blog-articles-expanded.open {
  display: block;
  background: rgba(10, 22, 55, 0.82);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 16px;
  padding: 3.5rem 2.5rem;
  max-width: 820px;
  margin: 4rem auto 0;
}

.blog-article-item {
  max-width: 740px;
  margin: 0 auto 4.5rem;
  padding-bottom: 4.5rem;
  border-bottom: 1px solid var(--border);
}

.blog-article-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.blog-article-header {
  margin-bottom: 2rem;
}

.blog-article-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0.5rem 0 0.625rem;
}

.blog-article-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.blog-article-content p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1.125rem;
}

.blog-article-content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 2.25rem 0 0.625rem;
}

.blog-article-content strong { color: var(--text); }

.blog-article-content p:last-child { margin-bottom: 0; }


/* ================================================================
   DESIGN PAGE — INTRO & TEMPLATES
   ================================================================ */

/* ─── Intro block ─── */
.design-intro-wrap {
  max-width: 900px;
  margin: 0 auto 3.5rem;
  padding: 0 2rem;
  text-align: center;
}

.design-intro-heading {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1.125rem;
}

.design-intro-para {
  font-size: 1.0125rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.design-callouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  text-align: left;
}

.design-callout {
  border-radius: var(--radius);
  padding: 1.375rem 1.5rem;
}

.design-callout.accent { background: var(--blue); }
.design-callout.dark   { background: var(--surface); border: 1px solid var(--border); }

.design-callout h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.375rem;
}

.design-callout p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

/* ─── Template card grid ─── */
.templates-section-wrap { padding-bottom: 0; }

.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ─── Card wrapper (animation unit) ─── */
.tpl-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  opacity: 0;
  transform: translateY(28px);
}

@keyframes cardRise {
  to { opacity: 1; transform: translateY(0); }
}

.templates-grid.in-view .tpl-card-wrap:nth-child(1) { animation: cardRise 0.55s 0.00s ease forwards; }
.templates-grid.in-view .tpl-card-wrap:nth-child(2) { animation: cardRise 0.55s 0.10s ease forwards; }
.templates-grid.in-view .tpl-card-wrap:nth-child(3) { animation: cardRise 0.55s 0.20s ease forwards; }
.templates-grid.in-view .tpl-card-wrap:nth-child(4) { animation: cardRise 0.55s 0.30s ease forwards; }
.templates-grid.in-view .tpl-card-wrap:nth-child(5) { animation: cardRise 0.55s 0.40s ease forwards; }
.templates-grid.in-view .tpl-card-wrap:nth-child(6) { animation: cardRise 0.55s 0.50s ease forwards; }

/* ─── Individual card ─── */
.tpl-card {
  width: 100%;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tpl-card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 56px rgba(37, 99, 235, 0.22);
}

/* ─── Ribbon badge ─── */
.tpl-ribbon {
  position: absolute;
  top: 10px;
  right: 0;
  background: var(--blue);
  color: #fff;
  font-size: 0.525rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 4px 0 0 4px;
  z-index: 10;
  pointer-events: none;
}

/* ─── Card meta (label below card) ─── */
.tpl-card-meta strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.125rem;
}

.tpl-card-meta span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─── Mini site base ─── */
.mini-site {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ms-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  height: 28px;
  flex-shrink: 0;
}

.ms-nav-logo {
  font-size: 7px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.ms-nav-links {
  display: flex;
  gap: 7px;
}

.ms-nav-links span {
  font-size: 5.5px;
  white-space: nowrap;
  opacity: 0.65;
}

.ms-hero {
  padding: 14px 12px 12px;
  flex-shrink: 0;
  height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.ms-hero-h {
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 5px;
}

.ms-hero-sub {
  font-size: 5.5px;
  margin-bottom: 9px;
  opacity: 0.7;
  line-height: 1.5;
}

.ms-btn {
  display: inline-block;
  font-size: 5.5px;
  font-weight: 700;
  padding: 3.5px 9px;
  border-radius: 3px;
  align-self: flex-start;
  line-height: 1;
}

.ms-body { flex: 1; overflow: hidden; }

.ms-footer-bar { height: 22px; flex-shrink: 0; }

/* Service rows (construction + fitness) */
.ms-service-row {
  display: flex;
  gap: 5px;
  padding: 12px 10px 10px;
  height: 100%;
  align-items: flex-start;
}

.ms-service-box {
  flex: 1;
  padding: 8px 4px;
  font-size: 5px;
  font-weight: 700;
  text-align: center;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

/* ─── Construction ─── */
.ms-nav-construction { background: #fff; border-bottom: 1px solid #e5e7eb; }
.mini-site-construction .ms-nav-logo { color: #1c1c1c; }
.mini-site-construction .ms-nav-links span { color: rgba(28, 28, 28, 0.6); opacity: 1; }
.ms-hero-construction { background: linear-gradient(160deg, #fff7ed, #ffedd5); }
.mini-site-construction .ms-hero-h { color: #1c1c1c; }
.mini-site-construction .ms-hero-sub { color: rgba(28, 28, 28, 0.65); opacity: 1; }
.ms-btn-construction { background: #ea580c; color: #fff; }
.ms-body-construction { background: #f4f4f4; }
.ms-sbox-construction { background: #fff; color: #1c1c1c; border-top: 2px solid #ea580c; }
.ms-footer-construction { background: #e5e7eb; }

/* ─── Legal ─── */
.ms-nav-legal { background: #fff; border-bottom: 1px solid #e2e8f0; }
.ms-logo-legal { color: #0f172a; }
.ms-nav-legal-links span { color: rgba(15, 23, 42, 0.55); opacity: 1; }
.ms-hero-legal { background: linear-gradient(160deg, #f8f4e8, #fef9c3); }
.ms-hero-h-legal { color: #0f172a; }
.ms-hero-sub-legal { color: rgba(15, 23, 42, 0.6); opacity: 1; }
.ms-btn-legal { background: #a16207; color: #fff; }
.ms-body-legal { background: #f0f4f8; padding: 10px; }
.ms-legal-cols { display: flex; gap: 8px; height: 100%; }
.ms-legal-left { display: flex; gap: 5px; flex: 1; min-width: 0; }
.ms-legal-vline { width: 2px; background: #a16207; border-radius: 1px; flex-shrink: 0; }
.ms-text-lines { display: flex; flex-direction: column; gap: 3px; padding-top: 2px; flex: 1; }
.ms-text-line { height: 3px; background: rgba(15, 23, 42, 0.18); border-radius: 1px; width: 100%; }
.ms-tl-short { width: 60%; }
.ms-tl-med   { width: 80%; }
.ms-legal-right {
  background: #fff;
  border-radius: 4px;
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 62px;
  flex-shrink: 0;
}
.ms-legal-bullet {
  font-size: 5px;
  color: #0f172a;
  padding-left: 8px;
  position: relative;
  line-height: 1.4;
}
.ms-legal-bullet::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  background: #a16207;
  border-radius: 50%;
}
.ms-footer-legal { background: #e2e8f0; border-top: 2px solid #a16207; }

/* ─── Salon ─── */
.ms-nav-salon { background: #fff; border-bottom: 1px solid #fce4ec; }
.ms-logo-salon { color: #be185d; }
.ms-nav-salon-links span { color: rgba(190, 24, 93, 0.6); opacity: 1; }
.ms-hero-salon { background: linear-gradient(160deg, #fff0f5, #fce4ec); }
.ms-hero-h-salon { color: #9d174d; }
.ms-hero-sub-salon { color: rgba(157, 23, 77, 0.65); opacity: 1; }
.ms-btn-salon { background: #be185d; color: #fff; border-radius: 100px; }
.ms-body-salon { background: #fdf2f8; display: flex; align-items: center; justify-content: center; }
.ms-salon-icons { display: flex; justify-content: center; gap: 18px; padding: 10px; }
.ms-salon-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ms-salon-circle { width: 22px; height: 22px; border-radius: 50%; background: #f9a8d4; border: 1.5px solid #be185d; }
.ms-salon-item span { font-size: 5px; color: #9d174d; font-weight: 600; }
.ms-footer-salon { background: #fce4ec; }

/* ─── Restaurant ─── */
.ms-nav-restaurant { background: #fefce8; border-bottom: 1px solid #fde68a; }
.ms-logo-restaurant { color: #c2410c; }
.ms-nav-restaurant-links span { color: rgba(194, 65, 12, 0.65); opacity: 1; }
.ms-hero-restaurant { background: linear-gradient(160deg, #fefce8, #fef3c7); }
.ms-hero-h-restaurant { color: #292524; }
.ms-hero-sub-restaurant { color: rgba(41, 37, 36, 0.6); opacity: 1; }
.ms-btn-restaurant { background: #c2410c; color: #fff; }
.ms-body-restaurant { background: #fff7ed; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.ms-menu-chips { display: flex; gap: 4px; }
.ms-chip-restaurant { font-size: 5px; padding: 2.5px 6px; border-radius: 100px; background: #fef3c7; color: #c2410c; border: 1px solid #fbbf24; font-weight: 600; }
.ms-dish-card { flex: 1; background: #fef9e8; border-radius: 4px; border: 1px solid #fde68a; min-height: 24px; }
.ms-footer-restaurant { background: #fde8cc; }

/* ─── Fitness ─── */
.ms-nav-fitness { background: #fff; border-bottom: 1px solid #e5e7eb; }
.ms-logo-fitness { color: #111827; font-weight: 900; letter-spacing: 0.04em; }
.ms-nav-fitness-links span { color: rgba(17, 24, 39, 0.55); opacity: 1; }
.ms-hero-fitness { background: linear-gradient(160deg, #f0fdf4, #dcfce7); }
.ms-hero-h-fitness { color: #111827; }
.ms-hero-sub-fitness { color: rgba(17, 24, 39, 0.65); opacity: 1; }
.ms-btn-fitness { background: #65a30d; color: #fff; }
.ms-body-fitness { background: #f9fafb; }
.ms-sbox-fitness { background: #fff; color: #111827; border-top: 2px solid #65a30d; }
.ms-footer-fitness { background: #e5e7eb; border-top: 2px solid #65a30d; }

/* ─── Real Estate ─── */
.ms-nav-realestate { background: #fff; border-bottom: 1px solid #e2e8f0; }
.ms-logo-realestate { color: #1e293b; }
.ms-nav-realestate-links span { color: rgba(30, 41, 59, 0.55); opacity: 1; }
.ms-hero-realestate { background: linear-gradient(160deg, #eff6ff, #dbeafe); }
.ms-hero-h-realestate { color: #1e293b; }
.ms-hero-sub-realestate { color: rgba(30, 41, 59, 0.65); opacity: 1; }
.ms-btn-realestate { background: #2563eb; color: #fff; }
.ms-body-realestate { background: #fff; padding: 10px; }
.ms-property-row { display: flex; gap: 5px; }
.ms-property-card { flex: 1; border-radius: 4px; overflow: hidden; border: 1px solid #e2e8f0; background: #f8fafc; }
.ms-property-img { height: 32px; }
.ms-pimg-1 { background: #bfdbfe; }
.ms-pimg-2 { background: #93c5fd; }
.ms-pimg-3 { background: #60a5fa; }
.ms-property-info { padding: 4px 5px; display: flex; flex-direction: column; gap: 2.5px; }
.ms-prop-line { height: 3px; border-radius: 1px; background: rgba(30, 41, 59, 0.2); width: 100%; }
.ms-prop-price { background: rgba(37, 99, 235, 0.4); width: 65%; }
.ms-footer-realestate { background: #f1f5f9; }


/* ================================================================
   RESPONSIVE ADDITIONS (new sections)
   ================================================================ */
@media (max-width: 1024px) {
  .templates-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .why-grid        { grid-template-columns: repeat(2, 1fr); }
  .blog-card-grid  { grid-template-columns: 1fr; }
  .design-callouts { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .templates-grid { grid-template-columns: 1fr; }
  .tpl-card       { height: 380px; }
}

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


/* ================================================================
   MOUNTAIN BACKGROUND
   ================================================================ */
.mountain-banner {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* Subtle top fade where background meets the fixed navbar */
.mountain-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(13, 27, 42, 0.6), transparent);
  pointer-events: none;
  z-index: 20;
}

/* Image layer — slightly oversized for parallax travel */
.mb-img {
  position: absolute;
  inset: -8% 0;
  background: url('https://d8j0ntlcm91z4.cloudfront.net/user_3FCRWyi8jweD5mPTNC28skScNWC/hf_20260616_031042_2c6d1879-fd17-4186-b458-f4b65a2cafc0_min.webp')
    center 30% / cover no-repeat;
  will-change: transform;
  animation: mountainReveal 2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Dark + metallic blue base overlay — ensures text readability on transparent sections */
.mb-color-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.60);
  z-index: 2;
}

/* Drifting mist — oversized width so it enters from left and exits right */
.mb-mist {
  position: absolute;
  inset: -5% -60%;
  background: linear-gradient(
    90deg,
    transparent 10%,
    rgba(255, 255, 255, 0.05) 28%,
    rgba(255, 255, 255, 0.11) 48%,
    rgba(255, 255, 255, 0.05) 68%,
    transparent 82%
  );
  animation: mbMistDrift 18s linear infinite;
  z-index: 3;
  pointer-events: none;
}

/* Peak shimmer — radial pulse centred on upper-middle (mountain peak area) */
.mb-peak-shimmer {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 45% 40% at 50% 32%,
    rgba(200, 220, 255, 0.15) 0%,
    transparent 70%
  );
  animation: mbPeakPulse 6s ease-in-out infinite;
  z-index: 4;
  pointer-events: none;
}

@keyframes mbMistDrift {
  from { transform: translateX(-40%); }
  to   { transform: translateX(40%);  }
}

@keyframes mbPeakPulse {
  0%, 100% { opacity: 0.35; transform: scale(1);    }
  50%       { opacity: 1;    transform: scale(1.07); }
}

/* ================================================================
   DEMO PROJECT PORTFOLIO
   ================================================================ */

.demo-portfolio-section {
  padding: 0 0 5rem;
}

/* ─── Cards grid ─── */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ─── Card wrapper ─── */
.demo-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  position: relative;
  outline: none;
}

.demo-card:focus-visible .browser-frame {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.5), 0 4px 20px rgba(0,0,0,.25);
}

/* ─── Browser frame ─── */
.browser-frame {
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,.3), 0 1px 4px rgba(0,0,0,.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.demo-card:hover .browser-frame {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.18), 0 4px 12px rgba(0,0,0,.25);
}

/* ─── Browser top bar ─── */
.browser-topbar {
  background: #1a2740;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}

.browser-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red    { background: #ff5f57; opacity: 0.72; }
.dot-yellow { background: #ffbd2e; opacity: 0.72; }
.dot-green  { background: #28c840; opacity: 0.72; }

.browser-url {
  flex: 1;
  background: rgba(255,255,255,.07);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.64rem;
  color: rgba(255,255,255,.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* ─── Screenshot area ─── */
.browser-screenshot {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: cover;
  object-position: top;
  background: var(--surface-2);
}

/* ─── "Demo Project" badge ─── */
.demo-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  background: #b45309;
  color: #fff;
  font-size: 0.585rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  overflow: hidden;
}

/* ─── Card info below frame ─── */
.demo-card-meta {
  padding: 0 2px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.demo-card-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.demo-card-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.demo-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.25rem;
}

.demo-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.625rem;
  border-radius: 100px;
}

/* ─── Demo modal overlay ─── */
.demo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.demo-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ─── Modal box ─── */
.demo-modal {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 1100px;
  width: 100%;
  height: 97vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.92) translateY(18px);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
}

.demo-modal-overlay.open .demo-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ─── Modal header ─── */
.demo-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 1rem;
  min-height: 56px;
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.modal-demo-badge {
  background: #b45309;
  color: #fff;
  font-size: 0.585rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.modal-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-header-right {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}

.modal-open-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #60a5fa;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.modal-open-link:hover { color: #93c5fd; }

.modal-close-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
  font-family: inherit;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  transform: rotate(90deg);
}

/* ─── Iframe container ─── */
.demo-modal-iframe-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 560px;
  background: var(--surface);
}

.demo-modal-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1200px;
  border: none;
  transform-origin: top left;
}

.demo-modal-preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ─── No-URL placeholder ─── */
.demo-modal-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  text-align: center;
  padding: 2.5rem;
  background: var(--surface);
}

.demo-modal-placeholder .pmp-icon {
  font-size: 2.5rem;
  line-height: 1;
  opacity: 0.5;
}

.demo-modal-placeholder h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.demo-modal-placeholder p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 380px;
}


/* ================================================================
   RESPONSIVE — DEMO GRID
   ================================================================ */
@media (max-width: 1024px) {
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-modal-overlay { padding: 0.75rem; }
  .demo-modal { border-radius: 10px; max-height: 95vh; }
  .modal-open-link { display: none; }
}


/* ================================================================
   LOGO LIGHTBOX
   ================================================================ */
.logo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.logo-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.logo-lightbox img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  mix-blend-mode: screen;
}

.logo-lightbox.open img {
  transform: scale(1);
}

.logo-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}

.logo-lightbox-close:hover { opacity: 1; transform: rotate(90deg); }


/* ================================================================
   POLISH PASS — animations, stagger reveals, micro-interactions
   ================================================================ */

/* ── Page transition: add blur ── */
.page {
  filter: blur(5px);
  transition: opacity 0.38s ease, transform 0.38s ease, filter 0.38s ease;
}
.page.visible { filter: blur(0); }

/* ── Feature icon — SVG container replacing emoji ── */
.feature-icon {
  width: 46px;
  height: 46px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  font-size: 0;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover .feature-icon {
  background: rgba(37, 99, 235, 0.2);
  box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.08);
  transform: scale(1.1);
}

/* ── Service icon — SVG container replacing emoji ── */
.service-icon {
  width: 36px;
  height: 36px;
  background: rgba(37, 99, 235, 0.12);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  font-size: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}
.service-card:hover .service-icon {
  background: rgba(37, 99, 235, 0.24);
  transform: scale(1.08);
}

/* ── Blog card icon bars — SVG icons, textured gradient ── */
.blog-card-icon-bar {
  height: 130px;
  font-size: 0;
  background-image:
    repeating-linear-gradient(
      -52deg,
      transparent,
      transparent 9px,
      rgba(255, 255, 255, 0.025) 9px,
      rgba(255, 255, 255, 0.025) 10px
    );
}

/* ── Why-check hover glow ── */
.why-check {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.why-card:hover .why-check {
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.14);
  transform: scale(1.1);
}

/* ── Stagger card grids — initial hidden state ── */
.features-grid  .feature-card,
.why-grid       .why-card,
.services-grid  .service-card,
.blog-card-grid .blog-preview-card {
  opacity: 0;
  transform: translateY(28px);
}

/* Feature cards */
.features-grid.in-view .feature-card:nth-child(1) { animation: cardRise 0.55s 0.00s ease forwards; }
.features-grid.in-view .feature-card:nth-child(2) { animation: cardRise 0.55s 0.09s ease forwards; }
.features-grid.in-view .feature-card:nth-child(3) { animation: cardRise 0.55s 0.18s ease forwards; }
.features-grid.in-view .feature-card:nth-child(4) { animation: cardRise 0.55s 0.27s ease forwards; }

/* Why cards */
.why-grid.in-view .why-card:nth-child(1) { animation: cardRise 0.55s 0.00s ease forwards; }
.why-grid.in-view .why-card:nth-child(2) { animation: cardRise 0.55s 0.08s ease forwards; }
.why-grid.in-view .why-card:nth-child(3) { animation: cardRise 0.55s 0.16s ease forwards; }
.why-grid.in-view .why-card:nth-child(4) { animation: cardRise 0.55s 0.24s ease forwards; }
.why-grid.in-view .why-card:nth-child(5) { animation: cardRise 0.55s 0.32s ease forwards; }

/* Service cards */
.services-grid.in-view .service-card:nth-child(1)  { animation: cardRise 0.5s 0.00s ease forwards; }
.services-grid.in-view .service-card:nth-child(2)  { animation: cardRise 0.5s 0.06s ease forwards; }
.services-grid.in-view .service-card:nth-child(3)  { animation: cardRise 0.5s 0.12s ease forwards; }
.services-grid.in-view .service-card:nth-child(4)  { animation: cardRise 0.5s 0.18s ease forwards; }
.services-grid.in-view .service-card:nth-child(5)  { animation: cardRise 0.5s 0.24s ease forwards; }
.services-grid.in-view .service-card:nth-child(6)  { animation: cardRise 0.5s 0.30s ease forwards; }
.services-grid.in-view .service-card:nth-child(7)  { animation: cardRise 0.5s 0.36s ease forwards; }
.services-grid.in-view .service-card:nth-child(8)  { animation: cardRise 0.5s 0.42s ease forwards; }
.services-grid.in-view .service-card:nth-child(9)  { animation: cardRise 0.5s 0.48s ease forwards; }
.services-grid.in-view .service-card:nth-child(10) { animation: cardRise 0.5s 0.54s ease forwards; }

/* Blog preview cards */
.blog-card-grid.in-view .blog-preview-card:nth-child(1) { animation: cardRise 0.55s 0.00s ease forwards; }
.blog-card-grid.in-view .blog-preview-card:nth-child(2) { animation: cardRise 0.55s 0.11s ease forwards; }
.blog-card-grid.in-view .blog-preview-card:nth-child(3) { animation: cardRise 0.55s 0.22s ease forwards; }


/* ── Hero code particles ── */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-particles span {
  position: absolute;
  font-family: 'Courier New', 'Courier', monospace;
  color: rgba(37, 99, 235, 0.2);
  font-weight: 700;
  animation: particleFloat linear infinite;
  user-select: none;
  bottom: -5%;
}

.hp-1 { left:  6%;  font-size: 0.72rem; animation-duration: 14s; animation-delay:  0.0s; }
.hp-2 { left: 17%;  font-size: 0.95rem; animation-duration: 18s; animation-delay:  2.5s; }
.hp-3 { left: 30%;  font-size: 0.60rem; animation-duration: 12s; animation-delay:  1.0s; }
.hp-4 { left: 44%;  font-size: 0.80rem; animation-duration: 20s; animation-delay:  3.5s; }
.hp-5 { left: 58%;  font-size: 0.70rem; animation-duration: 15s; animation-delay:  5.0s; }
.hp-6 { left: 70%;  font-size: 1.05rem; animation-duration: 11s; animation-delay:  0.8s; }
.hp-7 { left: 82%;  font-size: 0.85rem; animation-duration: 16s; animation-delay:  4.0s; }
.hp-8 { left: 52%;  font-size: 0.65rem; animation-duration: 22s; animation-delay:  7.5s; }

@keyframes particleFloat {
  0%   { transform: translateY(0)      rotate(0deg);  opacity: 0; }
  8%   { opacity: 1; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-108vh) rotate(18deg); opacity: 0; }
}


/* ── Hero scroll indicator ── */
.hero-scroll {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: heroScrollIn 0.7s 1.1s ease both;
}

@keyframes heroScrollIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-scroll-inner {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.hero-scroll-inner span {
  display: block;
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  animation: scrollDot 1.9s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { transform: translateY(0);    opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}


/* ── CTA strip shimmer sweep ── */
.cta-strip {
  position: relative;
  overflow: hidden;
}
.cta-strip::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  animation: ctaShimmer 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaShimmer {
  0%   { left: -80%; }
  100% { left: 200%; }
}


/* ── Contact expect-steps cascade in ── */
.contact-page-grid.visible .expect-step {
  animation: stepSlideIn 0.45s ease both;
}
.contact-page-grid.visible .expect-step:nth-child(1) { animation-delay: 0.22s; }
.contact-page-grid.visible .expect-step:nth-child(2) { animation-delay: 0.36s; }
.contact-page-grid.visible .expect-step:nth-child(3) { animation-delay: 0.50s; }
.contact-page-grid.visible .expect-step:nth-child(4) { animation-delay: 0.64s; }

@keyframes stepSlideIn {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}


/* ── Scroll-to-top button ── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
  z-index: 90;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.scroll-top:hover {
  background: var(--blue-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.55);
}


/* ── Reduced motion overrides ── */
@media (prefers-reduced-motion: reduce) {
  .hero-particles span,
  .hero-scroll-inner span,
  .cta-strip::after { animation: none !important; }

  .page { filter: none !important; transition: opacity 0.25s ease !important; }

  .features-grid  .feature-card,
  .why-grid       .why-card,
  .services-grid  .service-card,
  .blog-card-grid .blog-preview-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .contact-page-grid.visible .expect-step { animation: none !important; opacity: 1 !important; }

  .mb-img { animation: none !important; }
  .demo-grid .demo-card { animation: none !important; opacity: 1 !important; transform: none !important; }
  .demo-badge::after { animation: none !important; }
  .demo-hover-reveal, .demo-hover-reveal span { transition: none !important; }
  .demo-modal-overlay.closing, .demo-modal-overlay.closing .demo-modal { transition: none !important; }
  .page-header .reveal { transition-delay: 0s !important; }
  .modal-close-btn:hover { transform: none !important; }
}


/* ================================================================
   PORTFOLIO TAB — ANIMATIONS
   ================================================================ */

/* ─── Card entrance stagger ─── */
.demo-grid .demo-card {
  opacity: 0;
  transform: translateY(32px);
}
.demo-grid.in-view .demo-card:nth-child(1) { animation: cardRise 0.55s 0.00s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.demo-grid.in-view .demo-card:nth-child(2) { animation: cardRise 0.55s 0.13s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.demo-grid.in-view .demo-card:nth-child(3) { animation: cardRise 0.55s 0.26s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* ─── Card press feedback ─── */
.demo-card:active .browser-frame {
  transform: translateY(-2px);
  transition-duration: 0.08s;
}

/* ─── "View Demo" hover overlay ─── */
.demo-hover-reveal {
  position: absolute;
  inset: 0;
  background: rgba(11, 17, 32, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 1;
}
.demo-hover-reveal span {
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.5rem 1.375rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
  transform: translateY(8px);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.5);
}
.demo-card:hover .demo-hover-reveal { opacity: 1; }
.demo-card:hover .demo-hover-reveal span { transform: translateY(0); }

/* ─── Badge shimmer sweep ─── */
.demo-badge::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: badgeShimmer 3.5s ease-in-out 1.5s infinite;
  pointer-events: none;
}
@keyframes badgeShimmer {
  0%   { left: -100%; }
  40%  { left: 250%; }
  100% { left: 250%; }
}

/* ─── Modal exit ─── */
.demo-modal-overlay.closing {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.demo-modal-overlay.closing .demo-modal {
  transform: scale(0.96) translateY(6px);
  opacity: 0;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s ease;
}

/* ─── Page header element cascade ─── */
.page-header .reveal:nth-child(1) { transition-delay: 0.00s; }
.page-header .reveal:nth-child(2) { transition-delay: 0.10s; }
.page-header .reveal:nth-child(3) { transition-delay: 0.20s; }

/* ─── Mountain entrance keyframe ─── */
@keyframes mountainReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ================================================================
   MISSED-CALL TEXT-BACK SPOTLIGHT (Home)
   ================================================================ */
.mctb-section {
  background: var(--bg);
  padding: 5.5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mctb-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.mctb-copy .section-tag { color: var(--blue); }

.mctb-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  margin: 0.4rem 0 1.1rem;
}

.mctb-lead {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.mctb-steps { margin-bottom: 2rem; }

/* ── Phone mockup ── */
.mctb-visual {
  display: flex;
  justify-content: center;
}

.mctb-phone {
  width: 300px;
  max-width: 100%;
  background: #05070d;
  border: 10px solid #1c2636;
  border-radius: 38px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.mctb-phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 22px;
  background: #1c2636;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.mctb-phone-screen {
  background: linear-gradient(180deg, #0d1526 0%, #0b1120 100%);
  padding: 2.5rem 0.9rem 1.5rem;
  min-height: 470px;
  display: flex;
  flex-direction: column;
}

.mctb-chat-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0.35rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.1rem;
}

.mctb-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.mctb-chat-name {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.mctb-chat-name strong { font-size: 0.9rem; color: var(--text); }
.mctb-chat-name span { font-size: 0.7rem; color: var(--muted); }

.mctb-chat-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0 0.25rem;
}

.mctb-missed {
  align-self: center;
  font-size: 0.68rem;
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  padding: 0.28rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.4rem;
}
.mctb-missed-icon { font-weight: 800; }

.sms {
  max-width: 82%;
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 0.6rem 0.8rem;
  border-radius: 16px;
}

.sms-out {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 5px;
}

.sms-in {
  align-self: flex-start;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
}

.sms-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.7rem 0.85rem;
  border-radius: 16px;
  border-bottom-left-radius: 5px;
}
.sms-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: smsTyping 1.2s infinite ease-in-out;
}
.sms-typing span:nth-child(2) { animation-delay: 0.18s; }
.sms-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes smsTyping {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

/* ── Services page group spacing ── */
.services-group-header { margin-top: 4.5rem; }

@media (max-width: 860px) {
  .mctb-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  /* Let the phone mockup shrink to fit narrow screens instead of forcing 300px */
  .mctb-visual { width: 100%; min-width: 0; }
  .mctb-phone { width: 100%; max-width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .sms-typing span { animation: none !important; }
}
