:root {
  --bg: #06101f;
  --panel: #0b1a30;
  --line: rgba(120, 190, 255, 0.16);
  --text: #eaf4ff;
  --muted: #8aa4c4;
  --cyan: #3ec8ff;
  --ice: #b8e9ff;
  --font-cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-en: "Orbitron", sans-serif;
  --dock-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-cn);
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(40, 130, 210, 0.28), transparent 55%),
    var(--bg);
  line-height: 1.65;
  padding-bottom: calc(var(--dock-h) + var(--safe-b) + 12px);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}

.m-glow {
  pointer-events: none;
  position: fixed;
  inset: auto -20% 30% -20%;
  height: 40vh;
  background: radial-gradient(ellipse, rgba(62, 200, 255, 0.12), transparent 70%);
  z-index: -1;
}

/* Top bar */
.m-top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(0.7rem + var(--safe-t)) 1rem 0.7rem;
  background: rgba(6, 16, 31, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}

.m-top.scrolled {
  border-bottom-color: var(--line);
}

.m-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.m-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #5ad4ff, #1488c8);
  box-shadow: 0 0 18px rgba(62, 200, 255, 0.35);
  position: relative;
}

.m-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
}

.m-logo strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.m-logo em {
  display: block;
  font-style: normal;
  font-family: var(--font-en);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.m-top-cta {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #5ad4ff, #1490d0);
  color: #031018;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Hero */
.m-hero {
  padding: 1.8rem 1.15rem 2rem;
  min-height: calc(100svh - 58px - var(--dock-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.m-eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.m-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 9vw, 2.55rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.m-hero h1 span {
  background: linear-gradient(105deg, var(--ice), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.m-lead {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.m-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.4rem 0 1.6rem;
}

.m-trust span {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--ice);
}

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #5ad4ff, #1490d0);
  color: #031018;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 10px 28px rgba(62, 200, 255, 0.25);
  width: 100%;
}

.m-btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(120, 190, 255, 0.35);
  box-shadow: none;
  margin-top: 0.4rem;
}

/* Blocks */
.m-block {
  padding: 2.2rem 1.15rem;
}

.m-block-alt {
  background: linear-gradient(180deg, rgba(10, 30, 55, 0.65), rgba(6, 16, 31, 0.2));
  border-block: 1px solid var(--line);
}

.m-head h2 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: 0.06em;
}

.m-sub {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.m-service-stack {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
}

.m-service-stack article {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.m-service-stack article:last-child {
  border-bottom: 1px solid var(--line);
}

.m-service-stack h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  letter-spacing: 0.05em;
}

.m-service-stack p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Tags horizontal scroll */
.m-tags-scroll {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 1.2rem 1.15rem 0.4rem;
  margin: 0 -1.15rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.m-tags-scroll::-webkit-scrollbar {
  display: none;
}

.m-tags-scroll span {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--ice);
}

.m-tags-scroll .accent {
  border-color: rgba(62, 200, 255, 0.5);
  color: var(--cyan);
  background: rgba(62, 200, 255, 0.1);
}

.m-focus {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.m-focus > p {
  margin: 0 0 0.7rem;
  font-family: var(--font-en);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.m-focus > div {
  display: flex;
  gap: 1.4rem;
}

.m-focus strong {
  font-size: 1.15rem;
  letter-spacing: 0.14em;
}

.m-points {
  list-style: none;
  margin: 1.2rem 0 1.4rem;
  padding: 0;
}

.m-points li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--ice);
}

.m-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--cyan);
  transform: rotate(45deg);
}

.m-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 1.1rem 0 1.3rem;
}

.m-benefits span {
  padding: 0.75rem 0.7rem;
  border-top: 2px solid rgba(62, 200, 255, 0.4);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.m-partner-list details {
  border-bottom: 1px solid var(--line);
}

.m-partner-list details:first-child {
  border-top: 1px solid var(--line);
}

.m-partner-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 600;
}

.m-partner-list summary::-webkit-details-marker {
  display: none;
}

.m-partner-list summary span {
  letter-spacing: 0.04em;
}

.m-partner-list summary em {
  font-style: normal;
  color: var(--cyan);
  font-size: 0.88rem;
  white-space: nowrap;
}

.m-partner-list details p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Contact */
.m-contact-card {
  margin-top: 1.2rem;
  padding: 1.3rem 1.1rem;
  border: 1px solid rgba(62, 200, 255, 0.28);
  background:
    linear-gradient(160deg, rgba(62, 200, 255, 0.12), rgba(10, 40, 80, 0.35));
}

.m-person {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.m-person-note {
  margin: 0.35rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.m-copy,
.m-mail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  text-align: left;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.m-copy span,
.m-mail span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.m-copy strong,
.m-mail strong {
  font-size: 1.02rem;
  word-break: break-all;
}

.m-copy:active strong {
  color: var(--cyan);
}

.m-hint {
  margin: 0.8rem 0 0;
  color: var(--cyan);
  font-size: 0.9rem;
  text-align: center;
}

.m-tip {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--ice);
  font-size: 0.88rem;
}

.m-footer {
  padding: 1.2rem 1.15rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.m-footer a {
  color: var(--cyan);
}

/* Bottom dock */
.m-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(var(--dock-h) + var(--safe-b));
  padding: 0 0.35rem var(--safe-b);
  background: rgba(6, 18, 34, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}

.m-dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.m-dock a.is-active {
  color: var(--ice);
}

.m-dock .dock-cta {
  margin: 0.55rem 0.25rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #5ad4ff, #1490d0);
  color: #031018 !important;
  font-weight: 700;
}

/* Wide phones still use mobile layout intentionally */
@media (min-width: 540px) {
  .m-hero,
  .m-block,
  .m-footer {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .m-top {
    padding-left: max(1rem, calc(50% - 260px));
    padding-right: max(1rem, calc(50% - 260px));
  }

  .m-dock {
    max-width: 520px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}
