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

:root {
  --bg:         #0C0D0E;
  --bg-card:    #111214;
  --bg-section: #0F1012;
  --green:      #39FF14;
  --green-dim:  rgba(57, 255, 20, 0.08);
  --green-glow: rgba(57, 255, 20, 0.12);
  --green-border: rgba(57, 255, 20, 0.3);
  --text:       #E8E9EA;
  --text-muted: #6B7280;
  --border:     #1E2023;
  --radius-s:   8px;
  --radius-m:   12px;
  --radius-l:   16px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Header ─────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 13, 14, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
header.scrolled {
  background: rgba(12, 13, 14, 0.88);
  border-bottom-color: var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.logo-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.btn-coming {
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-s);
  padding: 7px 16px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-coming:hover { background: var(--green-dim); }

/* ─── Hero ────────────────────────────────── */
#hero {
  position: relative;
  overflow: hidden;
  padding: 110px 24px 120px;
  text-align: center;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 60%, var(--green-glow) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(57,255,20,0.06) 0%, transparent 60%);
  animation: pulse 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}
.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--green);
}
.hero-eyebrow::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--green);
}
h1 {
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}
h1 span { color: var(--green); }
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #0A0B0C;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-m);
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-m);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); }

/* 打字动效展示 */
.typing-demo {
  margin: 60px auto 0;
  max-width: 380px;
  background: #111214;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 16px;
  text-align: left;
}
.typing-demo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
.agent-name { font-size: 13px; font-weight: 500; }
.agent-status { font-size: 11px; color: var(--green); margin-left: auto; }
.msg-user {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.bubble-user {
  background: #1A3A1A;
  border: 1px solid rgba(57,255,20,0.2);
  border-radius: 12px 12px 2px 12px;
  padding: 8px 12px;
  font-size: 13px;
  max-width: 200px;
  color: #C8F5C0;
}
.msg-agent { margin-bottom: 0; }
.bubble-agent {
  background: #16181A;
  border: 1px solid var(--border);
  border-radius: 2px 12px 12px 12px;
  padding: 8px 12px;
  font-size: 13px;
  max-width: 260px;
  color: var(--text);
}
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 13px;
  background: var(--green);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.85s steps(1) infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ─── Section 通用 ────────────────────────── */
section { padding: 96px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 56px;
}

/* ─── Features ────────────────────────────── */
#features { background: var(--bg-section); }
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 24px;
  transition: border-color 0.2s, background 0.2s;
}
.feature-card:hover {
  border-color: var(--green-border);
  background: #111c11;
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-s);
  background: var(--green-dim);
  border: 1px solid rgba(57,255,20,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 20px; height: 20px; color: var(--green); }
.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── How It Works ────────────────────────── */
#how { background: var(--bg); }
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  position: relative;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--bg-card);
}
@media (min-width: 768px) {
  .step:not(:last-child) {
    border-radius: var(--radius-l) 0 0 var(--radius-l);
    border-right: none;
  }
  .step:last-child {
    border-radius: 0 var(--radius-l) var(--radius-l) 0;
  }
  .step:nth-child(2) { border-radius: 0; }
}
@media (max-width: 767px) {
  .step:not(:last-child) {
    border-bottom: none;
    border-radius: var(--radius-l) var(--radius-l) 0 0;
  }
  .step:last-child { border-radius: 0 0 var(--radius-l) var(--radius-l); }
  .step:nth-child(2) { border-radius: 0; }
}
.step-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}
.step-divider {
  display: none;
}
@media (min-width: 768px) {
  .step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--green);
    font-size: 16px;
    z-index: 1;
  }
}

/* ─── CTA ─────────────────────────────────── */
#cta {
  background: var(--bg-section);
  text-align: center;
}
#cta .section-title { margin-bottom: 8px; }
#cta .section-sub { margin: 0 auto 40px; }
.appstore-badge {
  display: inline-block;
  opacity: 0.35;
  filter: grayscale(1);
  transition: opacity 0.2s;
}
.appstore-badge:hover { opacity: 0.5; }
.appstore-badge svg { height: 44px; }
.notify-hint {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Footer ──────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
}
.footer-logo img { width: 22px; height: 22px; border-radius: 5px; }
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 12px;
  color: #3a3d42;
}

/* ─── Beta Registration ──────────────────── */
#beta { background: var(--bg); }

.reg-form {
  max-width: 680px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.req { color: var(--green); }
.form-field input,
.form-field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #3d4147; }
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(57,255,20,0.4);
}
.form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #0A0B0C;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-m);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.85; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.spin {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #0A0B0C;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-msg {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--radius-s);
}
.form-msg.success {
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(57,255,20,0.2);
}
.form-msg.error {
  color: #ff6b6b;
  background: rgba(255,107,107,0.08);
  border: 1px solid rgba(255,107,107,0.2);
}

/* ─── Reveal 动画 ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
