/* Base & Typography */
:root {
    --bg-color: #F6F4EE;
    --text-primary: #1F2A33;
    --text-secondary: #5F6B76;
    --accent: #5F8094;
    --accent-strong: #46687D;
    --accent-soft: #DDE7EE;
    --accent-glow: rgba(95, 128, 148, 0.18);
    --card-border: rgba(31, 42, 51, 0.08);
    --surface-primary: rgba(255, 255, 255, 0.8);
    --surface-strong: #FFFFFF;
    --shadow-soft: 0 18px 40px rgba(31, 42, 51, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    text-rendering: optimizeLegibility;
}

/* Background Animation */
.background-anim {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(95, 128, 148, 0.08) 0%, rgba(246, 244, 238, 0) 55%);
    z-index: -1;
    animation: none;
}

@keyframes rotateBg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, rgba(246, 244, 238, 0.9) 0%, rgba(246, 244, 238, 0.55) 72%, rgba(246, 244, 238, 0) 100%);
    border-bottom: 1px solid rgba(31, 42, 51, 0.06);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--text-primary);
}

/* 데스크탑 nav: 헤더 안에 배치 */
.desktop-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 36px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--accent);
}

/* 모바일 풀스크린 nav: 기본값은 숨김 */
#main-nav {
    display: none;
    visibility: hidden;
    pointer-events: none;
}

/* 햄버거 버튼: 데스크탑에서는 기본 숨김 */
.hamburger {
    display: none;
}

/* Scroll Container Setup */
.scroll-container {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* Individual Full-Page Panels */
.panel {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 5%;
    transition: background-color 0.5s ease;
}

/* Section Themes */
.panel.flexit {
    background-color: #EFF4F7;
    color: #1F2A33;
}

.panel.flexit h2,
.panel.flexit h3 {
    color: #1F2A33;
}

.panel.flexit p.fade-up,
.panel.flexit .content>p,
.panel.flexit .feature-card p {
    color: #5F6B76;
}

.panel.flexit .feature-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(31, 42, 51, 0.08);
}

.panel.flexit .feature-card:hover {
    background: #FFFFFF;
    border-color: rgba(95, 128, 148, 0.28);
    box-shadow: 0 14px 34px rgba(31, 42, 51, 0.08);
}

.panel.security {
    background: linear-gradient(180deg, #EDF2F4 0%, #E7EDF0 100%);
    color: #1F2A33;
}

.panel.security .feature-card p {
    line-height: 1.7;
}

.panel.security h2,
.panel.security h3 {
    color: #1F2A33;
}

.panel.security p.fade-up,
.panel.security .content>p {
    color: #5B6873;
}

.panel.security .feature-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(31, 42, 51, 0.08);
}

.panel.security .feature-card:hover {
    background: #FFFFFF;
    border-color: rgba(95, 128, 148, 0.24);
    box-shadow: 0 14px 34px rgba(31, 42, 51, 0.08);
}

.panel.edu {
    background-color: #F5F7F2;
    color: #1F2A33;
}

.panel.edu h2,
.panel.edu h3 {
    color: #1F2A33;
}

.panel.edu p.fade-up,
.panel.edu .content>p,
.panel.edu .feature-card p {
    color: #5F6B76;
}

.panel.edu .feature-card {
    background: #FFFFFF;
    border: 1px solid rgba(31, 42, 51, 0.08);
}

.panel.edu .feature-card:hover {
    border-color: rgba(95, 128, 148, 0.28);
    box-shadow: 0 14px 34px rgba(31, 42, 51, 0.08);
}

.panel.hero,
.panel.opening,
.panel.footer-panel {
    background: linear-gradient(180deg, #F8F6F1 0%, #F4F1EA 100%);
}

.panel.hero {
    justify-content: flex-start;
    padding-top: 138px;
}

/* Shared Content Box inside Panels */
.content {
    text-align: center;
    max-width: 1040px;
    width: 100%;
    position: relative;
    z-index: 10;
    /* Above background animations */
}

.hero .content,
.opening .content {
    text-align: left;
    max-width: 860px;
}

.hero .content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Toss-Style Fade Up Animation */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typographic Hierarchy */
h1 {
    font-size: 4.8rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.12;
    word-break: keep-all;
    letter-spacing: -2px;
    text-wrap: balance;
}

h2 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 22px;
    line-height: 1.24;
    word-break: keep-all;
    letter-spacing: -1.4px;
    text-wrap: balance;
}

