/* ========================================
   재테크 읽어주는 파일럿 - Landing Page Styles
   Color Palette: 燕麦奶霜 (Oat Milk Cream)
   - Primary: #D9C2A7
   - Light: #E8D5C4
   - Dark: #2C1810
   Font: Nanum Gothic
======================================== */

/* CSS Variables */
:root {
  --primary: #D9C2A7;
  --primary-light: #E8D5C4;
  --dark: #2C1810;
  --dark-soft: #4A3428;
  --cream: #FAF6F1;
  --white: #FFFFFF;
  --shadow: rgba(44, 24, 16, 0.1);
  --shadow-strong: rgba(44, 24, 16, 0.2);
  --gradient-warm: linear-gradient(135deg, #E8D5C4 0%, #D9C2A7 50%, #C4A882 100%);
  --gradient-dark: linear-gradient(135deg, #2C1810 0%, #4A3428 100%);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nanum Gothic', sans-serif;
  background-color: var(--cream);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

p {
  font-size: 1rem;
  color: var(--dark-soft);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-warm);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  padding: 100px 20px 150px;
}

/* Hero with background image overlay */
.hero[style*="background-image"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(232, 213, 196, 0.85) 0%, rgba(217, 194, 167, 0.8) 50%, rgba(196, 168, 130, 0.85) 100%);
  z-index: 1;
}

/* Animated Background Pattern */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(44, 24, 16, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(44, 24, 16, 0.03) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232C1810' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Floating Elements */
.hero-float {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  animation: float 6s ease-in-out infinite;
}

.hero-float:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.hero-float:nth-child(2) {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.hero-float:nth-child(3) {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  box-shadow: 0 4px 20px var(--shadow);
  margin-bottom: 30px;
  animation: slideDown 0.8s ease-out;
}

.hero-badge i {
  color: var(--dark);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  color: var(--dark);
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title span {
  display: block;
  background: var(--gradient-dark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--dark-soft);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Channel Info Card */
.channel-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px var(--shadow-strong);
  margin-top: 40px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.channel-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.channel-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--dark);
  box-shadow: 0 8px 24px var(--shadow);
}

.channel-info h3 {
  color: var(--dark);
  margin-bottom: 4px;
}

.channel-info p {
  font-size: 0.95rem;
}

.channel-stats {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--dark-soft);
}

/* ========================================
   STOCK TICKER
======================================== */
.stock-ticker {
  background: var(--dark);
  padding: 15px 0;
  overflow: hidden;
  position: relative;
}

.ticker-wrap {
  display: flex;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 40px;
  color: var(--primary-light);
  font-weight: 700;
  white-space: nowrap;
}

.ticker-item.up {
  color: #4ADE80;
}

.ticker-item.down {
  color: #F87171;
}

.ticker-item .symbol {
  color: var(--white);
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================
   FEATURES SECTIONS
======================================== */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  color: var(--dark);
  margin-bottom: 16px;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
}

/* Feature Rows - Alternating Layout */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse .feature-image {
  order: 2;
}

.feature-row.reverse .feature-content {
  order: 1;
}

.feature-image {
  position: relative;
}

.feature-image-inner {
  background: var(--gradient-warm);
  border-radius: 24px;
  padding: 0;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px var(--shadow);
  position: relative;
  overflow: hidden;
}

.feature-image-inner:has(.feature-img) {
  padding: 0;
}

.feature-image-inner:has(.feature-icon-large) {
  padding: 40px;
}

.feature-image-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-50%) translateY(-50%) rotate(0deg); }
  50% { transform: translateX(-30%) translateY(-30%) rotate(180deg); }
}

.feature-icon-large {
  font-size: 6rem;
  color: var(--dark);
  position: relative;
  z-index: 1;
}

/* Feature Images */
.feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  position: relative;
  z-index: 1;
}

.feature-content h3 {
  color: var(--dark);
  margin-bottom: 20px;
}

.feature-content p {
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 500;
}

.feature-list li i {
  color: var(--dark);
  margin-top: 4px;
}

/* ========================================
   BENEFITS SECTION
======================================== */
.benefits-section {
  background: var(--white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.benefit-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.benefit-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px var(--shadow);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--gradient-warm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--dark);
}

.benefit-card h4 {
  color: var(--dark);
  margin-bottom: 12px;
}

/* ========================================
   COMMUNITY SECTION
======================================== */
.community-section {
  background: var(--gradient-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.community-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23D9C2A7' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  pointer-events: none;
}

.community-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.community-content h2 {
  color: var(--primary-light);
  margin-bottom: 24px;
}

.community-content > p {
  color: rgba(255,255,255,0.8);
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
}

.community-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.community-feature {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(217, 194, 167, 0.2);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.community-feature:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-5px);
}

