/*
  Ultra KB Landing Page — 文青 × 駭客 混合美學
  "世界頂尖的文青風，骨子裡卻是程式碼暴徒"

  配色：紙張質感（米白）+ 深咖啡色 + terminal 綠
*/

/* ========================
   CSS Reset & Base Styles
   ======================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Serif TC', 'Source Serif Pro', Georgia, serif;
  font-weight: 400;
  line-height: 1.7;
  color: #2c2c2c; /* 深灰黑 */
  background: #faf9f6; /* 紙張米白 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* 紙張質感紋理 */
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(139, 69, 19, 0.02) 0px,
      rgba(139, 69, 19, 0.02) 1px,
      transparent 1px,
      transparent 96px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(139, 69, 19, 0.02) 0px,
      rgba(139, 69, 19, 0.02) 1px,
      transparent 1px,
      transparent 96px
    );
  background-size: 96px 96px;
}

/* ========================
   Typography
   ======================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Noto Serif TC', 'Source Serif Pro', Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2.75rem;
  font-weight: 700;
}

h3 {
  font-size: 1.875rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: #4a4a4a;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Monospace for code/data */
.mono,
.stat-number,
.metric-number,
.plan-price {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-weight: 600;
  letter-spacing: -0.05em;
}

/* ========================
   Container & Layout
   ======================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

/* ========================
   Language Toggle (Fixed Top-Right)
   ======================== */

.language-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.375rem;
  border-radius: 12px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(139, 69, 19, 0.1);
}

.lang-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: #4a4a4a;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: #f5f4f1;
  color: #1a1a1a;
}

.lang-btn.active {
  background: linear-gradient(135deg, #4a7326 0%, #6ba33e 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(74, 115, 38, 0.35);
}

/* ========================
   Navigation
   ======================== */

.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(139, 69, 19, 0.1);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.375rem;
  font-weight: 800;
  color: #1a1a1a;
  font-family: 'Noto Serif TC', Georgia, serif;
}

.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #4a4a4a;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b4513, #cd853f);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #8b4513;
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-nav {
  background: linear-gradient(135deg, #4a7326 0%, #6ba33e 100%);
  color: #ffffff;
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(74, 115, 38, 0.3);
}

.btn-nav:hover {
  box-shadow: 0 6px 20px rgba(74, 115, 38, 0.5);
  transform: translateY(-2px);
}

/* ========================
   Buttons
   ======================== */

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, #4a7326 0%, #6ba33e 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(74, 115, 38, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(74, 115, 38, 0.5);
  transform: translateY(-3px);
}

.btn-secondary {
  background: #ffffff;
  color: #8b4513;
  border: 2px solid #8b4513;
}

.btn-secondary:hover {
  background: #8b4513;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(139, 69, 19, 0.25);
}

.btn-outline {
  background: transparent;
  color: #8b4513;
  border: 2px solid #8b4513;
}

.btn-outline:hover {
  background: #8b4513;
  color: #ffffff;
  transform: translateY(-3px);
}

/* ========================
   Hero Section
   ======================== */

