:root {
  --site-bg: #07130f;
  --site-bg-elevated: #0c1c16;
  --site-surface: rgba(255, 255, 255, 0.04);
  --site-border: rgba(52, 211, 153, 0.18);
  --site-text: #ecfdf5;
  --site-muted: #94a3a0;
  --site-primary: #34d399;
  --site-primary-deep: #10b981;
  --site-glow: rgba(52, 211, 153, 0.35);
  --site-font: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --site-display: 'Orbitron', 'Noto Sans SC', sans-serif;
  --site-max: 1120px;
  --site-nav-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--site-text);
  background: var(--site-bg);
  font-family: var(--site-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-nav,
main,
.site-footer,
.site-drawer {
  position: relative;
  z-index: 1;
}

/* —— Nav —— */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--site-nav-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  background: rgba(7, 19, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--site-border);
  background: rgba(7, 19, 15, 0.9);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
}

.site-logo-text {
  font-size: 15px;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 18px;
}

.site-nav-links a {
  font-size: 14px;
  color: var(--site-muted);
  transition: color 0.2s ease;
}

.site-nav-links a:hover {
  color: var(--site-primary);
}

.site-nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--site-border);
  border-radius: 10px;
  background: transparent;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.site-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--site-text);
  border-radius: 2px;
}

.site-drawer {
  position: fixed;
  top: var(--site-nav-h);
  left: 0;
  right: 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 18px;
  background: rgba(7, 19, 15, 0.96);
  border-bottom: 1px solid var(--site-border);
}

.site-drawer[hidden] {
  display: none !important;
}

.site-drawer a {
  padding: 12px 10px;
  border-radius: 10px;
  color: var(--site-text);
  font-size: 15px;
}

.site-drawer a:active {
  background: var(--site-surface);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 13px;
}

.btn-primary {
  background: linear-gradient(135deg, #34d399, #059669);
  color: #042f1c;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: rgba(52, 211, 153, 0.45);
  color: var(--site-primary);
}

.btn-outline:hover {
  border-color: var(--site-primary);
  background: rgba(52, 211, 153, 0.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--site-text);
}

.btn-label {
  line-height: 1.2;
}

.btn-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--site-nav-h) + 32px) 24px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.88;
  transform: scale(1.04);
  transform-origin: center center;
  animation: heroBgDrift 18s ease-in-out infinite alternate;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(7, 19, 15, 0.9) 0%,
      rgba(7, 19, 15, 0.55) 42%,
      rgba(7, 19, 15, 0.12) 72%,
      rgba(7, 19, 15, 0.05) 100%
    ),
    radial-gradient(50% 55% at 78% 50%, rgba(16, 185, 129, 0.2), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--site-max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-brand {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--site-display);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--site-primary);
  text-transform: none;
  animation: riseIn 0.8s ease both;
}

.hero-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  animation: riseIn 0.9s ease 0.08s both;
}

.hero-sub {
  margin: 0 0 28px;
  max-width: 34em;
  color: var(--site-muted);
  font-size: clamp(14px, 1.5vw, 17px);
  animation: riseIn 0.9s ease 0.16s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: riseIn 0.9s ease 0.24s both;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  animation: floatIn 1.1s ease 0.2s both;
}

.hero-glow {
  display: block;
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.45), transparent 68%);
  filter: blur(18px);
  animation: pulseGlow 4.5s ease-in-out infinite;
  z-index: 0;
}

.hero-phone {
  display: block;
  position: relative;
  z-index: 1;
  width: min(42vw, 240px);
  height: auto;
  filter:
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 18px rgba(52, 211, 153, 0.28));
  animation: phoneFloat 5.5s ease-in-out infinite;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(148, 163, 160, 0.7);
  animation: scrollHint 2.2s ease-in-out infinite;
}

/* —— Sections —— */
.section {
  padding: 88px 24px;
  width: min(100%, var(--site-max));
  margin: 0 auto;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-kicker {
  margin: 0 0 10px;
  font-family: var(--site-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--site-primary);
}

.section-head h2,
.download-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}

