:root {
  --header-height: 72px;
  --mobile-cta-height: 54px;
  --ink: #102033;
  --muted: #607083;
  --line: #d9e2ec;
  --paper: #f5f8fb;
  --panel: #ffffff;
  --blue: #0b4f8a;
  --blue-deep: #063458;
  --blue-soft: #e8f3ff;
  --orange: #f28c28;
  --orange-deep: #c96200;
  --green: #16856a;
  --red: #c83d3d;
  --shadow: 0 16px 40px rgba(16, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
    Arial, sans-serif;
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
.hero-panel strong,
.button,
.floating-cta a,
.floating-cta button {
  overflow-wrap: anywhere;
}

ul,
ol {
  margin: 0;
}

.site-header {
  position: sticky;
  z-index: 60;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 18px;
  color: #fff;
  background: rgba(6, 52, 88, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: calc(100% - 58px);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.brand-text {
  display: grid;
  min-width: 0;
}

.brand-text strong {
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-text small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  border-radius: 10px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 12px;
  left: 12px;
  display: none;
  max-height: min(72svh, 560px);
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #07385f;
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: grid;
}

.site-nav a,
.nav-item > a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active,
.nav-item:hover > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.site-nav .nav-cta {
  color: #1a2430;
  background: var(--orange);
}

.nav-item {
  position: relative;
}

.nav-menu {
  display: grid;
  gap: 2px;
  padding: 0 0 6px 12px;
}

.nav-menu a {
  min-height: 34px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height) - 36px);
  overflow: hidden;
  color: #fff;
  background: var(--blue-deep);
}

.hero-image,
.hero-picture,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-picture {
  overflow: hidden;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 28, 48, 0.94), rgba(6, 52, 88, 0.78) 55%, rgba(6, 52, 88, 0.28)),
    linear-gradient(180deg, rgba(4, 28, 48, 0.12), rgba(4, 28, 48, 0.8));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
  width: min(1180px, calc(100% - 36px));
  min-height: calc(100svh - var(--header-height) - 36px);
  margin: 0 auto;
  padding: 56px 0;
  align-items: center;
}

.hero-inner > * {
  min-width: 0;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 0.88rem;
  font-weight: 900;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.05rem, 9vw, 2.55rem);
  line-height: 1.12;
}

.hero h1 span {
  display: block;
}

.hero-lead {
  max-width: 640px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.hero-actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.button.primary {
  color: #182230;
  background: var(--orange);
  box-shadow: 0 12px 24px rgba(242, 140, 40, 0.24);
}

.button.primary:hover {
  background: #ffa040;
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.hero-points {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.86);
}

.hero-points li {
  display: flex;
  gap: 9px;
  align-items: center;
}

.hero-points li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.hero-panel {
  display: grid;
  gap: 14px;
  max-width: 460px;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.panel-label {
  color: #ffd7ad;
  font-size: 0.85rem;
  font-weight: 900;
}

.hero-panel strong {
  font-size: 1.3rem;
  line-height: 1.32;
}

.hero-service-list {
  display: grid;
  gap: 8px;
}

.hero-service-list a {
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
}

.section {
  padding: 64px 18px;
}

.section:nth-of-type(even) {
  background: #fff;
}

.section-heading,
.detail-layout,
.about-layout,
.contact-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 790px;
  text-align: center;
}

.section-heading h2,
.detail-layout h2,
.about-layout h2,
.contact-layout h2 {
  font-size: 2rem;
  line-height: 1.22;
}

.section-heading p,
.section-intro,
.contact-info p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
}

.service-grid,
.software-grid,
.trust-grid,
.quote-grid,
.scenario-grid,
.content-card-grid {
  display: grid;
  gap: 16px;
  width: min(1180px, 100%);
  margin: 34px auto 0;
}

.service-card,
.software-grid article,
.quote-grid article,
.scenario-grid article,
.content-card,
.scope-panel,
.faq-list details,
.process-track li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(16, 32, 51, 0.08);
}

.service-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 79, 138, 0.34);
  box-shadow: var(--shadow);
}

.service-code {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.service-card h3,
.software-grid h3,
.scope-panel h3 {
  font-size: 1.2rem;
}

.service-card p,
.software-grid p,
.scope-panel p,
.faq-list p,
.process-track span {
  color: var(--muted);
}

.service-card ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  color: #36485c;
  font-size: 0.94rem;
}