.hero {
  background:
    linear-gradient(180deg, rgba(255, 248, 240, 0.8) 0%, rgba(250, 249, 246, 0.9) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><rect fill="%23faf9f6" width="1000" height="1000"/><g fill-opacity="0.02"><circle fill="%238b4513" cx="500" cy="500" r="400"/><circle fill="%238b4513" cx="200" cy="200" r="300"/><circle fill="%238b4513" cx="800" cy="800" r="300"/></g></svg>');
  background-size: cover;
  background-position: center;
  padding: 8rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Terminal-style decoration */
.hero::before {
  content: '> █';
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  color: rgba(74, 163, 38, 0.3);
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(139, 69, 19, 0.2);
  color: #8b4513;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 24px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  color: #1a1a1a;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gradient-text {
  background: linear-gradient(135deg, #8b4513 0%, #4a7326 50%, #cd853f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.375rem;
  color: #5a5a5a;
  margin-bottom: 3rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 2px solid rgba(139, 69, 19, 0.15);
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item::before {
  content: '//';
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: rgba(74, 163, 38, 0.4);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-label {
  font-size: 0.9375rem;
  color: #6a6a6a;
  font-weight: 500;
}

/* ========================
   Pain Points Section
   ======================== */

.pain-points {
  background: #f5f4f1;
  position: relative;
}

.pain-points::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8b4513, transparent);
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
  color: #1a1a1a;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #8b4513, #cd853f);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: #6a6a6a;
  max-width: 700px;
  margin: -2.5rem auto 4rem;
  line-height: 1.7;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pain-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(139, 69, 19, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #8b4513, #cd853f);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.pain-card:hover {
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(139, 69, 19, 0.15);
  transform: translateY(-6px);
}

.pain-card:hover::before {
  transform: scaleX(1);
}

.pain-card.solution {
  background: linear-gradient(135deg, rgba(74, 115, 38, 0.08) 0%, rgba(205, 133, 63, 0.08) 100%);
  border: 2px solid rgba(74, 115, 38, 0.3);
}

.pain-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.pain-text {
  font-size: 1rem;
  color: #3a3a3a;
  line-height: 1.7;
}

/* ========================
   What We Build Section
   ======================== */

.what-we-build {
  background: #ffffff;
  position: relative;
}

.what-we-build::before {
  content: '/* Building Knowledge Infrastructure */';
  position: absolute;
  top: 3rem;
  left: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: rgba(74, 163, 38, 0.25);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}

.build-card {
  background: #faf9f6;
  padding: 2.5rem;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(139, 69, 19, 0.08);
  position: relative;
  overflow: hidden;
}

.build-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(139, 69, 19, 0.05) 0%, transparent 70%);
  transition: all 0.4s ease;
}

.build-card:hover {
  background: #ffffff;
  border-color: rgba(139, 69, 19, 0.2);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(139, 69, 19, 0.1);
  transform: translateY(-6px);
}

.build-card:hover::before {
  width: 200px;
  height: 200px;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
}

.card-description {
  font-size: 1rem;
  color: #5a5a5a;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.card-tags {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(139, 69, 19, 0.08);
  color: #8b4513;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(139, 69, 19, 0.15);
  font-family: 'JetBrains Mono', monospace;
}

/* ========================
   Why Different Section
   ======================== */

.why-different {
  background: #f5f4f1;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.comparison-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(139, 69, 19, 0.08);
  transition: all 0.3s ease;
}

.comparison-card:hover {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(139, 69, 19, 0.12);
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.comparison-icon {
  font-size: 2.5rem;
}

.comparison-header h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1a1a1a;
}

.comparison-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comparison-item {
  padding: 1.25rem;
  border-radius: 12px;
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid transparent;
}

.comparison-item.others {
  background: rgba(235, 87, 87, 0.06);
  border-left-color: #eb5757;
}

.comparison-item.us {
  background: rgba(74, 115, 38, 0.08);
  border-left-color: #4a7326;
}

.comparison-item .label {
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.comparison-item.others .label {
  color: #eb5757;
}

.comparison-item.us .label {
  color: #4a7326;
}

.comparison-item .value {
  font-size: 1rem;
  color: #3a3a3a;
  line-height: 1.6;
}

/* ========================
   Demo Section
   ======================== */

.demo {
  background: #ffffff;
  position: relative;
}

.demo::before {
  content: '$ ./showcase-ultra-kb.sh';
  position: absolute;
  top: 3rem;
  right: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: rgba(74, 163, 38, 0.25);
}

.demo-content {
  max-width: 1100px;
  margin: 0 auto;
}

.before-after {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.before,
.after {
  background: #faf9f6;
  padding: 2.5rem;
  border-radius: 16px;
  border: 2px solid rgba(139, 69, 19, 0.1);
  position: relative;
}

.before::before {
  content: '// BEFORE';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(235, 87, 87, 0.5);
}

.after::before {
  content: '// AFTER';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(74, 115, 38, 0.5);
}

.before h3 {
  margin-bottom: 1.75rem;
  color: #eb5757;
  font-size: 1.5rem;
}

.after h3 {
  margin-bottom: 1.75rem;
  color: #4a7326;
  font-size: 1.5rem;
}

.before ul,
.after ul {
  list-style: none;
  padding: 0;
}

.before li,
.after li {
  padding: 0.875rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 1rem;
  color: #3a3a3a;
  line-height: 1.7;
}

.before li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: #eb5757;
  font-weight: 700;
  font-size: 1.25rem;
}

.after li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4a7326;
  font-weight: 700;
  font-size: 1.25rem;
}

.demo-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.metric-card {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.05) 0%, rgba(205, 133, 63, 0.08) 100%);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  border: 2px solid rgba(139, 69, 19, 0.1);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(74, 163, 38, 0.1) 0%, transparent 70%);
}

