/* ============================================================
 * MalaLongxia Official Website - OpenClaw Dark Theme
 * ============================================================ */

/* ----- Variables ----- */
:root {
  --color-bg: #050810;
  --color-bg-secondary: #111111;
  --color-bg-card: #1a1a1a;
  --color-bg-card-hover: #222222;
  --color-bg-elevated: #252525;
  --color-border: #333333;
  --color-border-light: #444444;
  --color-text: #ffffff;
  --color-text-secondary: #999999;
  --color-text-muted: #666666;
  --color-primary: #E54D42;
  --color-primary-hover: #D43D32;
  --color-primary-light: rgba(229, 77, 66, 0.15);
  --color-accent: #F5A623;
  --color-accent-light: rgba(245, 166, 35, 0.15);
  --color-success: #34D399;
  --color-info: #60A5FA;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'Clash Display', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow-primary: 0 0 40px rgba(229, 77, 66, 0.25);
  --shadow-glow-accent: 0 0 40px rgba(245, 166, 35, 0.2);
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Navigation ----- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-normal);
}

.nav.scrolled {
  border-bottom-color: var(--color-border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  transition: opacity var(--transition-fast);
}

.nav-logo:hover { opacity: 0.8; }

/* Brand text gradient styles - matches OpenClaw title-main */
.text-mala,
.text-longxia {
  background: linear-gradient(135deg, #f0f4ff 0%, #ff4d4d 52%, #00e5cc 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

/* OpenClaw brand highlight */
.brand-openclaw {
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 50%, #60A5FA 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 3s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(96, 165, 250, 0.5));
  letter-spacing: 0.5px;
}

/* Nav logo hover glow boost */
.nav-logo:hover .text-mala {
  filter: drop-shadow(0 0 16px rgba(229, 77, 66, 0.7));
}

.nav-logo:hover .text-longxia {
  filter: drop-shadow(0 0 16px rgba(245, 166, 35, 0.7));
}

.nav-logo-icon {
  font-size: 24px;
  line-height: 1;
}

.nav-divider {
  color: #333;
  font-weight: 300;
  margin: 0 2px;
}

.nav-tagline {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.3px;
}

.nav-tagline .brand-openclaw {
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.nav-links a:hover { color: var(--color-text); }

.nav-cta {
  background: var(--color-primary);
  color: var(--color-text) !important;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 13px !important;
  transition: all var(--transition-normal) !important;
}

.nav-cta:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-glow-primary);
  transform: translateY(-1px);
}

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 16px;
  border-top: 1px solid var(--color-border);
}

.nav-mobile a {
  font-size: 15px;
  color: var(--color-text-secondary);
  padding: 8px 0;
}

.nav-mobile .nav-cta {
  text-align: center;
  margin-top: 8px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-family);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  color: var(--color-text);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow-primary);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--color-bg-card);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* OpenClaw-style stars background */
.hero-glow {
  position: absolute;
  inset: 0;
}

.hero-glow-1 {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,.8), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,.6), transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,.7), transparent),
    radial-gradient(2px 2px at 200px 60px, rgba(0,229,204,.6), transparent),
    radial-gradient(1px 1px at 250px 150px, rgba(255,255,255,.5), transparent),
    radial-gradient(2px 2px at 300px 40px, rgba(255,77,77,.4), transparent);
  background-size: 350px 200px;
  animation: twinkle 8s ease-in-out infinite alternate;
}

/* OpenClaw-style nebula glow */
.hero-glow-2 {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(255,77,77,.12), transparent 50%),
    radial-gradient(ellipse 60% 60% at 80% 30%, rgba(0,229,204,.08), transparent 50%),
    radial-gradient(ellipse 90% 70% at 50% 90%, rgba(255,77,77,.06), transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 720px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  padding-bottom: 20px;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #E54D42, #F5A623, transparent);
  border-radius: 2px;
  opacity: 0.7;
}