p.fade-up,
.content>p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    word-break: keep-all;
    margin-bottom: 32px;
    font-weight: 400;
    line-height: 1.72;
    text-wrap: pretty;
}

/* accent color applied via specific classes: .section-mark, .opening-title-line-accent, .proof-label */

.hero-eyebrow,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 20px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(95, 128, 148, 0.08);
    border: 1px solid rgba(95, 128, 148, 0.14);
    color: var(--accent-strong);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hero-subtext {
    font-size: 1.22rem;
    font-weight: 500;
    color: #4B5965;
    max-width: 560px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
}

.hero h1 {
    width: fit-content;
    max-width: none;
    font-size: clamp(4.1rem, 4.8vw, 4.65rem);
    line-height: 1.06;
}

.hero-title-line {
    display: block;
    color: var(--text-primary);
    white-space: nowrap;
}

.hero-title-line-accent {
    color: var(--text-primary);
}

.opening h2 {
    font-size: 4rem;
    line-height: 1.4;
    letter-spacing: -2px;
    margin-bottom: 18px;
}

.opening-title-line {
    display: block;
    white-space: nowrap;
}

.opening-title-line-accent {
    color: var(--accent);
}

.opening p {
    max-width: 620px;
    font-size: 1.5rem;
    margin-top: 30px;
    line-height: 1.7;
}

.section-mark {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px 6px;
    border-radius: 14px;
    background: rgba(95, 128, 148, 0.08);
    border: 1px solid rgba(95, 128, 148, 0.12);
    color: var(--accent-strong);
    font-size: 0.92em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-trust-grid,
.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.hero-trust-grid {
    margin-top: 34px;
    max-width: 980px;
}

.trust-card,
.proof-card {
    padding: 22px 22px 24px;
    border-radius: 20px;
    border: 1px solid rgba(31, 42, 51, 0.08);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 14px 30px rgba(31, 42, 51, 0.04);
    backdrop-filter: blur(8px);
}

.trust-card strong,
.proof-card h3 {
    display: block;
    color: var(--text-primary);
    font-size: 1.08rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.trust-card p,
.proof-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
}

.proof-grid {
    margin-top: 34px;
}

.proof-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 28px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 800;
}

.highlight {
    position: relative;
    display: inline-block;
    color: var(--text-primary);
    z-index: 1;
    padding: 6px 12px;
    font-weight: 700;
    background: rgba(95, 128, 148, 0.12);
    border: 1px solid rgba(95, 128, 148, 0.14);
    border-radius: 999px;
}

.highlight::after {
    display: none;
}

/* Service Animations (Replaces Emojis) */
.anim-icon {
    margin: 0 auto 30px;
}

.flexit-anim {
    position: relative;
    width: 80px;
    height: 80px;
}

