*{margin:0;padding:0;box-sizing:border-box}
:root{--bg:#edf3ef;--surface:#f8fcf9;--card:#fff;--text:#102018;--muted:#587063;--line:#d4e1d9;--primary:#196447;--primary-dark:#124833;--accent:#def3e7;--shadow:0 20px 60px rgba(16,32,24,.08);--radius:24px}
html{scroll-behavior:smooth}
body{font-family:Segoe UI,Arial,sans-serif;background:radial-gradient(circle at top,#fbfffd 0,#eef4f0 46%,#e4ece8 100%);color:var(--text);line-height:1.65}
img,video{display:block;max-width:100%;height:auto}
a{color:inherit}
main{max-width:1200px;margin:0 auto;padding:0 24px 88px}
.topbar{position:sticky;top:0;z-index:50;border-bottom:1px solid var(--line);background:rgba(255,255,255,.9);backdrop-filter:blur(14px)}
.topbar-inner{max-width:1200px;height:68px;margin:0 auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:800}
.brand-logo{width:28px;height:28px}
.brand-text{font-size:18px}
.menu{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.menu a{text-decoration:none;color:var(--muted);font-weight:700}
.menu a.active,.menu a:hover{color:var(--text)}
.topbar-actions{display:none}
.hero{padding:64px 0 16px}
.hero-content{display:grid;grid-template-columns:minmax(0,1fr);gap:26px;justify-items:center;text-align:center}
.hero-text{max-width:860px}
.breadcrumb ol{list-style:none;display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.breadcrumb li:not(:last-child)::after{content:"/";margin-left:10px;color:var(--muted)}
.breadcrumb a,.field-help,.muted,.section-header p,.content p,.aside-card p,.faq-item p,.stat-card span,.footer p{color:var(--muted)}
.eyebrow{margin-bottom:10px;font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);font-weight:800}
h1{margin-bottom:16px;font-size:clamp(2.3rem,5vw,4rem);line-height:1.05}
.lead{font-size:1.14rem;color:var(--muted)}
.section{margin-top:64px}
.section-header{max-width:820px}
.section-header h2{margin-bottom:10px;font-size:2rem;line-height:1.1}
.content p+p{margin-top:18px}
.surface-card{background:linear-gradient(180deg,#fbfefc 0,#eef6f1 100%);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.hero-actions,.cta-row,.preview-actions{display:flex;justify-content:center;gap:14px;flex-wrap:wrap}
.button-link,button{display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:14px 22px;border:none;border-radius:14px;background:var(--primary);color:#fff;font-size:1rem;font-weight:800;text-decoration:none;cursor:pointer;transition:transform .18s ease,background .18s ease,box-shadow .18s ease}
.button-link:hover,button:hover{background:var(--primary-dark);transform:translateY(-1px);box-shadow:0 12px 28px rgba(25,100,71,.2)}
.button-link.secondary{background:transparent;color:var(--text);border:1px solid var(--line)}
.button-link.secondary:hover{background:#fff}
.button-link.compact{min-height:46px;padding:12px 16px}
.tool-grid,.faq-grid,.footer-grid,.content-grid,.legal-grid,.stats-grid{display:grid;gap:20px}
.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:26px}
.tool-card,.faq-item,.content-article,.aside-card,.legal-card,.stat-card,.result-panel{padding:26px;border:1px solid var(--line);border-radius:24px;background:var(--card);box-shadow:var(--shadow)}
.tool-card{text-decoration:none;background:linear-gradient(180deg,#fbfefc 0,#eef6f1 100%)}
.tool-card:hover{transform:translateY(-3px)}
.tool-card h3{margin:8px 0 12px;font-size:1.9rem;line-height:1.08}
.tool-card p,.legal-card p{color:var(--muted)}
.tool-kicker,.pill{display:inline-flex;padding:6px 10px;border-radius:999px;background:var(--accent);font-size:.75rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--primary-dark)}
.converter-shell{max-width:100%;margin:0;padding:28px}
.converter-form{display:grid;gap:18px}
.file-picker{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:240px;padding:32px;text-align:center;border:1px dashed #bfd3c7;border-radius:24px;background:linear-gradient(180deg,#fbfffc 0,#f1f8f4 100%)}
.file-picker-button{display:inline-flex;align-items:center;justify-content:center;min-width:340px;min-height:96px;padding:22px 34px;border-radius:24px;background:linear-gradient(135deg,#196447 0,#2b8c66 100%);color:#fff;font-size:1.9rem;font-weight:900;letter-spacing:.01em;box-shadow:0 24px 56px rgba(25,100,71,.24);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.file-picker-button:hover{transform:translateY(-2px);box-shadow:0 30px 62px rgba(25,100,71,.28);background:linear-gradient(135deg,#124833 0,#216b50 100%)}
.file-picker-name{font-size:1.05rem;font-weight:800}
.converter-row label{display:block;margin-bottom:8px;font-weight:800}
input,select,textarea{width:100%;padding:14px 16px;border:1px solid #cfe0d6;border-radius:14px;background:#fbfefc;color:var(--text);font:inherit}
button:disabled,select:disabled{opacity:.6;cursor:not-allowed}
.status-panel{display:grid;align-content:start;gap:12px;max-width:100%;margin:12px 0 0}
.progress{height:12px;background:#dbe6df;border-radius:999px;overflow:hidden}
.progress>span{display:block;height:100%;width:0;background:linear-gradient(90deg,#196447,#49aa78);transition:width .3s}
.status{padding:14px 16px;border:1px solid #d8e8df;border-radius:14px;background:#f8fffb;color:#205540}
.content-grid{grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);align-items:start}
.tool-main-grid{align-items:start}
.content-article{padding:32px}
.content-article h3,.aside-card h3,.faq-item h3,.legal-card h3,.result-panel h3{margin-bottom:10px;font-size:1.2rem;line-height:1.15}
.content-article h3{margin-top:26px}
.content-article h3:first-of-type{margin-top:0}
.content-article ul,.aside-card ul,.legal-card ul{padding-left:18px;color:var(--muted)}
.aside-stack{display:grid;gap:20px}
.faq-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:24px}
.trim-stage{display:grid;gap:18px;padding:22px;border:1px solid #203e72;border-radius:28px;background:linear-gradient(180deg,#103d76 0,#1c2f67 100%);box-shadow:0 24px 60px rgba(16,39,92,.28)}
.trim-stage-header{display:flex;justify-content:space-between;gap:12px;align-items:center;color:#d9ecff;flex-wrap:wrap}
.trim-stage-header strong{font-size:1.02rem}
.trim-stage-subtitle{font-size:.94rem;color:#8fb8e8}
.video-preview-shell{display:grid;gap:14px}
.cinematic-shell{padding:18px;border:1px solid rgba(129,185,255,.16);border-radius:24px;background:linear-gradient(180deg,rgba(8,20,53,.55) 0,rgba(12,26,67,.86) 100%)}
#preview,.result-video{width:100%;min-height:280px;max-height:520px;object-fit:contain;background:#0a1534;border:1px solid #1d2f5f;border-radius:22px}
.timeline-designer{display:grid;gap:12px}
.timeline-head,.timeline-scale{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:center}
.timeline-scale span:nth-child(2),.timeline-head span:nth-child(2){text-align:center}
.timeline-scale span:last-child,.timeline-head span:last-child{text-align:right}
.time-chip{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;background:#f8fbff;color:#143d74;font-weight:800;box-shadow:0 8px 20px rgba(2,14,43,.22)}
.muted-chip{background:rgba(255,255,255,.1);color:#8fb8e8;box-shadow:none}
.timeline-track-shell{position:relative;height:112px;padding:20px 18px 14px;border-radius:24px;background:linear-gradient(180deg,#213b78 0,#132856 100%);overflow:hidden}
.timeline-track-bg{position:absolute;left:18px;right:18px;top:22px;height:62px;border-radius:14px;background:repeating-linear-gradient(90deg,rgba(255,255,255,.18) 0 24px,rgba(255,255,255,.08) 24px 48px),linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.04));opacity:.95}
.timeline-frame-strip{position:absolute;left:18px;right:18px;top:22px;height:62px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(32px,1fr);gap:2px;overflow:hidden;border-radius:14px;pointer-events:none;z-index:1}
.timeline-frame{min-width:0;height:62px;background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.04));background-size:cover;background-position:center;border-radius:2px;opacity:.92}
.timeline-frame.empty{background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.04))}
.timeline-selection-window{position:absolute;top:22px;height:62px;border-top:2px solid #17e4ff;border-bottom:2px solid #17e4ff;background:rgba(23,228,255,.1);box-shadow:inset 0 0 0 1px rgba(23,228,255,.14);z-index:2}
.timeline-selection-window::before,.timeline-selection-window::after{content:"";position:absolute;top:-2px;width:14px;height:66px;border-radius:10px;border:3px solid #0f2e59;background:#17e4ff;box-shadow:0 0 0 2px rgba(255,255,255,.18)}
.timeline-selection-window::before{left:-2px}
.timeline-selection-window::after{right:-2px}
.timeline-selection{position:absolute;top:18px;bottom:14px;width:2px;border-radius:999px;background:#fff;box-shadow:0 0 0 1px rgba(255,255,255,.35);z-index:3}
.trim-handle,.timeline-playhead{position:absolute;left:18px;right:18px;top:0;bottom:0;width:calc(100% - 36px);margin:auto;background:transparent;appearance:none;-webkit-appearance:none;pointer-events:none}
.trim-handle{pointer-events:auto}
.trim-handle::-webkit-slider-runnable-track,.timeline-playhead::-webkit-slider-runnable-track{height:112px;background:transparent}
.trim-handle::-moz-range-track,.timeline-playhead::-moz-range-track{height:112px;background:transparent}
.trim-handle::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:72px;border:none;background:transparent;box-shadow:none;margin-top:18px;cursor:ew-resize}
.trim-handle::-moz-range-thumb{width:14px;height:72px;border:none;background:transparent;box-shadow:none;cursor:ew-resize}
.timeline-playhead::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:84px;background:transparent;border:none;margin-top:12px}
.timeline-playhead::-moz-range-thumb{width:14px;height:84px;background:transparent;border:none}
.timeline-scale{font-size:.95rem;color:#00d7ff;font-weight:700}
.trim-grid,.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.trim-grid-fields{margin-top:4px}
.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.stat-card{padding:18px 20px}
.stat-card strong{display:block;margin-top:8px;font-size:1.06rem}
.result-panel{display:grid;gap:12px}
.result-download{justify-self:start}
.footer{margin-top:72px;padding:42px 24px;background:linear-gradient(135deg,#0d2318 0,#123726 100%);color:#e1eee7}
.footer-grid{max-width:1200px;margin:0 auto;grid-template-columns:minmax(260px,2fr) repeat(3,minmax(140px,1fr));align-items:start}
.footer h3{margin-bottom:12px;font-size:1rem}
.footer nav{display:grid;gap:8px;align-content:start}
.footer a{display:block;color:#dce9e2;text-decoration:none}
.footer a:hover{color:#fff}
.footer-copy{max-width:1200px;margin:18px auto 0;padding-top:18px;border-top:1px solid rgba(255,255,255,.12);color:#a9c0b4;font-size:.94rem}
.legal-hero,.page-hero{padding-top:40px}
.legal-grid{grid-template-columns:minmax(0,1fr);margin-top:24px}
.legal-card h2{margin-bottom:12px;font-size:1.6rem}
.legal-card p+p,.legal-card ul,.legal-card address{margin-top:14px;color:var(--muted)}
@media (max-width:980px){.topbar-inner{height:auto;align-items:flex-start;flex-direction:column;padding:14px 20px 18px}.menu{gap:12px 16px}.tool-grid,.faq-grid,.footer-grid,.content-grid,.legal-grid,.trim-grid,.stats-grid,.timeline-head,.timeline-scale{grid-template-columns:1fr}.file-picker{min-height:220px;padding:22px}.file-picker-button{min-width:100%;font-size:1.55rem}.content-article,.tool-card,.faq-item,.aside-card,.legal-card,.converter-shell,.result-panel,.stat-card,.trim-stage{padding:22px}.timeline-head span,.timeline-scale span{text-align:left!important}}
@media (max-width:640px){main{padding:0 18px 72px}.hero{padding-top:42px}.section{margin-top:52px}.section-header h2{font-size:1.7rem}.lead{font-size:1.03rem}.button-link,button{width:100%}.hero-actions,.cta-row,.preview-actions{flex-direction:column}.file-picker-button{font-size:1.35rem;min-height:84px}.breadcrumb ol{justify-content:flex-start}.hero-content{text-align:left;justify-items:stretch}.result-download{justify-self:stretch}.timeline-track-shell{height:104px;padding:18px 14px 12px}.timeline-track-bg,.timeline-frame-strip,.timeline-selection-window{left:14px;right:14px;top:20px;height:58px}.timeline-selection{top:16px;bottom:12px}.trim-handle,.timeline-playhead{left:14px;right:14px;width:calc(100% - 28px)}.footer{padding:32px 18px}}
