:root {
  --primary: #1f4fa3;
  --primary-dark: #0c2d61;
  --secondary: #15a362;
  --accent: #f59e0b;
  --ink: #111827;
  --muted: #dce7f6;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.22);
  --glass: rgba(8, 22, 48, 0.58);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--primary-dark);
  color: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

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

.page-shell {
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.hero-media {
  animation: slowZoom 18s ease-in-out infinite alternate;
  background-image: url("./assets/hero.jpg");
  background-position: center;
  background-size: cover;
  inset: 0;
  position: fixed;
  transform: scale(1.04);
  z-index: -3;
}

.shade {
  background: rgba(4, 15, 33, 0.7);
  inset: 0;
  position: fixed;
  z-index: -2;
}

.motion-grid {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.motion-grid span {
  animation: scanLine 8s linear infinite;
  background: var(--line);
  display: block;
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 28%;
}

.motion-grid span:nth-child(2) {
  animation-delay: 2.3s;
  top: 52%;
}

.motion-grid span:nth-child(3) {
  animation-delay: 4.8s;
  top: 76%;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 26px 40px;
  position: relative;
  z-index: 2;
}

.brand {
  align-items: center;
  display: inline-flex;
}

.brand img {
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 5px 14px rgba(0, 0, 0, 0.38));
  height: 46px;
  max-width: min(250px, 54vw);
  object-fit: contain;
  width: auto;
}

.top-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 18px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.top-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.hero {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 880px;
  min-height: calc(100vh - 220px);
  padding: 38px 24px 34px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.logo-stage {
  animation: riseIn 900ms ease both;
  display: grid;
  margin-bottom: 26px;
  place-items: center;
  position: relative;
  width: min(560px, 88vw);
}

.logo-stage img {
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.48));
  height: auto;
  object-fit: contain;
  width: min(520px, 82vw);
}

.eyebrow {
  animation: fadeUp 700ms ease 120ms both;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1 {
  animation: fadeUp 760ms ease 200ms both;
  font-size: 64px;
  font-weight: 950;
  line-height: 1.02;
  margin: 0;
  max-width: 820px;
}

.lead {
  animation: fadeUp 760ms ease 300ms both;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
  margin: 24px 0 0;
  max-width: 680px;
}

.rotator {
  align-items: center;
  animation: fadeUp 760ms ease 400ms both;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  margin-top: 30px;
  padding: 11px 18px;
}

.rotator span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.rotator strong {
  color: var(--white);
  font-size: 14px;
  font-weight: 950;
  min-width: 78px;
}

.actions {
  animation: fadeUp 760ms ease 500ms both;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  min-width: 164px;
  padding: 0 22px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

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

.button.primary {
  background: var(--secondary);
  color: var(--white);
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--white);
}

.app-actions {
  animation: fadeUp 760ms ease 580ms both;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.app-download-group {
  display: grid;
  justify-items: center;
}

.app-button {
  align-items: center;
  appearance: none;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  gap: 12px;
  justify-content: center;
  min-height: 58px;
  min-width: 158px;
  padding: 8px 18px;
  text-align: left;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.app-button:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.app-logo {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 auto;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.app-logo svg {
  display: block;
  fill: currentColor;
  height: 100%;
  width: 100%;
}

.app-copy {
  display: grid;
  gap: 3px;
}

.app-copy span {
  color: #4b5563;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.app-copy strong {
  font-size: 20px;
  font-weight: 950;
  line-height: 1.1;
}

.app-status {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
  margin: 10px 0 0;
  min-height: 19px;
  text-align: center;
}

.signals {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1080px;
  padding: 0 24px 28px;
  position: relative;
  z-index: 1;
}

.signal {
  animation: fadeUp 760ms ease both;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 146px;
  padding: 18px;
}

.signal:nth-child(2) {
  animation-delay: 120ms;
}

.signal:nth-child(3) {
  animation-delay: 240ms;
}

.signal:nth-child(4) {
  animation-delay: 360ms;
}

.signal-kicker {
  color: var(--accent);
  display: block;
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 18px;
}

.signal h2 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
}

.signal p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 10px 0 0;
}

.contact-page {
  padding-bottom: 42px;
}

.contact-hero {
  margin: 0 auto;
  max-width: 880px;
  padding: 52px 24px 30px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.contact-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  margin: 0 auto;
  max-width: 1080px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.contact-panel,
.download-band,
.services-band {
  animation: fadeUp 760ms ease both;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-panel {
  padding: 24px;
}

.panel-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.contact-panel h2,
.download-band h2,
.services-band h2 {
  font-size: 30px;
  line-height: 1.15;
  margin: 0;
}

.contact-methods,
.enquiry-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.contact-method,
.enquiry-list a {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 15px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

a.contact-method:hover,
.enquiry-list a:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-2px);
}

.contact-method span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.contact-method strong,
.enquiry-list a {
  color: var(--white);
  font-size: 17px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-method small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.download-band,
.services-band {
  margin: 16px auto 0;
  max-width: 1080px;
  padding: 24px;
  position: relative;
  z-index: 1;
}

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

.download-band p,
.services-band p {
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0 0;
  max-width: 680px;
}

.app-actions--split {
  animation: none;
  flex: 0 0 auto;
  margin-top: 0;
}

.download-band .app-download-group {
  justify-items: start;
  max-width: 360px;
}

.download-band .app-status {
  text-align: left;
}

.section-heading {
  max-width: 720px;
}

.service-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.service-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  min-height: 142px;
  padding: 18px;
}

.service-item span {
  color: var(--accent);
  display: block;
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 18px;
}

.service-item h3 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
}

.service-item p {
  font-size: 14px;
  margin-top: 10px;
}

@keyframes slowZoom {
  from {
    transform: scale(1.04);
  }

  to {
    transform: scale(1.1);
  }
}

@keyframes scanLine {
  0% {
    opacity: 0;
    transform: translateY(-24px);
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 0.65;
  }

  100% {
    opacity: 0;
    transform: translateY(84px);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@media (max-width: 980px) {
  .signals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .download-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-actions--split {
    width: 100%;
  }

  .download-band .app-download-group {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 20px;
  }

  .brand img {
    height: 40px;
    max-width: min(220px, 52vw);
  }

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

  .logo-stage {
    margin-bottom: 22px;
    width: min(440px, 88vw);
  }

  .logo-stage img {
    width: min(400px, 82vw);
  }

  h1 {
    font-size: 44px;
    line-height: 1.06;
  }

  .lead {
    font-size: 16px;
    line-height: 1.55;
  }

  .signals {
    grid-template-columns: 1fr;
    padding-bottom: 22px;
  }

  .signal {
    min-height: 118px;
  }

  .contact-hero {
    padding-top: 30px;
  }

  .contact-layout,
  .download-band,
  .services-band {
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact-panel h2,
  .download-band h2,
  .services-band h2 {
    font-size: 24px;
  }
}

@media (max-width: 430px) {
  .topbar {
    padding: 16px;
  }

  h1 {
    font-size: 38px;
  }

  .actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .app-actions,
  .app-button {
    width: 100%;
  }
}

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