.link-button {
  width: fit-content;
  min-height: 40px;
  margin-top: 4px;
  padding: 8px 12px;
  border: 1px solid rgba(242, 140, 40, 0.4);
  border-radius: 8px;
  color: var(--orange-deep);
  background: #fff7ef;
  font-weight: 900;
}

.link-button:hover {
  background: #ffe8d2;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-top: 4px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--blue);
  font-weight: 900;
}

.text-link:hover {
  color: var(--orange-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.detail-section {
  background:
    linear-gradient(180deg, #f5f8fb 0%, #ffffff 100%);
}

.detail-layout,
.about-layout,
.contact-layout {
  display: grid;
  gap: 26px;
}

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

.faq-list details {
  padding: 16px 18px;
}

.faq-list summary {
  color: var(--blue-deep);
  font-weight: 900;
  cursor: pointer;
}

.faq-list p {
  margin-top: 10px;
}

.process-section {
  background: var(--blue-deep);
  color: #fff;
}

.process-section .section-heading p {
  color: rgba(255, 255, 255, 0.74);
}

.process-track {
  display: grid;
  gap: 14px;
  width: min(1180px, 100%);
  margin: 34px auto 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-track li {
  position: relative;
  min-height: 150px;
  padding: 20px 18px 18px;
  color: var(--ink);
  counter-increment: process;
}

.process-track li::before {
  content: counter(process, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.process-track strong,
.process-track span {
  display: block;
}

.process-track strong {
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.quote-grid {
  color: var(--ink);
}

.quote-grid article {
  padding: 18px;
  border-top: 4px solid var(--orange);
}

.quote-grid strong,
.scenario-grid h3,
.content-card h3 {
  display: block;
  color: var(--blue-deep);
  font-size: 1.08rem;
  line-height: 1.32;
}

.quote-grid p,
.scenario-grid p,
.content-card p {
  margin-top: 10px;
  color: var(--muted);
}

.scenario-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
}

.scenario-grid article {
  padding: 20px;
}

.scenario-grid span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--orange-deep);
  background: #fff0df;
  font-size: 0.8rem;
  font-weight: 900;
}

.software-grid article {
  padding: 20px;
}

.software-grid span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--green);
  font-weight: 900;
}

.tech-strip,
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(1180px, 100%);
  margin: 26px auto 0;
}

.tech-strip span,
.trust-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-deep);
  background: #fff;
  font-weight: 800;
}

.section-cta {
  display: flex;
  justify-content: center;
  width: min(1180px, 100%);
  margin: 28px auto 0;
}

.about-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #edf6ff 100%);
}

.scope-panel {
  padding: 22px;
  border-left: 5px solid var(--blue);
}

.scope-panel p {
  margin-top: 12px;
}

.contact-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
}

.contact-info {
  display: grid;
  align-content: start;
  gap: 18px;
}

.contact-methods {
  display: grid;
  gap: 10px;
}

.contact-methods a,
.contact-methods button,
.contact-methods span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-deep);
  background: #fff;
  font-weight: 800;
  text-align: left;
}

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

.qr-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 32, 51, 0.08);
}

.qr-card strong {
  display: block;
  color: var(--blue-deep);
  font-weight: 900;
}

.qr-card p {
  margin-top: 6px;
  font-size: 0.9rem;
}

.qr-placeholder {
  width: 96px;
  aspect-ratio: 1;
  border: 8px solid #fff;
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--blue) 10px, transparent 10px) 0 0 / 22px 22px,
    linear-gradient(var(--blue) 10px, transparent 10px) 0 0 / 22px 22px,
    radial-gradient(circle at 20% 20%, var(--orange) 0 10px, transparent 11px),
    radial-gradient(circle at 80% 20%, var(--blue-deep) 0 10px, transparent 11px),
    radial-gradient(circle at 20% 80%, var(--green) 0 10px, transparent 11px),
    #eef5fb;
  box-shadow: inset 0 0 0 1px var(--line);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row.wide,
.privacy-line,
.privacy-error,
.contact-form .button,
.form-error,
.form-success {
  grid-column: 1 / -1;
}

.form-row label {
  color: var(--blue-deep);
  font-size: 0.92rem;
  font-weight: 900;
}

.form-row label span {
  color: var(--red);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #c9d4df;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  min-height: 130px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 79, 138, 0.12);
}

.contact-form [aria-invalid="true"] {
  border-color: var(--red);
}