.metric-number {
  font-size: 3rem;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.metric-label {
  font-size: 0.9375rem;
  color: #6a6a6a;
  font-weight: 600;
}

.demo-cta {
  text-align: center;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(74, 115, 38, 0.08) 0%, rgba(205, 133, 63, 0.08) 100%);
  border-radius: 16px;
  border: 2px solid rgba(74, 115, 38, 0.15);
}

.demo-cta p {
  font-size: 1.25rem;
  color: #3a3a3a;
  margin-bottom: 1.75rem;
  font-weight: 600;
}

/* ========================
   Pricing Section
   ======================== */

.pricing {
  background: #f5f4f1;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 20px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 0 0 2px rgba(139, 69, 19, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.pricing-card:hover {
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.15),
    0 0 0 2px rgba(139, 69, 19, 0.2);
  transform: translateY(-10px);
}

.pricing-card.recommended {
  border: 3px solid #4a7326;
  box-shadow:
    0 8px 32px rgba(74, 115, 38, 0.25),
    0 0 0 2px rgba(74, 115, 38, 0.15);
}

.recommended-badge {
  position: absolute;
  top: -14px;
  right: 2.5rem;
  background: linear-gradient(135deg, #4a7326 0%, #6ba33e 100%);
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: 24px;
  font-size: 0.8125rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(74, 115, 38, 0.4);
}

.plan-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 2px solid rgba(139, 69, 19, 0.1);
}

.plan-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  font-family: 'Noto Serif TC', Georgia, serif;
}

.plan-price {
  font-size: 3.5rem;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.plan-price .currency {
  font-size: 1.75rem;
  font-weight: 700;
}

.plan-target {
  font-size: 1rem;
  color: #6a6a6a;
  font-weight: 500;
}

.plan-features {
  margin-bottom: 2.5rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.875rem 0;
  font-size: 1rem;
  color: #3a3a3a;
  line-height: 1.6;
}

.feature-icon {
  color: #4a7326;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 1.125rem;
}

.plan-roi {
  background: linear-gradient(135deg, rgba(74, 115, 38, 0.08) 0%, rgba(205, 133, 63, 0.08) 100%);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid rgba(74, 115, 38, 0.15);
}

.roi-label {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #4a7326;
  margin-bottom: 0.5rem;
}

.roi-value {
  font-size: 0.9375rem;
  color: #3a3a3a;
  line-height: 1.6;
  font-family: 'JetBrains Mono', monospace;
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
}

.enterprise-cta {
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 4rem;
  border-radius: 20px;
  border: 2px solid rgba(139, 69, 19, 0.15);
}

.enterprise-cta h3 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  color: #1a1a1a;
}

.enterprise-cta p {
  font-size: 1.125rem;
  color: #5a5a5a;
  margin-bottom: 2.5rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ========================
   Contact Section
   ======================== */

.contact {
  background: #ffffff;
  text-align: center;
  position: relative;
}

.contact::before {
  content: '> Ready to start?';
  position: absolute;
  top: 3rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: rgba(74, 163, 38, 0.25);
}

.contact-content {
  max-width: 900px;
  margin: 0 auto;
}

.contact-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.trust-signals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem;
  background: #faf9f6;
  border-radius: 16px;
  text-align: left;
  border: 2px solid rgba(139, 69, 19, 0.08);
  transition: all 0.3s ease;
}

