/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: "Inter", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: #e8e8e8;
  background: #0a0a0a;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ===== Utility ===== */
.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 120px 0;
}

.text-muted { color: #888; }
.text-brand { color: #00e676; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #00e676;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  color: #0a0a0a;
}

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

.nav a {
  font-size: 14px;
  color: #999;
  transition: color 0.2s;
  font-weight: 500;
}

.nav a:hover {
  color: #fff;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 2px;
  font-size: 13px;
  font-weight: 600;
}

.lang-switch button {
  background: none;
  border: none;
  color: #666;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s;
}

.lang-switch button.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.lang-switch button:hover:not(.active) {
  color: #aaa;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ===== Hero ===== */
.hero {
  padding: 160px 0 120px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 230, 118, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 .highlight {
  display: block;
  color: #00e676;
}

.hero-desc {
  margin: 28px auto 0;
  font-size: 18px;
  color: #777;
  max-width: 600px;
  line-height: 1.7;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #fff;
  color: #0a0a0a;
}

.btn-primary:hover {
  background: #e8e8e8;
}

.btn-ghost {
  background: transparent;
  color: #ccc;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* ===== Features ===== */
.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-header .eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #00e676;
  margin-bottom: 16px;
}

.features-header h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.features-header p {
  margin-top: 16px;
  color: #666;
  font-size: 17px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 36px 32px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.15);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.feature-card p {
  color: #777;
  font-size: 15px;
  line-height: 1.6;
}

/* ===== About ===== */
.about {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content .eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #00e676;
  margin-bottom: 16px;
}

.about-content h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.about-content p {
  color: #777;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-card .stat-label {
  margin-top: 8px;
  color: #666;
  font-size: 14px;
}

/* ===== CTA ===== */
.cta {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-box {
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 230, 118, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  position: relative;
}

.cta-box p {
  margin-top: 16px;
  color: #666;
  font-size: 17px;
  position: relative;
}

.cta-box .btn {
  margin-top: 36px;
  position: relative;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-copy {
  color: #555;
  font-size: 13px;
}

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

.footer-links a {
  color: #666;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-right a {
  color: #555;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-right a:hover {
  color: #fff;
}

/* ===== Toast (Coming Soon) ===== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px 48px;
  border-radius: 20px;
  text-align: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.toast-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.toast-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.toast h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.toast p {
  color: #888;
  font-size: 15px;
}

.toast .btn {
  margin-top: 24px;
  font-size: 14px;
  padding: 10px 24px;
}

/* ===== Legal Pages ===== */
.legal-page {
  padding: 140px 0 80px;
}

.legal-page .container {
  max-width: 800px;
}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-header h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.legal-header .legal-meta {
  color: #666;
  font-size: 14px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: #ddd;
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-content p {
  color: #888;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }

.legal-content li {
  color: #888;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 4px;
}

.legal-content strong {
  color: #ccc;
  font-weight: 600;
}

.legal-content a {
  color: #00e676;
  transition: opacity 0.2s;
}

.legal-content a:hover {
  opacity: 0.8;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding: 140px 0 80px;
  }
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 32px);
  }

  .nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 72px);
    background: #0a0a0a;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 99;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    font-size: 20px;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 56px);
  }

  .hero-desc {
    font-size: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-left {
    flex-direction: column;
    gap: 16px;
  }

  .cta-box {
    padding: 48px 24px;
  }

  .legal-page {
    padding: 100px 0 60px;
  }
}
