:root {
  --green: #0bbc52;
  --green-soft: rgba(11, 188, 82, 0.14);
  --ink: #0f1411;
  --ink-soft: #3a423d;
  --mute: #8b938d;
  --line: rgba(15, 20, 17, 0.06);
  --paper: #f4f7f5;
  --shell: #1a1d1b;
  --shell-edge: #2a2f2c;
  font-family: "SF Pro Display", "PingFang SC", "Noto Sans SC",
    "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Soft atmospheric wash */
.atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      900px 520px at 50% -8%,
      rgba(11, 188, 82, 0.09),
      transparent 60%
    ),
    radial-gradient(
      700px 420px at 18% 72%,
      rgba(11, 188, 82, 0.05),
      transparent 55%
    ),
    radial-gradient(
      640px 380px at 84% 58%,
      rgba(16, 34, 23, 0.04),
      transparent 50%
    ),
    linear-gradient(180deg, #f8faf8 0%, #f1f5f2 48%, #eef2ef 100%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  padding: 2rem 1.5rem 0;
  display: flex;
  justify-content: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.brand-name {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink);
}

/* Hero */
.hero {
  text-align: center;
  padding: 4.25rem 1.5rem 3.25rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--mute);
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4.2vw, 2.35rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.25;
  color: var(--ink);
}

/* Device stage */
.stage {
  position: relative;
  flex: 1;
  padding: 0.5rem 1rem 5rem;
  display: flex;
  justify-content: center;
}

.glow {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(820px, 92vw);
  height: 280px;
  transform: translate(-50%, -20%);
  background: radial-gradient(
    ellipse at center,
    rgba(11, 188, 82, 0.16) 0%,
    rgba(11, 188, 82, 0.05) 38%,
    transparent 70%
  );
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.phone-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  max-width: 980px;
  width: 100%;
}

.phone {
  margin: 0;
  flex: 0 0 auto;
}

.phone-shell {
  position: relative;
  background: linear-gradient(160deg, #2c302e 0%, #121514 55%, #0b0d0c 100%);
  border-radius: 32px;
  padding: 9px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 -1px 0 rgba(0, 0, 0, 0.35) inset,
    0 28px 60px -18px rgba(10, 16, 12, 0.55),
    0 12px 24px -12px rgba(10, 16, 12, 0.35);
}

.phone-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-screen {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
}

.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    transparent 42%
  );
  mix-blend-mode: soft-light;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
  vertical-align: middle;
}

/* Staggered showcase — center hero */
.phone--left,
.phone--right {
  width: min(200px, 27vw);
  transform: translateY(18px) scale(0.94);
  opacity: 0.96;
}

.phone--center {
  width: min(230px, 31vw);
  z-index: 2;
  transform: translateY(0);
}

.phone--left .phone-shell,
.phone--right .phone-shell {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 22px 48px -20px rgba(10, 16, 12, 0.45),
    0 8px 18px -10px rgba(10, 16, 12, 0.3);
}

.phone--center .phone-shell {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 36px 70px -16px rgba(10, 16, 12, 0.58),
    0 16px 28px -12px rgba(10, 16, 12, 0.35),
    0 0 0 1px rgba(11, 188, 82, 0.08);
}

/* Soft ground reflection */
.phone-row::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: min(640px, 78vw);
  height: 36px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(15, 20, 17, 0.14) 0%,
    transparent 72%
  );
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 1.25rem 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--mute);
}

.footer-company {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--mute);
}

.beian {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: #a3aba6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.beian:hover {
  color: var(--ink-soft);
}

/* Mobile: stack polish */
@media (max-width: 640px) {
  .hero {
    padding: 3rem 1.25rem 2.25rem;
  }

  .hero h1 {
    letter-spacing: 0.1em;
  }

  .phone-row {
    gap: 0.55rem;
  }

  .phone--left,
  .phone--right {
    width: 28vw;
    transform: translateY(12px) scale(0.92);
  }

  .phone--center {
    width: 34vw;
  }

  .phone-shell {
    border-radius: 22px;
    padding: 6px;
  }

  .phone-screen {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .phone {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .phone:hover {
    transform: translateY(-6px) scale(1);
  }

  .phone--left:hover,
  .phone--right:hover {
    transform: translateY(6px) scale(0.97);
  }
}