.trust-item:hover {
  border-color: rgba(139, 69, 19, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.trust-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.trust-text {
  font-size: 1rem;
  color: #3a3a3a;
  line-height: 1.6;
}

/* ========================
   Footer
   ======================== */

.footer {
  background: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 100%);
  color: #e0e0e0;
  padding: 4rem 0 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8b4513, transparent);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.footer-left {
  max-width: 450px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
  font-family: 'Noto Serif TC', Georgia, serif;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  font-family: 'JetBrains Mono', monospace;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 800;
  color: #cd853f;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-column a {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: #cd853f;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'JetBrains Mono', monospace;
}

/* ========================
   Live Terminal Animation
   ======================== */

.terminal-demo {
  margin: 5rem 0 4rem;
  padding: 0;
}

.terminal-header {
  text-align: center;
  margin-bottom: 3rem;
}

.terminal-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 1rem;
  font-family: 'Noto Serif TC', Georgia, serif;
}

.terminal-subtitle {
  font-size: 1.125rem;
  color: #6a6a6a;
}

.terminal-window {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.terminal-window-header {
  background: #2d2d2d;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #3d3d3d;
}

.terminal-buttons {
  display: flex;
  gap: 0.5rem;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-button.close {
  background: #ff5f56;
}

.terminal-button.minimize {
  background: #ffbd2e;
}

.terminal-button.maximize {
  background: #27c93f;
}

.terminal-window-title {
  font-size: 0.875rem;
  color: #9a9a9a;
}

.terminal-body {
  padding: 1.5rem;
  min-height: 400px;
  max-height: 500px;
  overflow-y: auto;
  background: #1a1a1a;
}

.terminal-line {
  color: #f5f5f5;
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 0.25rem;
}

.terminal-prompt {
  color: #4a7326;
  font-weight: 700;
  margin-right: 0.5rem;
}

.terminal-command {
  color: #ffffff;
}

.terminal-output {
  color: #9a9a9a;
}

.terminal-success {
  color: #27c93f;
}

.terminal-error {
  color: #ff5f56;
}

.terminal-warning {
  color: #ffbd2e;
}

.terminal-emoji {
  margin-right: 0.5rem;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: #4a7326;
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ========================
   Data Visualization Dashboard
   ======================== */

.data-viz-section {
  margin: 5rem 0 4rem;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(74, 115, 38, 0.03) 0%, rgba(139, 69, 19, 0.03) 100%);
  border-radius: 20px;
  border: 2px solid rgba(74, 115, 38, 0.15);
}

.viz-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 1rem;
  font-family: 'Noto Serif TC', Georgia, serif;
}

.viz-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: #6a6a6a;
  margin-bottom: 3rem;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.chart-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 350px;
  display: flex;
  flex-direction: column;
}

.chart-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(74, 115, 38, 0.15);
}

.chart-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: 'Noto Sans TC', sans-serif;
}

.chart-card canvas {
  flex: 1;
  max-height: 280px;
}

/* ========================
   Interactive Notion Preview
   ======================== */

.interactive-preview {
  margin: 5rem 0 4rem;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(74, 115, 38, 0.03) 0%, rgba(139, 69, 19, 0.03) 100%);
  border-radius: 20px;
  border: 2px solid rgba(74, 115, 38, 0.15);
}

.preview-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 1rem;
  font-family: 'Noto Serif TC', Georgia, serif;
}

.preview-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: #6a6a6a;
  margin-bottom: 3rem;
}

.notion-workspace {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  min-height: 600px;
}

/* Sidebar */
.notion-sidebar {
  background: #f7f6f3;
  padding: 1.5rem;
  border-right: 1px solid #e3e2df;
}