.field-error {
  min-height: 16px;
  color: var(--red);
  font-size: 0.78rem;
}

.privacy-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.privacy-line input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--blue);
}

.privacy-line span {
  min-width: 0;
}

.privacy-line a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-error,
.form-success {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.form-error {
  color: #842020;
  background: #ffe8e8;
}

.form-success {
  color: #07553e;
  background: #e7f8f1;
}

.site-footer {
  display: grid;
  gap: 6px;
  padding: 34px 18px 94px;
  color: rgba(255, 255, 255, 0.74);
  background: #061d31;
}

.site-footer > div,
.site-footer nav,
.site-footer p {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.site-footer > span {
  display: block;
  width: min(1180px, 100%);
  margin: 0 auto;
  font-size: 0.875rem;
}

.site-footer > span > a {
  display: inline-flex;
  align-items: center;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: #fff;
  font-size: 1rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.site-footer a:hover {
  color: #fff;
}

.floating-cta {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0 0 env(safe-area-inset-bottom);
  background: rgba(6, 29, 49, 0.24);
  box-shadow: 0 -10px 24px rgba(16, 32, 51, 0.12);
}

.floating-cta a,
.floating-cta button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: var(--mobile-cta-height);
  padding: 0 6px;
  border: 0;
  color: #fff;
  background: var(--blue);
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
  line-height: 1.25;
}

.floating-cta a:first-child {
  background: var(--orange);
  color: #182230;
}

.floating-cta a + a,
.floating-cta button {
  border-left: 1px solid rgba(255, 255, 255, 0.36);
}

.floating-cta button {
  background: var(--green);
}

.toast {
  position: fixed;
  z-index: 120;
  right: 18px;
  bottom: calc(var(--mobile-cta-height) + env(safe-area-inset-bottom) + 18px);
  max-width: calc(100% - 36px);
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: rgba(6, 29, 49, 0.94);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 20, 35, 0.68);
  backdrop-filter: blur(8px);
}

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

.modal {
  position: relative;
  width: min(700px, 100%);
  max-height: 88svh;
  overflow: auto;
  padding: 26px 20px 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.modal h2 {
  padding-right: 38px;
  font-size: 1.55rem;
  line-height: 1.25;
}

.modal-body {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
}

.modal-body strong {
  color: var(--blue-deep);
}

.modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 1.3rem;
  line-height: 1;
}

.modal-close {
  width: 100%;
  margin-top: 22px;
}

.page-hero {
  padding: 64px 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 52, 88, 0.96), rgba(11, 79, 138, 0.86)),
    radial-gradient(circle at 82% 24%, rgba(242, 140, 40, 0.28), transparent 30%);
}

.page-hero-inner,
.content-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #fff;
  font-weight: 800;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.12;
}

.page-hero p {
  max-width: 780px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.content-layout {
  display: grid;
  gap: 26px;
}

.content-card {
  padding: 22px;
}

.content-card ul,
.content-card ol {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-left: 20px;
  color: #36485c;
}

:focus-visible {
  outline: 3px solid rgba(242, 140, 40, 0.82);
  outline-offset: 3px;
}

@media (min-width: 720px) {
  .site-header {
    padding: 0 28px;
  }

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

  .hero-actions {
    display: flex;
    align-items: center;
  }

  .service-grid,
  .software-grid,
  .quote-grid,
  .scenario-grid,
  .content-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .contact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 26px;
  }

  .site-footer {
    padding-bottom: calc(var(--mobile-cta-height) + env(safe-area-inset-bottom) + 34px);
  }
}

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav a,
  .nav-item > a {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.92rem;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    display: none;
    min-width: 230px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #07385f;
    box-shadow: var(--shadow);
  }

  .nav-item:hover .nav-menu,
  .nav-item:focus-within .nav-menu {
    display: grid;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) clamp(340px, 31vw, 420px);
    gap: clamp(32px, 4vw, 48px);
  }

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

  .hero-panel {
    justify-self: end;
  }

  .section {
    padding: 82px 28px;
  }

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

  .detail-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }

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

  .content-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }

  .process-track {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .floating-cta {
    top: auto;
    right: 18px;
    bottom: 24px;
    left: auto;
    grid-template-columns: none;
    width: 180px;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
  }

  .site-footer {
    padding-bottom: 42px;
  }
}

