@charset "utf-8";
/* ==========================================================================
   Dragon Keepers CSS (For Web3 Game Landing Page)
   
   [Key Features and Concepts]
   1. Design System: Inherits Glassmorphism from TITAN STATION and applies Red Gradient theme
   2. Layout System: Bootstrap-style Lightweight Grid System (Container-Row-Col)
   3. Motion Engine: Scroll-Reveal based on Intersection Observer and Character Stagger animation
   4. Responsive Support: Optimized for PC (1200px+), Tablet (768~1024px), and Mobile (~767px)
   
   This CSS file defines the overall structure and style of the Dragon Keepers introduction page.
   ========================================================================== */


/* ==========================================================================
   1. Base & Reset Overrides
   ========================================================================== */
body {
    background-color: var(--dk-dark-bg);
    color: #ffffff;
    font-family: var(--dk-font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    /* Moved from style.css (ADR-006 Step 3) */
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

/* ==========================================================================
   2. Layout System (Bootstrap-like Lite)
   ========================================================================== */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* .container breakpoints and .col-md-*, .col-lg-* definitions are managed in responsive.css (ADR-006 Step 4) */

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

[class^="col-"],
[class*=" col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Grid Columns */
.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

/* Flex Utilities */
.d-flex {
    display: flex !important;
}

.d-none {
    display: none !important;
}

/* .d-sm-block -- Defined only within media query (to allow d-none to work below 576px) [ADR-006 P12] */
@media (min-width: 576px) {
    .d-sm-block {
        display: block !important;
    }
}

.justify-content-center {
    justify-content: center !important;
}

.align-items-center {
    align-items: center !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.flex-column {
    flex-direction: column !important;
}

.gap-5 {
    gap: 3rem !important;
}

/* ==========================================================================
   3. Utilities (Spacing, Text, etc.)
   ========================================================================== */
/* Spacing (Tailwind/Bootstrap scale approx) 
   1=4px, 2=8px, 3=12px, 4=16px, 5=20px, 6=24px, 8=32px, 10=40px, 12=48px, 14=56px, 20=80px 
*/
.mt-4 {
    margin-top: 1rem !important;
}

.mt-6 {
    margin-top: 1.5rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 0.75rem !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.mb-6 {
    margin-bottom: 1.5rem !important;
}

.mb-8 {
    margin-bottom: 2rem !important;
}

.mb-10 {
    margin-bottom: 2.5rem !important;
}

.my-4 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.pt-20 {
    padding-top: 5rem !important;
}

.pb-20 {
    padding-bottom: 5rem !important;
}

.py-14 {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
}

.p-6 {
    padding: 1.5rem !important;
}

.p-8 {
    padding: 2rem !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.me-1 {
    margin-right: 0.25rem !important;
}

/* .mb-lg-0 — 미디어쿼리 밖 정의 삭제, responsive.css 992px 블록에서만 관리 [ADR-006 P9] */
/* .gx-lg-8, .gx-xl-12 — responsive.css에서 일괄 관리 [ADR-006 Step 9] */

.gy-8 {
    row-gap: 2rem;
}

.gy-3 {
    row-gap: 0.75rem;
}


/* Text Utilities */
.text-center {
    text-align: center !important;
}

.text-start {
    text-align: left !important;
}

.text-md-start {
    text-align: left !important;
}

.text-white {
    color: #fff !important;
}

.text-white.text-opacity-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-white.text-opacity-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fst-italic {
    font-style: italic !important;
}

.small {
    font-size: 0.875rem !important;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

.fs-18 {
    font-size: 1.125rem !important;
}

.fs-24 {
    font-size: 1.5rem !important;
}

.list-unstyled {
    padding-left: 0;
    list-style: none;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded-pill {
    border-radius: 50rem !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

.position-relative {
    position: relative !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.border {
    border: 1px solid #dee2e6 !important;
}

.border-danger {
    --bs-border-color: 220, 53, 69;
    /* RGB 값 */
    border-color: rgba(var(--bs-border-color), var(--bs-border-opacity, 1)) !important;
}

/*
 * border-opacity-25 - Border만 투명하게 (요소 전체가 아님!)
 * 
 * ⚠️ 주의: opacity: 0.25는 요소 전체(자식 포함)를 투명하게 만듦
 * 올바른 방법: CSS 변수로 border-color의 alpha 값만 조정
 */
.border-opacity-25 {
    --bs-border-opacity: 0.25;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

/* ==========================================================================
   4. Theme Components (Dragon Keepers)
   ========================================================================== */

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3 {
    font-family: var(--dk-font-title);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.display-1 {
    font-size: 5rem;
    font-weight: 300;
}

.display-3 {
    font-size: 2.5rem;
    font-weight: 300;
}

.display-5 {
    font-size: 2rem;
    font-weight: 300;
}

.display-6 {
    font-size: 1.5rem;
    font-weight: 300;
}

.text-red {
    color: var(--dk-red-primary) !important;
}

.text-red-gradient {
    background: linear-gradient(135deg, #ff9a9e 0%, #ef4444 50%, #b91c1c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Backgrounds */
.bg-dark {
    background-color: var(--dk-dark-bg) !important;
}

.bg-darker {
    background-color: var(--dk-darker-bg) !important;
}

.bg-container-dark {
    background-color: #1a1a1a;
}

/* General container bg */

/* Buttons */
.btn {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
}

.btn-red-gradient {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    border: none;
    color: white !important;
    font-weight: 600;
    padding: 15px 40px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-red-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.6);
    background: linear-gradient(135deg, #ff5e5e 0%, #d32f2f 100%);
}

/* Glass Card */
.glass-card {
    background: var(--dk-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--dk-glass-border);
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Card Body - 내부 패딩 및 여백 */
.card-body {
    padding: 2rem;
    text-align: center;
}

.card-body h3 {
    margin-bottom: 1rem;
}

.card-body p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* Icon Box */
.icon-box-red {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(0, 0, 0, 0));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 32px;
    color: var(--dk-red-primary);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-box-red:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.8);
}

/* Bullet List */
.icon-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.icon-list li span:first-child {
    margin-right: 10px;
    color: var(--dk-red-primary);
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

/* HERO */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #702C2C 0%, #000000 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

/* 
 * Stars Animation 제거 
 * (디자인 가이드 변경에 따라 별 효과를 제거하고 드래곤 SVG 배경으로 대체) 
 */

#hero .hero-dragon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    /* 적절한 크기 조정 */
    height: auto;
    opacity: 0.15;
    /* 문구 뒤에 은은하게 위치하도록 투명도 조절 */
    z-index: 0;
    pointer-events: none;
    transition: transform 0.1s ease-out;
    /* 마우스 파라락스 무브먼트를 위한 부드러운 전환 */
}

/* Breathing Gradient Effect */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(209, 59, 59, 0.4) 0%, transparent 65%);
    z-index: 0;
    animation: breathingRed 1.5s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes breathingRed {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }

    100% {
        opacity: 0.7;
        transform: scale(1.7);
    }
}

#hero .container {
    position: relative;
    z-index: 1;
    /* 드래곤 배경보다 위에 오도록 설정 */
}

#hero h1 {
    color: #ffffff;
    /* 애니메이션(글자 분리)과 그라데이션(background-clip) 동시 적용 시 렌더링 문제 발생으로 단색 적용 */
    /* linear-gradient 효과를 흉내낸 밝은 톤 */
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    z-index: 1;
    position: relative;
}

/* ==========================================================================
   Motion System (Animations)
   ========================================================================== */

/* 1. Scroll-Reveal Base (Generic) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* 2. CharacterStagger (Hero Title) */
.char-stagger span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.char-stagger.active span {
    opacity: 1;
    transform: translateY(0);
}

/* 3. BlurInReveal (Hero Subcopy) - 가독성을 위해 블러 강도 하향 조정 */
.blur-in {
    filter: blur(4px);
    opacity: 0;
    transition: filter 1.2s ease, opacity 1.2s ease;
}

.blur-in.active {
    filter: blur(0);
    opacity: 1;
}

/* 4. Glitch Effect (VS Text) */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text.active::before,
.glitch-text.active::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text.active::before {
    left: 2px;
    text-shadow: -2px 0 var(--dk-red-primary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text.active::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }

    20% {
        clip: rect(62px, 9999px, 42px, 0);
    }

    40% {
        clip: rect(16px, 9999px, 78px, 0);
    }

    60% {
        clip: rect(58px, 9999px, 13px, 0);
    }

    80% {
        clip: rect(85px, 9999px, 40px, 0);
    }

    100% {
        clip: rect(27px, 9999px, 92px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(67px, 9999px, 34px, 0);
    }

    20% {
        clip: rect(12px, 9999px, 85px, 0);
    }

    40% {
        clip: rect(49px, 9999px, 11px, 0);
    }

    60% {
        clip: rect(23px, 9999px, 96px, 0);
    }

    80% {
        clip: rect(74px, 9999px, 58px, 0);
    }

    100% {
        clip: rect(38px, 9999px, 21px, 0);
    }
}

/* 5. AnimatedGradientText (DKT Title) */
.animated-gradient-text {
    background: linear-gradient(to right, #fff 20%, var(--dk-red-primary) 40%, var(--dk-red-primary) 60%, #fff 80%);
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* 6. 도넛 차트 애니메이션 동기화 */
.donut-chart.active .donut-segment {
    animation: donut-appearance 1.5s ease-out forwards;
}

@keyframes donut-appearance {
    from {
        stroke-dasharray: 0 100;
    }
}

#preview .device-mockup {
    width: 100%;
    max-width: 330px;
    aspect-ratio: 9 / 19.5;
    height: auto;
    border: 12px solid #1e1e24;
    border-radius: 40px;
    background: #000;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(239, 68, 68, 0.2);
    margin: 0 auto;
    overflow: hidden;
    z-index: 10;
    /* 
     * [Firefox Fix] 
     * 1. mask-image: 컨텐츠가 border-radius 밖으로 삐져나오는 현상을 물리적으로 차단
     * 2. isolation: isolate: 별도의 쌓임 맥락을 형성하여 클리핑 보장
     */
    mask-image: radial-gradient(white, black);
    -webkit-mask-image: radial-gradient(white, black);
    isolation: isolate;
}

/* 2. Notch (카메라 홀 디자인) */
#preview .device-mockup::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #1e1e24;
    border-radius: 20px;
    z-index: 10;
}

/* 3. Iframe 스타일 - 내부 콘텐츠가 Mockup을 채우도록 설정 */
#preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #111;
    /* [Firefox Fix] 부모의 라운딩을 확실히 따르도록 명시적 부여 */
    border-radius: 40px;
}

/* 
 * Glow Effect (Red) - 프로토타입 뒤에 배치되는 배경 효과
 * 1. z-index: -1 → Mockup(z-index: 10) 뒤에 완전히 배치
 * 2. opacity 감소 → 0.2 → 0.1 (흐릿함 방지)
 * 3. 크기 축소 → Mockup 영역과 겹치지 않도록 조정
 */
.glow-effect-red {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Scroll Down */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    z-index: 10;
}

.scroll-down::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

/* 768px responsive rules are managed in responsive.css [ADR-006 Step 5, P5] */

/* ==========================================================================
   Header & Navigation (Based on TITAN-STATION, Red Theme)
   (Note: --header-height and --transition-smooth are defined in style.css)
   ========================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: rgba(5, 5, 8, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(10, 10, 12, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin: 0;
    background: linear-gradient(135deg, #ff9a9e 0%, #ef4444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

header h1 a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dragon-keepers-logo {
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Navigation */
nav.primary ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav.primary a {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

nav.primary a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--dk-red-primary);
    box-shadow: 0 0 8px var(--dk-red-glow);
    transition: width 0.3s ease;
}

nav.primary a:hover {
    color: #fff;
}

/* Keyboard Accessibility -- Ensure focus visibility during Tab navigation [ADR-006 Step 7, P8] */
nav.primary a:focus-visible {
    color: #fff;
    outline: 2px solid var(--dk-red-primary);
    outline-offset: 4px;
    border-radius: 2px;
}

nav.primary a:hover::before {
    width: 100%;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 150;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger Active State (X shape) */
.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Navigation -- Managed in responsive.css @media (max-width: 1399px) [ADR-006 Step 5, P6] */

/* ==========================================================================
   Token Allocation Donut Chart
   - SVG-based Donut Chart
   - 스크롤 트리거 애니메이션 (IntersectionObserver 연동)
   ========================================================================== */

/* 차트 래퍼 */
.donut-chart-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

/* SVG 도넛 차트 */
.donut-chart {
    width: 200px;
    height: 200px;
    transform: rotate(-90deg);
    /* 12시 방향에서 시작 */
}

/* 각 세그먼트 기본 스타일 */
.donut-segment {
    transition: stroke-dasharray 1s ease-out;
}

/* 애니메이션 상태 - JS에서 .active 클래스 추가 시 적용 */
.donut-chart.active .segment-lp {
    stroke-dasharray: 80 20;
    /* 80% */
}

.donut-chart.active .segment-rewards {
    stroke-dasharray: 10 90;
    /* 10% */
}

.donut-chart.active .segment-team {
    stroke-dasharray: 5 95;
    /* 5% */
}

.donut-chart.active .segment-airdrops {
    stroke-dasharray: 5 95;
    /* 5% */
}

/* 중앙 텍스트 - 도넛 차트 중앙에 표시되는 총량/라벨 */
/* SVG는 -90deg 회전되어 있으므로, 텍스트는 별도 g 요소로 감싸서 회전 보정 */
.donut-center-text {
    fill: #fff;
    font-family: 'Space Grotesk', sans-serif;
}

.donut-total {
    font-size: 6px;
    font-weight: 700;
}

.donut-label {
    font-size: 3px;
    fill: rgba(255, 255, 255, 0.7);
}

/* 레전드 스타일 */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}


.chart-legend li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ==========================================================================
   Footer (Based on TITAN-STATION)
   ========================================================================== */
footer {
    text-align: center;
    padding: 3rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #050505;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 0;
}

footer p {
    margin: 0;
}