/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0a;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Dark gradient background - Like openclaw.ai */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #0a0a0a;
}

/* Radial gradient glow effects - openclaw.ai style */
.gradient-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    /* Blue glow at top-left */
    radial-gradient(ellipse 80% 50% at 15% 20%, rgba(42, 113, 255, 0.35) 0%, transparent 60%),
    /* Blue glow at top-right */
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(59, 130, 246, 0.25) 0%, transparent 50%),
    /* Purple/pink glow at bottom-right */
    radial-gradient(ellipse 70% 60% at 80% 85%, rgba(139, 92, 246, 0.3) 0%, transparent 55%),
    /* Subtle blue glow at bottom-left */
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(14, 165, 233, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

/* Additional subtle noise/texture overlay */
.gradient-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 720px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo */
.logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
}

.logo svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 40px rgba(255, 107, 107, 0.4)) drop-shadow(0 0 80px rgba(238, 90, 111, 0.2));
  animation: float 6s ease-in-out infinite;
}

.logo svg .claw-body,
.logo svg .claw-left,
.logo svg .claw-right {
  filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.3));
}

.logo svg .eye-glow {
  animation: eyePulse 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes eyePulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Title */
.title {
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.1;
  color: #fff;
}

/* Subtitle */
.subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.divider {
  opacity: 0.3;
}

.version {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
}

/* Description */
.description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 48px;
  text-align: left;
  display: inline-block;
}

/* Download Buttons */
.download-group {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  min-width: 240px;
}

.download-btn .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.download-btn .btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.download-btn .main {
  font-size: 1.125rem;
}

.download-btn .sub {
  font-size: 0.875rem;
  opacity: 0.8;
  font-weight: 400;
}

/* Primary Button (Windows) - Blue */
.download-btn.primary {
  background: #3b82f6;
  color: white;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.download-btn.primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
}

.download-btn.primary:active {
  transform: translateY(0);
}

/* Secondary Button (Mac) */
.download-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-btn.secondary.disabled {
  cursor: not-allowed;
  pointer-events: none;
}

/* Verify Section */
.verify {
  margin-bottom: 60px;
}

.verify-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}

.verify-toggle:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

.verify-toggle .icon {
  width: 16px;
  height: 16px;
}

.verify-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.verify-panel.open {
  max-height: none;
  padding-top: 16px;
}

.verify-panel code {
  display: block;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  word-break: break-all;
  max-width: 400px;
  margin: 0 auto;
}

/* Changelog Styles */
.changelog-panel {
  text-align: left;
}

.changelog-content {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  max-width: 480px;
  margin: 0 auto;
}

/* Changelog Hidden Section */
.changelog-hidden {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s ease-out;
}

.changelog-hidden.expanded {
  max-height: 1000px;
  opacity: 1;
}

.changelog-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 8px;
  color: #60a5fa;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.changelog-expand-btn:hover {
  background: rgba(96, 165, 250, 0.2);
  color: #93c5fd;
}

.changelog-expand-btn .expand-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.changelog-expand-btn.expanded .expand-icon {
  transform: rotate(180deg);
}

.changelog-item {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.changelog-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.changelog-version {
  font-weight: 700;
  font-size: 0.95rem;
  color: #4ade80;
  font-family: 'Monaco', 'Menlo', monospace;
}

.changelog-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.changelog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.changelog-list li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
  margin-bottom: 6px;
}

.changelog-list li:last-child {
  margin-bottom: 0;
}

.changelog-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #60a5fa;
}

/* Contact Info */
.contact-info {
  margin-bottom: 32px;
  padding: 20px 32px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(238, 90, 111, 0.1) 100%);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 12px;
  text-align: center;
}

.contact-info p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin: 0;
}

.contact-wechat {
  color: #4ade80;
  font-weight: 600;
  font-family: 'Monaco', 'Menlo', monospace;
}

.contact-email {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-email:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* Footer */
.footer {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 640px) {
  .hero {
    padding: 32px 20px;
  }

  .logo {
    width: 80px;
    height: 80px;
  }

  .subtitle {
    font-size: 1rem;
    flex-direction: column;
    gap: 4px;
  }

  .divider {
    display: none;
  }

  .description {
    font-size: 1rem;
  }

  .download-group {
    flex-direction: column;
    gap: 12px;
  }

  .download-btn {
    min-width: 280px;
    padding: 16px 28px;
  }

  .contact-info {
    margin-bottom: 24px;
    padding: 16px 20px;
    margin-left: 20px;
    margin-right: 20px;
  }

  .contact-info p {
    font-size: 0.9rem;
  }

  .changelog-content {
    padding: 16px;
    margin-left: 12px;
    margin-right: 12px;
    max-height: 350px;
  }

  .changelog-version {
    font-size: 0.9rem;
  }

  .changelog-date {
    font-size: 0.75rem;
  }

  .changelog-list li {
    font-size: 0.8rem;
  }

  .changelog-expand-btn {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .footer {
    position: static;
    margin-top: 48px;
    padding-bottom: 24px;
  }
}
