/*
  MS-A Consulting LLC — Official Website Stylesheet
  Design: Dark navy hero, tech grid overlay, brand blue accent, bilingual EN/ZH.
  Architecture: Plain CSS (no Tailwind, no React). Linked externally from index.html.
*/

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --navy: #0c1a2e;
  --navy-mid: #192f52;
  --brand: #1a50b5;
  --brand-hover: #1440a0;
  --brand-light: #ebf2ff;
  --cyan: #4da6ff;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --white-10: rgba(255, 255, 255, 0.1);
  --white-25: rgba(255, 255, 255, 0.25);
  --white-40: rgba(255, 255, 255, 0.4);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-80: rgba(255, 255, 255, 0.8);

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--navy);
  background: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--brand);
  color: #ffffff;
}

* {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
*:hover {
  scrollbar-color: var(--slate-300) transparent;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* ============ Layout helpers ============ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) {
  .container { padding: 0 2.5rem; }
}

/* ============ Typography helpers ============ */
.text-gradient {
  background: linear-gradient(100deg, #ffffff 0%, #9ec5ff 55%, #4da6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.25rem;
}
.section-eyebrow-cyan { color: var(--cyan); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
@media (min-width: 768px) {
  .section-title { font-size: 3rem; }
}

.section-body {
  font-size: 1.125rem;
  color: var(--slate-500);
  line-height: 1.7;
}

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(77, 166, 255, 0.25);
  background: rgba(77, 166, 255, 0.05);
  padding: 0.375rem 0.75rem;
  margin-bottom: 1.75rem;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  animation: pulse-slow 4s ease-in-out infinite;
}

.link-underline {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  border-bottom: 1px solid var(--brand);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.link-underline:hover { color: var(--brand-hover); border-color: var(--brand-hover); }

/* ============ Tech grid overlay ============ */
.tech-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(77, 166, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(77, 166, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
}
.section-grid { opacity: 0.6; }
.hero-grid { opacity: 0.7; }
.contact-grid { opacity: 0.5; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-primary {
  background: var(--brand);
  color: #ffffff;
}
.btn-primary:hover { background: var(--brand-hover); }
.btn-outline-light {
  border-color: var(--white-25);
  color: #ffffff;
}
.btn-outline-light:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-light {
  background: #ffffff;
  color: var(--navy);
}
.btn-light:hover { background: var(--slate-100); }
.btn-block { width: 100%; }
.btn-arrow { transition: transform 0.2s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* ============ Header / Navbar ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-color: var(--slate-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.site-header:not(.scrolled) {
  background: transparent;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 1024px) {
  .nav-container { padding: 0 2.5rem; }
}

.brand-logo { display: inline-flex; align-items: center; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--navy);
  transition: color 0.3s;
}
.site-header:not(.scrolled) .brand-name { color: #ffffff; }
.brand-accent { color: var(--brand); }
.site-header:not(.scrolled) .brand-accent { color: #93c5fd; }

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-500);
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--navy); }
.nav-link.active { color: var(--brand); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--brand);
}
.site-header:not(.scrolled) .nav-link { color: var(--white-60); }
.site-header:not(.scrolled) .nav-link:hover { color: #ffffff; }
.site-header:not(.scrolled) .nav-link.active { color: #ffffff; }
.site-header:not(.scrolled) .nav-link.active::after { background: #ffffff; }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--navy);
  transition: transform 0.25s, opacity 0.25s;
}
.site-header:not(.scrolled) .mobile-toggle span { background: #ffffff; }
.mobile-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 767px) {
  .mobile-toggle { display: flex; }
}

/* Mobile menu drawer */
.nav-links.mobile-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  padding: 1rem 1.5rem 1.5rem;
  background: #ffffff;
  border-top: 1px solid var(--slate-200);
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.1);
}
.nav-links.mobile-open .nav-link {
  width: 100%;
  text-align: left;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-600);
  font-weight: 500;
}
.nav-links.mobile-open .nav-link:last-child { border-bottom: none; }
.nav-links.mobile-open .nav-link.active { color: var(--brand); }

/* ============ Page sections ============ */
.page-section { display: none; }
.page-section.active { display: block; animation: fadeIn 0.25s ease-out; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.section { padding: 6rem 0; }
.section-light { background: #ffffff; }
.section-subtle { background: var(--slate-100); }

.section-head { margin-bottom: 3rem; }
.section-head-center { text-align: center; margin-bottom: 3.5rem; }
.section-head-center .section-eyebrow { margin-bottom: 1rem; }

/* ============ Hero (Home) ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  padding: 4rem 0 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-overlay-h {
  background: linear-gradient(to right, var(--navy) 0%, rgba(12, 26, 46, 0.9) 50%, rgba(12, 26, 46, 0.5) 100%);
}
.hero-overlay-v {
  background: linear-gradient(to top, var(--navy) 0%, transparent 50%, rgba(12, 26, 46, 0.6) 100%);
}
.hero-glow {
  position: absolute;
  top: 33%;
  left: 33%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.2;
  filter: blur(130px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulse-slow 4s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  padding: 7rem 1.5rem;
}
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-text { color: #ffffff; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 1280px) { .hero-title { font-size: 4.5rem; } }
.hero-line1 { display: block; color: #ffffff; }
.hero-line2 { display: block; font-style: italic; }
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--white-60);
  line-height: 1.7;
  max-width: 32rem;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6rem;
  background: linear-gradient(to top, var(--navy), transparent);
  pointer-events: none;
}

/* ============ Terminal panel ============ */
.terminal {
  display: none;
  position: relative;
  width: 24rem;
  background: rgba(25, 47, 82, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid var(--white-10);
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}
.terminal::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(140deg, rgba(77, 166, 255, 0.5), rgba(26, 80, 181, 0) 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
@media (min-width: 1024px) {
  .terminal { display: block; justify-self: end; }
}
@media (min-width: 1280px) { .terminal { width: 28rem; } }

.terminal-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6rem;
  background: linear-gradient(to bottom, rgba(77, 166, 255, 0.1), transparent);
  animation: scan 6s linear infinite;
  pointer-events: none;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--white-10);
  background: rgba(255, 255, 255, 0.02);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--white-25); }
.term-dot-active { background: rgba(77, 166, 255, 0.6); }
.term-title {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
}
.terminal-body { padding: 1.5rem; position: relative; z-index: 10; }
.terminal-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.terminal-row:last-of-type { border-bottom: none; }
.terminal-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--cyan); }
.terminal-label { font-size: 0.875rem; color: #ffffff; transition: color 0.2s; }
.terminal-row:hover .terminal-label { color: #ffffff; }
.terminal-bullet { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--white-40); }
.terminal-prompt {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  color: var(--white-40);
}
.terminal-prompt .term-c { color: var(--cyan); }
.terminal-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: rgba(77, 166, 255, 0.7);
  margin-left: 4px;
  vertical-align: middle;
  animation: pulse-slow 4s ease-in-out infinite;
}

/* ============ Home intro ============ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .intro-grid { grid-template-columns: 3fr 2fr; }
}
.intro-stats { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.stat-card {
  border: 1px solid var(--slate-200);
  padding: 1.5rem;
}
.stat-card .stat-label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.stat-card .stat-sub { font-size: 0.875rem; color: var(--slate-400); }

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

.highlight-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.highlight-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(26, 80, 181, 0.45);
}
.highlight-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  transition: background 0.3s;
}
.highlight-card:hover .highlight-icon { background: var(--brand); }
.highlight-title {
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.highlight-body {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.65;
}
.highlight-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--brand);
  transition: width 0.3s;
}
.highlight-card:hover .highlight-bar { width: 100%; }

/* ============ Dark CTA banner ============ */
.section-dark-cta {
  position: relative;
  background: var(--navy);
  padding: 5rem 0;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  right: -5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.2;
  filter: blur(120px);
}
.cta-glow-left { right: auto; left: -5rem; }
.cta-row {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}
@media (min-width: 768px) {
  .cta-row { flex-direction: row; align-items: center; justify-content: space-between; }
}
.cta-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) { .cta-title { font-size: 2.25rem; } }
.cta-sub { color: var(--white-50); font-size: 1rem; }

/* ============ Page hero (interior pages) ============ */
.page-hero {
  position: relative;
  background: var(--navy);
  padding: 8rem 0 5rem;
  overflow: hidden;
}
.page-hero-glow {
  position: absolute;
  top: -2.5rem;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.15;
  filter: blur(130px);
  pointer-events: none;
}
.page-hero-glow-right { right: 0; }
.page-hero-glow-left { left: 25%; }
.page-hero-glow-center { left: 33%; }
.page-hero .container { position: relative; z-index: 10; }
.page-hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3rem;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.01em;
  max-width: 42rem;
}
@media (min-width: 768px) { .page-hero-title { font-size: 3.75rem; } }
.page-hero-subtitle {
  margin-top: 1rem;
  color: var(--white-50);
  font-size: 1.125rem;
  max-width: 36rem;
}

