:root {
  color-scheme: dark;
  --background: #07101e;
  --surface: rgba(18, 32, 55, 0.78);
  --surface-strong: #12213a;
  --text: #f6f8fc;
  --muted: #aab7cc;
  --line: rgba(255, 255, 255, 0.1);
  --primary: #7a6cff;
  --primary-light: #a69cff;
  --success: #46dba4;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 5%, rgba(107, 92, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 10% 28%, rgba(31, 166, 207, 0.1), transparent 28rem),
    var(--background);
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(166, 156, 255, 0.35);
  border-radius: 12px;
  background: linear-gradient(145deg, #6655f5, #867aff);
  box-shadow: 0 10px 30px rgba(98, 82, 244, 0.3);
}

.header-contact {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    color 160ms ease;
}

.header-contact:hover {
  border-color: rgba(166, 156, 255, 0.55);
  color: var(--text);
}

.hero {
  display: grid;
  min-height: 590px;
  align-items: center;
  gap: 70px;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  padding-block: 86px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.hero-description {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.primary-button {
  background: linear-gradient(135deg, #6655f5, #887cff);
  box-shadow: 0 16px 34px rgba(98, 82, 244, 0.26);
}

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

.hero-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(26, 42, 70, 0.9), rgba(13, 26, 46, 0.85));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  color: #dfe7f5;
  font-size: 14px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(70, 219, 164, 0.1);
}

.hero-panel dl {
  margin: 0;
  padding: 8px 22px;
}

.hero-panel dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.hero-panel dl div:last-child {
  border-bottom: 0;
}

.hero-panel dt {
  color: var(--muted);
}

.hero-panel dd {
  margin: 0;
  font-weight: 700;
}

.section {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

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

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.035em;
}

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

.service-card {
  min-height: 230px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 35px;
  place-items: center;
  border-radius: 13px;
  color: var(--primary-light);
  background: rgba(122, 108, 255, 0.13);
  font-size: 20px;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.service-card p,
.security-copy {
  color: var(--muted);
  line-height: 1.75;
}

.security-section {
  display: grid;
  gap: 60px;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  padding: 70px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-strong);
}

.security-copy p:last-child {
  margin-bottom: 0;
}

.security-copy a {
  color: var(--primary-light);
}

footer {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: space-between;
  margin-top: 90px;
  border-top: 1px solid var(--line);
  color: #74839b;
  font-size: 13px;
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    gap: 42px;
    grid-template-columns: 1fr;
    padding-block: 70px;
  }

  .hero-panel {
    max-width: 540px;
  }

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

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

  .security-section {
    gap: 28px;
    grid-template-columns: 1fr;
    padding: 38px;
  }
}

@media (max-width: 520px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    min-height: 68px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .section {
    padding: 70px 0;
  }

  .security-section {
    padding: 28px 24px;
  }

  footer {
    min-height: 100px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    margin-top: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