.hero-title-icon {
  font-size: 56px;
  animation: float 3s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 22px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.hero-desc {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-platforms {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 60px;
}

.hero-platform {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ----- Hero Mockup ----- */
.hero-mockup {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.mockup-window {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-dot-red { background: #ff5f57; }
.mockup-dot-yellow { background: #febc2e; }
.mockup-dot-green { background: #28c840; }

.mockup-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-right: 44px;
}

.mockup-body {
  display: flex;
  min-height: 260px;
}

.mockup-sidebar {
  width: 160px;
  padding: 20px 16px;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mockup-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.mockup-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.mockup-step-done {
  color: var(--color-success);
}

.mockup-step-done .mockup-step-num {
  background: rgba(52, 211, 153, 0.15);
  border-color: var(--color-success);
  color: var(--color-success);
}

.mockup-step-active {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.mockup-step-active .mockup-step-num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.mockup-main {
  flex: 1;
  padding: 24px;
}

.mockup-main h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.mockup-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  font-size: 14px;
}

.mockup-check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.mockup-check-pass .mockup-check-icon {
  background: rgba(52, 211, 153, 0.15);
  color: var(--color-success);
}

.mockup-check-tag {
  margin-left: auto;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.mockup-check-tag.pass {
  background: rgba(52, 211, 153, 0.15);
  color: var(--color-success);
}

.mockup-check-tag.loading {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.mockup-check-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

/* ----- Section Header ----- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ----- Features ----- */
.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition-normal);
}

.feature-card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon-red {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.feature-icon-orange {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.feature-icon-green {
  background: rgba(52, 211, 153, 0.15);
  color: var(--color-success);
}

.feature-icon-blue {
  background: rgba(96, 165, 250, 0.15);
  color: var(--color-info);
}

.feature-icon-purple {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
}

.feature-icon-cyan {
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ----- How it works ----- */
.how-it-works {
  padding: 100px 0;
  background: var(--color-bg-secondary);
}

.steps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step-card {
  text-align: center;
  padding: 36px 32px;
  max-width: 280px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 30px rgba(229, 77, 66, 0.25);
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.step-connector {
  color: var(--color-border);
  flex-shrink: 0;
}

/* ----- Roadmap ----- */
.roadmap {
  padding: 100px 0;
}

.roadmap-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-border);
}

.roadmap-item {
  position: relative;
  margin-bottom: 32px;
}

.roadmap-item:last-child { margin-bottom: 0; }

.roadmap-marker {
  position: absolute;
  left: -40px;
  top: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 3px solid var(--color-border);
  z-index: 1;
}

.roadmap-marker-active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  box-shadow: 0 0 16px rgba(229, 77, 66, 0.4);
}

.roadmap-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-normal);
}

.roadmap-card:hover {
  border-color: var(--color-border-light);
  box-shadow: var(--shadow-md);
}

.roadmap-version {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  margin-right: 10px;
}

.roadmap-status {
  font-size: 12px;
  color: var(--color-text-muted);
}

.roadmap-status-current {
  color: var(--color-success);
  font-weight: 600;
}

.roadmap-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 14px 0 12px;
}

.roadmap-card ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roadmap-card li {
  font-size: 14px;
  color: var(--color-text-secondary);
  padding-left: 18px;
  position: relative;
}

.roadmap-card li::before {
  content: '·';
  position: absolute;
  left: 4px;
  font-weight: 800;
  color: var(--color-text-muted);
}

/* ----- Tech ----- */
.tech {
  padding: 100px 0;
  background: var(--color-bg-secondary);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tech-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition-normal);
}

.tech-card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tech-card-icon {
  font-size: 36px;
  margin-bottom: 14px;
  line-height: 1;
}

.tech-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tech-card p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ----- Download ----- */
.download {
  padding: 100px 0;
}

.download-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  overflow: hidden;
}

.download-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--color-primary);
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.08;
  top: -250px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.download-card h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}

.download-card > p {
  font-size: 17px;
  color: var(--color-text-secondary);
  margin-bottom: 36px;
  position: relative;
}

.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 20px;
}

.download-btn {
  min-width: 180px;
}

/* Download modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close:hover { color: var(--color-text); }

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.modal-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.modal-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition-normal);
}

.modal-option:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-primary);
}

.modal-option-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-option-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.modal-option-desc {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
}

.modal-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius-md);
}

.modal-hint svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.modal-hint p {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.modal-hint code {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #FBBF24;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  word-break: break-all;
  user-select: all;
}

.download-note {
  font-size: 15px;
  position: relative;
}

.download-tips-link {
  color: var(--color-accent);
  font-weight: 600;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.download-tips-link:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(245, 166, 35, 0.5);
}

.download-tips-link .brand-openclaw {
  font-size: inherit;
}

/* ----- Footer ----- */
.footer {
  padding: 60px 0 24px;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-col a:hover { color: var(--color-text); }

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ----- Animations ----- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes textShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes twinkle {
  0% { opacity: 0.4; }
  100% { opacity: 0.7; }
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Contact Section ----- */
.contact {
  padding: 80px 0;
}

.contact-wechat {
  text-align: center;
}

.contact-qr {
  display: inline-block;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.contact-qr-placeholder {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

/* ----- Responsive ----- */
@media (max-width: 968px) {
  .hero-title-icon { font-size: 42px; }
  .section-header h2 { font-size: 32px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-links { gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  .nav-mobile.open { display: flex; }
  .nav-divider, .nav-tagline { display: none; }

  .hero { padding: 100px 20px 40px; }
  .hero-title { gap: 10px; }
  .hero-title-icon { font-size: 32px; }
  .hero-subtitle { font-size: 18px; }
  .hero-desc { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-platforms { flex-wrap: wrap; gap: 16px; }

  .mockup-sidebar { display: none; }

  .features { padding: 60px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 28px; }
  .section-header { margin-bottom: 40px; }

  .steps-row {
    flex-direction: column;
    gap: 0;
  }
  .step-connector {
    transform: rotate(90deg);
    margin: -8px 0;
  }

  .how-it-works { padding: 60px 0; }
  .roadmap { padding: 60px 0; }
  .tech { padding: 60px 0; }

  .tech-grid { grid-template-columns: repeat(2, 1fr); }

  .download { padding: 60px 0; }
  .download-card { padding: 40px 24px; }
  .download-card h2 { font-size: 28px; }
  .download-buttons { flex-direction: column; align-items: center; }
  .download-btn { width: 100%; max-width: 280px; }

  .contact { padding: 60px 0; }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .tech-grid { grid-template-columns: 1fr; }
}

/* ----- Scrollbar ----- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-border-light); }
* { scrollbar-width: thin; scrollbar-color: var(--color-border) transparent; }
