:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --amber: #d97706;
  --amber-dark: #b45309;
  --border: #cbd5e1;
  --card: #ffffff;
  --success: #16a34a;
  --error: #dc2626;
  --surface: rgba(255, 255, 255, 0.78);
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 8px;
  --max: 1180px;
}

body.dark {
  --bg: #090f1a;
  --text: #f8fafc;
  --muted: #aab8cc;
  --border: #263244;
  --card: #0f172a;
  --surface: rgba(15, 23, 42, 0.78);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section-pad {
  padding: 104px 0;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0%;
  height: 3px;
  z-index: 2000;
  background: linear-gradient(90deg, var(--amber), #fbbf24);
  box-shadow: 0 0 18px rgba(217, 119, 6, 0.6);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.32s ease;
}

.site-header.scrolled {
  top: 10px;
}

.navbar {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  transition: background 0.32s ease, border-color 0.32s ease;
}

.site-header.scrolled .navbar,
body.dark .navbar {
  background: var(--surface);
  border-color: var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-logo,
.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

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

.brand-text {
  color: #fff;
  letter-spacing: 0;
}

.site-header.scrolled .brand-text,
body.dark .brand-text {
  color: var(--text);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 10px 11px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 8px;
}

.site-header.scrolled .nav-link,
body.dark .nav-link {
  color: var(--muted);
}

.nav-link.active,
.nav-link:hover {
  color: #fff;
  background: rgba(217, 119, 6, 0.92);
}

.theme-toggle,
.nav-toggle,
.back-to-top,
.carousel-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: 0.25s ease;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 138px 0 90px;
  color: #fff;
  overflow: hidden;
}

.hero-bg,
.blueprint-grid {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(3, 8, 18, 0.84), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.28)),
    url("assets/images/hero-infrastructure.png") center/cover no-repeat;
  transform: scale(1.02);
}

.blueprint-grid {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(203, 213, 225, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203, 213, 225, 0.24) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000, transparent 80%);
}

.particle-field span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.7);
  animation: floatParticle 9s ease-in-out infinite;
}

.particle-field span:nth-child(1) { top: 22%; left: 18%; }
.particle-field span:nth-child(2) { top: 35%; left: 68%; animation-delay: 1s; }
.particle-field span:nth-child(3) { top: 72%; left: 76%; animation-delay: 2.3s; }
.particle-field span:nth-child(4) { top: 64%; left: 35%; animation-delay: 3.1s; }
.particle-field span:nth-child(5) { top: 18%; left: 84%; animation-delay: 4.5s; }
.particle-field span:nth-child(6) { top: 82%; left: 14%; animation-delay: 5.2s; }

@keyframes floatParticle {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.25; }
  50% { transform: translate3d(18px, -24px, 0); opacity: 0.8; }
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  z-index: 2;
  transform: translateX(-20%);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-size: 0.79rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(2.55rem, 6vw, 5.85rem);
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 880px;
}

.hero p {
  max-width: 690px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(248, 250, 252, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.28);
}

.btn-primary:hover {
  background: var(--amber-dark);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(203, 213, 225, 0.42);
  color: inherit;
  backdrop-filter: blur(10px);
}

.btn-light {
  background: #fff;
  color: #0f172a;
}

.hero-stats {
  position: relative;
  z-index: 2;
  width: min(1040px, calc(100% - 40px));
  margin: 70px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.hero-stats article,
.metric-card,
.service-card,
.dashboard,
.verify-panel,
.result-shell,
.code-card,
.request-form,
.report-panel,
.testimonial-card,
.contact-cards article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.hero-stats article {
  padding: 22px;
  background: rgba(15, 23, 42, 0.58);
  border-color: rgba(203, 213, 225, 0.24);
  backdrop-filter: blur(16px);
}

.hero-stats strong,
.metric-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.hero-stats span,
.metric-card span {
  color: rgba(248, 250, 252, 0.76);
  font-weight: 700;
  font-size: 0.92rem;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 5px;
  height: 8px;
  margin: 8px auto;
  border-radius: 999px;
  background: #fff;
  animation: scrollDot 1.6s infinite;
}

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

.split-layout,
.verification-grid,
.form-layout,
.contact-grid,
.report-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.report-panel h2,
.emergency-inner h2 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-copy p,
.section-heading p,
.report-panel p,
.emergency-inner p {
  color: var(--muted);
  font-size: 1.02rem;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 38px;
}

.credibility-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.credibility-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 800;
}

.achievement-grid,
.service-grid,
.code-grid,
.metrics-grid,
.contact-cards {
  display: grid;
  gap: 18px;
}

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

.achievement-grid article,
.code-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.achievement-grid article:hover,
.code-card:hover,
.contact-cards article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.achievement-grid i,
.service-card i,
.workflow-step i,
.metric-card i,
.contact-cards i {
  color: var(--amber);
  font-size: 1.55rem;
}

