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

:root {
  --bg-primary: #1E1C1A;
  --bg-card: #2F2A26;
  --bg-card-hover: #3A342F;
  --accent: #B8926E;
  --accent-hover: #C9A37E;
  --accent-light: #D4A574;
  --text-primary: #EAE2D9;
  --text-secondary: #BFB0A2;
  --text-soft: #8E7E6E;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(30, 28, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.nav-brand:hover {
  opacity: 0.85;
}

.nav-logo {
  height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.nav-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 2px;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--accent);
  color: #1E1C1A;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(184, 146, 110, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(184, 146, 110, 0.08);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.btn-xl {
  padding: 18px 44px;
  font-size: 18px;
  font-weight: 600;
  border-radius: var(--radius-md);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(184, 146, 110, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 30% 70%, rgba(130, 170, 190, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #1E1C1A 0%, #151311 100%);
  z-index: -1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(184, 146, 110, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(130, 170, 190, 0.04) 0%, transparent 40%);
}

.hero-content {
  text-align: center;
  max-width: 720px;
  z-index: 1;
  animation: fadeUp 0.8s ease-out;
}

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

.hero-logo {
  height: 120px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
  margin: 0 auto 28px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 4px rgba(184, 146, 110, 0.15);
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--text-primary);
  margin-bottom: 12px;
  background: linear-gradient(180deg, #fff 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 3px;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

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

/* ===== Section Header ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
}

.section-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 4px;
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
  background: linear-gradient(180deg, #151311 0%, #1E1C1A 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(184, 146, 110, 0.15), rgba(184, 146, 110, 0.05));
  border: 1px solid rgba(184, 146, 110, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== Stats ===== */
.stats {
  padding: 80px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 160px;
}

.stat-num {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 2px;
}

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, #1E1C1A 0%, #151311 100%);
}

.cta-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 4px;
}

.cta-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0 32px;
  background: #12110F;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo {
  height: auto;
  width: 28px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.footer-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 2px;
}

.footer-slogan {
  font-size: 14px;
  color: var(--text-soft);
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-soft);
  opacity: 0.7;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-soft);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-divider {
  color: var(--border-light);
  font-size: 12px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(30, 28, 26, 0.95);
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  box-shadow: var(--shadow);
}

.toast.show {
  opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-title {
    font-size: 15px;
    letter-spacing: 1px;
  }

  .btn-text {
    display: none;
  }

  .btn {
    padding: 8px 14px;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-logo {
    height: auto;
    width: 120px;
    border-radius: 12px;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 36px;
    letter-spacing: 6px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

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

  .btn-lg {
    padding: 12px 24px;
    font-size: 15px;
  }

  .btn-xl {
    padding: 16px 32px;
    font-size: 16px;
  }

  .features {
    padding: 60px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 28px 22px;
  }

  .section-title {
    font-size: 22px;
    letter-spacing: 3px;
  }

  .section-line {
    width: 40px;
  }

  .stats {
    padding: 50px 0;
  }

  .stat-num {
    font-size: 28px;
  }

  .cta-title {
    font-size: 26px;
    letter-spacing: 3px;
  }

  .cta {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .nav-actions {
    gap: 8px;
  }

  .nav-logo {
    height: auto;
    width: 36px;
  }

  .hero-title {
    font-size: 32px;
    letter-spacing: 4px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 0 20px;
  }

  .btn-lg {
    justify-content: center;
  }
}
