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

/* 通用圖片響應式規則 */
img {
  max-width: 100%;
  height: auto;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #fff;
  background: #0a0015;
  overflow-x: hidden;
}

/* Network Animation Background */
#network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.8;
}

.container {
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.logo-box {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 212, 255, 0.4))
    drop-shadow(0 0 20px rgba(139, 63, 217, 0.3));
}

.chinese-subtitle {
  font-size: 1rem;
  color: #999;
  margin-bottom: 2rem;
  letter-spacing: 3px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 300;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  max-width: 900px;
}

.hero-title .highlight {
  color: #00d4ff;
  font-weight: 600;
}

.hero-description {
  font-size: 1rem;
  color: #999;
  margin-bottom: 2.5rem;
  max-width: 800px;
  line-height: 1.8;
}

.hero-description .pink {
  color: #d946ef;
  font-weight: 500;
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  padding: 0.85rem 2rem;
  background: #00d4ff;
  color: #000;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3),
    0 4px 15px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
  background: #00b8e6;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.7), 0 0 60px rgba(0, 212, 255, 0.4),
    0 6px 20px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
  padding: 0.85rem 2rem;
  background: transparent;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid #333;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: #00d4ff;
  background: rgba(0, 212, 255, 0.1);
}

.watch-text {
  color: #666;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.watch-text::before {
  content: "●";
  color: #00d4ff;
  font-size: 0.8rem;
}

/* Social Links */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #999;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.social-link:hover {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.1);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.event-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: rgba(217, 70, 239, 0.1);
  color: #d946ef;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid rgba(217, 70, 239, 0.3);
  transition: all 0.3s;
}

.event-link:hover {
  background: rgba(217, 70, 239, 0.2);
  border-color: #d946ef;
  transform: translateY(-2px);
}

.event-link::before {
  content: "🎉";
  font-size: 1rem;
}

/* Stats Section */
.stats-section {
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  margin-bottom: 6rem;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
  background: rgba(10, 15, 30, 0.6);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

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

.stat-number {
  font-size: 3.5rem;
  color: #00d4ff;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 40px rgba(0, 212, 255, 0.4),
    0 0 60px rgba(0, 212, 255, 0.2);
}

.stat-label {
  font-size: 1rem;
  color: #999;
}

/* What is Noded Section */
.noded-section {
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 6rem;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.section-title .highlight {
  color: #00d4ff;
  font-weight: 600;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 40px rgba(0, 212, 255, 0.4);
}

.section-subtitle {
  font-size: 1.2rem;
  color: #999;
  margin-bottom: 4rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.feature-card {
  background: rgba(10, 15, 30, 0.5);
  padding: 3rem 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s;
  text-align: left;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(10, 15, 30, 0.7);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 212, 255, 0.15);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #00d4ff;
  font-size: 1.8rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.feature-title {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-description {
  color: #999;
  line-height: 1.8;
  font-size: 1rem;
}

/* Bottom Text Section */
.bottom-text {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(10, 15, 30, 0.5);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 4rem;
  backdrop-filter: blur(10px);
}

.bottom-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #ccc;
}

.bottom-text .pink {
  color: #d946ef;
  font-weight: 500;
}

.bottom-text .cyan {
  color: #00d4ff;
  font-weight: 500;
}

/* Auth Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: rgba(10, 15, 30, 0.95);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

/* Modal scrollbar styling */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #00d4ff;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #00a8cc;
}

.close-modal {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  background: none;
  border: none;
  transition: all 0.3s;
}

.close-modal:hover {
  color: #00d4ff;
  transform: rotate(90deg);
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #fff;
  text-align: center;
}

.modal-title .highlight {
  color: #00d4ff;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #999;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #00d4ff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: #00d4ff;
  color: #000;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 1rem;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.form-submit:hover {
  background: #00b8e6;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.modal-switch {
  text-align: center;
  margin-top: 1.5rem;
  color: #999;
  font-size: 0.95rem;
}

.modal-switch a {
  color: #00d4ff;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}

.modal-switch a:hover {
  text-decoration: underline;
}

.error-message {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  color: #ff6b6b;
  padding: 0.8rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
}

.error-message.active {
  display: block;
}

/* Social Login Buttons */
.social-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: #666;
  font-size: 0.9rem;
}

.social-divider::before,
.social-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.social-divider::before {
  margin-right: 1rem;
}

.social-divider::after {
  margin-left: 1rem;
}

.btn-google {
  width: 100%;
  padding: 0.9rem;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.btn-google:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-google:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-google svg {
  width: 20px;
  height: 20px;
}

/* Phone Input Modal */
.phone-modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.phone-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-message {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid rgba(0, 255, 0, 0.3);
  color: #4ade80;
  padding: 0.8rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
}

.success-message.active {
  display: block;
}

/* User Profile Modal */
.profile-section {
  margin-bottom: 2rem;
}

.profile-section h3 {
  color: #00d4ff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  padding-bottom: 0.5rem;
}

.profile-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-info-item:last-child {
  border-bottom: none;
}

.profile-label {
  color: #999;
  font-size: 0.9rem;
}

.profile-value {
  color: #fff;
  font-size: 1rem;
}

.btn-edit {
  padding: 0.6rem 1.2rem;
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-edit:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
}

/* Network Topology Canvas */
#networkTopology {
  background: rgba(10, 15, 30, 0.4);
  border-radius: 15px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  overflow: hidden;
}

#networkCanvas {
  display: block;
  background: transparent;
}

/* Tooltip for node info */
.node-tooltip {
  position: absolute;
  background: rgba(10, 15, 30, 0.95);
  border: 2px solid #00d4ff;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: #fff;
  font-size: 0.9rem;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -120%);
  transition: opacity 0.2s;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
  z-index: 1000;
  min-width: 200px;
}

