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

:root {
  --bg: #faf6f1;
  --bg-alt: #fefcf9;
  --border: rgba(160,130,100,0.1);
  --text: #3d3229;
  --text-muted: #8a7b6b;
  --accent: #b8865a;
  --accent2: #c9976b;
  --accent3: #d4a87c;
  --gradient: linear-gradient(135deg, #d4a87c, #c49068, #b87d55, #a66d45);
  --gradient-soft: linear-gradient(135deg, rgba(212,168,124,0.18), rgba(196,144,104,0.12), rgba(184,125,85,0.08));
  --gradient-nav: linear-gradient(135deg, rgba(212,168,124,0.25), rgba(196,144,104,0.18), rgba(184,125,85,0.12));
  --glass: rgba(255,253,250,0.6);
  --glass-border: rgba(255,250,240,0.8);
  --shadow: 0 2px 20px rgba(184,134,90,0.08);
  --shadow-hover: 0 8px 32px rgba(184,134,90,0.14);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter','Noto Sans TC',sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #a67548; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Orbs */
.orb { position: fixed; border-radius: 50%; pointer-events: none; z-index: -1; filter: blur(90px); opacity: 0.3; animation: orbFloat 25s ease-in-out infinite; }
.orb-1 { width: 420px; height: 420px; background: rgba(212,168,124,0.35); top: 5%; left: -8%; }
.orb-2 { width: 360px; height: 360px; background: rgba(196,144,104,0.25); top: 55%; right: -6%; animation-delay: -9s; }
.orb-3 { width: 300px; height: 300px; background: rgba(184,125,85,0.2); bottom: 8%; left: 25%; animation-delay: -16s; }
@keyframes orbFloat { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(30px,-25px) scale(1.05)} 66%{transform:translate(-20px,30px) scale(0.95)} }

/* Navbar */
.navbar { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 100; width: calc(100% - 48px); max-width: 1100px; padding: 12px 28px; background: var(--gradient-nav); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 16px; border: 1px solid var(--glass-border); box-shadow: 0 4px 24px rgba(184,134,90,0.1); transition: all 0.3s; }
.navbar.scrolled { box-shadow: 0 4px 32px rgba(184,134,90,0.15); }
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.nav-links { list-style: none; display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--gradient); color: #fff !important; padding: 8px 20px; border-radius: 10px; font-weight: 600; font-size: 0.85rem !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }
.lang-btn {
  background: var(--gradient); color: #fff; border: none; padding: 6px 16px;
  border-radius: 10px; font-size: 0.82rem; font-weight: 700; cursor: pointer;
  transition: all 0.3s; letter-spacing: 0.5px;
}
.lang-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; padding: 120px 24px 60px; text-align: center; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 25% 40%, rgba(212,168,124,0.25) 0%, transparent 50%), radial-gradient(ellipse at 75% 30%, rgba(196,144,104,0.2) 0%, transparent 50%), radial-gradient(ellipse at 50% 85%, rgba(184,125,85,0.15) 0%, transparent 50%); }
.hero-content { position: relative; max-width: 800px; margin: 0 auto; }
.hero-badge { display: inline-block; padding: 8px 20px; border-radius: 24px; background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(8px); font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; font-weight: 500; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero-desc { color: var(--text-muted); font-size: 1.1rem; max-width: 580px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }

.btn { padding: 14px 32px; border-radius: 12px; font-size: 0.95rem; font-weight: 600; transition: all 0.3s; cursor: pointer; display: inline-block; border: none; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 4px 16px rgba(184,134,90,0.2); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(184,134,90,0.25); color: #fff; }
.btn-glass { background: var(--glass); border: 1.5px solid var(--border); color: var(--text); backdrop-filter: blur(8px); }
.btn-glass:hover { border-color: var(--accent3); color: var(--accent); }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

/* Phone Mockup */
.phone-mockup { perspective: 1000px; display: flex; justify-content: center; }
.phone-frame { width: 280px; background: #1a2e22; border-radius: 32px; padding: 12px; box-shadow: var(--shadow-hover), 0 20px 60px rgba(0,0,0,0.15); transform: rotateX(4deg); transition: transform 0.5s; }
.phone-frame:hover { transform: rotateX(0deg); }
.phone-notch { width: 100px; height: 6px; background: #0d1a13; border-radius: 3px; margin: 0 auto 12px; }
.phone-screen { background: #122117; border-radius: 20px; padding: 20px 16px; min-height: 380px; }
.mock-header { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.mock-card { background: #24472E; border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.mock-card-title { font-size: 0.85rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.mock-card-progress { display: flex; align-items: center; gap: 10px; }
.mock-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.mock-bar-fill { height: 100%; background: #12ED5C; border-radius: 3px; }
.mock-card-progress span { font-size: 0.75rem; color: #91C9A3; font-weight: 600; }
.mock-bear { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px; background: #24472E; border-radius: 12px; }
.mock-bear span:first-child { font-size: 1.3rem; }
.mock-bear-bar { display: flex; gap: 4px; }
.mock-bear-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.mock-bear-dot.active { background: #12ED5C; }
.mock-bear-label { font-size: 0.7rem; color: #91C9A3; font-weight: 600; margin-left: auto; }

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-badge { display: inline-block; padding: 6px 16px; border-radius: 20px; background: rgba(212,168,124,0.12); color: var(--accent); font-size: 0.8rem; font-weight: 600; margin-bottom: 16px; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.section-desc { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* Concept */
.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.concept-card { background: var(--glass); border: 1px solid var(--border); border-radius: 16px; padding: 32px; backdrop-filter: blur(12px); box-shadow: var(--shadow); transition: all 0.3s; text-align: center; }
.concept-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.concept-number { font-size: 2.5rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 12px; }
.concept-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.concept-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--glass); border: 1px solid var(--border); border-radius: 16px; padding: 28px; backdrop-filter: blur(12px); box-shadow: var(--shadow); transition: all 0.3s; }
.feature-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); }

/* Bear Demo */
.bear-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.bear-track { display: flex; flex-direction: column; align-items: center; gap: 0; }
.bear-level { display: flex; align-items: center; gap: 16px; background: var(--glass); border: 1px solid var(--border); border-radius: 14px; padding: 16px 24px; width: 100%; backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.bear-emoji { font-size: 1.8rem; }
.bear-label { font-size: 0.9rem; font-weight: 600; flex: 1; }
.bear-status { padding: 4px 12px; border-radius: 8px; font-size: 0.75rem; font-weight: 700; }
.bear-status.safe { background: rgba(40,200,64,0.12); color: #28a745; }
.bear-status.warning { background: rgba(255,165,0,0.12); color: #e89830; }
.bear-status.danger { background: rgba(255,60,60,0.12); color: #e04040; }
.bear-status.caught { background: rgba(255,60,60,0.2); color: #c03030; }
.bear-connector { width: 2px; height: 20px; background: linear-gradient(to bottom, var(--accent3), transparent); }

.bear-rules { display: flex; flex-direction: column; gap: 20px; }
.rule { display: flex; gap: 16px; align-items: flex-start; background: var(--glass); border: 1px solid var(--border); border-radius: 14px; padding: 20px; backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.rule-icon { font-size: 1.5rem; flex-shrink: 0; }
.rule h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.rule p { font-size: 0.85rem; color: var(--text-muted); }

/* Flow */
.flow-steps { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.flow-step { background: var(--glass); border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px; text-align: center; backdrop-filter: blur(12px); box-shadow: var(--shadow); transition: all 0.3s; flex: 1; min-width: 180px; }
.flow-step:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.flow-icon { font-size: 2rem; margin-bottom: 10px; }
.flow-step h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.flow-step p { font-size: 0.8rem; color: var(--text-muted); }
.flow-arrow { font-size: 1.5rem; color: var(--accent3); font-weight: 300; }

/* Tech */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tech-card { background: var(--glass); border: 1px solid var(--border); border-radius: 14px; padding: 24px; text-align: center; backdrop-filter: blur(12px); box-shadow: var(--shadow); transition: all 0.3s; }
.tech-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.tech-icon { font-size: 1.8rem; margin-bottom: 8px; }
.tech-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.tech-card p { font-size: 0.78rem; color: var(--text-muted); }

/* CTA */
.section-cta { background: var(--gradient-soft); text-align: center; }
.cta-content h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.cta-content p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 28px; }
.cta-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 16px; }

/* Footer */
.footer { padding: 32px 0; text-align: center; border-top: 1px solid var(--border); }
.footer p { font-size: 0.85rem; color: var(--text-muted); }

/* Animations */
.fade-in { opacity: 0; transform: translateY(24px); transition: all 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .features-grid, .concept-grid { grid-template-columns: 1fr; }
  .bear-demo { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .navbar { width: calc(100% - 32px); padding: 10px 20px; top: 8px; }
  .nav-toggle { display: block; }
  .nav-links { position: fixed; top: 0; right: -100%; width: 260px; height: 100vh; background: rgba(250,246,241,0.95); backdrop-filter: blur(20px); flex-direction: column; padding: 80px 32px; gap: 24px; transition: right 0.3s; border-left: 1px solid var(--border); }
  .nav-links.active { right: 0; }
  .hero { padding: 100px 24px 60px; }
  .flow-arrow { display: none; }
  .flow-steps { flex-direction: column; }
  .flow-step { min-width: auto; width: 100%; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
