/* ============================================
   KAMI LINE — Landing Page Styles
   ============================================ */

:root {
  --bg: #0a0a0f;
  --bg-alt: #0d0d14;
  --gold: #c9a84c;
  --gold-dim: #8a7434;
  --gold-glow: rgba(201, 168, 76, 0.3);
  --red: #8b1a1a;
  --red-bright: #c43030;
  --text: #e8e4dd;
  --text-dim: #8a8578;
  --text-muted: #5a574f;
  --serif: 'Noto Serif TC', 'Georgia', serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg);
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ---- Particle Canvas ---- */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- Floating Kanji ---- */
.floating-kanji {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-kanji span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  color: rgba(201, 168, 76, 0.03);
  animation: kanjiFloat var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
  user-select: none;
}

@keyframes kanjiFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.03; }
  50% { transform: translateY(-30px) rotate(3deg); opacity: 0.06; }
}

/* ---- Sections ---- */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  z-index: 1;
}

.section-dark {
  background: var(--bg-alt);
}

.container {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1;
  overflow: hidden;
}

.hero-torii {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: min(80vw, 500px);
  opacity: 0.12;
}

.torii-svg {
  width: 100%;
  height: auto;
}

.torii-line {
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px var(--gold-glow));
  animation: toriiPulse 4s ease-in-out infinite;
}

.torii-kasagi { stroke-width: 5; }
.torii-roof { stroke-width: 4; }

@keyframes toriiPulse {
  0%, 100% { opacity: 0.6; filter: drop-shadow(0 0 6px var(--gold-glow)); }
  50% { opacity: 1; filter: drop-shadow(0 0 16px var(--gold-glow)); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  font-size: 1.5rem;
  color: var(--text-dim);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(10px); opacity: 0.8; }
}

/* ---- Typography ---- */
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.section-lead {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.text-block {
  margin-top: 2rem;
}

.text-block p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 1.5rem;
  line-height: 2;
  color: var(--text);
}

.highlight {
  color: var(--gold);
  font-weight: 700;
}

.highlight-red {
  color: var(--red-bright);
  font-weight: 700;
}

.emphasis {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem) !important;
  color: var(--gold) !important;
  font-weight: 700;
}

/* ---- Hexagram Display ---- */
.hexagram-display {
  margin-bottom: 3rem;
}

.hex-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.hex-line {
  width: 120px;
  height: 6px;
  background: var(--gold);
  border-radius: 3px;
  position: relative;
  transition: all 0.6s ease;
  box-shadow: 0 0 10px var(--gold-glow);
}

.hex-line.yin {
  background: transparent;
}

.hex-line.yin::before,
.hex-line.yin::after {
  content: '';
  position: absolute;
  top: 0;
  width: 45%;
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
}

.hex-line.yin::before { left: 0; }
.hex-line.yin::after { right: 0; }

.hex-label {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.hex-label .morph {
  font-family: 'Courier New', monospace;
  color: var(--gold);
}

/* ---- Blockquote ---- */
blockquote {
  border-left: 3px solid var(--gold-dim);
  padding: 1.5rem 2rem;
  margin: 2rem auto;
  max-width: 600px;
  text-align: left;
}

blockquote p {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
}

blockquote cite {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text-dim);
  font-style: normal;
}

/* ---- Statement ---- */
.statement {
  margin-top: 3rem;
  padding: 2rem 0;
}

.statement p {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* ---- Year Display ---- */
.year-display {
  font-family: var(--sans);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 600;
  color: var(--gold);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

/* ---- Specs ---- */
.specs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.spec-item {
  font-family: var(--sans);
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.spec-dot {
  color: var(--gold-dim);
  font-size: 0.8rem;
}

/* ---- Comparison ---- */
.comparison {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.comp-card {
  flex: 1;
  min-width: 250px;
  max-width: 340px;
  padding: 2rem;
  border-radius: 12px;
  text-align: left;
}

.comp-ai {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.comp-god {
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.15);
}

.comp-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.comp-card p {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.comp-result {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.comp-ai .comp-result { color: var(--text-muted); }
.comp-god .comp-result { color: var(--gold); }

.comp-vs {
  display: flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ---- Final Section ---- */
.section-final {
  background: var(--bg);
}

.final-text p {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 2.2;
  color: var(--text-dim);
}

.final-statement {
  margin-top: 3rem;
}

.final-statement p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  line-height: 1.8;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ---- CTA Section ---- */
.section-cta {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  min-height: 80vh;
  padding-bottom: 2rem;
}

.cta-torii {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px var(--gold-glow));
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.cta-sub {
  display: block;
  font-size: 0.45em;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.2em;
  margin-top: 0.3rem;
}

.cta-desc {
  font-family: var(--sans);
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  color: var(--text-dim);
  margin: 1.5rem 0;
  letter-spacing: 0.05em;
}

.cta-tagline {
  font-family: var(--serif);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text);
  font-style: italic;
  margin-bottom: 2.5rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 3rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold), #dbb960);
  border: none;
  border-radius: 60px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.2);
  letter-spacing: 0.05em;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(201, 168, 76, 0.4);
  background: linear-gradient(135deg, #dbb960, var(--gold));
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  background: var(--bg);
  position: relative;
  z-index: 1;
}

/* ---- Reveal Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.6s; }
.delay-2 { animation-delay: 1.2s; }
.delay-3 { animation-delay: 1.8s; }

.fade-in.delay-1 { animation-delay: 0.6s; }
.fade-in.delay-2 { animation-delay: 1.2s; }
.fade-in.delay-3 { animation-delay: 1.8s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.2s; }
.reveal.delay-2 { transition-delay: 0.4s; }
.reveal.delay-3 { transition-delay: 0.6s; }

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .section { padding: 4rem 1.5rem; }
  .hero { padding: 1.5rem; }
  
  .comparison { flex-direction: column; align-items: center; }
  .comp-vs { margin: 0.5rem 0; }
  .comp-card { max-width: 100%; }
  
  .specs { flex-direction: column; gap: 0.5rem; }
  .spec-dot { display: none; }
  
  blockquote { padding: 1rem 1.5rem; margin: 1.5rem 0; }
  
  .hero-torii { width: 90vw; }
  .hex-line { width: 80px; }
}
