:root {
  --brand-blue: #3378f5;
  --brand-blue-hover: #2365dc;
  --brand-blue-light: #edf4ff;
  
  --bg-page: #f5f8fc;
  --bg-card: #ffffff;
  --bg-pill: rgba(255, 255, 255, 0.9);
  
  --text-main: #0c1017;
  --text-body: #4b5563;
  --text-muted: #8c9ba5;
  
  --border-light: rgba(220, 230, 242, 0.8);
  --border-card: rgba(228, 235, 245, 0.9);
  
  --shadow-pill: 0 4px 18px rgba(35, 75, 145, 0.06);
  --shadow-card: 0 10px 32px rgba(35, 75, 145, 0.06), 0 2px 6px rgba(0, 0, 0, 0.02);
  --shadow-card-hover: 0 16px 40px rgba(35, 75, 145, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  
  --radius-card: 22px;
  --radius-pill: 9999px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at 20% 25%, #edf4fc 0%, #f5f8fc 50%, #ffffff 100%);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* =========================================
   Top Navigation Header (Matching Mockup)
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 248, 252, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  transition: all 0.2s ease;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.brand-link:hover .brand-icon {
  transform: scale(1.05);
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
}

/* Floating Pill Bar in Header Center */
.nav-pill-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(235, 242, 252, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 5px 6px;
  box-shadow: var(--shadow-pill);
}

.pill-item {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-pill);
  transition: all 0.18s ease;
}

.pill-item:hover {
  color: var(--text-main);
}

.pill-item.is-active {
  background: #ffffff;
  color: var(--text-main);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Language Dropdown Pill (Right) */
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.globe-icon {
  color: var(--text-body);
  flex-shrink: 0;
}

.lang-select {
  appearance: none;
  background: transparent;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.lang-select:hover {
  color: var(--text-main);
}

/* =========================================
   Hero Section (Matching Mockup Option A)
   ========================================= */
.hero-section {
  padding: 44px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  align-items: center;
  gap: 56px;
}

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

.hero-mascot-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  mix-blend-mode: multiply; /* Seamlessly blends the white background with the page */
  filter: drop-shadow(0 18px 30px rgba(35, 75, 145, 0.1));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-mascot-img:hover {
  transform: translateY(-6px) scale(1.02);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 8px;
}

.hero-subhead-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-sub-en {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.1;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #ffffff;
}

.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-btn-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* App Store Button (Mockup pill) */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: all 0.2s ease;
}

.btn-appstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.btn-appstore-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-appstore-text small {
  font-size: 0.62rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.btn-appstore-text span {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Learn More Pill Button (Mockup blue) */
.btn-learn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 18px rgba(51, 120, 245, 0.3);
  transition: all 0.2s ease;
}

.btn-learn-more:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(51, 120, 245, 0.4);
}

/* =========================================
   3 Prominent Hero Cards (Matching Mockup)
   ========================================= */
.hero-cards-container {
  margin-top: 52px;
}

.hero-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.22s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(51, 120, 245, 0.3);
}

.card-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon-box svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.card-icon-box.blue-gradient {
  background: linear-gradient(135deg, #e0edff 0%, #d0e4ff 100%);
  color: var(--brand-blue);
}

.card-icon-box.warm-gradient {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #ea580c;
}

.card-icon-box.cyan-gradient {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0284c7;
}

.card-icon-box.green-gradient {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #16a34a;
}

.card-icon-box.purple-gradient {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  color: #9333ea;
}

.card-info h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.card-info p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.4;
}

/* =========================================
   Secondary Features Section
   ========================================= */
.features-section {
  padding: 80px 0 90px;
}

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

.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-body);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(51, 120, 245, 0.3);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.feature-icon-wrapper svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* 6 Steps Flow */
.flow-showcase {
  margin-top: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}

.flow-title {
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text-main);
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.step-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
}

.step-number {
  display: inline-block;
  width: 26px;
  height: 26px;
  line-height: 26px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.step-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Callout Banner */
.cta-banner {
  margin: 50px 0 40px;
  background: #0f172a;
  border-radius: var(--radius-card);
  padding: 50px 44px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.cta-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-content p {
  font-size: 1rem;
  color: #94a3b8;
  max-width: 600px;
}

/* =========================================
   Pages (Privacy & Support)
   ========================================= */
.page-container {
  padding: 44px 0 80px;
  max-width: 860px;
  margin: 0 auto;
}

.page-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 36px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.page-badge-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.page-badge-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.page-header-card h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

.page-header-card p.lead {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 680px;
  margin: 0 auto 12px;
}

.page-header-card .meta-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sections-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 26px 30px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

.section-card:hover {
  border-color: rgba(51, 120, 245, 0.3);
  box-shadow: var(--shadow-card-hover);
}

.section-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.section-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.section-card-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.section-card-content {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.7;
}

.support-contact-box {
  background: #ffffff;
  border: 1px solid var(--brand-blue);
  border-radius: var(--radius-card);
  padding: 26px 30px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.support-contact-info h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.support-contact-info p {
  font-size: 0.9rem;
  color: var(--text-body);
}

.support-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-blue);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(51, 120, 245, 0.3);
  transition: all 0.2s ease;
}

.support-email-btn:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-2px);
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
  padding: 40px 0 30px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.footer-nav {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-body);
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--brand-blue);
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 380px 1fr;
    gap: 36px;
  }
  
  .hero-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-btn-row {
    justify-content: center;
  }
  
  .hero-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
  }
  
  .nav-pill-bar {
    display: none; /* Hide center pill bar on small phone screens */
  }
}