/* ============ About page ============ */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .about-intro-grid { grid-template-columns: 1fr 1fr; }
}
.about-intro-text .section-body { color: var(--slate-600); }
.about-intro-side { display: flex; flex-direction: column; gap: 1.5rem; }
.about-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--navy);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.about-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--navy) 0%, rgba(12, 26, 46, 0.2) 50%, transparent 100%);
}
.about-image-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
}
.about-positioning {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 2rem;
}
.about-positioning .section-eyebrow { margin-bottom: 1rem; }
.about-positioning-text {
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 500;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.value-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
}
.value-num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 0.25rem;
}
.value-title {
  font-weight: 600;
  color: var(--navy);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.value-body {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.65;
}

.about-advantages { max-width: 48rem; }
.advantage-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--slate-100);
}
.advantage-row:last-child { border-bottom: none; }
.advantage-check {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border: 1px solid var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.125rem;
}
.advantage-check svg { width: 12px; height: 12px; color: var(--brand); }
.advantage-text {
  color: var(--slate-700);
  font-size: 1rem;
  line-height: 1.7;
}

/* ============ Mission strip ============ */
.section-mission {
  position: relative;
  background: var(--navy-mid);
  padding: 4rem 0;
  overflow: hidden;
}
.mission-inner { position: relative; z-index: 10; max-width: 64rem; text-align: center; }
.mission-label {
  color: var(--white-40);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.mission-quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.6;
  color: #ffffff;
  font-style: italic;
}
@media (min-width: 768px) { .mission-quote { font-size: 1.875rem; } }