.workspace-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.workspace-icon {
  font-size: 1.5rem;
}

.workspace-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
}

.sidebar-section {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #6a6a6a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.database-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.375rem;
  position: relative;
}

.database-item:hover {
  background: rgba(255, 255, 255, 0.8);
}

.database-item.active {
  background: linear-gradient(135deg, rgba(74, 115, 38, 0.1) 0%, rgba(139, 69, 19, 0.08) 100%);
  font-weight: 600;
}

.database-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 70%;
  background: linear-gradient(180deg, #4a7326, #6ba33e);
  border-radius: 0 2px 2px 0;
}

.db-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
}

.db-name {
  flex: 1;
  font-size: 0.9375rem;
  color: #2c2c2c;
}

.db-count {
  font-size: 0.8125rem;
  color: #9a9a9a;
  font-family: 'JetBrains Mono', monospace;
}

/* Main Content */
.notion-content {
  padding: 2rem;
  background: #ffffff;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e3e2df;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: #6a6a6a;
}

.breadcrumb .separator {
  color: #d0d0d0;
}

.breadcrumb .current-db {
  color: #1a1a1a;
  font-weight: 600;
}

.view-controls {
  display: flex;
  gap: 0.5rem;
}

.view-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #e3e2df;
  background: #ffffff;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-btn:hover {
  background: #f7f6f3;
}

.view-btn.active {
  background: linear-gradient(135deg, rgba(74, 115, 38, 0.1) 0%, rgba(139, 69, 19, 0.08) 100%);
  border-color: rgba(74, 115, 38, 0.3);
  font-weight: 600;
}

/* Database Table */
.database-table {
  overflow-x: auto;
}

.database-table table {
  width: 100%;
  border-collapse: collapse;
}

.database-table thead {
  border-bottom: 1px solid #e3e2df;
}

.database-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #6a6a6a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.database-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
}

.database-table tbody tr:hover {
  background: #fafaf9;
}

.database-table td {
  padding: 1rem;
  font-size: 0.9375rem;
  color: #2c2c2c;
}

.cell-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.page-title {
  font-weight: 500;
  color: #1a1a1a;
}

.status-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.status-badge.active,
.status-badge.live,
.status-badge.published,
.status-badge.complete,
.status-badge.ready,
.status-badge.accepted {
  background: rgba(74, 115, 38, 0.12);
  color: #4a7326;
}

.status-badge.beta {
  background: rgba(205, 133, 63, 0.12);
  color: #cd853f;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: #f0f0f0;
  color: #5a5a5a;
  font-size: 0.8125rem;
  border-radius: 4px;
  margin-right: 0.375rem;
  font-weight: 500;
}

.database-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
  font-size: 0.875rem;
  color: #9a9a9a;
}

.row-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.count-number {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #4a7326;
}

.last-edited time {
  font-family: 'JetBrains Mono', monospace;
}

.preview-hint {
  margin-top: 2rem;
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border: 1px dashed rgba(74, 115, 38, 0.3);
}

.preview-hint p {
  font-size: 0.9375rem;
  color: #5a5a5a;
  margin: 0;
}

/* ========================
   Responsive Design
   ======================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .build-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  section {
    padding: 4rem 0;
  }

  .language-toggle {
    top: 1rem;
    right: 1rem;
  }

  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  .before-after {
    grid-template-columns: 1fr;
  }

  .demo-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-signals {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 3rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 2.5rem;
  }

  .notion-workspace {
    grid-template-columns: 1fr;
  }

  .notion-sidebar {
    border-right: none;
    border-bottom: 1px solid #e3e2df;
  }

  .database-table {
    font-size: 0.875rem;
  }

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

  .terminal-demo,
  .data-viz-section {
    padding: 2rem 1.5rem;
  }

  .terminal-body {
    min-height: 300px;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.625rem;
  }

  .contact-buttons {
    flex-direction: column;
  }

  .demo-metrics {
    grid-template-columns: 1fr;
  }
}
