/*
Theme Name: Roun Starter
Theme URI: https://roun.nexai.ai.kr
Author: Roun
Description: 풀스크린 스크롤 원페이지 테마 - 휠을 돌리면 각 섹션이 전환되는 프리미엄 디자인
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: roun-starter
*/

/* ===== 디자인 토큰 ===== */
:root {
  --color-bg: #0a1128;
  --color-bg-alt: #001f3f;
  --color-surface: rgba(255, 255, 255, 0.06);
  --color-text: #f0f4f8;
  --color-text-muted: rgba(240, 244, 248, 0.6);
  --color-accent: #3a86ff;
  --color-accent-glow: rgba(58, 134, 255, 0.4);
  --color-gold: #00b4d8;
  --color-teal: #48cae4;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== 리셋 & 기본 ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  overflow: hidden;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  overflow: hidden;
  height: 100%;
  -webkit-font-smoothing: antialiased;
}

/* ===== 네비게이션 ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: var(--color-text);
  text-transform: uppercase;
}

.nav-dots {
  display: flex;
  gap: 12px;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
  border: none;
  outline: none;
}

.nav-dot.active {
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent-glow);
  transform: scale(1.3);
}

/* ===== 페이지 래퍼 & 섹션 ===== */
.page-wrapper {
  height: 100vh;
  transition: transform 0.9s var(--transition-smooth);
  will-change: transform;
}

.section {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ===== 섹션 콘텐츠 애니메이션 ===== */
.section-content {
  text-align: center;
  max-width: 900px;
  padding: 0 40px;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s 0.3s var(--transition-smooth),
              transform 0.8s 0.3s var(--transition-smooth);
}

.section.active .section-content {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 히어로 섹션 ===== */
.section-hero {
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1035 50%, #0d1a2a 100%);
}

.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/hero-bg.png') center/cover no-repeat;
  opacity: 0.35;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-gold) 50%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--color-text-muted);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 40px; }
  50% { opacity: 1; height: 55px; }
}

/* ===== 섹션 2: 소개 ===== */
.section-intro {
  background: linear-gradient(180deg, #0d1117 0%, #0a1628 100%);
}

.section-intro::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(80px);
  pointer-events: none;
}

.section-number {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 900;
  opacity: 0.06;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.intro-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.accent-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-teal));
  margin: 0 auto 32px;
  border-radius: 3px;
}

/* ===== 섹션 3: 특징 ===== */
.section-features {
  background: linear-gradient(135deg, #0a0a1a 0%, #15112a 100%);
}

.section-features::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/section-bg.png') center/cover no-repeat;
  opacity: 0.2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  width: 100%;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 40px 28px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all 0.4s var(--transition-smooth);
  opacity: 0;
  transform: translateY(40px);
}

.section.active .feature-card {
  opacity: 1;
  transform: translateY(0);
}

.section.active .feature-card:nth-child(1) { transition-delay: 0.2s; }
.section.active .feature-card:nth-child(2) { transition-delay: 0.4s; }
.section.active .feature-card:nth-child(3) { transition-delay: 0.6s; }

.feature-card:hover {
  border-color: rgba(124, 108, 240, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

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

/* ===== 섹션 4: 비전 ===== */
.section-vision {
  background: linear-gradient(180deg, #0d0d20 0%, #0a1628 100%);
}

.section-vision::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 216, 197, 0.15) 0%, transparent 70%);
  top: 30%;
  right: -100px;
  filter: blur(60px);
  pointer-events: none;
}

.vision-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vision-quote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto 40px;
  position: relative;
}

.vision-quote::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: -30px;
  left: -20px;
  color: var(--color-accent);
  opacity: 0.3;
  font-family: Georgia, serif;
}

/* ===== 섹션 5: CTA ===== */
.section-cta {
  background: linear-gradient(135deg, #1a1035 0%, #0a0a1a 50%, #0d1a2a 100%);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.cta-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.cta-button {
  display: inline-block;
  padding: 16px 48px;
  background: linear-gradient(135deg, var(--color-accent), #9b8cf8);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.4s var(--transition-smooth);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-teal), var(--color-gold));
  border-radius: 52px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--color-accent-glow);
}

.cta-button:hover::before {
  opacity: 1;
}

/* ===== 파티클 장식 ===== */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(124, 108, 240, 0.4);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ===== 사이드 진행 바 ===== */
.progress-bar {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.progress-segment {
  width: 3px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.progress-fill {
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-teal));
  border-radius: 3px;
  transition: height 0.6s var(--transition-smooth);
}

.progress-segment.active .progress-fill {
  height: 100%;
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .features-grid { grid-template-columns: 1fr; gap: 20px; max-width: 400px; }
  .section-content { padding: 0 24px; }
  .progress-bar { right: 16px; }
  .progress-segment { height: 24px; }
}