.flexit-anim .node {
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.flexit-anim .center {
    width: 28px;
    height: 28px;
    top: 26px;
    left: 26px;
    animation: pulseNode 2s infinite;
}

.flexit-anim .orbit {
    width: 12px;
    height: 12px;
    top: 34px;
    left: 34px;
}

.flexit-anim .orbit-1 {
    animation: orbit1 4s linear infinite;
}

.flexit-anim .orbit-2 {
    animation: orbit2 4s linear infinite -1.3s;
}

.flexit-anim .orbit-3 {
    animation: orbit3 4s linear infinite -2.6s;
}

@keyframes pulseNode {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

@keyframes orbit1 {
    0% {
        transform: rotate(0deg) translateX(45px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(45px) rotate(-360deg);
    }
}

@keyframes orbit2 {
    0% {
        transform: rotate(0deg) translateY(45px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateY(45px) rotate(-360deg);
    }
}

@keyframes orbit3 {
    0% {
        transform: rotate(0deg) translate(-35px, -35px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translate(-35px, -35px) rotate(-360deg);
    }
}

.data-flow-diagram {
    margin: 0 auto 30px;
    max-width: 400px;
    width: 100%;
    padding: 18px 18px 8px;
    border-radius: 22px;
    border: 1px solid rgba(31, 42, 51, 0.08);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 14px 32px rgba(31, 42, 51, 0.05);
}

.pgn-shield {
    transition: all 0.5s ease;
}

.active-panel .pgn-shield {
    fill: rgba(95, 128, 148, 0.08);
    filter: drop-shadow(0 0 10px rgba(95, 128, 148, 0.18));
}

.traffic-bad,
.traffic-good,
.traffic-safe {
    animation-play-state: paused;
}

.active-panel .traffic-bad,
.active-panel .traffic-good,
.active-panel .traffic-safe {
    animation-play-state: running;
}

/* Edu Animation (Typing Brackets) */
.edu-anim {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 0 0 8px rgba(95, 128, 148, 0.12);
    font-family: 'Courier New', Courier, monospace;
    height: 80px;
}

.edu-anim .bracket-left {
    animation: slideRight 2s ease-in-out infinite alternate;
}

.edu-anim .bracket-right {
    animation: slideLeft 2s ease-in-out infinite alternate;
}

.edu-anim .cursor {
    animation: blinkCursor 1s step-end infinite;
    color: rgba(31, 42, 51, 0.7);
}

@keyframes slideRight {
    0% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(-8px);
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(-10px);
    }

    100% {
        transform: translateX(8px);
    }
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ========================================================
   SECTION BACKGROUND ANIMATIONS 
   ======================================================== */
.bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    opacity: 0.65;
}

/* 1. FlexIT (Circuit Board) */
.bg-anim-circuit {
    opacity: 0.1;
}

.bg-anim-circuit .line {
    position: absolute;
    background: rgba(95, 128, 148, 0.16);
}

.bg-anim-circuit .line-h {
    width: 100%;
    height: 2px;
}

.bg-anim-circuit .line-v {
    height: 100%;
    width: 2px;
}

.bg-anim-circuit .current,
.bg-anim-circuit .current-v {
    position: absolute;
    background: #FFF;
    box-shadow: 0 0 12px 2px rgba(95, 128, 148, 0.24);
    border-radius: 5px;
    opacity: 0;
}

.bg-anim-circuit .current {
    top: -1px;
    left: -100px;
    width: 60px;
    height: 4px;
    animation: flowH 4s ease-in-out infinite;
}

.bg-anim-circuit .current-v {
    top: -100px;
    left: -1px;
    width: 4px;
    height: 60px;
    animation: flowV 4s ease-in-out infinite;
}

.bg-anim-circuit .bg-node {
    position: absolute;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 2px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 8px rgba(95, 128, 148, 0.08);
}

@keyframes flowH {
    0% {
        left: -10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 110%;
        opacity: 0;
    }
}

@keyframes flowV {
    0% {
        top: -10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 110%;
        opacity: 0;
    }
}

/* 2. Security (Shield Attack) */
.bg-anim-shield-bg {
    opacity: 0.09;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-shield-outline {
    width: 50vw;
    max-width: 600px;
    height: 70vh;
    border: 3px solid rgba(95, 128, 148, 0.12);
    border-radius: 0 0 50% 50%;
    clip-path: polygon(0 5%, 100% 5%, 100% 100%, 0 100%);
    position: relative;
    /* When active, glow up */
    transition: all 0.5s;
}

.active-panel .bg-shield-outline {
    border-color: rgba(95, 128, 148, 0.22);
    box-shadow: 0 0 70px rgba(95, 128, 148, 0.06), inset 0 0 60px rgba(95, 128, 148, 0.04);
}

.bg-shield-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(95, 128, 148, 0.12) 0%, transparent 70%);
}

.active-panel .bg-shield-glow {
    animation: shieldPulse 3s infinite;
}

.bg-attack {
    position: absolute;
    width: 4px;
    height: 60px;
    background: rgba(182, 119, 119, 0.45);
    box-shadow: 0 0 12px rgba(182, 119, 119, 0.12);
    border-radius: 20px;
    opacity: 0;
}

.bg-attack-1 {
    top: 0;
    left: 15vw;
    transform: rotate(35deg);
}

.bg-attack-2 {
    top: 10vh;
    right: 15vw;
    transform: rotate(-45deg);
}

.bg-attack-3 {
    bottom: 10vh;
    left: 20vw;
    transform: rotate(135deg);
}

.active-panel .bg-attack-1 {
    animation: strike1 3s infinite 0.5s;
}

.active-panel .bg-attack-2 {
    animation: strike2 4s infinite 1.5s;
}

.active-panel .bg-attack-3 {
    animation: strike3 3.5s infinite 2.5s;
}

@keyframes shieldPulse {

    0%,
    100% {
        width: 50%;
        height: 50%;
        opacity: 0.5;
    }

    50% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }
}

@keyframes strike1 {
    0% {
        transform: translate(-10vw, -10vh) rotate(35deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    50% {
        transform: translate(15vw, 15vh) rotate(35deg);
        opacity: 1;
    }

    /* Hit */
    52% {
        transform: translate(15vw, 15vh) rotate(35deg) scale(3);
        opacity: 0;
        background: var(--accent);
        box-shadow: 0 0 30px var(--accent);
    }

    /* Explode */
    100% {
        opacity: 0;
    }
}

@keyframes strike2 {
    0% {
        transform: translate(10vw, -10vh) rotate(-45deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    50% {
        transform: translate(-10vw, 10vh) rotate(-45deg);
        opacity: 1;
    }

    52% {
        transform: translate(-10vw, 10vh) rotate(-45deg) scale(3);
        opacity: 0;
        background: var(--accent);
        box-shadow: 0 0 30px var(--accent);
    }

    100% {
        opacity: 0;
    }
}

@keyframes strike3 {
    0% {
        transform: translate(-10vw, 10vh) rotate(135deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    50% {
        transform: translate(10vw, -10vh) rotate(135deg);
        opacity: 1;
    }

    52% {
        transform: translate(10vw, -10vh) rotate(135deg) scale(3);
        opacity: 0;
        background: var(--accent);
        box-shadow: 0 0 30px var(--accent);
    }

    100% {
        opacity: 0;
    }
}

/* 3. Edu (Tree Growing on Both Sides) */
.bg-anim-tree-grow {
    opacity: 0.55;
}

/* 더 선명하게 */

/* 양쪽 나무를 담는 컨테이너 */
.tree {
    position: absolute;
    bottom: 0;
    width: 160px;
    height: 90%;
    /* 각 나무 내부 요소는 이 컨테이너 기준으로 absolute */
}

.tree-left {
    left: 5vw;
}

.tree-right {
    right: 5vw;
    transform: scaleX(-1);
}

/* 좌우 반전으로 대칭 */

/* 나무 기둥 */
.tree-trunk {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    transform-origin: bottom center;
    width: 6px;
    height: 55%;
    background: linear-gradient(0deg, var(--accent), rgba(95, 128, 148, 0.2));
    border-radius: 3px;
    opacity: 0;
}

/* 가지 */
.tree-branch {
    position: absolute;
    left: 50%;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(0deg, var(--accent), rgba(95, 128, 148, 0.15));
    transform-origin: bottom center;
    opacity: 0;
}

.branch-left {
    bottom: 40%;
    height: 30%;
    transform: translateX(-50%) rotate(-35deg) scaleY(0);
}

.branch-right {
    bottom: 25%;
    height: 30%;
    transform: translateX(-50%) rotate(35deg) scaleY(0);
}

/* 잎사귀 */
.tree-leaf {
    position: absolute;
    opacity: 0;
}

.leaf-shape {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 0 50% 50% 50%;
    box-shadow: 0 0 12px var(--accent-glow);
}

.leaf-1 {
    bottom: 65%;
    left: -10px;
    transform: rotate(-70deg) scale(0);
}

.leaf-2 {
    bottom: 50%;
    left: 60px;
    transform: rotate(40deg) scale(0);
}

.leaf-3 {
    bottom: 75%;
    left: 25px;
    transform: rotate(10deg) scale(0);
}

/* 반짝임 (sparkle) */
.sparkle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px #fff, 0 0 10px var(--accent);
    opacity: 0;
}

.sp-1 {
    bottom: 30vh;
    left: 6vw;
}

.sp-2 {
    bottom: 50vh;
    right: 6vw;
}

.sp-3 {
    bottom: 65vh;
    left: 12vw;
}

.sp-4 {
    bottom: 20vh;
    right: 12vw;
}

/* ── 활성화 시 애니메이션 트리거 ── */
.active-panel .tree-trunk {
    animation: growTrunk 6s ease-out infinite;
}

.active-panel .branch-left {
    animation: growBranchL 6s ease-out infinite 1.2s;
}

.active-panel .branch-right {
    animation: growBranchR 6s ease-out infinite 1.8s;
}

.active-panel .leaf-1 .leaf-shape {
    animation: bloomLeaf 6s ease-out infinite 2.5s;
}

.active-panel .leaf-2 .leaf-shape {
    animation: bloomLeaf 6s ease-out infinite 3.0s;
}

.active-panel .leaf-3 .leaf-shape {
    animation: bloomLeaf 6s ease-out infinite 3.5s;
}

.active-panel .sp-1 {
    animation: floatUp 4.0s infinite 0.5s;
}

.active-panel .sp-2 {
    animation: floatUp 4.5s infinite 1.2s;
}

.active-panel .sp-3 {
    animation: floatUp 5.0s infinite 2.1s;
}

.active-panel .sp-4 {
    animation: floatUp 4.2s infinite 0.8s;
}

@keyframes growTrunk {
    0% {
        transform: translateX(-50%) scaleY(0);
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    45%,
    80% {
        transform: translateX(-50%) scaleY(1);
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes growBranchL {
    0% {
        transform: translateX(-50%) rotate(-35deg) scaleY(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    45%,
    80% {
        transform: translateX(-50%) rotate(-35deg) scaleY(1);
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes growBranchR {
    0% {
        transform: translateX(-50%) rotate(35deg) scaleY(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    45%,
    80% {
        transform: translateX(-50%) rotate(35deg) scaleY(1);
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes bloomLeaf {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    45%,
    80% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

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

    20% {
        opacity: 1;
        transform: translateY(-25px) scale(1);
    }

    80% {
        opacity: 1;
        transform: translateY(-65px) scale(1);
    }

    100% {
        transform: translateY(-90px) scale(0);
        opacity: 0;
    }
}

/* Roadmap UI */
.roadmap-ui {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 45px;
    text-align: left;
    position: relative;
}

.roadmap-ui::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background: rgba(95, 128, 148, 0.16);
    z-index: 0;
}

.roadmap-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(95, 128, 148, 0.14);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(95, 128, 148, 0.14);
}

.step-content {
    background: #FFFFFF;
    border: 1px solid rgba(31, 42, 51, 0.08);
    border-radius: 16px;
    padding: 24px;
    flex-grow: 1;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.roadmap-step:hover .step-content {
    transform: translateX(5px);
    border-color: rgba(95, 128, 148, 0.24);
    box-shadow: 0 12px 30px rgba(31, 42, 51, 0.06);
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0;
    word-break: keep-all;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.badge {
    background: #F4F7F9;
    color: #2F4554;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(95, 128, 148, 0.16);
}

/* Detailed Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
    margin-bottom: 45px;
    text-align: left;
}

.feature-card {
    background: var(--surface-primary);
    border: 1px solid rgba(31, 42, 51, 0.08);
    border-radius: 16px;
    padding: 32px 28px;
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(95, 128, 148, 0.24);
    background: #FFFFFF;
    box-shadow: 0 12px 28px rgba(31, 42, 51, 0.06);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.card-icon {
    margin-bottom: 20px;
}

.card-icon svg {
    transition: transform 0.3s ease;
}

.feature-card:hover .card-icon svg {
    transform: scale(1.1);
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
    word-break: keep-all;
}

/* Primary Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    background: var(--accent);
    color: #FFFFFF;
    font-size: 1.02rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 16px;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 12px 28px rgba(95, 128, 148, 0.16);
}

.btn:hover {
    background: var(--accent-strong);
    box-shadow: 0 14px 30px rgba(95, 128, 148, 0.22);
    transform: translateY(-3px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.76);
    color: var(--text-primary);
    border-color: rgba(31, 42, 51, 0.1);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--surface-strong);
    color: var(--text-primary);
    border-color: rgba(95, 128, 148, 0.28);
    box-shadow: 0 12px 28px rgba(31, 42, 51, 0.08);
}

/* Scroll Bouncing Indicator on Hero */
.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(95, 107, 118, 0.72);
    font-size: 0.92rem;
    font-weight: 500;
    animation: bounce 2s ease infinite;
    opacity: 0.86;
}

.scroll-indicator .arrow {
    margin-top: 15px;
    font-size: 1.5rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* Footer Section */
.footer-panel {
    min-height: 100vh;
}

footer {
    padding-top: 50px;
}

.footer-logo {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.footer-desc {
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.footer-cta {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 36px;
}

.company-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 1020px;
    margin: 0 auto 30px;
    color: #5F6B76;
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: left;
}

.company-info span,
.company-info a {
    color: #5F6B76;
    font-size: 1rem;
}

.company-card {
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(31, 42, 51, 0.08);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 28px rgba(31, 42, 51, 0.04);
}

.company-card p {
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    align-items: start;
}

.company-card p:last-child {
    margin-bottom: 0;
}

.info-heading {
    display: block;
    margin-bottom: 14px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.info-label {
    color: rgba(95, 107, 118, 0.78) !important;
    font-weight: 600;
}

.company-info a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-social a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.footer-social a:hover {
    color: #000;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-3px);
}

footer .copyright {
    font-size: 1rem;
    color: rgba(95, 107, 118, 0.72);
    margin-bottom: 0;
}

/* ========================================================
   RESPONSIVE / MOBILE OPTIMIZATION
   ======================================================== */

/* --- Tablet (900px 이하) --- */
@media (max-width: 900px) {

    /* 패널: 스냅 유지하면서 높이를 콘텐츠에 맞게 */
    .panel {
        height: auto;
        min-height: 100vh;
        padding-top: 90px;
        padding-bottom: 60px;
        justify-content: flex-start;
        scroll-snap-align: start;
    }

    /* 콘텐츠가 적은 섹션은 가운데 정렬 유지 */
    .hero,
    .opening,
    .footer-panel {
        justify-content: center;
    }

    .hero {
        justify-content: flex-start;
        padding-top: 112px;
    }

    h1 {
        font-size: 3.2rem;
        letter-spacing: -1px;
    }

    h2 {
        font-size: 2.4rem;
        letter-spacing: -0.5px;
    }

    p.fade-up,
    .content>p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .hero h1 {
        width: fit-content;
        max-width: none;
        font-size: 3.35rem;
    }

    .hero .content,
    .opening .content {
        max-width: 720px;
    }

    .hero-trust-grid,
    .proof-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .company-info {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 640px;
    }

    /* 피처 그리드 세로 정렬 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 30px;
    }

    .features-grid>.feature-card:first-child,
    .features-grid>.feature-card:not(:first-child) {
        grid-column: span 1;
    }

    .feature-card,
    .features-grid>.feature-card:first-child {
        padding: 22px 20px;
    }

    .feature-card h3 {
        font-size: 1.15rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }

    /* 배경 나무가 콘텐츠와 겹치지 않도록 크기 조정 */
    .tree {
        width: 100px;
    }

    .tree-left {
        left: 2vw;
    }

    .tree-right {
        right: 2vw;
    }
}

/* --- 모바일 (640px 이하) --- */
@media (max-width: 640px) {
    header {
        padding: 16px 5%;
    }

    /* 햄버거 메뉴 버튼 표시 */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 36px;
        height: 36px;
        cursor: pointer;
        background: none;
        border: none;
        padding: 4px;
        z-index: 200;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* 햄버거 열린 상태 (X 모양) */
    .hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* 데스크탑 nav 숨김 */
    .desktop-nav {
        display: none;
    }

    /* 드로어 뒤 어두운 배경 */
    #nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(31, 42, 51, 0.22);
        z-index: 140;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    #nav-backdrop.open {
        opacity: 1;
        pointer-events: all;
    }

    /* 모바일 사이드 드로어 nav */
    #main-nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 24px;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(80vw, 300px);
        padding: 60px 36px;
        background: rgba(248, 246, 241, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 150;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid rgba(31, 42, 51, 0.08);
    }

    #main-nav.open {
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }

    #main-nav a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-primary);
        text-decoration: none;
        transition: color 0.2s;
    }

    #main-nav a:hover,
    #main-nav a.active {
        color: var(--accent);
    }

    /* 타이포그래피 */
    h1 {
        font-size: 2.6rem;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 18px;
    }

    p.fade-up,
    .content>p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero h1 {
        width: auto;
        max-width: 100%;
        font-size: 1.92rem;
        line-height: 1.16;
        letter-spacing: -1.1px;
    }

    .hero-title-line {
        white-space: nowrap;
    }

    /* 버튼 */
    .btn {
        padding: 16px 32px;
        font-size: 1rem;
        border-radius: 16px;
    }

    /* 히어로 섹션 */
    .hero .content {
        padding-top: 8px;
        text-align: left;
    }

    .opening .content {
        text-align: left;
    }

    .hero-subtext {
        max-width: 100%;
        font-size: 0.98rem;
        line-height: 1.76;
    }

    .hero-eyebrow,
    .section-eyebrow {
        margin-bottom: 16px;
        padding: 7px 12px;
        font-size: 0.82rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 26px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-trust-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .scroll-indicator {
        display: none;
    }

    /* 서비스 아이콘 축소 */
    .anim-icon {
        margin-bottom: 18px;
    }

    .flexit-anim {
        width: 60px;
        height: 60px;
    }

    .flexit-anim .center {
        width: 20px;
        height: 20px;
        top: 20px;
        left: 20px;
    }

    .flexit-anim .orbit {
        width: 9px;
        height: 9px;
        top: 25px;
        left: 25px;
    }

    @keyframes orbit1 {
        0% {
            transform: rotate(0deg) translateX(32px) rotate(0deg);
        }

        100% {
            transform: rotate(360deg) translateX(32px) rotate(-360deg);
        }
    }

    @keyframes orbit2 {
        0% {
            transform: rotate(0deg) translateY(32px) rotate(0deg);
        }

        100% {
            transform: rotate(360deg) translateY(32px) rotate(-360deg);
        }
    }

    @keyframes orbit3 {
        0% {
            transform: rotate(0deg) translate(-25px, -25px) rotate(0deg);
        }

        100% {
            transform: rotate(360deg) translate(-25px, -25px) rotate(-360deg);
        }
    }

    .security-anim {
        width: 44px;
        height: 52px;
    }

    .edu-anim {
        font-size: 2.6rem;
        height: 60px;
    }

    /* 배경 애니메이션: 모바일에서 성능/가독성 위해 숨김 */
    .bg-anim {
        display: none;
    }

    /* 피처 그리드 */
    .features-grid {
        gap: 12px;
        margin-bottom: 24px;
    }

    .feature-card {
        padding: 18px 16px;
        border-radius: 14px;
    }

    .trust-card,
    .proof-card {
        padding: 18px 16px 20px;
        border-radius: 16px;
    }

    /* 로드맵 UI */
    .roadmap-ui {
        gap: 20px;
        margin-bottom: 24px;
    }

    .roadmap-ui::before {
        left: 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-content {
        padding: 18px 16px;
        border-radius: 14px;
    }

    .step-content h3 {
        font-size: 1.15rem;
    }

    .step-content p {
        font-size: 0.95rem;
    }

    /* 오프닝 섹션 인라인 폰트 오버라이드 */
    .opening h2 {
        font-size: 2.1rem !important;
        max-width: 100%;
    }

    .opening-title-line {
        white-space: normal;
    }

    .opening p {
        font-size: 1rem !important;
        margin-top: 0 !important;
    }

    /* 모바일 푸터 회사 정보 줄바꿈 */
    .company-info {
        gap: 10px;
    }

    .company-card {
        padding: 16px;
    }

    .company-card p {
        grid-template-columns: 1fr;
        gap: 2px;
        margin-bottom: 12px;
    }
}

/* --- 소형 모바일 (400px 이하) --- */
@media (max-width: 400px) {
    h1 {
        font-size: 2.1rem;
    }

    .hero h1 {
        font-size: 1.72rem;
        line-height: 1.18;
        letter-spacing: -0.9px;
    }

    .hero-subtext {
        font-size: 0.94rem !important;
        line-height: 1.72 !important;
    }

    h2 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .features-grid {
        gap: 10px;
    }

    .feature-card {
        padding: 15px 14px;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .roadmap-ui {
        gap: 15px;
    }

    .roadmap-ui::before {
        left: 18px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .step-content {
        padding: 15px 14px;
    }

    .step-content h3 {
        font-size: 1rem;
    }

    .opening h2 {
        font-size: 1.85rem !important;
    }
}