/* FLiCK Shorts MVP의 기본 스타일을 정의합니다. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, Pretendard, "Noto Sans KR", Arial, sans-serif; color: #11152a; background: #fff; }
button, input, select { font: inherit; }
button, label { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.navbar { height: 76px; display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: auto; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand b { font-weight: 500; color: #737991; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 900; background: linear-gradient(135deg,#7658ff,#25a8ff); }
.nav-links { display: flex; gap: 34px; color: #6c7184; font-size: 14px; }
.nav-links a:hover { color: #6653e8; }
.nav-cta { border: 0; border-radius: 10px; padding: 11px 17px; color: #fff; background: #171a2b; font-weight: 700; font-size: 13px; }

.hero { min-height: 500px; max-width: 1180px; margin: auto; padding: 50px 24px 45px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; }
.eyebrow, .section-heading > span { color: #6957e9; letter-spacing: .12em; font-weight: 800; font-size: 11px; }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #7a62ff; }
.hero h1 { margin: 18px 0; font-size: clamp(42px,5vw,68px); line-height: 1.1; letter-spacing: -.055em; }
.hero h1 strong { background: linear-gradient(90deg,#6952e8,#229ee9); -webkit-background-clip: text; color: transparent; }
.hero p { color: #74798d; line-height: 1.8; font-size: 16px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.primary-btn, .ghost-btn { border-radius: 12px; padding: 14px 20px; font-weight: 800; border: 1px solid transparent; }
.primary-btn { color: white; background: linear-gradient(100deg,#7055ed,#318fe8); box-shadow: 0 12px 30px #6658e832; }
.primary-btn span { margin-left: 14px; }
.primary-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.ghost-btn { color: #51566b; background: white; border-color: #e3e5eb; }
.trust-row { display: flex; gap: 18px; margin-top: 22px; color: #8b8fa0; font-size: 11px; }

.hero-visual { height: 420px; display: grid; place-items: center; }
.phone { width: 285px; height: 505px; padding: 9px; border-radius: 39px; background: #111425; box-shadow: 0 35px 80px #1a1d3030; transform: rotate(2deg); }
.phone-top { height: 25px; display: grid; place-items: center; }
.camera { width: 72px; height: 19px; border-radius: 20px; background: #090b13; }
.phone-screen { height: calc(100% - 25px); padding: 17px 15px; border-radius: 29px; background: #f7f8fb; overflow: hidden; }
.mini-header { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 800; }
.mini-logo { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: white; background: linear-gradient(135deg,#775cff,#24a6ff); }
.mock-video { height: 300px; margin-top: 15px; display: grid; place-items: center; position: relative; border-radius: 10px; overflow: hidden; color: #fff; background: linear-gradient(145deg,#24264a,#6e5ae8 55%,#1d9fe8); }
.mock-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 65%,#101327aa); }
.mock-video span { position: absolute; z-index: 1; bottom: 15px; left: 15px; font-weight: 900; }
.mock-play { position: relative; z-index: 1; width: 55px; height: 55px; display: grid; place-items: center; border-radius: 50%; background: #ffffff33; backdrop-filter: blur(10px); }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.tool-grid div { padding: 10px 8px; border: 1px solid #e5e7ed; border-radius: 9px; background: white; font-size: 9px; font-weight: 800; text-align: center; }
.mini-create { width: 100%; margin-top: 9px; border: 0; border-radius: 9px; padding: 10px; color: white; background: #1b1e2d; font-size: 9px; font-weight: 800; }

.editor-section { max-width: 1180px; margin: auto; padding: 40px 24px 105px; }
.section-heading h2 { margin: 12px 0 10px; font-size: 39px; line-height: 1.2; letter-spacing: -.04em; }
.section-heading p { max-width: 700px; margin: 0; color: #85899a; font-size: 13px; line-height: 1.7; }
.editor-card { margin-top: 38px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; padding: 20px; border: 1px solid #e5e6ee; border-radius: 24px; background: #fafbfe; }
.upload-panel, .preview-panel { background: #fff; border: 1px solid #e8e9f0; border-radius: 18px; padding: 20px; }
.dropzone { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed #cfd2df; border-radius: 15px; color: #63687a; text-align: center; transition: .2s; }
.dropzone.dragging, .dropzone:hover { border-color: #7055ed; background: #f8f6ff; }
.upload-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: #7055ed; background: #f0edff; font-size: 24px; }
.dropzone strong { color: #292d40; font-size: 14px; }
.dropzone span { color: #9b9eac; font-size: 11px; }
.file-info { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 12px; border-radius: 11px; background: #f7f8fb; }
.file-info b, .file-info span { display: block; }
.file-info b { font-size: 12px; max-width: 330px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-info span { margin-top: 4px; color: #969aaa; font-size: 10px; }
.small-btn { border: 1px solid #e2e4eb; border-radius: 8px; padding: 7px 10px; background: #fff; color: #656a7c; font-size: 11px; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 15px; }
.control-group { display: flex; flex-direction: column; gap: 7px; }
.control-group:last-child { grid-column: 1 / -1; }
.control-group label { color: #555a6d; font-size: 11px; font-weight: 800; }
.control-group input, .control-group select { width: 100%; padding: 11px 12px; border: 1px solid #e2e4eb; border-radius: 10px; outline: none; background: #fff; color: #252a3c; }
.control-group input:focus, .control-group select:focus { border-color: #7055ed; }
.audio-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 11px; border-radius: 10px; background: #f7f8fb; }
.audio-btn { color: #5f4cdd; font-weight: 800; font-size: 11px; }
.audio-row span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8d91a1; font-size: 10px; }
.render-btn { width: 100%; margin-top: 15px; }
.progress-wrap { margin-top: 15px; }
.progress-head { display: flex; justify-content: space-between; margin-bottom: 7px; color: #686d80; font-size: 10px; }
.progress-bar { height: 7px; border-radius: 10px; overflow: hidden; background: #eceef4; }
.progress-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#7055ed,#318fe8); transition: width .2s; }
.notice { margin: 12px 0 0; color: #999dab; font-size: 10px; line-height: 1.6; }
.preview-head { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 12px; }
.preview-head span { color: #7a6ae1; font-weight: 800; }
.phone-preview { width: min(100%, 320px); aspect-ratio: 9 / 16; position: relative; margin: auto; overflow: hidden; border-radius: 17px; background: #101321; }
.phone-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.empty-preview { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #fff; text-align: center; background: radial-gradient(circle at 50% 40%,#35396a,#101321 70%); }
.empty-preview span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: #ffffff18; }
.empty-preview b { font-size: 12px; }
.empty-preview small { color: #a9acc0; font-size: 9px; }
.preview-overlay { position: absolute; left: 15px; right: 15px; bottom: 50px; color: #fff; font-size: 21px; font-weight: 900; line-height: 1.2; text-align: center; text-shadow: 0 2px 6px #000; pointer-events: none; }
.download-btn { display: block; margin-top: 14px; padding: 12px; border-radius: 10px; color: #fff; background: #171a2b; text-align: center; font-size: 11px; font-weight: 800; }

.section { max-width: 1180px; margin: auto; padding: 105px 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 45px; }
.feature-card { padding: 27px; min-height: 215px; border: 1px solid #e8e9ef; border-radius: 18px; }
.feature-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; font-weight: 900; font-size: 17px; margin-bottom: 28px; }
.purple { color:#6953e8; background:#eeeaff; }.blue { color:#238fe1; background:#e6f5ff; }.pink { color:#e05f9d; background:#fff0f7; }.cyan { color:#21a7a1; background:#e8fbfa; }
.feature-card h3 { margin: 0 0 8px; font-size: 16px; }.feature-card p { margin: 0; color:#8a8e9e; font-size:12px; line-height:1.7; }
.how-section { padding: 110px 24px; background:#fafafe; }.center { text-align:center; }
.steps { max-width:920px; margin:55px auto 0; display:flex; align-items:center; justify-content:center; }
.step { text-align:center; width:260px; }.step i { display:grid; place-items:center; width:55px; height:55px; margin:0 auto 17px; border-radius:50%; background:#f0edff; color:#6a56e7; font-style:normal; font-weight:900; }.step h3 { font-size:15px; margin:0 0 8px; }.step p { margin:0; color:#8d91a0; font-size:11px; line-height:1.7; }.step-line { width:100px; height:1px; background:#dedfea; }
footer { max-width:1180px; margin:auto; padding:28px 24px 45px; display:flex; justify-content:space-between; align-items:center; border-top:1px solid #eeeef3; } footer .brand { font-size:15px; } footer .brand-mark { width:28px;height:28px;font-size:12px; } footer p { color:#a0a3af;font-size:10px; }

@media (max-width: 850px) {
  .nav-links { display:none; }.hero { grid-template-columns:1fr; padding-top:45px; text-align:center; }.eyebrow { justify-content:center; }.hero-actions,.trust-row { justify-content:center; }.hero-visual { margin-top:15px; transform:scale(.9); }.editor-card { grid-template-columns:1fr; }.feature-grid { grid-template-columns:repeat(2,1fr); }.steps { flex-direction:column; gap:25px; }.step-line { width:1px; height:45px; }
}
@media (max-width: 520px) {
  .navbar { padding:0 16px; }.nav-cta { padding:9px 12px;font-size:11px; }.hero { padding-left:16px;padding-right:16px; }.hero h1 { font-size:42px; }.hero p { font-size:14px; }.hero-actions { flex-direction:column; }.hero-visual { transform:scale(.72); height:420px; margin-top:-25px; }.editor-section,.section { padding-left:16px; padding-right:16px; }.section-heading h2 { font-size:30px; }.feature-grid { grid-template-columns:1fr; }.controls { grid-template-columns:1fr; }.control-group:last-child { grid-column:auto; }.phone-preview { width: min(100%, 290px); }
}
/* 1단계 제작 흐름과 개발 로드맵을 표시합니다. */
.stage-track{display:flex;align-items:center;margin:34px 0 20px;padding:15px 18px;border:1px solid #e7e8ef;border-radius:15px;background:#fafbfe}.stage{display:flex;align-items:center;gap:8px;color:#888d9d;font-size:11px;font-weight:800;white-space:nowrap}.stage i{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#eceef4;font-style:normal}.stage.active{color:#6653e8}.stage.active i{color:#fff;background:linear-gradient(135deg,#7055ed,#318fe8)}.stage-line{flex:1;height:1px;margin:0 10px;background:#dedfea}.roadmap-section{padding:110px 24px;background:#fafafe}.roadmap{max-width:860px;margin:45px auto 0;display:grid;gap:12px}.roadmap-item{display:grid;grid-template-columns:65px 1fr;gap:18px;align-items:center;padding:20px;border:1px solid #e7e8ef;border-radius:17px;background:#fff}.roadmap-item.active{border-color:#bcb2ff;box-shadow:0 10px 35px #6658e812}.roadmap-number{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;background:#eceef4;color:#73788a;font-weight:900}.roadmap-item.active .roadmap-number{color:#fff;background:linear-gradient(135deg,#7055ed,#318fe8)}.roadmap-item span{color:#7565df;font-size:10px;font-weight:800}.roadmap-item h3{margin:4px 0 5px;font-size:15px}.roadmap-item p{margin:0;color:#8c90a0;font-size:11px;line-height:1.6}@media(max-width:850px){.stage-track{overflow-x:auto}.stage-line{min-width:25px}}@media(max-width:520px){.roadmap-section{padding-left:16px;padding-right:16px}.roadmap-item{grid-template-columns:1fr}}


/* 2단계 AI 자동 자막 UI를 표시합니다. */
.secondary-btn{width:100%;margin-top:12px;padding:13px 16px;border:1px solid #dcdbea;border-radius:11px;background:#f7f6ff;color:#5f4bd6;font-weight:800;font-size:12px}.secondary-btn:disabled{opacity:.45;cursor:not-allowed}
.subtitle-box{margin-top:14px;padding:14px;border:1px solid #e5e3f0;border-radius:13px;background:#fbfaff}.subtitle-head{display:flex;align-items:center;justify-content:space-between;font-size:11px}.subtitle-head span{color:#7b70a8;font-size:10px}.subtitle-options{display:flex;align-items:center;gap:9px;margin-top:11px}.subtitle-options label{font-size:10px;font-weight:800;color:#666a7c}.subtitle-options select{padding:7px 9px;border:1px solid #e1e2ea;border-radius:8px;background:#fff;font-size:10px}.subtitle-list{display:grid;gap:7px;margin-top:11px;max-height:250px;overflow:auto}.subtitle-item{display:grid;grid-template-columns:48px 1fr;gap:8px;align-items:center}.subtitle-time{font-size:8px;line-height:1.35;color:#9296a6;text-align:center}.subtitle-input{width:100%;padding:9px;border:1px solid #e0e1e9;border-radius:8px;background:#fff;color:#2b2f40;font-size:10px;outline:none}.subtitle-input:focus{border-color:#7055ed}.subtitle-empty{padding:18px;text-align:center;color:#999dab;font-size:10px;background:#fff;border-radius:9px}


/* 3단계 비트 기반 자동 편집 선택 UI입니다. */
.beat-toggle{display:flex;align-items:center;gap:10px;margin-top:12px;padding:12px 13px;border:1px solid #e4e5ec;border-radius:11px;background:#fafaff}.beat-toggle input{width:16px;height:16px;accent-color:#7055ed}.beat-toggle span{display:flex;flex-direction:column;gap:3px}.beat-toggle b{font-size:11px;color:#3f4354}.beat-toggle small{font-size:9px;color:#969aaa}

/* 4단계 AI 음성 생성 UI입니다. */
.voice-box{margin-top:14px;padding:15px;border:1px solid #e3e2ef;border-radius:13px;background:#fbfaff}
.voice-head{display:flex;align-items:center;justify-content:space-between;font-size:11px}.voice-head span{color:#7b70a8;font-size:10px}
.voice-box textarea{width:100%;min-height:90px;margin-top:11px;padding:11px;border:1px solid #e0e1e9;border-radius:9px;resize:vertical;outline:none;font:inherit;font-size:11px;color:#2b2f40}.voice-box textarea:focus{border-color:#7055ed}
.voice-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:11px}.voice-options>div{display:flex;flex-direction:column;gap:6px}.voice-options label{font-size:10px;font-weight:800;color:#666a7c}.voice-options select{padding:8px 9px;border:1px solid #e1e2ea;border-radius:8px;background:#fff;font-size:10px;color:#303447}.voice-options input[type=range]{width:100%;accent-color:#7055ed}.voice-options output{color:#777c8e;font-size:9px}
.voice-actions{display:flex;gap:8px;align-items:center}.voice-actions .secondary-btn{flex:1}.voice-box audio{width:100%;height:35px;margin-top:10px}.voice-note{margin:9px 0 0;color:#999dab;font-size:9px;line-height:1.5}
@media(max-width:520px){.voice-options{grid-template-columns:1fr}}

/* 5단계 AI 이미지 생성 UI입니다. */
.image-box{margin-top:14px;padding:15px;border:1px solid #e3e2ef;border-radius:13px;background:#fbfaff}
.image-head{display:flex;align-items:center;justify-content:space-between;font-size:11px}.image-head span{color:#7b70a8;font-size:10px}
.image-box textarea{width:100%;min-height:90px;margin-top:11px;padding:11px;border:1px solid #e0e1e9;border-radius:9px;resize:vertical;outline:none;font:inherit;font-size:11px;color:#2b2f40}.image-box textarea:focus{border-color:#7055ed}
.image-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:11px}.image-options>div{display:flex;flex-direction:column;gap:6px}.image-options label{font-size:10px;font-weight:800;color:#666a7c}.image-options select{padding:8px 9px;border:1px solid #e1e2ea;border-radius:8px;background:#fff;font-size:10px;color:#303447}
.image-key-row{display:flex;gap:7px;margin-top:10px}.image-key-row input{min-width:0;flex:1;padding:9px;border:1px solid #e0e1e9;border-radius:8px;font-size:10px;outline:none}
.image-actions{display:flex;gap:8px;margin-top:10px}.image-actions .secondary-btn{flex:1}
.image-result{margin-top:10px}.image-result img{display:block;width:100%;max-height:480px;object-fit:contain;border-radius:10px;background:#111}
.image-result .download-btn{display:block;margin-top:8px;text-align:center}
.image-note{margin:9px 0 0;color:#999dab;font-size:9px;line-height:1.5}
@media(max-width:520px){.image-options{grid-template-columns:1fr}}

/* 6단계 AI 영상 생성 UI입니다. */
.video-ai-box{margin-top:14px;padding:15px;border:1px solid #e3e2ef;border-radius:13px;background:#fbfaff}
.video-ai-head{display:flex;align-items:center;justify-content:space-between;font-size:11px}.video-ai-head span{color:#7b70a8;font-size:10px}
.video-ai-box textarea{width:100%;min-height:90px;margin-top:11px;padding:11px;border:1px solid #e0e1e9;border-radius:9px;resize:vertical;outline:none;font:inherit;font-size:11px;color:#2b2f40}.video-ai-box textarea:focus{border-color:#7055ed}
.video-ai-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:11px}.video-ai-options>div{display:flex;flex-direction:column;gap:6px}.video-ai-options label{font-size:10px;font-weight:800;color:#666a7c}.video-ai-options select{padding:8px 9px;border:1px solid #e1e2ea;border-radius:8px;background:#fff;font-size:10px;color:#303447}
.video-ai-key-row{display:flex;gap:7px;margin-top:10px}.video-ai-key-row input{min-width:0;flex:1;padding:9px;border:1px solid #e0e1e9;border-radius:8px;font-size:10px;outline:none}
.video-ai-actions{display:flex;gap:8px;margin-top:10px}.video-ai-actions .secondary-btn{flex:1}
.video-ai-result{margin-top:10px}.video-ai-result video{display:block;width:100%;max-height:480px;border-radius:10px;background:#111}.video-ai-result .download-btn{display:block;margin-top:8px;text-align:center}
.video-ai-note{margin:9px 0 0;color:#999dab;font-size:9px;line-height:1.5}
@media(max-width:520px){.video-ai-options{grid-template-columns:1fr}}

/* AI 이미지/영상 생성 기능을 메인 쇼츠 제작 영역과 분리합니다. */
.ai-tools-menu{margin-top:14px;border:1px solid #e4e1f0;border-radius:13px;background:#fbfaff;overflow:hidden}
.ai-tools-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;padding:13px 15px;border:0;background:transparent;color:#353748;font:700 12px inherit;cursor:pointer}
.ai-tools-toggle span{font-size:16px;color:#7566b7}
.ai-tools-toggle.open{background:#f5f2ff}
.ai-tools-content{display:none;padding:0 13px 13px}
.ai-tools-content.open{display:block}
.ai-tools-title{padding:4px 2px 10px;color:#9698a7;font-size:9px}
.ai-tools-content .video-ai-box{margin-top:0}

/* 메인 쇼츠 자동생성과 선택 기능을 탭으로 분리합니다. */
.editor-tabs{display:flex;gap:8px;margin:0 0 14px;padding:4px;border:1px solid #e6e4ef;border-radius:12px;background:#f7f6fb}
.editor-tab{flex:1;padding:11px 12px;border:0;border-radius:9px;background:transparent;color:#858799;font:700 11px inherit;cursor:pointer}
.editor-tab.active{background:#fff;color:#5f4bd8;box-shadow:0 2px 8px rgba(70,60,120,.08)}
.editor-tab-panel[hidden]{display:none}
.extra-panel-title{display:flex;justify-content:space-between;align-items:center;margin:2px 0 12px;padding:0 2px;color:#303345;font-size:12px}
.extra-panel-title span{color:#999baa;font-size:9px}
.editor-extra-panel{margin:0}

/* 추가 기능 탭에서는 AI 소재 메뉴를 한 번 더 접지 않고 바로 보여줍니다. */
.editor-extra-panel .ai-tools-toggle{display:none}
.editor-extra-panel .ai-tools-content{display:block;padding:0}

/* 쇼츠 자동생성과 추가 기능을 서로 독립된 상위 탭으로 표시합니다. */
.app-tabs{position:sticky;top:0;z-index:20;display:flex;justify-content:center;gap:6px;padding:10px 18px;border-bottom:1px solid #e8e6f0;background:rgba(255,255,255,.94);backdrop-filter:blur(12px)}
.app-tab{min-width:150px;padding:11px 22px;border:1px solid #e3e1eb;border-radius:10px;background:#fff;color:#858796;font:700 12px inherit;cursor:pointer;transition:.18s}
.app-tab.active{border-color:#6b58e8;background:#6b58e8;color:#fff;box-shadow:0 5px 14px rgba(92,74,210,.16)}
.extra-page{padding:54px 20px 80px;min-height:70vh}
.extra-page .section-heading{text-align:center}
.extra-page-card{max-width:860px;margin:28px auto 0}
.extra-page-card .ai-tools-menu{margin-top:0;border:0;background:transparent;overflow:visible}
.extra-page-card .ai-tools-content{display:block;padding:0}
.extra-page-card .ai-tools-title{display:none}
.extra-page-card .image-box,.extra-page-card .video-ai-box{margin-top:14px}
.extra-page-card .ai-tools-toggle{display:none}
@media(max-width:560px){.app-tab{min-width:0;flex:1;padding:10px 12px}.app-tabs{padding:8px 10px}.extra-page{padding:38px 14px 60px}}
/* 첫 진입은 랜딩 화면만 보여주고 제작 버튼으로 편집 화면을 엽니다. */
.navbar{opacity:0;pointer-events:none;transition:opacity .2s ease}
.navbar.visible{opacity:1;pointer-events:auto}
.hero{min-height:100vh;box-sizing:border-box}
.editor-section[hidden],.roadmap-section[hidden]{display:none!important}
