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

:root {
  --navy: #0b1d2e;
  --navy-mid: #152a3d;
  --navy-light: #1e3a52;
  --grey: #77787b;
  --grey-light: #a8a9ac;
  --white: #ffffff;
  --off-white: #f4f6f8;
  --border: rgba(11, 29, 46, 0.1);
  --shadow-sm: 0 2px 8px rgba(11, 29, 46, 0.06);
  --shadow-md: 0 8px 32px rgba(11, 29, 46, 0.1);
  --shadow-lg: 0 24px 64px rgba(11, 29, 46, 0.18);
  --radius: 14px;
  --radius-lg: 20px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1200px;
  --header-h: 80px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.header:not(.scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.85);
}

.header:not(.scrolled) .nav-links a:hover {
  color: #fff;
}

.header:not(.scrolled) .nav-cta {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff !important;
}

.header:not(.scrolled) .menu-toggle span {
  background: #fff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
}

.nav-links a {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.header.scrolled .nav-links a {
  color: var(--grey);
}

.header.scrolled .nav-links a:hover {
  color: var(--navy);
  background: var(--off-white);
}

.nav-cta {
  background: var(--navy) !important;
  color: #fff !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: var(--navy-mid) !important;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 29, 46, 0.25);
}

.btn-primary:hover {
  background: var(--navy-mid);
  box-shadow: 0 6px 20px rgba(11, 29, 46, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-white {
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-md);
}

.btn-white:hover { background: var(--off-white); }

.btn-lg { padding: 0.9375rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.link-btn, .inline-link, .footer-link-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: opacity 0.2s;
}

.link-btn:hover, .inline-link:hover, .footer-link-btn:hover { opacity: 0.7; }

.inline-link { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
  background: linear-gradient(145deg, #0b1d2e 0%, #152a3d 45%, #1e3a52 100%);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  background: rgba(119, 120, 123, 0.15);
  top: -10%;
  right: 10%;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  bottom: 0;
  left: -5%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

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

.hero-lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 32rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.metric strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.metric span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

/* Phone mockups */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 480px;
}

.phones-stack {
  position: relative;
  width: 300px;
  height: 460px;
}

.phone {
  position: absolute;
  width: 220px;
  background: #1a1a1a;
  border-radius: 32px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
}

.phone-back {
  right: 0;
  top: 40px;
  transform: rotate(8deg);
  opacity: 0.7;
  z-index: 1;
}

.phone-front {
  left: 20px;
  top: 0;
  z-index: 2;
  width: 240px;
}

.phone-notch {
  width: 80px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 0 0 14px 14px;
  margin: -2px auto 0;
  position: relative;
  z-index: 3;
}

.phone-ui {
  background: linear-gradient(180deg, #f8fafc, #eef2f6);
  border-radius: 24px;
  padding: 1rem;
  min-height: 400px;
}

.ui-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

.ui-signal {
  display: flex;
  gap: 2px;
}

.ui-signal::before,
.ui-signal::after {
  content: '';
  width: 3px;
  background: var(--navy);
  border-radius: 1px;
}

.ui-signal::before { height: 6px; align-self: flex-end; }
.ui-signal::after { height: 10px; }

.ui-greeting {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.ui-cards { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }

.ui-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.ui-card.active {
  background: var(--navy);
  color: #fff;
}

.ui-card.active small { color: rgba(255,255,255,0.6); }

.ui-card-icon { font-size: 1.25rem; }

.ui-card strong { display: block; font-size: 0.875rem; }
.ui-card small { font-size: 0.7rem; color: var(--grey); }

.ui-cta {
  text-align: center;
  padding: 0.75rem;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.ui-nav { height: 12px; background: #ddd; border-radius: 6px; margin-bottom: 0.75rem; }
.ui-chart { height: 80px; background: linear-gradient(180deg, rgba(11,29,46,0.1), transparent); border-radius: 8px; margin-bottom: 0.75rem; }
.ui-bars { display: flex; gap: 4px; align-items: flex-end; height: 60px; }
.ui-bars span { flex: 1; background: var(--grey); border-radius: 3px; opacity: 0.4; }
.ui-bars span:nth-child(1) { height: 40%; }
.ui-bars span:nth-child(2) { height: 70%; }
.ui-bars span:nth-child(3) { height: 55%; }
.ui-bars span:nth-child(4) { height: 90%; }

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: #fff;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
  z-index: 10;
}

.float-1 { top: 20px; right: -20px; animation-delay: 0s; }
.float-2 { bottom: 60px; left: -30px; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Trust bar ── */
.trust-bar {
  padding: 2rem 0;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}

.trust-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey);
  margin-bottom: 1rem;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
}

.trust-logos span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.45;
  letter-spacing: -0.01em;
}

/* ── Sections ── */
.section { padding: 6rem 0; }

.section-intro { max-width: 640px; margin-bottom: 3.5rem; }
.section-intro-light .eyebrow-light { color: rgba(255,255,255,0.6); }
.section-intro-light h2 { color: #fff; }
.section-desc-light { color: rgba(255,255,255,0.65) !important; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey);
  margin-bottom: 0.75rem;
}

.section-intro h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--grey);
  line-height: 1.7;
}

/* ── About ── */
.about { background: var(--white); }

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

.about-card {
  padding: 2rem;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.about-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-card p {
  font-size: 0.9375rem;
  color: var(--grey);
  line-height: 1.65;
}

/* ── Services ── */
.services { background: var(--off-white); }

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

.service-card {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

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

.service-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--grey-light);
  letter-spacing: 0.05em;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0.75rem 0 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--grey);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* ── Work ── */
.work-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

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

.work-body { padding: 1.75rem; }

.work-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
  margin-bottom: 0.75rem;
}

.work-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.work-body > p {
  font-size: 0.9rem;
  color: var(--grey);
  margin-bottom: 1rem;
}

.work-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.work-stats span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0.25rem 0.625rem;
  background: var(--off-white);
  border-radius: 6px;
}

