:root {
  --background: #070914;
  --foreground: #f8fafc;
  --card: rgba(12, 15, 31, 0.78);
  --card-solid: #0d1020;
  --popover: #101426;
  --primary: #36b9ff;
  --primary-foreground: #04121d;
  --secondary: rgba(255, 255, 255, 0.07);
  --muted: rgba(248, 250, 252, 0.68);
  --muted-foreground: #9aa6b8;
  --border: rgba(255, 255, 255, 0.14);
  --input: rgba(255, 255, 255, 0.1);
  --ring: rgba(54, 185, 255, 0.72);
  --cyan: #36b9ff;
  --cyan-dark: #075d86;
  --purple: #c968e8;
  --violet: #8c5de8;
  --amber: #f2b83b;
  --red: #ed5551;
  --green: #57d79d;
  --deep: #17104d;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 9, 20, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  width: 132px;
  height: 54px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.brand img {
  width: 132px;
  height: 54px;
  object-fit: cover;
  object-position: center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
}

.site-nav a:hover {
  color: var(--foreground);
  border-color: var(--border);
  background: var(--secondary);
}

.nav-hotline {
  border-color: rgba(237, 85, 81, 0.42) !important;
  color: var(--foreground) !important;
  background: rgba(237, 85, 81, 0.12);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 6px auto;
  background: var(--foreground);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #080918;
}

.signal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.58;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: #f36522;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 52px;
  align-items: center;
  padding: 78px 0 88px;
}

.badge {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(54, 185, 255, 0.36);
  background: rgba(54, 185, 255, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: var(--radius);
}

.badge.dark {
  border-color: rgba(7, 93, 134, 0.28);
  background: rgba(7, 93, 134, 0.09);
  color: var(--cyan-dark);
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

h1 {
  max-width: 760px;
  margin: 22px 0 22px;
  font-size: 64px;
  line-height: 1.02;
}

h2 {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 42px;
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.hero-copy p,
.contact-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

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

.ui-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--foreground);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  border-radius: var(--radius);
}

.ui-button.primary {
  border-color: rgba(54, 185, 255, 0.55);
  background: var(--primary);
  color: var(--primary-foreground);
}

.ui-button.secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.06);
}

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

.ui-button.full {
  width: 100%;
}

.ui-card,
.hero-panel {
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
}

.hero-panel {
  padding: 22px;
}

.hero-panel img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--radius) - 2px);
}

.panel-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.panel-status span {
  width: 9px;
  height: 9px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(87, 215, 157, 0.12);
  border-radius: 999px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
}

.metric-grid div {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  background: rgba(7, 9, 20, 0.74);
}

.metric-grid strong {
  font-size: 27px;
}

.metric-grid span {
  color: var(--muted-foreground);
  font-size: 13px;
}

.hotline-card {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(237, 85, 81, 0.42);
  background: rgba(237, 85, 81, 0.1);
  border-radius: var(--radius);
}

.hotline-card span,
.inline-hotline {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hotline-card strong {
  color: var(--foreground);
  font-size: 23px;
  line-height: 1.15;
}

.section {
  padding: 88px 0;
  scroll-margin-top: 94px;
}

.section-heading {
  margin-bottom: 34px;
}

.service-section,
.contact-section {
  background: #f8f6ef;
  color: #111417;
}

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

.service-card {
  min-height: 292px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #ffffff;
  color: #111417;
  box-shadow: 0 18px 44px rgba(19, 24, 38, 0.08);
}

.service-number {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 800;
}

.service-number.cyan {
  color: var(--cyan-dark);
}

.service-number.amber {
  color: #9b6a00;
}

.service-number.purple {
  color: #8a3fb0;
}

.service-number.red {
  color: var(--red);
}

.service-number.green {
  color: #1c8b5c;
}

.service-card p {
  color: #4b5663;
  line-height: 1.55;
}

.inline-hotline {
  width: max-content;
  max-width: 100%;
  margin-top: auto;
  padding-top: 18px;
  overflow-wrap: anywhere;
}

.method-section {
  background: var(--background);
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: 48px;
  align-items: center;
}

.loop {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr 28px 1fr;
  align-items: center;
}

.loop div {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(54, 185, 255, 0.42);
  background: rgba(255, 255, 255, 0.04);
  color: var(--foreground);
  font-weight: 800;
  border-radius: var(--radius);
}

.loop div:nth-of-type(2) {
  border-color: rgba(201, 104, 232, 0.52);
}

.loop div:nth-of-type(4) {
  border-color: rgba(237, 85, 81, 0.52);
}

.loop div:nth-of-type(5) {
  border-color: rgba(87, 215, 157, 0.52);
}

.loop span {
  height: 2px;
  background: rgba(54, 185, 255, 0.52);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
  gap: 44px;
  align-items: center;
}

.contact-form {
  padding: 28px;
  background: #101426;
  color: var(--foreground);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--input);
  background: rgba(255, 255, 255, 0.055);
  color: var(--foreground);
  border-radius: calc(var(--radius) - 2px);
}

.contact-form select option {
  color: #111417;
}

.contact-form textarea {
  min-height: 126px;
  resize: vertical;
}

.form-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--green);
  font-size: 13px;
  line-height: 1.4;
}

.fallback-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 32px;
  border-top: 1px solid var(--border);
  background: #070914;
}

.site-footer img {
  width: 76px;
  height: 52px;
  object-fit: cover;
}

.site-footer div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.site-footer span {
  color: var(--muted-foreground);
  font-size: 13px;
}

.site-footer a {
  margin-left: auto;
  color: var(--primary);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

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

@media (max-width: 980px) {
  .site-header {
    padding: 12px 24px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 24px 22px;
    border-bottom: 1px solid var(--border);
    background: #070914;
  }

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

  .site-nav a {
    justify-content: flex-start;
    min-height: 46px;
  }

  .hero-grid,
  .method-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 34px;
  }

  .loop {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .loop span {
    width: 2px;
    height: 26px;
    justify-self: center;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    width: 116px;
    height: 50px;
  }

  .brand img {
    width: 116px;
    height: 50px;
  }

  .hero-grid {
    padding: 54px 0 66px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 29px;
  }

  .hero-copy p,
  .contact-copy p {
    font-size: 17px;
  }

  .hero-actions,
  .contact-actions,
  .form-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ui-button {
    width: 100%;
  }

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

  .section {
    padding: 66px 0;
  }

  .hero-panel,
  .contact-form,
  .service-card {
    padding: 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-footer a {
    margin-left: 0;
  }
}
