/* ============================================
   Yi-Action Landing Page – style.css
   Color palette matches the mobile app:
     bg:        #1A1A2E
     card:      #16213E
     gold:      #C9A84C
     gold-dark: #A07E2A
     text-1:    #E0D4B8
     text-2:    #8B7D6B
     body-text: #A09888
   ============================================ */

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0E0E1A;
  color: #E0D4B8;
  overflow-x: hidden;
  line-height: 1.7;
}

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

ul {
  list-style: none;
}

/* ── Utility ── */
.gold-text {
  background: linear-gradient(135deg, #C9A84C, #E8D48B, #C9A84C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
  cursor: pointer;
}

.btn-gold {
  background: linear-gradient(to bottom, #C9A84C, #A07E2A);
  color: #1A1A2E;
  box-shadow: 0 6px 24px rgba(201, 168, 76, .35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(201, 168, 76, .5);
}

.btn-outline {
  border: 1.5px solid rgba(201, 168, 76, .5);
  color: #C9A84C;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(201, 168, 76, .08);
  border-color: #C9A84C;
  transform: translateY(-2px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #1A1A2E 0%, #0E0E1A 70%);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: url('hero_bg.png') center/cover no-repeat;
  opacity: .12;
  filter: blur(2px);
  pointer-events: none;
}

.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #C9A84C;
  border-radius: 50%;
  opacity: 0;
  animation: floatUp var(--dur) var(--delay) infinite;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }

  20% {
    opacity: .8;
  }

  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(1);
  }
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(14, 14, 26, .65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, .08);
  transition: background .3s, padding .3s;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  font-size: 22px;
  color: #C9A84C;
}

.nav-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  font-weight: 700;
  color: #E0D4B8;
  letter-spacing: 3px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #8B7D6B;
  letter-spacing: 2px;
  transition: color .3s;
}

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

/* Language Toggle */
.lang-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 168, 76, .35);
  background: rgba(201, 168, 76, .06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}

.lang-toggle:hover {
  border-color: #C9A84C;
  background: rgba(201, 168, 76, .12);
  transform: scale(1.08);
}

.lang-label {
  font-size: 12px;
  font-weight: 700;
  color: #C9A84C;
  letter-spacing: 0;
  line-height: 1;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.hero-tag {
  font-size: 13px;
  color: #8B7D6B;
  letter-spacing: 6px;
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 900;
  background: linear-gradient(to bottom, #E8D48B, #C9A84C, #A07E2A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
  margin-bottom: 8px;
  text-shadow: none;
  letter-spacing: 8px;
}

.hero-subtitle {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: #8B7D6B;
  letter-spacing: 10px;
  margin-bottom: 28px;
}

/* English mode title uses serif western font */
.hero-title.en-title {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  letter-spacing: 4px;
  font-size: clamp(40px, 7vw, 76px);
}

/* English mode global font */
body.lang-en {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.lang-en .nav-title {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
}

body.lang-en .section-title {
  font-family: 'Playfair Display', serif;
  letter-spacing: 2px;
}

body.lang-en .step-content h3,
body.lang-en .feature-card h3,
body.lang-en .philosophy-card h3 {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
}

body.lang-en .cta-content h2 {
  font-family: 'Playfair Display', serif;
  letter-spacing: 2px;
}

body.lang-en .footer-name {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
}

.hero-desc {
  font-size: 16px;
  color: #A09888;
  max-width: 560px;
  margin: 0 auto 40px;
  letter-spacing: 1px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Hero hexagram decoration */
.hero-hexagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: .25;
}

.hex-line {
  height: 4px;
  border-radius: 2px;
  transition: width .4s;
}

.hex-line.solid {
  width: 56px;
  background: #C9A84C;
}

.hex-line.broken {
  width: 56px;
  background: transparent;
  position: relative;
}

.hex-line.broken::before,
.hex-line.broken::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 22px;
  background: #C9A84C;
  border-radius: 2px;
}

.hex-line.broken::before {
  left: 0;
}

.hex-line.broken::after {
  right: 0;
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #8B7D6B;
  font-size: 12px;
  letter-spacing: 3px;
  animation: gentleBounce 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 16px;
  height: 16px;
  border-right: 2px solid #8B7D6B;
  border-bottom: 2px solid #8B7D6B;
  transform: rotate(45deg);
}

@keyframes gentleBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  padding: 120px 40px 100px;
  background: #0E0E1A;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #C9A84C;
  letter-spacing: 6px;
  text-transform: uppercase;
  padding: 6px 20px;
  border: 1px solid rgba(201, 168, 76, .3);
  border-radius: 24px;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  background: linear-gradient(to bottom, #E0D4B8, #A09888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: 4px;
}

.section-desc {
  font-size: 15px;
  color: #8B7D6B;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: linear-gradient(145deg, #16213E, #12192F);
  border: 1px solid rgba(201, 168, 76, .1);
  border-radius: 20px;
  padding: 40px 32px 32px;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #C9A84C, transparent);
  opacity: 0;
  transition: opacity .4s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, .3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4), 0 0 40px rgba(201, 168, 76, .06);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #C9A84C;
  border: 1.5px solid rgba(201, 168, 76, .3);
  border-radius: 16px;
  background: rgba(201, 168, 76, .06);
  position: relative;
  z-index: 1;
}

.feature-glow {
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(201, 168, 76, .15) 0%, transparent 70%);
  border-radius: 20px;
  opacity: 0;
  transition: opacity .4s;
}

