/* ============================================
   Shared Base Styles
   ============================================ */
*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Custom Properties — Teal Theme
   ============================================ */
:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --surface-white: #ffffff;
  --surface-off: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 10px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 50px -6px rgba(0,0,0,0.10), 0 8px 20px -8px rgba(0,0,0,0.06);
}

/* ============================================
   Swiss-Style Typography
   ============================================ */
.swiss-heading {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
}

.swiss-subhead {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--teal-600);
}

.swiss-body {
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================================
   Geometric Teal Accent Decorations
   ============================================ */

/* Diagonal teal line accent */
.geo-line-accent {
  position: relative;
}

.geo-line-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--teal-500);
  border-radius: 2px;
}

.geo-line-accent.centered::before {
  left: 50%;
  transform: translateX(-50%);
}

/* Teal dot grid pattern */
.geo-dot-grid {
  position: relative;
}

.geo-dot-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--teal-200) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* Teal corner bracket decoration */
.geo-bracket {
  position: relative;
}

.geo-bracket::before,
.geo-bracket::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--teal-400);
  border-style: solid;
  opacity: 0.6;
}

.geo-bracket::before {
  top: -8px;
  left: -8px;
  border-width: 2px 0 0 2px;
}

.geo-bracket::after {
  bottom: -8px;
  right: -8px;
  border-width: 0 2px 2px 0;
}

/* Teal floating circle decoration */
.geo-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--teal-300);
  opacity: 0.3;
  pointer-events: none;
}

.geo-circle.sm { width: 40px; height: 40px; }
.geo-circle.md { width: 80px; height: 80px; }
.geo-circle.lg { width: 140px; height: 140px; }

/* Teal accent bar — horizontal rule replacement */
.geo-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-300));
  border-radius: 4px;
  margin: 24px 0;
}

.geo-divider.centered {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Teal Navigation Bar
   ============================================ */
.navbar-custom {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.navbar-custom.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-link-custom {
  position: relative;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.925rem;
  transition: color 0.25s ease;
  padding: 6px 2px;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--teal-600);
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal-500);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  background: linear-gradient(180deg, var(--teal-50) 0%, var(--surface-white) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section .geo-circle {
  z-index: 1;
}

/* ============================================
   Cards with Teal Accent
   ============================================ */
.card-teal {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.card-teal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.card-teal:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

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

.card-teal .card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--teal-50);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.card-teal:hover .card-icon {
  background: var(--teal-500);
  color: #fff;
}

/* ============================================
   Stat / Number Highlight
   ============================================ */
.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--teal-600);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* ============================================
   Step / Process List
   ============================================ */
.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-500);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(20,184,166,0.3);
}

/* ============================================
   CTA Button Styles
   ============================================ */
.btn-teal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-500);
  color: #fff;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(20,184,166,0.25);
}

.btn-teal:hover {
  background: var(--teal-600);
  box-shadow: 0 6px 24px rgba(20,184,166,0.35);
  transform: translateY(-2px);
  color: #fff;
}

.btn-teal-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--teal-600);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  border: 2px solid var(--teal-400);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-teal-outline:hover {
  background: var(--teal-50);
  border-color: var(--teal-500);
  color: var(--teal-700);
}

/* ============================================
   Footer
   ============================================ */
.footer-custom {
  background: var(--teal-900);
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.footer-custom a {
  color: rgba(255,255,255,0.75);
  transition: color 0.25s ease;
}

.footer-custom a:hover {
  color: var(--teal-300);
}

/* ============================================
   Platform Cards (download page)
   ============================================ */
.platform-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.35s ease;
}

.platform-card:hover {
  border-color: var(--teal-300);
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}

.platform-card .platform-icon {
  font-size: 2.6rem;
  color: var(--teal-500);
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}

.platform-card:hover .platform-icon {
  transform: scale(1.1);
}

/* ============================================
   About / Community Section
   ============================================ */
.about-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.about-img-wrapper::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-300));
}

.benefit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-50);
  color: var(--teal-700);
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
}

/* ============================================
   Utility: Animate onScroll fade-up
   ============================================ */
.animate-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover lift */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}

/* Glass morphism */
.glass-panel {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 16px;
}

/* Smooth pulse for CTA rings */
@keyframes pulse-ring-teal {
  0% { box-shadow: 0 0 0 0 rgba(20,184,166,0.45); }
  70% { box-shadow: 0 0 0 18px rgba(20,184,166,0); }
  100% { box-shadow: 0 0 0 0 rgba(20,184,166,0); }
}
.pulse-ring {
  animation: pulse-ring-teal 2.4s infinite;
}

/* Section spacing */
.section-pad {
  padding: 80px 0;
}
@media (max-width: 768px) {
  .section-pad {
    padding: 48px 0;
  }
}

/* ============================================
   Responsive Tweaks
   ============================================ */
@media (max-width: 640px) {
  .stat-number {
    font-size: 2rem;
  }

  .card-teal,
  .platform-card {
    padding: 24px 18px;
  }

  .btn-teal,
  .btn-teal-outline {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.25s ease;
}

.faq-question:hover {
  color: var(--teal-600);
}

.faq-question .faq-icon {
  flex-shrink: 0;
  transition: transform 0.35s ease;
  color: var(--teal-500);
}

.faq-question.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-answer.open {
  max-height: 500px;
  padding-bottom: 20px;
}