.achievement-grid h3,
.service-card h3,
.code-card h3,
.workflow-step h3,
.contact-cards h3 {
  margin: 14px 0 8px;
  line-height: 1.2;
}

.achievement-grid p,
.service-card p,
.code-card p,
.workflow-step p {
  margin: 0;
  color: var(--muted);
}

.services {
  background:
    radial-gradient(circle at 12% 10%, rgba(217, 119, 6, 0.1), transparent 26%),
    linear-gradient(180deg, transparent, rgba(203, 213, 225, 0.2));
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  padding: 24px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(217, 119, 6, 0.55);
  box-shadow: 0 22px 50px rgba(217, 119, 6, 0.13);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.dashboard,
.request-form,
.report-panel,
.result-shell,
.verify-panel,
.testimonial-card,
.map-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
}

.dashboard {
  padding: 20px;
}

.dashboard-top {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tabs button,
.sort-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}

.filter-tabs button.active,
.filter-tabs button:hover,
.sort-btn:hover {
  background: var(--amber);
  color: #fff;
  border-color: var(--amber);
}

.table-wrap {
  overflow-x: auto;
}

.project-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.project-table th,
.project-table td {
  text-align: left;
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
}

.project-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.status-badge,
.priority-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(217, 119, 6, 0.12);
  color: var(--amber);
  white-space: nowrap;
}

.status-badge.certified {
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
}

.status-badge.pending {
  background: rgba(220, 38, 38, 0.1);
  color: var(--error);
}

.progress-track {
  height: 10px;
  width: 150px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: var(--progress);
  background: linear-gradient(90deg, var(--amber), #facc15);
  border-radius: inherit;
  animation: fillBar 1.1s ease both;
}

@keyframes fillBar {
  from { width: 0; }
  to { width: var(--progress); }
}

.verify-panel {
  padding: 22px;
  margin-top: 26px;
}

.verify-panel label,
.field label {
  display: block;
  font-weight: 900;
  margin-bottom: 8px;
}

.verify-input {
  display: flex;
  gap: 10px;
}

.verify-input input,
.field input,
.field select,
.searchbar input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 8px;
  min-height: 48px;
  padding: 0 14px;
  outline: none;
}

.verify-input input:focus,
.field input:focus,
.field select:focus,
.searchbar input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
}

.form-hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.result-shell {
  position: relative;
  min-height: 520px;
  padding: 26px;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(217, 119, 6, 0.16), transparent);
  height: 120px;
  animation: scan 3.4s linear infinite;
}

@keyframes scan {
  from { transform: translateY(-130px); }
  to { transform: translateY(540px); }
}

.result-empty,
.loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 26px;
}

.result-empty i {
  color: var(--amber);
  font-size: 2.5rem;
}

.loader,
.result-card {
  display: none;
}

.loader.active {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.loader span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulseDot 0.9s ease-in-out infinite alternate;
}

.loader span:nth-child(2) { animation-delay: 0.15s; }
.loader span:nth-child(3) { animation-delay: 0.3s; }

@keyframes pulseDot {
  to { transform: translateY(-12px); opacity: 0.45; }
}

.result-card.active {
  display: block;
  position: relative;
  z-index: 1;
  animation: popIn 0.45s ease both;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.stamp {
  position: absolute;
  right: 10px;
  top: 18px;
  transform: rotate(-12deg);
  opacity: 0.12;
  font-size: 3.8rem;
  font-weight: 950;
  color: var(--success);
  border: 5px solid currentColor;
  padding: 8px;
}

.verified-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--success);
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.22);
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 900;
}

.result-card dl {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.result-card dl div {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
  font-weight: 900;
}

.searchbar {
  position: relative;
  max-width: 760px;
  margin-bottom: 24px;
}

.searchbar i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.searchbar input {
  padding-left: 44px;
}

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

.code-card {
  min-height: 210px;
}

.category-pill {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.12);
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 900;
}

.workflow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.workflow::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 34px;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), rgba(217, 119, 6, 0.14));
}

.workflow-step {
  position: relative;
  padding: 72px 18px 20px;
  text-align: center;
}

.workflow-step span {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 0 0 8px rgba(217, 119, 6, 0.14), 0 0 24px rgba(217, 119, 6, 0.45);
}

.metrics {
  background: #0f172a;
  color: #fff;
}

.metrics-grid {
  grid-template-columns: repeat(4, 1fr);
}

.metric-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(203, 213, 225, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.metric-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 36px rgba(217, 119, 6, 0.22);
}