@media (max-width: 719px) {
  :root {
    --header-height: 58px;
    --mobile-cta-height: 50px;
  }

  .site-header {
    padding: 0 max(12px, env(safe-area-inset-left)) 0 max(12px, env(safe-area-inset-right));
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 32px;
    font-size: 0.72rem;
  }

  .brand-text strong {
    font-size: 0.96rem;
    max-width: min(56vw, 240px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    gap: 3px;
    width: 36px;
    height: 36px;
    border-color: rgba(255, 255, 255, 0.24);
  }

  .nav-toggle span {
    width: 17px;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .site-nav {
    right: 10px;
    left: 10px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    width: min(100% - 28px, 1180px);
    min-height: auto;
    padding: clamp(32px, 7svh, 50px) 0 calc(var(--mobile-cta-height) + env(safe-area-inset-bottom) + 30px);
    align-items: start;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(4, 28, 48, 0.94), rgba(6, 52, 88, 0.72)),
      linear-gradient(180deg, rgba(4, 28, 48, 0.2), rgba(4, 28, 48, 0.86));
  }

  .eyebrow {
    gap: 8px;
    font-size: 0.82rem;
  }

  .eyebrow::before {
    width: 22px;
  }

  .hero-panel {
    display: none;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.78rem, 8.3vw, 2.12rem);
  }

  .hero-lead {
    margin-top: 12px;
    font-size: 0.96rem;
    line-height: 1.58;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 20px;
  }

  .hero-actions .button,
  .section-cta .button,
  .modal-close {
    width: 100%;
  }

  .section {
    padding: 44px 14px;
  }

  .section-heading h2,
  .detail-layout h2,
  .about-layout h2,
  .contact-layout h2 {
    font-size: clamp(1.5rem, 7.2vw, 1.78rem);
  }

  .service-grid,
  .software-grid,
  .trust-grid,
  .quote-grid,
  .scenario-grid,
  .content-card-grid,
  .process-track {
    margin-top: 26px;
  }

  .service-card,
  .software-grid article,
  .scenario-grid article,
  .content-card,
  .scope-panel {
    padding: 18px;
  }

  .process-track li {
    min-height: auto;
    padding: 18px 16px;
  }

  .contact-form {
    padding: 18px;
  }

  .contact-methods a,
  .contact-methods button,
  .contact-methods span {
    align-items: flex-start;
    overflow-wrap: anywhere;
  }

  .page-hero {
    padding: 46px 14px;
  }

  .page-hero h1 {
    font-size: clamp(1.85rem, 9.5vw, 2.35rem);
  }

  .modal-overlay {
    align-items: end;
    padding: 12px;
  }

  .modal {
    max-height: calc(100svh - 24px);
    padding: 22px 16px 16px;
  }

  .floating-cta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .floating-cta a,
  .floating-cta button {
    min-height: var(--mobile-cta-height);
    padding: 0 5px;
    font-size: 0.8rem;
  }

  .site-footer {
    padding-bottom: calc(var(--mobile-cta-height) + env(safe-area-inset-bottom) + 34px);
  }
}

@media (max-width: 480px) {
  .hero-points {
    gap: 6px;
    margin-top: 18px;
    font-size: 0.92rem;
  }

  .button {
    min-height: 44px;
    padding: 9px 14px;
  }

  .breadcrumb {
    font-size: 0.82rem;
  }

  .qr-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .qr-card img,
  .qr-placeholder {
    width: 72px;
  }
}

@media (max-width: 390px) {
  .brand-text small {
    display: none;
  }

  .brand-text strong {
    max-width: 48vw;
  }

  .brand-mark {
    width: 36px;
    height: 30px;
  }

  .nav-toggle {
    width: 34px;
    height: 34px;
  }

  .floating-cta a,
  .floating-cta button {
    font-size: 0.74rem;
  }
}

@media (max-width: 360px) {
  .hero-inner {
    padding-top: 24px;
    padding-bottom: calc(var(--mobile-cta-height) + env(safe-area-inset-bottom) + 18px);
  }

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

  .hero-lead {
    margin-top: 10px;
    font-size: 0.92rem;
  }

  .hero-points {
    display: none;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .button {
    min-height: 40px;
  }
}

@media (max-width: 340px) {
  .brand-text strong {
    max-width: 42vw;
    font-size: 0.92rem;
  }

  .floating-cta a,
  .floating-cta button {
    padding: 0 3px;
    font-size: 0.68rem;
  }

  .section {
    padding-right: 12px;
    padding-left: 12px;
  }
}

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