:root {
  color-scheme: dark;
  --bg: #071119;
  --bg-soft: #0b1821;
  --panel: rgba(11, 24, 33, 0.72);
  --panel-strong: rgba(12, 28, 38, 0.9);
  --line: rgba(131, 226, 255, 0.18);
  --line-strong: rgba(73, 220, 255, 0.42);
  --text: #f7fbff;
  --muted: #a7b7c3;
  --muted-strong: #d7e2ea;
  --cyan: #20e6ff;
  --cyan-strong: #00bdd6;
  --amber: #ffb84d;
  --green: #47f58a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --max: 1440px;
  --gutter: clamp(20px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 22%, rgba(32, 230, 255, 0.08), transparent 26rem),
    linear-gradient(180deg, #071119 0%, #091721 54%, #061015 100%);
  color: var(--text);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

svg {
  display: block;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 78px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(5, 13, 19, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-size: 1.35rem;
  font-weight: 780;
  line-height: 1;
}

.brand-mark {
  width: 44px;
  height: 32px;
  color: var(--cyan);
  filter: drop-shadow(0 0 12px rgba(32, 230, 255, 0.36));
}

.brand-mark path:first-child {
  fill: #ffffff;
}

.brand-mark path:last-child {
  fill: currentColor;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  margin-left: auto;
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 650;
}

.desktop-nav a,
.footer-links a,
.text-link {
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--cyan);
}

.header-action,
.button,
.service-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-action {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 760;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.header-action:hover {
  border-color: var(--cyan);
  background: rgba(32, 230, 255, 0.1);
  color: var(--cyan);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(10, 22, 30, 0.64);
  color: var(--text);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.mobile-nav {
  position: fixed;
  z-index: 18;
  inset: 78px 0 auto 0;
  display: none;
  grid-template-columns: 1fr;
  padding: 12px var(--gutter) 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 13, 19, 0.96);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-120%);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  visibility: hidden;
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.mobile-nav a {
  padding: 15px 0;
  color: var(--muted-strong);
  font-size: 1rem;
  font-weight: 720;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 82svh;
  padding: 140px var(--gutter) 92px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  z-index: -3;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(3, 10, 16, 0.88) 0%, rgba(3, 10, 16, 0.58) 37%, rgba(3, 10, 16, 0.08) 72%),
    linear-gradient(180deg, rgba(3, 10, 16, 0.2) 0%, rgba(3, 10, 16, 0.08) 58%, #071119 100%),
    url("/assets/freightclaw-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.route-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(32, 230, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 230, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.9), transparent 68%);
}

.hero::after {
  position: absolute;
  right: -4vw;
  bottom: 22px;
  left: 0;
  height: 56px;
  border-top: 1px solid var(--line-strong);
  clip-path: polygon(0 44%, 28% 44%, 31% 18%, 94% 18%, 100% 58%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(6, 17, 24, 0), rgba(6, 17, 24, 0.42));
  content: "";
}

.hero-content {
  width: min(690px, 100%);
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.4rem, 12vw, 8.7rem);
  font-weight: 830;
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.hero-lede {
  max-width: 640px;
  margin: 26px 0 0;
  color: #e6f4fa;
  font-size: clamp(1.08rem, 2.2vw, 1.46rem);
  font-weight: 540;
  line-height: 1.45;
  text-shadow: 0 18px 36px rgba(0, 0, 0, 0.58);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  gap: 10px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 780;
  line-height: 1;
}

.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-primary {
  border: 1px solid rgba(32, 230, 255, 0.72);
  background: linear-gradient(180deg, #39edff, #05cce7);
  box-shadow: 0 20px 48px rgba(0, 199, 225, 0.26);
  color: #031017;
}

.button-primary:hover {
  background: linear-gradient(180deg, #7bf5ff, #1dddf2);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(5, 15, 23, 0.52);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 64px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: rgba(223, 239, 248, 0.68);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scroll-cue span {
  display: inline-block;
  width: 22px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  position: relative;
}

.scroll-cue span::after {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translateX(-50%);
  content: "";
  animation: cue 1.8s ease-in-out infinite;
}

.service-band,
.ops-band,
.security-section,
.contact-strip,
.site-footer {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.service-band {
  padding-top: 34px;
  padding-bottom: 28px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.section-heading h2,
.ops-title h2,
.security-copy h2,
.contact-strip h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 790;
  line-height: 1.08;
}

.section-heading p,
.ops-title p,
.security-copy p,
.contact-strip p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.text-link {
  min-width: max-content;
  color: var(--cyan);
  font-size: 0.92rem;
  font-weight: 760;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 178px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(12, 27, 37, 0.82), rgba(9, 21, 29, 0.64));
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.service-card::before {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(32, 230, 255, 0.16), transparent 48%);
  transition: opacity 180ms ease;
  content: "";
}

.service-card:hover,
.service-card:focus-visible {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(13, 34, 46, 0.92), rgba(9, 21, 29, 0.72));
  outline: none;
  transform: translateY(-4px);
}

.service-card:hover::before,
.service-card:focus-visible::before {
  opacity: 1;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card svg {
  width: 36px;
  height: 36px;
  color: var(--cyan);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.service-title {
  font-size: 1.08rem;
  font-weight: 790;
  line-height: 1.2;
}

.service-copy {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.service-action {
  gap: 8px;
  margin-top: auto;
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 800;
}

.service-action::after {
  content: "→";
  font-size: 1.1rem;
  line-height: 1;
}

.protected-card .service-action {
  color: var(--amber);
}

.protected-card .service-action::after {
  content: "";
}

.ops-band {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 32px;
  align-items: center;
  padding-top: 26px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 15, 21, 0.32);
}

.ops-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ops-title svg {
  width: 26px;
  height: 26px;
  margin-top: 3px;
  color: var(--cyan);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.status-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
}

.status-rail div {
  min-height: 92px;
  padding: 18px;
  background: rgba(8, 19, 27, 0.82);
}

.status-rail span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-rail strong {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  line-height: 1.1;
}

.security-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) 1.24fr;
  gap: clamp(28px, 5vw, 78px);
  padding-top: 86px;
  padding-bottom: 86px;
}

.security-copy p {
  max-width: 540px;
}

.security-list {
  display: grid;
  gap: 12px;
}

.security-list div {
  display: grid;
  grid-template-columns: 42px 170px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.security-list span {
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 860;
}

.security-list strong {
  color: var(--text);
  font-size: 1rem;
}

.security-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.48;
}

.contact-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  padding-top: 34px;
  padding-bottom: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-strip p {
  max-width: 720px;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 118px;
  color: var(--muted);
}

.footer-brand {
  color: var(--text);
  font-size: 1.2rem;
}

.footer-note {
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 650;
}

.toast {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 15px 18px;
  border: 1px solid rgba(255, 184, 77, 0.34);
  border-radius: 8px;
  background: rgba(10, 19, 25, 0.94);
  box-shadow: var(--shadow);
  color: #ffe3b5;
  font-size: 0.92rem;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes cue {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 11px);
  }
}

@media (max-width: 1180px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .desktop-nav,
  .header-action {
    display: none;
  }

  .menu-button,
  .mobile-nav {
    display: block;
  }

  .site-header {
    height: 70px;
  }

  .mobile-nav {
    inset-block-start: 70px;
  }

  .hero {
    min-height: 88svh;
    padding-top: 118px;
    padding-bottom: 98px;
  }

  .hero-media {
    background-image:
      linear-gradient(180deg, rgba(3, 10, 16, 0.78) 0%, rgba(3, 10, 16, 0.48) 46%, #071119 100%),
      url("/assets/freightclaw-hero.png");
    background-position: 62% center;
  }

  .scroll-cue {
    bottom: 44px;
  }

  .section-heading,
  .contact-strip,
  .security-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
  }

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

  .status-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .security-list div {
    grid-template-columns: 42px 1fr;
  }

  .security-list p {
    grid-column: 2;
  }

  .site-footer {
    flex-wrap: wrap;
    align-items: flex-start;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .footer-links {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 1.12rem;
  }

  .brand-mark {
    width: 38px;
    height: 28px;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 14.5vw, 4.1rem);
  }

  .hero-lede {
    font-size: 1.02rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .service-grid,
  .status-rail {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 156px;
  }

  .contact-strip .button {
    width: 100%;
  }
}

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