.feature-card:hover .feature-glow {
  opacity: 1;
}

.feature-card h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  font-weight: 700;
  color: #E0D4B8;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.feature-card p {
  font-size: 14px;
  color: #8B7D6B;
  line-height: 1.8;
  margin-bottom: 20px;
}

.feature-detail {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-tag {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(201, 168, 76, .08);
  color: #C9A84C;
  border: 1px solid rgba(201, 168, 76, .15);
  letter-spacing: 1px;
}

/* ============================================
   WORKFLOW
   ============================================ */
.workflow {
  padding: 100px 40px 120px;
  background: linear-gradient(180deg, #0E0E1A 0%, #1A1A2E 50%, #0E0E1A 100%);
}

.workflow-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(201, 168, 76, .25), transparent);
  transform: translateX(-50%);
}

.workflow-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
}

.workflow-step::before {
  content: attr(data-step);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #C9A84C, #A07E2A);
  color: #1A1A2E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 0 24px rgba(201, 168, 76, .3);
}

.step-content {
  padding: 24px;
}

.step-number {
  font-family: 'Noto Serif SC', serif;
  font-size: 36px;
  font-weight: 900;
  color: rgba(201, 168, 76, .1);
  line-height: 1;
  margin-bottom: 8px;
}

.step-content h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  font-weight: 700;
  color: #E0D4B8;
  margin-bottom: 12px;
  letter-spacing: 3px;
}

.step-content p {
  font-size: 14px;
  color: #8B7D6B;
  line-height: 1.9;
}

/* Step visuals */
.step-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C9A84C, #8B6914);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #1A1A2E;
  box-shadow: 0 4px 16px rgba(201, 168, 76, .3);
  animation: coinFloat 3s ease-in-out infinite;
}

.coin-1 {
  animation-delay: 0s;
}

.coin-2 {
  animation-delay: 0.4s;
  margin: 0 -8px;
  z-index: 1;
  width: 58px;
  height: 58px;
}

.coin-3 {
  animation-delay: 0.8s;
}

@keyframes coinFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(10deg);
  }
}

.gua-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.gua-line {
  height: 4px;
  border-radius: 2px;
}

.gua-line.solid-sm {
  width: 48px;
  background: #C9A84C;
}

.gua-line.broken-sm {
  width: 48px;
  background: transparent;
  position: relative;
}

.gua-line.broken-sm::before,
.gua-line.broken-sm::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 18px;
  background: #C9A84C;
  border-radius: 2px;
}

.gua-line.broken-sm::before {
  left: 0;
}

.gua-line.broken-sm::after {
  right: 0;
}

.plan-cards {
  display: flex;
  gap: 10px;
}

.plan-mini {
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(22, 33, 62, .8);
  border: 1px solid rgba(201, 168, 76, .12);
  color: #8B7D6B;
  font-size: 12px;
  letter-spacing: 1px;
  transition: all .3s;
}

.plan-mini.active {
  border-color: rgba(201, 168, 76, .5);
  color: #C9A84C;
  background: rgba(201, 168, 76, .08);
  box-shadow: 0 4px 16px rgba(201, 168, 76, .15);
}

.progress-ring {
  position: relative;
  width: 80px;
  height: 80px;
}

.progress-ring svg {
  transform: rotate(-90deg);
}

.progress-circle {
  animation: drawCircle 2s ease-out forwards;
}