.node-tooltip.show {
  opacity: 1;
}

.tooltip-node-id {
  font-size: 1.1rem;
  font-weight: 700;
  color: #00d4ff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.tooltip-provider {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tooltip-provider.email {
  background: rgba(0, 212, 255, 0.2);
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.4);
}

.tooltip-provider.google {
  background: rgba(234, 67, 53, 0.2);
  color: #ea4335;
  border: 1px solid rgba(234, 67, 53, 0.4);
}

.tooltip-joined {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.3rem;
}

.tooltip-you-marker {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #d946ef;
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(10, 15, 30, 0.6);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  text-align: center;
}

.stat-card-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00d4ff;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.stat-card-label {
  font-size: 0.9rem;
  color: #999;
  margin-top: 0.5rem;
}

.large-modal-content {
  max-width: 1100px;
  max-height: 85vh;
  overflow-y: auto;
}

/* User Profile Section */
.user-profile {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 100;
  display: none;
}

.user-profile.active {
  display: block;
}

.user-info {
  background: rgba(10, 15, 30, 0.9);
  padding: 1rem 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(10px);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, #d946ef);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
}

.user-details {
  flex: 1;
}

.user-email {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.user-status {
  color: #00d4ff;
  font-size: 0.75rem;
}

.btn-logout {
  padding: 0.5rem 1rem;
  background: transparent;
  color: #999;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-logout:hover {
  background: rgba(255, 0, 0, 0.1);
  border-color: rgba(255, 0, 0, 0.3);
  color: #ff6b6b;
}

/* 手機版樣式 (768px 以下) */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
    padding: 0 1rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

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

  .stat-number {
    font-size: 2.5rem;
  }

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

  .feature-card {
    padding: 2rem 1.5rem;
  }

  .button-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .logo-box {
    width: 100px;
    height: 100px;
  }

  .user-profile {
    top: 1rem;
    right: 1rem;
  }

  .modal-content {
    padding: 2rem 1.5rem;
    width: 95%;
    max-height: 85vh;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input {
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  .btn-google {
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  /* Concept Section 手機版 */
  .concept-sidebar h2 {
    font-size: 3rem;
  }

  .concept-tagline {
    font-size: 1.2rem;
  }

  .concept-block img {
    max-width: 100%;
    margin: 1rem auto;
  }

  /* Roadmap Section 手機版 */
  .roadmap-title-box h2 {
    font-size: 2.5rem;
  }

  .roadmap-subtitle {
    font-size: 1.1rem;
  }

  .phase-title {
    font-size: 1.2rem;
  }

  /* Partnerships 手機版 */
  .partnerships-header h2 {
    font-size: 2rem;
  }

  .partner-item {
    padding: 1.5rem;
    min-height: 120px;
  }

  /* 調整內距 */
  .hero,
  .noded-section,
  .concept-section,
  .roadmap-section,
  .founders-section,
  .partnerships-section {
    padding: 3rem 1rem;
  }
}
/* --- 新增區塊樣式 --- */

/* 通用標題樣式修正 */
.section-header {
  margin-bottom: 3rem;
  text-align: center;
}
.subtitle-highlight {
  color: #d946ef; /* Pink */
  display: block;
  font-size: 1.2rem;
  margin-top: 0.5rem;
  letter-spacing: 1px;
}

/* 1. NODED Concept Section (概念區塊) */
.concept-section {
  padding: 5rem 2rem;
  margin-bottom: 4rem;
}

.concept-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.concept-sidebar h2 {
  font-size: 4rem;
  color: #6a4c93; /* Deep purple/blue */
  opacity: 0.8;
  margin-bottom: 1rem;
  line-height: 1;
}

.concept-sidebar h2 span {
  color: #9d4edd; /* Brighter purple */
  display: block;
}

.concept-tagline {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.concept-desc {
  color: #aaa;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.concept-content {
  border-left: 2px solid #fff;
  padding-left: 3rem;
  position: relative;
}

.concept-block {
  margin-bottom: 4rem;
  position: relative;
}

/* Concept block 中的圖片樣式 */
.concept-block img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
  border-radius: 10px;
}

.concept-dot {
  position: absolute;
  left: -3.65rem; /* Adjust based on padding */
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #a7f644; /* Green dot */
}

.concept-dot.yellow {
  background: #ffcc00;
}

.block-title {
  color: #a7f644;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.yellow .block-title {
  color: #ffcc00;
}

/* Examples Grid */
.examples-grid {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.examples-grid:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.08);
}

.ex-category {
  color: #fff;
  font-weight: 600;
}
.ex-desc {
  color: #ccc;
  font-size: 0.95rem;
}
.ex-value {
  color: #999;
  font-size: 0.95rem;
}

/* 2. Roadmap Section (路線圖區塊) */
.roadmap-section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto 6rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.roadmap-title-box h2 {
  font-size: 3.5rem;
  color: #6a4c93;
  margin-bottom: 1rem;
}

.roadmap-subtitle {
  font-size: 1.5rem;
  color: #aaa;
  max-width: 300px;
}

.roadmap-timeline {
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  padding-left: 3rem;
}

.roadmap-item {
  position: relative;
  margin-bottom: 4rem;
}

.roadmap-marker {
  position: absolute;
  left: -3.65rem;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.marker-1 {
  background: #a7f644;
} /* Green */
.marker-2 {
  background: #ffcc00;
} /* Yellow */
.marker-3 {
  background: #ff6b35;
} /* Orange */

.phase-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.color-1 {
  color: #a7f644;
}
.color-2 {
  color: #ffcc00;
}
.color-3 {
  color: #ff6b35;
}

.phase-focus {
  color: #fff;
  margin-bottom: 1rem;
  font-style: italic;
}

.roadmap-list {
  list-style: none;
  margin-bottom: 1rem;
}

.roadmap-list li {
  color: #ccc;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.roadmap-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #fff;
}

.phase-output {
  font-size: 0.9rem;
  color: #999;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.5rem;
}

/* --- Founders Section (卡片式佈局) --- */

.founders-section {
  padding: 4rem 2rem;
  background: transparent;
  margin-bottom: 6rem;
}

.founders-header {
  text-align: center;
  margin-bottom: 4rem;
}

.founders-header h2 {
  color: #8b5cf6;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* 創辦人卡片網格 */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* 個別創辦人卡片 */
.founder-card {
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.founder-card:hover {
  transform: translateY(-10px);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

/* 照片容器 */
.founder-photo-wrapper {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  overflow: hidden;
}

.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 創辦人姓名 */
.founder-name {
  color: #00d4ff;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

/* 創辦人簡介列表 */
.founder-bio {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.founder-bio li {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.6;
}

.founder-bio li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #8b5cf6;
  font-weight: bold;
}

/* 平板版 (900px 以下) */
@media (max-width: 900px) {
  .founders-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .founders-header h2 {
    font-size: 2rem;
  }
}

/* 手機版 (768px 以下) */
@media (max-width: 768px) {
  .founders-section {
    padding: 3rem 1rem;
  }

  .founders-header h2 {
    font-size: 1.8rem;
  }

  .founder-card {
    padding: 1.5rem;
  }

  .founder-photo-wrapper {
    width: 150px;
    height: 150px;
  }

  .founder-name {
    font-size: 1.3rem;
  }

  .founder-bio li {
    font-size: 0.85rem;
  }
}

/* RWD Adjustments for new sections */
@media (max-width: 900px) {
  .concept-container,
  .roadmap-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .concept-content,
  .roadmap-timeline {
    border-left: none;
    padding-left: 0;
  }

  .concept-dot,
  .roadmap-marker {
    display: none; /* Hide markers on mobile to save space or adjust position */
  }

  .examples-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .concept-sidebar h2,
  .roadmap-title-box h2 {
    text-align: center;
  }
}

/* --- Partnerships Section --- */
.partnerships-section {
  padding: 6rem 2rem;
  background: transparent;
  margin-bottom: 6rem;
}

.partnerships-header {
  text-align: center;
  margin-bottom: 4rem;
}

.partnerships-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #8b5cf6;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.partnerships-header .subtitle {
  font-size: 1.2rem;
  color: #ccc;
  font-weight: 300;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.partner-item {
  padding: 2rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  transition: all 0.3s;
  text-decoration: none;
}

.partner-item:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(10, 15, 30, 0.7);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

.partner-logo {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.3s;
}

.partner-item:hover .partner-logo {
  filter: grayscale(0%) brightness(1);
}

.partner-placeholder {
  color: #00d4ff;
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
}

/* RWD for partnerships section */
@media (max-width: 900px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .partnerships-section {
    padding: 4rem 1.5rem;
  }

  .partnerships-header h2 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .partnerships-header .subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .modal-content {
    padding: 1.5rem 1rem;
    width: 98%;
    max-height: 90vh;
  }

  .close-modal {
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
  }

  .modal-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .form-group {
    margin-bottom: 0.8rem;
  }

  .form-group input {
    padding: 0.7rem;
    font-size: 0.9rem;
  }

  .form-submit {
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  .partnerships-section {
    padding: 3rem 1rem;
  }

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

  .partnerships-header h2 {
    font-size: 1.5rem;
  }

  .partnerships-header .subtitle {
    font-size: 0.9rem;
  }
}

/* --- Node Ambassador Section --- */
.ambassadors-section {
  padding: 6rem 2rem;
  background: transparent;
  margin-bottom: 6rem;
}

.ambassadors-header {
  text-align: center;
  margin-bottom: 4rem;
}

.ambassadors-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #8b5cf6;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ambassadors-header .subtitle {
  font-size: 1.8rem;
  color: #fff;
  font-weight: 400;
  margin-bottom: 1rem;
}

.ambassadors-content {
  max-width: 1200px;
  margin: 0 auto;
}

.ambassadors-text {
  text-align: center;
  padding: 0 2rem;
  margin-bottom: 3rem;
}

.ambassadors-intro {
  font-size: 1.3rem;
  color: #ccc;
  margin-bottom: 3rem;
  line-height: 1.8;
  font-weight: 300;
}

.ambassadors-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.benefits-column {
  background: rgba(10, 15, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s;
  text-align: left;
}

.benefits-column:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
}

.benefits-column h3 {
  color: #d946ef;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.benefits-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-column ul li {
  color: #ccc;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.8rem;
  line-height: 1.7;
}

.benefits-column ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #00d4ff;
  font-weight: bold;
  font-size: 1.3rem;
}

.benefits-column p {
  color: #ccc;
  font-size: 1.05rem;
  line-height: 1.8;
}

.ambassadors-videos {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.ambassador-apply-btn {
  margin: 0 auto;
  padding: 1.2rem 4rem;
  font-size: 1.2rem;
  display: block;
  width: fit-content;
}

.videos-title {
  color: #00d4ff;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.video-carousel {
  position: relative;
  overflow: hidden;
}

.video-carousel-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 1.5rem;
  /* Add horizontal padding so first and last videos can reach center */
  padding-left: calc(50% - 140px); /* 50% of container - half of video width (280px/2) */
  padding-right: calc(50% - 140px);
  /* Hide scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  /* Apple-style snap scrolling */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.video-carousel-container::-webkit-scrollbar {
  display: none;
}

.video-item {
  min-width: 280px;
  max-width: 280px;
  flex-shrink: 0;
  /* Snap to position like Apple carousel */
  scroll-snap-align: center;
  scroll-snap-stop: always;
  /* Default state - slightly dimmed */
  opacity: 0.5;
  transform: scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active/centered video - highlighted */
.video-item.active {
  opacity: 1;
  transform: scale(1);
  z-index: 10;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 177.78%; /* 9:16 Aspect Ratio for YouTube Shorts */
  height: 0;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(10, 15, 30, 0.8);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.video-embed:hover {
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
  border-color: rgba(0, 212, 255, 0.3);
  transform: scale(1.02);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

/* Placeholder styles (保留以防需要) */
.video-placeholder {
  background: rgba(139, 92, 246, 0.1);
  border: 2px dashed rgba(139, 92, 246, 0.3);
  border-radius: 15px;
  padding: 3rem 2rem;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.video-placeholder p {
  color: #8b5cf6;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.video-placeholder small {
  color: #999;
  font-size: 0.9rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 212, 255, 0.2);
  border: 2px solid #00d4ff;
  color: #00d4ff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(0, 212, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev-btn {
  left: 10px;
}

.carousel-btn.next-btn {
  right: 10px;
}

/* --- Past Events Section --- */
.past-events-section {
  padding: 6rem 2rem;
  background: transparent;
  margin-bottom: 6rem;
}

.past-events-header {
  text-align: center;
  margin-bottom: 4rem;
}

.past-events-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #8b5cf6;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.past-events-header .subtitle {
  font-size: 1.2rem;
  color: #ccc;
  font-weight: 300;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.event-item {
  background: transparent;
  border: none;
  padding: 0;
  transition: all 0.3s;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-item:hover {
  transform: translateY(-5px);
}

.instagram-media {
  margin: 0 auto !important;
  max-width: 540px !important;
  min-width: 326px !important;
  width: 100% !important;
}

/* RWD for Node Ambassador Section */
@media (max-width: 1024px) {
  .ambassadors-benefits {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .ambassadors-section {
    padding: 4rem 1.5rem;
  }

  .ambassadors-header {
    margin-bottom: 3rem;
  }

  .ambassadors-header h2 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .ambassadors-header .subtitle {
    font-size: 1.3rem;
    line-height: 1.4;
  }

  .ambassadors-text {
    padding: 0 1rem;
    margin-bottom: 2rem;
  }

  .ambassadors-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .ambassadors-benefits {
    gap: 1.5rem;
  }

  .benefits-column {
    padding: 2rem 1.5rem;
  }

  .benefits-column h3 {
    font-size: 1.3rem;
  }

  .benefits-column ul li,
  .benefits-column p {
    font-size: 0.95rem;
  }

  .ambassador-apply-btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }

  .ambassadors-videos {
    margin-top: 3rem;
  }

  .videos-title {
    font-size: 1.4rem;
    letter-spacing: 1px;
  }

  .video-carousel {
    border-radius: 15px;
  }

  .video-carousel-container {
    padding: 1rem;
    padding-left: calc(50% - 120px); /* 50% - half of 240px */
    padding-right: calc(50% - 120px);
  }

  .video-item {
    min-width: 240px;
    max-width: 240px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  .carousel-btn.prev-btn {
    left: 5px;
  }

  .carousel-btn.next-btn {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .ambassadors-section {
    padding: 3rem 1rem;
  }

  .ambassadors-header h2 {
    font-size: 1.5rem;
  }

  .ambassadors-header .subtitle {
    font-size: 1.1rem;
  }

  .ambassadors-intro {
    font-size: 1rem;
  }

  .benefits-column {
    padding: 1.5rem;
  }

  .benefits-column h3 {
    font-size: 1.1rem;
  }

  .benefits-column ul li,
  .benefits-column p {
    font-size: 0.9rem;
  }

  .video-carousel-container {
    padding-left: calc(50% - 100px); /* 50% - half of 200px */
    padding-right: calc(50% - 100px);
  }

  .video-item {
    min-width: 200px;
    max-width: 200px;
  }

  .videos-title {
    font-size: 1.2rem;
  }
}

/* RWD for Past Events Section */
@media (max-width: 900px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .past-events-section {
    padding: 4rem 1.5rem;
  }

  .past-events-header {
    margin-bottom: 3rem;
  }

  .past-events-header h2 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .past-events-header .subtitle {
    font-size: 1rem;
  }

  .events-grid {
    gap: 2rem;
    padding: 0 1rem;
  }

  .instagram-media {
    min-width: 300px !important;
  }
}

@media (max-width: 480px) {
  .past-events-section {
    padding: 3rem 1rem;
  }

  .past-events-header h2 {
    font-size: 1.5rem;
  }

  .past-events-header .subtitle {
    font-size: 0.9rem;
  }

  .events-grid {
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .instagram-media {
    min-width: 280px !important;
  }
}

/* --- Scroll Animations --- */

/* 初始狀態：隱藏並稍微下移 */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 當元素進入視窗時顯示 */
.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 不同的動畫延遲，創造階梯效果 */
.scroll-animate.delay-1 {
  transition-delay: 0.1s;
}

.scroll-animate.delay-2 {
  transition-delay: 0.2s;
}

.scroll-animate.delay-3 {
  transition-delay: 0.3s;
}

/* 從左側滑入的動畫 */
.scroll-animate-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* 從右側滑入的動畫 */
.scroll-animate-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* 縮放動畫 */
.scroll-animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* 確保 hero section 始終顯示（不需要動畫） */
.hero {
  opacity: 1;
  transform: none;
}

/* --- Footer --- */
.footer {
  background: rgba(10, 15, 30, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 2rem;
  margin-top: 6rem;
  position: relative;
  z-index: 2;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.footer-left {
  flex: 1;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #ccc;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.footer-link:hover {
  color: #00d4ff;
  transform: translateX(5px);
}

.footer-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-info {
  text-align: right;
}

.footer-email {
  color: #00d4ff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-email:hover {
  color: #00a8cc;
  text-decoration: underline;
}

.footer-copyright {
  color: #999;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-logo {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

/* Footer 響應式設計 */
@media (max-width: 768px) {
  .footer {
    padding: 2rem 1rem;
    margin-top: 4rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-social {
    align-items: center;
  }

  .footer-right {
    flex-direction: column-reverse;
    gap: 1.5rem;
  }

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

  .footer-logo {
    width: 60px;
    height: 60px;
  }

  .footer-link {
    font-size: 1rem;
  }

  .footer-email {
    font-size: 1rem;
  }

  .footer-copyright {
    font-size: 0.85rem;
  }
}
