:root {
  --bg-obsidian: #070a09;
  --bg-surface: #0e1411;
  --bg-card: #131b17;
  --bg-card-hover: #18241e;
  --border-subtle: rgba(16, 185, 129, 0.15);
  --border-glow: rgba(16, 185, 129, 0.4);
  --text-main: #f0fdf4;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --bamboo-green: #10b981;
  --bamboo-light: #34d399;
  --bamboo-dark: #059669;
  --bamboo-glow: rgba(16, 185, 129, 0.2);
  --accent-amber: #fbbf24;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

body {
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background Atmosphere */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 600px;
  background: radial-gradient(circle 900px at 50% -10%, rgba(16, 185, 129, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(16, 185, 129, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 185, 129, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 9, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  height: 76px;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.05));
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 15px var(--bamboo-glow);
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-name span {
  color: var(--bamboo-green);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--bamboo-light);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--bamboo-green);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--bamboo-green);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-explorer {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-glow);
  color: var(--bamboo-light);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-explorer:hover {
  background: rgba(16, 185, 129, 0.2);
  transform: translateY(-1px);
}

.network-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bamboo-light);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bamboo-green);
  box-shadow: 0 0 8px var(--bamboo-green);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--bamboo-green); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--bamboo-dark), var(--bamboo-green));
  color: #042f2e;
  border: none;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glow);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 0;
  }
}

.badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-glow);
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--bamboo-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 600px;
}

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

@media (max-width: 960px) {
  .hero-actions {
    justify-content: center;
  }
  .hero-subtitle {
    margin: 0 auto 36px;
  }
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mascot-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px var(--bamboo-glow);
  background: var(--bg-surface);
}

.mascot-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.mascot-tag {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(7, 10, 9, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glow);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--bamboo-light);
  white-space: nowrap;
}

/* Philosophy Banner (The Moso Bamboo Story) */
.philosophy-card {
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(14, 20, 17, 0.6) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin: 40px 0 80px;
  position: relative;
  overflow: hidden;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 840px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  .philosophy-card {
    padding: 28px;
  }
}

.philosophy-header h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bamboo-green);
  margin-bottom: 12px;
}

.philosophy-header h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 16px;
}

.philosophy-quote {
  font-size: 16px;
  color: var(--text-muted);
  font-style: italic;
  border-left: 3px solid var(--bamboo-green);
  padding-left: 16px;
  margin: 16px 0;
}

.philosophy-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.point-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.point-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.point-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.point-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Feature Pillars Grid */
.features-section {
  padding: 40px 0 80px;
}

.section-title-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-tag {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bamboo-green);
  margin-bottom: 8px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}

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

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--bamboo-glow);
}

.pillar-icon {
  font-size: 32px;
  margin-bottom: 20px;
}

.pillar-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.pillar-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

/* Code & Tech Boxes */
.code-box {
  background: #040705;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #a7f3d0;
  position: relative;
  overflow-x: auto;
}

.copy-btn-code {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--border-subtle);
  color: var(--bamboo-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* Faucet & Interactive Form */
.faucet-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: var(--bamboo-green);
}

.alert-box {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-top: 16px;
  display: none;
}

.alert-box.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--bamboo-green);
  color: var(--bamboo-light);
}

.alert-box.error {
  display: block;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid #f43f5e;
  color: #fca5a5;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 36px;
  margin-top: 80px;
  background: rgba(7, 10, 9, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

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

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 13px;
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