.section-desc {
  margin: 0;
  color: var(--site-muted);
  font-size: 15px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-item {
  padding: 22px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--site-border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.feature-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--site-primary);
  font-family: var(--site-display);
  font-size: 13px;
  font-weight: 700;
}

.feature-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.feature-item p {
  margin: 0;
  color: var(--site-muted);
  font-size: 14px;
}

.workflow {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(16, 185, 129, 0.12), transparent 70%),
    #081611;
}

.workflow .section-head,
.workflow .flow-list {
  width: min(100%, var(--site-max));
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.flow-list {
  list-style: none;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.flow-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--site-border);
  background: rgba(255, 255, 255, 0.03);
}

.flow-num {
  font-family: var(--site-display);
  color: var(--site-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  padding-top: 2px;
}

.flow-list h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.flow-list p {
  margin: 0;
  color: var(--site-muted);
  font-size: 13px;
}

.download {
  padding-bottom: 100px;
}

.download-panel {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  padding: 36px;
  border-radius: 24px;
  border: 1px solid var(--site-border);
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(52, 211, 153, 0.16), transparent 55%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.download-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.download-btns .btn {
  min-width: 160px;
}

.download-web {
  min-width: 160px;
}

.download-tip {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-size: 13px;
  color: #fbbf24;
}

.contact-page {
  padding-top: calc(var(--site-nav-h) + 48px);
  padding-bottom: 100px;
  min-height: calc(100vh - 180px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 22px;
  border-radius: 20px;
  border: 1px solid var(--site-border);
  background:
    radial-gradient(80% 80% at 0% 0%, rgba(52, 211, 153, 0.14), transparent 55%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(52, 211, 153, 0.12);
  color: var(--site-primary);
  font-family: var(--site-display);
  font-size: 18px;
  font-weight: 700;
}

.contact-icon-tg {
  font-size: 13px;
  letter-spacing: 0.04em;
}

.contact-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.contact-value {
  margin: 0 0 10px;
  color: var(--site-text);
  font-size: 15px;
  word-break: break-all;
}

.contact-action {
  color: var(--site-primary);
  font-size: 13px;
  font-weight: 600;
}

.download-meta {
  display: grid;
  gap: 12px;
  align-content: center;
}

.meta-block {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-block strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.meta-block span {
  color: var(--site-muted);
  font-size: 13px;
}

.site-footer {
  padding: 36px 24px 48px;
  border-top: 1px solid var(--site-border);
  text-align: center;
  color: var(--site-muted);
  font-size: 13px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--site-text);
  font-weight: 600;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
}

.footer-links a:hover {
  color: var(--site-primary);
}

/* —— Motion —— */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes heroBgDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, 0.8%, 0);
  }
}

@keyframes scrollHint {
  0%,
  100% {
    opacity: 0.45;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, 4px);
  }
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* —— Responsive: tablet —— */
@media (max-width: 960px) {
  .site-nav-links {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    display: flex;
    min-height: 260px;
  }

  .hero-bg img {
    object-position: 70% center;
    transform: scale(1.06);
    transform-origin: center center;
  }

  .hero-phone {
    width: min(46vw, 200px);
  }

  .hero-bg-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(7, 19, 15, 0.72) 0%,
        rgba(7, 19, 15, 0.55) 42%,
        rgba(7, 19, 15, 0.35) 100%
      );
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-panel {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Responsive: phone —— */
@media (max-width: 640px) {
  :root {
    --site-nav-h: 60px;
  }

  .site-nav {
    padding: 0 14px;
  }

  .site-nav-actions {
    display: none;
  }

  .site-nav-toggle {
    display: flex;
  }

  .site-logo-text {
    font-size: 14px;
  }

  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--site-nav-h) + 20px) 16px 64px;
    justify-content: flex-start;
  }

  .hero-phone {
    width: 170px;
  }

  .hero-glow {
    width: 160px;
    height: 160px;
  }

  .section {
    padding: 64px 16px;
  }

  .feature-grid,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .workflow .section-head,
  .workflow .flow-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .download-btns {
    flex-direction: column;
  }

  .download-btns .btn,
  .download-web {
    width: 100%;
  }

  .download {
    padding-bottom: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