/* ============ Services list ============ */
.services-list { background: #ffffff; }
.service-row {
  border-bottom: 1px solid var(--slate-100);
}
.service-row.alt { background: var(--slate-100); }
.service-row-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .service-row-inner {
    padding: 4rem 2.5rem;
    grid-template-columns: 2fr 4fr 6fr;
    gap: 4rem;
  }
}
.service-big-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--slate-200);
  user-select: none;
}
@media (min-width: 768px) { .service-big-num { font-size: 5rem; } }
.service-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  padding: 0.25rem 0.625rem;
  margin-bottom: 1.25rem;
}
.service-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .service-title { font-size: 2.25rem; } }
.service-subtitle { color: var(--slate-500); font-size: 1rem; }
.service-points { list-style: none; }
.service-points li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--slate-100);
}
.service-points li:last-child { border-bottom: none; }
.service-point-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 0.5rem;
  flex-shrink: 0;
}
.service-point-text { color: var(--slate-700); font-size: 1rem; line-height: 1.7; }

/* ============ Cases grid ============ */
.cases-grid { gap: 2rem; }
.case-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--slate-200);
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s;
}
.case-card:hover { border-color: var(--brand); }
.case-image-wrap {
  position: relative;
  height: 13rem;
  overflow: hidden;
  background: var(--slate-100);
}
.case-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.case-card:hover .case-image-wrap img { transform: scale(1.05); }
.case-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--navy) 0%, rgba(12, 26, 46, 0.4) 50%, rgba(12, 26, 46, 0.1) 100%);
}
.case-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--cyan);
  color: var(--navy);
  padding: 0.25rem 0.625rem;
}
.case-content { padding: 2rem; display: flex; flex-direction: column; flex: 1; }
.case-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.case-body {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}
.case-result {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-100);
}
.case-result-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.125rem;
}
.case-result-icon svg { width: 10px; height: 10px; color: var(--brand); }
.case-result-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.6;
}