.request-form {
  padding: 26px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.stepper span {
  padding: 11px 8px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
  font-size: 0.85rem;
}

.stepper span.active {
  color: #fff;
  background: var(--amber);
  border-color: var(--amber);
}

.form-step {
  display: none;
  animation: popIn 0.28s ease;
}

.form-step.active {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.upload-zone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 270px;
  padding: 28px;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: 8px;
  background: rgba(217, 119, 6, 0.04);
}

.upload-zone.dragover {
  border-color: var(--amber);
  box-shadow: inset 0 0 0 4px rgba(217, 119, 6, 0.14);
}

.upload-zone i {
  color: var(--amber);
  font-size: 2.2rem;
}

.upload-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-zone button,
.upload-zone span {
  position: relative;
  z-index: 2;
}

.review-card {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.08);
}

.review-card p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 8px 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.form-error {
  min-height: 22px;
  margin-top: 12px;
  color: var(--error);
  font-weight: 900;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
}

.report-panel {
  padding: 38px;
}

.report-preview {
  display: grid;
  place-items: center;
}

.report-sheet {
  width: min(330px, 100%);
  aspect-ratio: 0.72;
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.report-sheet span {
  display: block;
  height: 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #cbd5e1;
}

.report-sheet span:first-child {
  width: 60%;
  height: 18px;
  background: var(--amber);
}

.report-sheet ul {
  margin-top: 28px;
  padding-left: 20px;
  font-weight: 800;
}

.testimonial-shell {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 16px;
}

.testimonial-card {
  min-height: 260px;
  padding: 30px;
  background: var(--card);
  display: grid;
  align-content: center;
  animation: popIn 0.35s ease;
}

.testimonial-card .quote {
  color: var(--muted);
  font-size: 1.15rem;
}

.stars {
  color: var(--amber);
  margin-bottom: 10px;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: #fff;
  font-weight: 950;
}

.carousel-btn {
  height: 52px;
  width: 52px;
}

.emergency-cta {
  background: linear-gradient(135deg, #92400e, #d97706);
  color: #fff;
  padding: 58px 0;
}

.emergency-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.emergency-inner span {
  font-weight: 900;
  text-transform: uppercase;
}

.emergency-inner p {
  color: rgba(255, 255, 255, 0.84);
}

.emergency-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 900;
  animation: amberPulse 1.8s ease-in-out infinite;
}

@keyframes amberPulse {
  50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.12); }
}

.contact-grid {
  grid-template-columns: 0.85fr 1.15fr;
}

.contact-cards {
  margin-top: 26px;
  grid-template-columns: repeat(2, 1fr);
}

.contact-cards article {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: var(--card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-cards p {
  margin: 0;
  color: var(--muted);
}

.map-card {
  height: 440px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer {
  background: #08111f;
  color: #e2e8f0;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.8fr 1fr;
  gap: 34px;
}

.footer h3 {
  margin-top: 0;
}

.footer a {
  display: block;
  color: #b6c4d6;
  margin: 8px 0;
}

.footer p {
  color: #b6c4d6;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
}

.socials {
  display: flex;
  gap: 12px;
  color: var(--amber);
  font-size: 1.25rem;
}

.footer-bottom {
  margin-top: 46px;
  padding: 18px;
  text-align: center;
  border-top: 1px solid rgba(203, 213, 225, 0.16);
  color: #94a3b8;
}

.whatsapp-float,
.back-to-top {
  position: fixed;
  right: 20px;
  z-index: 900;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.whatsapp-float {
  bottom: 86px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 1.45rem;
}

.back-to-top {
  bottom: 22px;
  width: 46px;
  height: 46px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.25s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 3000;
  background: rgba(2, 6, 23, 0.72);
  padding: 20px;
}

.modal.active {
  display: grid;
}

.modal-card {
  width: min(460px, 100%);
  padding: 34px;
  text-align: center;
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
}

.modal-card i {
  color: var(--success);
  font-size: 3rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

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

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

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    box-shadow: var(--shadow);
  }

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

  .nav-link,
  .site-header.scrolled .nav-link {
    color: var(--text);
  }

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

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

  .workflow::before {
    display: none;
  }
}

@media (max-width: 820px) {
  .section-pad {
    padding: 74px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
  }

  .hero-content {
    transform: none;
  }

  .hero-stats,
  .achievement-grid,
  .code-grid,
  .contact-cards,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split-layout,
  .verification-grid,
  .form-layout,
  .contact-grid,
  .report-panel {
    grid-template-columns: 1fr;
  }

  .dashboard-top,
  .emergency-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .emergency-actions {
    justify-content: flex-start;
  }

  .testimonial-shell {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .brand-text {
    font-size: 0.92rem;
  }

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

  .hero-actions,
  .verify-input,
  .form-actions {
    flex-direction: column;
  }

  .btn,
  .verify-input .btn {
    width: 100%;
  }

  .hero-stats,
  .service-grid,
  .metrics-grid,
  .stepper {
    grid-template-columns: 1fr;
  }

  .result-card dl div,
  .review-card p {
    grid-template-columns: 1fr;
    display: grid;
  }

  .stamp {
    font-size: 2.2rem;
  }
}