@keyframes drawCircle {
  from {
    stroke-dashoffset: 220;
  }

  to {
    stroke-dashoffset: 44;
  }
}

.progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #C9A84C;
}

/* ============================================
   PHILOSOPHY
   ============================================ */
.philosophy {
  position: relative;
  padding: 120px 40px;
  overflow: hidden;
}

.philosophy-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(201, 168, 76, .04) 0%, transparent 70%);
  pointer-events: none;
}

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

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

.philosophy-card {
  text-align: center;
  padding: 48px 32px;
  background: rgba(22, 33, 62, .5);
  border: 1px solid rgba(201, 168, 76, .08);
  border-radius: 20px;
  transition: all .4s;
}

.philosophy-card:hover {
  border-color: rgba(201, 168, 76, .25);
  transform: translateY(-4px);
  background: rgba(22, 33, 62, .7);
}

.phi-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 32px;
  font-weight: 900;
  color: #C9A84C;
  border: 2px solid rgba(201, 168, 76, .2);
  border-radius: 50%;
  background: rgba(201, 168, 76, .04);
}

.philosophy-card h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  font-weight: 700;
  color: #E0D4B8;
  margin-bottom: 12px;
  letter-spacing: 3px;
}

.philosophy-card p {
  font-size: 14px;
  color: #8B7D6B;
  line-height: 1.9;
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
  padding: 100px 40px;
  background: linear-gradient(180deg, #0E0E1A, #1A1A2E);
  text-align: center;
}

.cta-content h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #E0D4B8;
  margin-bottom: 16px;
  letter-spacing: 4px;
}

.cta-content p {
  font-size: 15px;
  color: #8B7D6B;
  margin-bottom: 36px;
  letter-spacing: 2px;
}

.cta-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(22, 33, 62, .7);
  border: 1px solid rgba(201, 168, 76, .2);
  border-radius: 14px;
  color: #E0D4B8;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all .3s;
}

.badge:hover {
  border-color: rgba(201, 168, 76, .5);
  box-shadow: 0 4px 20px rgba(201, 168, 76, .1);
}

.badge-icon {
  font-size: 20px;
}

.cta-contact {
  margin-top: 28px;
  font-size: 15px;
  color: #8B7D6B;
  letter-spacing: 1px;
}

.cta-contact a {
  color: #C9A84C;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, .3);
  padding-bottom: 2px;
  transition: all .3s;
}

.cta-contact a:hover {
  color: #E0D4B8;
  border-bottom-color: #E0D4B8;
}

.footer-contact {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: #8B7D6B;
  letter-spacing: 1px;
}

.footer-contact a {
  color: #C9A84C;
  text-decoration: none;
  transition: color .3s;
}

.footer-contact a:hover {
  color: #E0D4B8;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 48px 40px 32px;
  background: #0A0A16;
  border-top: 1px solid rgba(201, 168, 76, .06);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  font-size: 20px;
  color: #C9A84C;
}

.footer-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  font-weight: 700;
  color: #E0D4B8;
  letter-spacing: 3px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 13px;
  color: #8B7D6B;
  letter-spacing: 1px;
  transition: color .3s;
}

.footer-links a:hover {
  color: #C9A84C;
}

.footer-copy p {
  font-size: 12px;
  color: #4A4357;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.feature-card,
.workflow-step,
.philosophy-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .7s cubic-bezier(.4, 0, .2, 1);
}

.feature-card.visible,
.workflow-step.visible,
.philosophy-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay */
.feature-card:nth-child(2) {
  transition-delay: .1s;
}

.feature-card:nth-child(3) {
  transition-delay: .2s;
}

.feature-card:nth-child(4) {
  transition-delay: .3s;
}

.workflow-step:nth-child(3) {
  transition-delay: .1s;
}

.workflow-step:nth-child(4) {
  transition-delay: .2s;
}

.workflow-step:nth-child(5) {
  transition-delay: .3s;
}

.philosophy-card:nth-child(2) {
  transition-delay: .1s;
}

.philosophy-card:nth-child(3) {
  transition-delay: .2s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav {
    padding: 14px 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .features,
  .workflow,
  .philosophy,
  .cta-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .workflow-step {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .timeline-line {
    display: none;
  }

  .workflow-step::before {
    display: none;
  }

  .step-visual {
    order: -1;
  }

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

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

@media (max-width: 480px) {
  .nav-links {
    display: none;
  }

  .hero-tag {
    font-size: 11px;
    letter-spacing: 4px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 200px;
    text-align: center;
  }
}