.cases-disclaimer { padding: 3rem 0; }
.cases-disclaimer-text {
  font-size: 0.75rem;
  color: var(--slate-400);
  line-height: 1.7;
  max-width: 48rem;
}

/* ============ Contact page ============ */
.contact-section { padding-top: 0; }
.contact-section .container { position: relative; }
.contact-card {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--slate-200);
  margin-top: -2rem;
}
@media (min-width: 1024px) { .contact-card { grid-template-columns: 2fr 3fr; } }
.contact-info {
  position: relative;
  background: var(--navy);
  padding: 2.5rem;
  overflow: hidden;
}
@media (min-width: 1024px) { .contact-info { padding: 3.5rem; } }
.contact-info-glow {
  position: absolute;
  bottom: -4rem;
  left: -2.5rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.2;
  filter: blur(90px);
}
.contact-info-list {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3.5rem;
}
.info-item .info-label {
  color: var(--white-40);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}
.info-item .info-val {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
}
.contact-info-note {
  position: relative;
  z-index: 10;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--white-10);
  color: var(--white-40);
  font-size: 0.75rem;
  line-height: 1.65;
}

.contact-form-wrap {
  padding: 2.5rem;
  background: #ffffff;
}
@media (min-width: 1024px) { .contact-form-wrap { padding: 3.5rem; } }
.contact-form-title { color: var(--navy); font-weight: 600; font-size: 1.125rem; margin-bottom: 0.5rem; }
.contact-form-sub { color: var(--slate-400); font-size: 0.875rem; margin-bottom: 2rem; }

.contact-success {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--brand);
  background: var(--brand-light);
  padding: 2rem;
}
.contact-success-icon {
  width: 2rem;
  height: 2rem;
  background: var(--brand);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-success-icon svg { width: 16px; height: 16px; color: #ffffff; }
.contact-success-title { color: var(--navy); font-weight: 600; font-size: 0.875rem; margin-bottom: 0.25rem; }
.contact-success-body { color: var(--slate-600); font-size: 0.875rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; }
.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.form-required { color: var(--brand); }
.form-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--navy);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--slate-400); }
.form-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26, 80, 181, 0.15); }
.form-textarea { resize: none; }
.contact-bottom-spacer { height: 5rem; background: #ffffff; }

/* ============ Footer ============ */
.site-footer {
  background: var(--navy);
  color: var(--white-70);
  margin-top: auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3.5rem 1.5rem 2.5rem;
  border-bottom: 1px solid var(--white-10);
}
@media (min-width: 768px) {
  .footer-top { grid-template-columns: repeat(3, 1fr); padding: 3.5rem 2.5rem 2.5rem; gap: 2.5rem; }
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.brand-accent-light { color: var(--brand-light); opacity: 0.8; }
.footer-tagline { font-size: 0.875rem; color: var(--white-50); line-height: 1.5; max-width: 27rem; }
.footer-col-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 1rem;
}
.footer-nav { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-nav button {
  text-align: left;
  font-size: 0.875rem;
  color: var(--white-60);
  transition: color 0.2s;
  width: fit-content;
}
.footer-nav button:hover { color: #ffffff; }
.footer-contact-val { font-size: 0.875rem; color: var(--white-60); margin-bottom: 0.25rem; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2.5rem;
  }
}
.footer-rights { font-size: 0.75rem; color: var(--white-40); }
.footer-sub { font-size: 0.75rem; color: rgba(255, 255, 255, 0.3); }

/* ============ Animations ============ */
@keyframes pulse-slow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.7; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(700%); }
}

/* ============ Responsive tweaks ============ */
@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .hero { padding-top: 4rem; }
  .hero-inner { padding: 5rem 1.5rem; }
  .page-hero { padding: 6rem 0 3.5rem; }
  .page-hero-title { font-size: 2.25rem; }
}