.community-feature i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.community-feature h4 {
  color: var(--white);
  margin-bottom: 8px;
}

.community-feature p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

/* ========================================
   LIVE BUBBLES
======================================== */
.live-bubbles {
  position: fixed;
  bottom: 120px;
  left: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
}

.bubble {
  background: var(--white);
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 30px var(--shadow-strong);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  animation: bubbleIn 0.5s ease-out, bubbleOut 0.5s ease-in 4.5s forwards;
  border-left: 4px solid var(--primary);
}

.bubble i {
  color: var(--dark);
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bubbleOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-100px);
  }
}

/* ========================================
   FIXED CTA BUTTON
======================================== */
.fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gradient-dark);
  color: var(--white);
  padding: 18px 40px;
  border-radius: 60px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  box-shadow: 0 10px 40px rgba(44, 24, 16, 0.4);
  transition: all 0.3s ease;
  animation: pulse 2s ease-in-out infinite;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 50px rgba(44, 24, 16, 0.5);
}

.cta-button i {
  font-size: 1.3rem;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 40px rgba(44, 24, 16, 0.4); }
  50% { box-shadow: 0 10px 40px rgba(44, 24, 16, 0.6), 0 0 0 10px rgba(44, 24, 16, 0.1); }
}

/* Secondary CTA Button (for cards and sections) */
.cta-button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-dark);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 30px rgba(44, 24, 16, 0.3);
  transition: all 0.3s ease;
  font-family: 'Nanum Gothic', sans-serif;
}

.cta-button-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(44, 24, 16, 0.4);
}

.cta-button-secondary i {
  font-size: 1.1rem;
}

/* Card CTA Container */
.card-cta {
  margin-top: 30px;
  text-align: center;
}

/* Section CTA Container */
.section-cta {
  margin-top: 30px;
}

/* ========================================
   FOOTER
======================================== */
.footer {
  background: var(--dark);
  color: var(--primary-light);
  padding: 60px 0 120px;
  text-align: center;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--primary-light);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(232, 213, 196, 0.6);
}

/* Footer Disclaimer */
.footer-disclaimer {
  max-width: 800px;
  margin: 0 auto 30px;
  padding: 20px 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.footer-disclaimer p {
  font-size: 0.85rem;
  color: rgba(232, 213, 196, 0.8);
  line-height: 1.8;
  margin: 0;
}

.footer-disclaimer strong {
  color: var(--primary-light);
}

/* Footer Company Info */
.footer-company {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(232, 213, 196, 0.2);
}

.footer-company p {
  font-size: 0.8rem;
  color: rgba(232, 213, 196, 0.5);
  margin-bottom: 6px;
  line-height: 1.6;
}

.footer-company p:first-child {
  font-size: 0.9rem;
  color: rgba(232, 213, 196, 0.7);
  margin-bottom: 12px;
}

.footer-company strong {
  color: var(--primary-light);
}

/* ========================================
   LEGAL PAGES
======================================== */
.legal-page {
  min-height: 100vh;
  padding: 100px 20px;
  background: var(--cream);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  padding: 60px;
  box-shadow: 0 10px 40px var(--shadow);
}

.legal-content h1 {
  color: var(--dark);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-light);
}

.legal-content h2 {
  font-size: 1.3rem;
  color: var(--dark);
  margin: 30px 0 15px;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--dark-soft);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  color: var(--dark);
  font-weight: 600;
}

.back-link:hover {
  color: var(--dark-soft);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 992px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .feature-row.reverse .feature-image,
  .feature-row.reverse .feature-content {
    order: unset;
  }
  
  .hero {
    padding: 80px 20px 120px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .channel-card {
    padding: 30px 20px;
  }
  
  .channel-stats {
    gap: 20px;
  }
  
  .stat-number {
    font-size: 1.4rem;
  }
  
  .feature-image-inner {
    padding: 30px;
  }
  
  .feature-icon-large {
    font-size: 4rem;
  }
  
  .legal-content {
    padding: 40px 24px;
  }
  
  .live-bubbles {
    left: 10px;
    right: 10px;
    max-width: calc(100% - 20px);
    bottom: 100px;
  }
  
  .bubble {
    font-size: 0.8rem;
    padding: 10px 16px;
  }
  
  .cta-button {
    padding: 16px 30px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .channel-header {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}

