/* SeedVision H5 Download — green, mobile-first */

:root {
  --green: #5faf5a;
  --green-deep: #3d8f45;
  --green-soft: #e8f5e6;
  --green-mist: #f3faf2;
  --ink: #1a2e1c;
  --ink-soft: #4a6350;
  --muted: #7a9180;
  --white: #ffffff;
  --line: rgba(95, 175, 90, 0.18);
  --radius: 18px;
  --font-display: "Quicksand", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "Quicksand", sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--green-mist);
  line-height: 1.55;
  min-height: 100dvh;
  overflow-x: hidden;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

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

.page {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 22px calc(40px + var(--safe-bottom));
  z-index: 1;
}

/* Atmosphere */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(95, 175, 90, 0.28), transparent 55%),
    radial-gradient(80% 40% at 100% 40%, rgba(61, 143, 69, 0.1), transparent 50%),
    linear-gradient(180deg, #f7fcf6 0%, #eef8ec 45%, #f5faf4 100%);
  z-index: 0;
}

.bg-leaf {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 8c8 10 10 20 0 36C20 28 22 18 30 8z' fill='%235faf5a' fill-opacity='0.06'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  z-index: 0;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  min-height: min(100dvh, 780px);
  padding-top: 12px;
  animation: rise 0.7s ease both;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  animation: softIn 0.8s ease 0.1s both;
}

.logo-mark {
  width: 36px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--green);
}

.logo-sm .logo-mark {
  width: 22px;
  height: 24px;
}

.logo-sm .logo-text {
  font-size: 1.05rem;
}

.footer .logo {
  margin-bottom: 4px;
  opacity: 0.9;
}

.slogan {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5.2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  animation: softIn 0.8s ease 0.2s both;
}

.lead {
  max-width: 34em;
  font-size: 0.92rem;
  color: var(--ink-soft);
  animation: softIn 0.8s ease 0.3s both;
}

.hero-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  animation: floatUp 0.9s ease 0.35s both;
}

/* Phone mockups */
.phone {
  position: relative;
  background: linear-gradient(160deg, #2a3d2c, #1a2a1c);
  border-radius: 28px;
  padding: 10px;
  box-shadow:
    0 24px 48px rgba(26, 46, 28, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-main {
  width: min(58vw, 230px);
  aspect-ratio: 9 / 17;
}

.phone-sm {
  width: 132px;
  aspect-ratio: 9 / 16;
  margin: 0 auto 14px;
  border-radius: 22px;
  padding: 8px;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 8px;
  background: #111;
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 28px 14px 14px;
}

.screen-result {
  background: linear-gradient(180deg, #f4fbf3, #fff);
  gap: 10px;
}

.screen-top {
  text-align: left;
  margin-bottom: 6px;
}

.screen-label {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
}

.screen-seed {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2px;
}

.metric {
  text-align: left;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.metric-row strong {
  color: var(--green-deep);
  font-family: var(--font-display);
}

.bar {
  height: 6px;
  background: var(--green-soft);
  border-radius: 999px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--green), var(--green-deep));
  border-radius: inherit;
  animation: growBar 1.1s ease 0.6s both;
}

.screen-footer {
  margin-top: auto;
  font-size: 0.62rem;
  color: var(--green-deep);
  font-weight: 500;
}

.screen-camera {
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(180deg, #1e2f20, #2d4630);
  color: #e8f5e6;
}

.cam-frame {
  width: 72%;
  aspect-ratio: 1;
  border: 1.5px solid rgba(232, 245, 230, 0.55);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 55%, rgba(95, 175, 90, 0.35), transparent 55%);
}

.screen-camera p {
  font-size: 0.62rem;
}

.cam-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--green);
}

.screen-analyzing {
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--green-mist);
}

.pulse {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.85;
  animation: pulse 1.6s ease-in-out infinite;
}

.screen-analyzing p {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink);
}

.screen-analyzing span {
  font-size: 0.58rem;
  color: var(--muted);
}

.screen-history {
  gap: 8px;
  justify-content: center;
  background: #fff;
  padding-top: 22px;
}

.hist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--green-soft);
  border-radius: 10px;
  font-size: 0.58rem;
  color: var(--ink-soft);
}

.hist-item b {
  color: var(--ink);
}

/* CTA */
.cta-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: softIn 0.8s ease 0.45s both;
}

.btn-primary {
  width: 100%;
  max-width: 320px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-primary:active {
  transform: scale(0.98);
  filter: brightness(0.95);
}

.cta-alt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.btn-text {
  color: var(--green-deep);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(61, 143, 69, 0.35);
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
}

.version-line {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Sections */
.section {
  margin-top: 56px;
  animation: rise 0.7s ease both;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.section-desc {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 22px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-list li {
  padding-left: 16px;
  border-left: 3px solid var(--green);
}

.feature-list h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-list p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.shot-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shot-track::-webkit-scrollbar {
  display: none;
}

.shot {
  flex: 0 0 150px;
  scroll-snap-align: center;
  text-align: center;
}

.shot h3 {
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.shot > p {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.log-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: log;
}

.log-list li {
  position: relative;
  padding: 0 0 0 28px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  counter-increment: log;
}

.log-list li::before {
  content: counter(log);
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
}

.footer {
  margin-top: 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer p {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.footer .muted {
  color: var(--muted);
  font-size: 0.72rem;
}

/* WeChat mask */
.wechat-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 24, 14, 0.78);
  padding: 20px 20px calc(28px + var(--safe-bottom));
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  animation: fadeIn 0.25s ease;
}

.wechat-mask[hidden] {
  display: none;
}

.wechat-guide {
  width: min(100%, 320px);
  color: #fff;
  text-align: right;
  padding-top: 8px;
}

.wechat-arrow {
  width: 64px;
  height: 64px;
  margin-left: auto;
  color: #fff;
  animation: nudge 1.2s ease-in-out infinite;
}

.wechat-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 8px 0 8px;
}

.wechat-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  opacity: 0.92;
  margin-bottom: 20px;
}

.wechat-desc strong {
  letter-spacing: 0.12em;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 0.9rem;
}

/* Animations */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes growBar {
  from {
    width: 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes nudge {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(6px, -6px);
  }
}

/* Desktop peek */
@media (min-width: 768px) {
  .page {
    padding-top: 40px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 20px;
  }

  .shot-track {
    justify-content: center;
    overflow: visible;
  }
}