/* ── Process ── */
.process {
  background: linear-gradient(145deg, var(--navy), var(--navy-mid));
  color: #fff;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-content > p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.timeline-content ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-content li {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.85);
}

/* ── Testimonials ── */
.testimonials { background: var(--off-white); }

.testimonial-slider {
  max-width: 720px;
  margin: 0 auto;
}

.testimonial-track { position: relative; min-height: 200px; }

.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}

.testimonial.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.testimonial p {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  color: var(--navy);
}

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

.avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
}

.testimonial footer strong { display: block; font-size: 0.9375rem; }
.testimonial footer span { font-size: 0.875rem; color: var(--grey); }

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.slider-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1.125rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.slider-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grey-light);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.slider-dot.active {
  background: var(--navy);
  transform: scale(1.25);
}

/* ── FAQ ── */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.25s;
}

.accordion-icon::before {
  width: 14px;
  height: 2px;
  top: 9px;
  left: 3px;
}

.accordion-icon::after {
  width: 2px;
  height: 14px;
  top: 3px;
  left: 9px;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-panel.open {
  max-height: 200px;
}

.accordion-panel p {
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--grey);
  line-height: 1.65;
}

/* ── CTA band ── */
.cta-band {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  text-align: center;
  color: #fff;
}

.cta-band-inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

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

/* ── Contact ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: var(--grey);
  margin-bottom: 2rem;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--grey);
}

.contact-details svg {
  width: 20px;
  height: 20px;
  stroke: var(--navy);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-details a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.contact-details a:hover { text-decoration: underline; }

.contact-form {
  background: var(--off-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.form-row { margin-bottom: 1.125rem; }

.form-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.required { color: #dc2626; }

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 29, 46, 0.1);
}

.form-row input.error,
.form-row textarea.error {
  border-color: #dc2626;
}

.field-error {
  display: block;
  font-size: 0.8125rem;
  color: #dc2626;
  margin-top: 0.25rem;
  min-height: 1.25rem;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 52px;
  width: auto;
  margin-bottom: 1rem;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
}

.footer-brand > p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col a,
.footer-col .footer-link-btn {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

.footer-col a:hover,
.footer-col .footer-link-btn:hover { color: #fff; }

.footer-newsletter p {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font);
  font-size: 0.875rem;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }

.newsletter-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
}

.newsletter-form .btn { padding: 0.625rem 1rem; font-size: 0.875rem; white-space: nowrap; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-legal .footer-link-btn {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
}

/* ── Modals & overlays ── */
.modal-overlay,
.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(11, 29, 46, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.25s ease;
}

.modal-overlay[hidden],
.success-overlay[hidden] { display: none; }

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

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
  line-height: 1;
}

.modal h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.modal p, .modal li {
  font-size: 0.9375rem;
  color: var(--grey);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.modal ul { padding-left: 1.25rem; margin: 1rem 0; }

.success-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  max-width: 400px;
  width: 100%;
  animation: slideUp 0.3s ease;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  stroke: #16a34a;
}

.success-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.success-card p {
  color: var(--grey);
  margin-bottom: 1.5rem;
}

/* ── Toast ── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.35s ease;
  max-width: 360px;
}

.toast.success { background: #166534; }
.toast.out { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(100%); }
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .about-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 72px; }

  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header:not(.scrolled) .nav-links a { color: var(--grey); }
  .header:not(.scrolled) .nav-cta {
    background: var(--navy) !important;
    color: #fff !important;
    border: none;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    color: var(--grey) !important;
  }

  .nav-cta { margin: 0.5rem 0 0; text-align: center; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-metrics { justify-content: center; flex-wrap: wrap; }
  .metric-divider { display: none; }
  .hero-visual { min-height: 380px; margin-top: 1rem; }
  .phones-stack { transform: scale(0.85); }
  .float-1, .float-2 { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 2rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row-half { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .testimonial p { font-size: 1.125rem; }
  .logo-img { height: 40px; }
}
