﻿    /* ═══════════════════════════════════════════
       CSS CUSTOM PROPERTIES
    ═══════════════════════════════════════════ */
    :root {
      --bg-primary: #0a0f1e;
      --bg-secondary: #0f172a;
      --bg-card: #131c30;
      --bg-card2: #1a2540;
      --accent: #4f8ef7;
      --accent2: #7c5cfc;
      --accent3: #06d6a0;
      --accent-glow: rgba(79,142,247,0.25);
      --accent2-glow: rgba(124,92,252,0.2);
      --text-primary: #f0f4ff;
      --text-secondary: #8b9dc3;
      --text-muted: #4a5c80;
      --border: rgba(79,142,247,0.15);
      --border2: rgba(255,255,255,0.07);
      --radius: 14px;
      --radius-sm: 8px;
      --shadow: 0 4px 32px rgba(0,0,0,0.45);
      --font-display: 'Outfit', sans-serif;
      --font-body: 'Inter', sans-serif;
      --nav-h: 64px;
      --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    }

    /* ═══════════════════════════════════════════
       RESET & BASE
    ═══════════════════════════════════════════ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
    body {
      font-family: var(--font-body);
      background: var(--bg-primary);
      color: var(--text-primary);
      line-height: 1.6;
      overflow-x: hidden;
    }
    img { max-width: 100%; height: auto; display: block; }
    a { color: var(--accent); text-decoration: none; transition: var(--transition); }
    a:hover { color: var(--accent3); }
    button { cursor: pointer; border: none; font-family: var(--font-body); }
    input, select, textarea { font-family: var(--font-body); }
    ul { list-style: none; }

    /* ═══════════════════════════════════════════
       SCROLLBAR
    ═══════════════════════════════════════════ */
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: var(--bg-secondary); }
    ::-webkit-scrollbar-thumb { background: var(--accent2); border-radius: 3px; }

    /* ═══════════════════════════════════════════
       UTILITY
    ═══════════════════════════════════════════ */
    .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
    .badge {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 4px 12px; border-radius: 100px;
      font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
      background: rgba(79,142,247,0.12); color: var(--accent); border: 1px solid var(--border);
    }
    .btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 12px 24px; border-radius: var(--radius-sm);
      font-size: 0.9rem; font-weight: 600;
      transition: var(--transition); cursor: pointer;
    }
    .btn-primary {
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      color: #fff; border: none;
      box-shadow: 0 0 20px var(--accent-glow);
    }
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 0 32px rgba(79,142,247,0.45);
      color: #fff;
    }
    .btn-outline {
      background: transparent; color: var(--text-primary);
      border: 1px solid var(--border2);
    }
    .btn-outline:hover {
      border-color: var(--accent); color: var(--accent);
      background: rgba(79,142,247,0.07);
    }
    .btn-ghost {
      background: rgba(255,255,255,0.06); color: var(--text-secondary);
      border: 1px solid var(--border2); font-size: 0.82rem;
    }
    .btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
    .section-label {
      font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--accent); margin-bottom: 12px; display: block;
    }
    .section-title {
      font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
      font-weight: 800; line-height: 1.2; color: var(--text-primary);
    }
    .section-title span { color: var(--accent); }
    .section-desc {
      font-size: 1rem; color: var(--text-secondary); max-width: 600px; line-height: 1.7;
    }

    /* ═══════════════════════════════════════════
       RANDOM TOOLS TICKER
    ═══════════════════════════════════════════ */
    .tools-ticker {
      background: linear-gradient(90deg, var(--bg-secondary), var(--bg-card));
      border-bottom: 1px solid var(--border2);
      padding: 8px 0; overflow: hidden; position: relative;
    }
    .ticker-inner {
      display: flex; align-items: center; gap: 0;
      animation: tickerSlide 38s linear infinite;
      white-space: nowrap; width: max-content;
    }
    .ticker-inner:hover { animation-play-state: paused; }
    @keyframes tickerSlide {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
    .ticker-item {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 4px 18px;
      font-size: 0.78rem; font-weight: 500; color: var(--text-secondary);
      border-right: 1px solid var(--border2); white-space: nowrap;
      transition: var(--transition);
    }
    .ticker-item:hover { color: var(--accent3); }
    .ticker-icon { font-size: 0.85rem; flex-shrink: 0; }

    /* ═══════════════════════════════════════════
       NAVIGATION
    ═══════════════════════════════════════════ */
    .navbar {
      position: sticky; top: 0; z-index: 100;
      background: rgba(10,15,30,0.92);
      backdrop-filter: blur(20px) saturate(1.5);
      -webkit-backdrop-filter: blur(20px) saturate(1.5);
      border-bottom: 1px solid var(--border2);
      height: var(--nav-h);
    }
    .nav-inner {
      display: flex; align-items: center; justify-content: space-between;
      height: 100%; gap: 12px; max-width: 1280px; margin: 0 auto; padding: 0 20px;
    }
    .nav-logo {
      display: flex; align-items: center; gap: 10px;
      font-family: var(--font-display); font-size: 1.15rem; font-weight: 800;
      color: var(--text-primary); flex-shrink: 0;
    }
    .nav-logo .logo-icon {
      width: 34px; height: 34px; border-radius: 8px;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      display: flex; align-items: center; justify-content: center;
      font-size: 1rem; flex-shrink: 0;
    }
    .nav-menu {
      display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center;
    }
    .nav-item { position: relative; }
    .nav-link {
      display: flex; align-items: center; gap: 5px;
      padding: 8px 12px; border-radius: var(--radius-sm);
      font-size: 0.85rem; font-weight: 500; color: var(--text-secondary);
      transition: var(--transition); cursor: pointer; white-space: nowrap;
    }
    .nav-link:hover, .nav-link.active { color: var(--text-primary); background: rgba(255,255,255,0.06); }
    .nav-chevron { font-size: 0.65rem; transition: transform 0.2s; }
    .nav-item:hover .nav-chevron { transform: rotate(180deg); }

    /* DROPDOWN */
    .nav-dropdown {
      position: absolute; top: calc(100% + 8px); left: 50%;
      transform: translateX(-50%) translateY(-8px);
      background: var(--bg-card); border: 1px solid var(--border2);
      border-radius: var(--radius); padding: 8px;
      min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
      opacity: 0; visibility: hidden; pointer-events: none;
      transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
      box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    }
    .nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; pointer-events: all; transform: translateX(-50%) translateY(0); }
    .dd-item {
      display: flex; align-items: center; gap: 8px;
      padding: 8px 12px; border-radius: var(--radius-sm);
      font-size: 0.82rem; color: var(--text-secondary); transition: var(--transition);
    }
    .dd-item:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
    .dd-icon { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; }
    .nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    .hamburger {
      display: none; flex-direction: column; gap: 5px;
      background: none; border: none; padding: 8px; cursor: pointer;
    }
    .hamburger span {
      display: block; width: 22px; height: 2px;
      background: var(--text-primary); border-radius: 2px;
      transition: var(--transition);
    }
    .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    /* MOBILE NAV */
    .mobile-nav {
      position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
      background: var(--bg-primary); z-index: 99; overflow-y: auto;
      transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
      padding: 16px 20px 40px;
    }
    .mobile-nav.open { transform: translateX(0); }
    .mobile-nav-link {
      display: block; padding: 12px 4px; font-size: 0.95rem; font-weight: 500;
      color: var(--text-secondary); border-bottom: 1px solid var(--border2);
    }
    .mobile-nav-link:hover { color: var(--accent); }
    .mobile-section-title {
      font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
      text-transform: uppercase; color: var(--accent);
      padding: 16px 0 6px; display: block;
    }

    /* ═══════════════════════════════════════════
       BREADCRUMB
    ═══════════════════════════════════════════ */
    .breadcrumb-bar {
      background: var(--bg-secondary); border-bottom: 1px solid var(--border2);
      padding: 10px 0;
    }
    .breadcrumb {
      display: flex; align-items: center; gap: 6px;
      font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap;
    }
    .breadcrumb a { color: var(--text-secondary); }
    .breadcrumb a:hover { color: var(--accent); }
    .breadcrumb-sep { color: var(--text-muted); font-size: 0.7rem; }
    .breadcrumb-current { color: var(--accent); font-weight: 500; }

    /* ═══════════════════════════════════════════
       HERO
    ═══════════════════════════════════════════ */
    .hero {
      position: relative; overflow: hidden;
      padding: 80px 0 60px; text-align: center;
    }
    .hero-bg {
      position: absolute; inset: 0; z-index: 0;
      background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,142,247,0.12) 0%, transparent 65%),
                  radial-gradient(ellipse 50% 40% at 80% 70%, rgba(124,92,252,0.08) 0%, transparent 60%);
    }
    .hero-grid {
      position: absolute; inset: 0; z-index: 0;
      background-image:
        linear-gradient(var(--border2) 1px, transparent 1px),
        linear-gradient(90deg, var(--border2) 1px, transparent 1px);
      background-size: 60px 60px;
      mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 100%);
    }
    .hero-content { position: relative; z-index: 1; }
    .hero-badge { margin-bottom: 20px; display: inline-flex; }
    .hero-title {
      font-family: var(--font-display);
      font-size: clamp(2.2rem, 6vw, 4rem);
      font-weight: 800; line-height: 1.1;
      margin-bottom: 20px; letter-spacing: -0.02em;
    }
    .hero-title .grad {
      background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .hero-desc {
      font-size: clamp(0.95rem, 2vw, 1.1rem);
      color: var(--text-secondary); max-width: 620px;
      margin: 0 auto 32px; line-height: 1.7;
    }
    .hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
    .hero-stats {
      display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
    }
    .stat-item { text-align: center; }
    .stat-num {
      font-family: var(--font-display); font-size: 1.6rem; font-weight: 800;
      color: var(--text-primary); display: block;
    }
    .stat-label { font-size: 0.78rem; color: var(--text-muted); }

    /* ═══════════════════════════════════════════
       VIDEO EDITOR TOOL
    ═══════════════════════════════════════════ */
    .editor-section { padding: 0 0 80px; }
    .editor-container {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 20px;
      overflow: hidden;
      box-shadow: var(--shadow), 0 0 0 1px rgba(79,142,247,0.05);
    }
    .editor-topbar {
      background: var(--bg-card2);
      border-bottom: 1px solid var(--border2);
      padding: 12px 20px;
      display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    }
    .editor-topbar-title {
      font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
      margin-right: auto;
    }
    .editor-body { display: grid; grid-template-columns: 1fr 300px; min-height: 560px; }
    @media (max-width: 900px) {
      .editor-body { grid-template-columns: 1fr; }
    }

    /* PREVIEW AREA */
    .preview-area {
      background: #000;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      position: relative; min-height: 360px;
    }
    .preview-drop-zone {
      width: 100%; height: 100%; min-height: 360px;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 16px; cursor: pointer; transition: var(--transition);
      border: 2px dashed transparent;
    }
    .preview-drop-zone.dragover {
      border-color: var(--accent);
      background: rgba(79,142,247,0.05);
    }
    .drop-icon {
      width: 80px; height: 80px; border-radius: 50%;
      background: rgba(79,142,247,0.1); border: 2px solid var(--border);
      display: flex; align-items: center; justify-content: center;
      font-size: 2rem; transition: var(--transition);
    }
    .preview-drop-zone:hover .drop-icon { background: rgba(79,142,247,0.2); border-color: var(--accent); }
    .drop-text { font-size: 0.95rem; color: var(--text-secondary); text-align: center; }
    .drop-hint { font-size: 0.78rem; color: var(--text-muted); }
    #videoPreview {
      max-width: 100%; max-height: 360px;
      display: none; object-fit: contain; width: 100%;
    }
    #videoCanvas {
      max-width: 100%; max-height: 360px;
      display: none; width: 100%;
    }
    .preview-overlay {
      position: absolute; bottom: 0; left: 0; right: 0;
      background: linear-gradient(transparent, rgba(0,0,0,0.8));
      padding: 16px 20px; display: none;
    }
    .preview-filename { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 4px; }
    .preview-meta { font-size: 0.75rem; color: var(--text-muted); }

    /* TIMELINE / CONTROLS */
    .timeline-section {
      background: var(--bg-card2); border-top: 1px solid var(--border2); padding: 14px 20px;
    }
    .timeline-bar {
      width: 100%; height: 8px; border-radius: 4px;
      background: rgba(255,255,255,0.08); margin: 10px 0; position: relative; cursor: pointer;
    }
    .timeline-progress {
      height: 100%; border-radius: 4px;
      background: linear-gradient(90deg, var(--accent), var(--accent2));
      width: 0%; pointer-events: none; transition: width 0.1s;
    }
    .timeline-thumb {
      position: absolute; top: 50%; transform: translateY(-50%);
      width: 16px; height: 16px; border-radius: 50%;
      background: #fff; border: 2px solid var(--accent);
      left: 0%; margin-left: -8px; cursor: grab; pointer-events: all;
    }
    .trim-handles { position: relative; margin: 8px 0; }
    .trim-bar {
      width: 100%; height: 36px; background: rgba(255,255,255,0.04);
      border-radius: 6px; position: relative; cursor: default; overflow: visible;
      border: 1px solid var(--border2);
    }
    .trim-range {
      position: absolute; top: 0; bottom: 0;
      background: rgba(79,142,247,0.2); border: 1px solid var(--accent);
      border-radius: 4px; cursor: move;
    }
    .trim-handle {
      position: absolute; top: 0; bottom: 0; width: 10px;
      background: var(--accent); border-radius: 3px; cursor: ew-resize;
    }
    .trim-handle.left { left: -1px; border-radius: 3px 0 0 3px; }
    .trim-handle.right { right: -1px; border-radius: 0 3px 3px 0; }
    .timeline-times {
      display: flex; justify-content: space-between;
      font-size: 0.72rem; color: var(--text-muted); font-variant-numeric: tabular-nums;
    }
    .playback-controls {
      display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 10px;
    }
    .ctrl-btn {
      width: 36px; height: 36px; border-radius: 8px;
      background: rgba(255,255,255,0.06); border: 1px solid var(--border2);
      color: var(--text-secondary); font-size: 0.9rem;
      display: flex; align-items: center; justify-content: center;
      transition: var(--transition); cursor: pointer;
    }
    .ctrl-btn:hover { background: rgba(255,255,255,0.12); color: var(--text-primary); }
    .ctrl-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
    .ctrl-btn-lg {
      width: 44px; height: 44px; border-radius: 50%;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      border: none; color: #fff; font-size: 1rem;
      display: flex; align-items: center; justify-content: center;
      transition: var(--transition); cursor: pointer; box-shadow: 0 0 14px var(--accent-glow);
    }
    .ctrl-btn-lg:hover { transform: scale(1.08); box-shadow: 0 0 22px rgba(79,142,247,0.5); }
    .speed-sel {
      background: rgba(255,255,255,0.06); border: 1px solid var(--border2);
      color: var(--text-primary); border-radius: 6px; padding: 4px 8px; font-size: 0.78rem;
    }

    /* RIGHT PANEL */
    .panel {
      border-left: 1px solid var(--border2); display: flex; flex-direction: column;
    }
    .panel-tabs {
      display: flex; border-bottom: 1px solid var(--border2);
      background: var(--bg-card2); overflow-x: auto;
    }
    .panel-tab {
      padding: 10px 14px; font-size: 0.78rem; font-weight: 600;
      color: var(--text-muted); cursor: pointer; white-space: nowrap;
      border-bottom: 2px solid transparent; transition: var(--transition);
      flex-shrink: 0;
    }
    .panel-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
    .panel-content { flex: 1; overflow-y: auto; padding: 16px; }
    .panel-section { margin-bottom: 20px; }
    .panel-label {
      font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
      color: var(--text-muted); margin-bottom: 10px; display: block;
    }
    .range-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
    .range-name { font-size: 0.78rem; color: var(--text-secondary); flex: 1; min-width: 70px; }
    .range-ctrl { flex: 1; accent-color: var(--accent); cursor: pointer; }
    .range-val {
      font-size: 0.72rem; color: var(--accent); min-width: 32px;
      text-align: right; font-variant-numeric: tabular-nums;
    }
    .filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .filter-btn {
      padding: 6px 4px; border-radius: 6px; font-size: 0.7rem; font-weight: 600;
      background: rgba(255,255,255,0.04); border: 1px solid var(--border2);
      color: var(--text-secondary); transition: var(--transition); text-align: center;
    }
    .filter-btn:hover, .filter-btn.active {
      border-color: var(--accent); color: var(--accent); background: rgba(79,142,247,0.1);
    }
    .text-input-group { margin-bottom: 10px; }
    .text-input-label { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 5px; display: block; }
    .text-input {
      width: 100%; padding: 7px 10px; border-radius: 6px;
      background: rgba(255,255,255,0.05); border: 1px solid var(--border2);
      color: var(--text-primary); font-size: 0.82rem;
      transition: var(--transition); outline: none;
    }
    .text-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }
    .text-input.error { border-color: #ef4444; }
    .error-msg { font-size: 0.72rem; color: #ef4444; margin-top: 4px; display: none; }
    .export-btn-row { display: flex; gap: 8px; flex-direction: column; }
    .export-btn {
      width: 100%; padding: 10px; border-radius: 8px; font-size: 0.83rem; font-weight: 600;
      display: flex; align-items: center; gap: 8px; justify-content: center;
      transition: var(--transition); cursor: pointer;
    }
    .export-primary {
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      color: #fff; border: none;
    }
    .export-primary:hover { opacity: 0.9; transform: translateY(-1px); }
    .export-secondary {
      background: rgba(6,214,160,0.1); color: var(--accent3);
      border: 1px solid rgba(6,214,160,0.3);
    }
    .export-secondary:hover { background: rgba(6,214,160,0.18); }
    .export-note { font-size: 0.7rem; color: var(--text-muted); text-align: center; margin-top: 8px; }
    .progress-bar-wrap {
      background: rgba(255,255,255,0.06); border-radius: 4px; height: 6px; margin-top: 10px; overflow: hidden;
    }
    .progress-bar-fill {
      height: 100%; width: 0%; border-radius: 4px;
      background: linear-gradient(90deg, var(--accent), var(--accent3));
      transition: width 0.3s;
    }
    .status-msg { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 6px; }

    /* COLOR PICKER ROW */
    .color-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
    .color-swatch {
      width: 24px; height: 24px; border-radius: 4px; border: 1px solid var(--border2);
      cursor: pointer; flex-shrink: 0;
    }

    /* WAVEFORM */
    #waveformCanvas {
      width: 100%; height: 48px; border-radius: 6px;
      background: rgba(255,255,255,0.03); border: 1px solid var(--border2);
    }

    /* TOAST */
    .toast-container {
      position: fixed; top: 80px; right: 20px; z-index: 1000;
      display: flex; flex-direction: column; gap: 8px; pointer-events: none;
    }
    .toast {
      background: var(--bg-card2); border: 1px solid var(--border2);
      border-radius: 10px; padding: 12px 16px;
      font-size: 0.83rem; color: var(--text-primary);
      display: flex; align-items: center; gap: 10px;
      box-shadow: var(--shadow); min-width: 240px; max-width: 320px;
      animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
      pointer-events: all;
    }
    .toast.success { border-color: var(--accent3); }
    .toast.error { border-color: #ef4444; }
    @keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
    @keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(24px); } }

    /* ═══════════════════════════════════════════
       ABOUT / CONTENT SECTION
    ═══════════════════════════════════════════ */
    .about-section {
      padding: 72px 0; background: var(--bg-secondary);
      border-top: 1px solid var(--border2); border-bottom: 1px solid var(--border2);
    }
    .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
    @media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }
    .about-body p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 14px; font-size: 0.95rem; }
    .about-checks { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
    .check-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--text-secondary); }
    .check-icon { color: var(--accent3); flex-shrink: 0; margin-top: 2px; }
    .keyword-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
    .kw-tag {
      padding: 4px 12px; border-radius: 100px; font-size: 0.72rem; font-weight: 500;
      background: rgba(79,142,247,0.08); color: var(--accent); border: 1px solid var(--border);
    }

    /* ═══════════════════════════════════════════
       FEATURES
    ═══════════════════════════════════════════ */
    .features-section { padding: 80px 0; }
    .features-header { text-align: center; margin-bottom: 52px; }
    .features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
    .feature-card {
      background: var(--bg-card); border: 1px solid var(--border2);
      border-radius: var(--radius); padding: 28px 24px;
      transition: var(--transition); position: relative; overflow: hidden;
    }
    .feature-card::before {
      content: ''; position: absolute; inset: 0; border-radius: inherit;
      background: linear-gradient(135deg, rgba(79,142,247,0.05), transparent);
      opacity: 0; transition: var(--transition);
    }
    .feature-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 32px var(--accent-glow); }
    .feature-card:hover::before { opacity: 1; }
    .feature-icon {
      width: 52px; height: 52px; border-radius: 12px;
      background: rgba(79,142,247,0.1); border: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.4rem; margin-bottom: 16px; transition: var(--transition);
    }
    .feature-card:hover .feature-icon { background: rgba(79,142,247,0.2); }
    .feature-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
    .feature-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

    /* ═══════════════════════════════════════════
       HOW IT WORKS
    ═══════════════════════════════════════════ */
    .how-section { padding: 80px 0; background: var(--bg-secondary); }
    .how-header { text-align: center; margin-bottom: 56px; }
    .steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
    .step-card {
      background: var(--bg-card); border: 1px solid var(--border2);
      border-radius: var(--radius); padding: 28px 22px; text-align: center;
      position: relative; transition: var(--transition);
    }
    .step-card:hover { border-color: var(--accent2); transform: translateY(-3px); }
    .step-num {
      font-family: var(--font-display); font-size: 3rem; font-weight: 800;
      color: rgba(79,142,247,0.12); line-height: 1; margin-bottom: 12px;
    }
    .step-icon { font-size: 1.8rem; margin-bottom: 12px; }
    .step-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
    .step-desc { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.6; }

    /* ═══════════════════════════════════════════
       FAQ
    ═══════════════════════════════════════════ */
    .faq-section { padding: 80px 0; }
    .faq-header { text-align: center; margin-bottom: 52px; }
    .faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
    .faq-item {
      background: var(--bg-card); border: 1px solid var(--border2);
      border-radius: var(--radius); overflow: hidden; transition: var(--transition);
    }
    .faq-item.open { border-color: var(--accent); }
    .faq-q {
      display: flex; align-items: center; justify-content: space-between;
      padding: 18px 22px; cursor: pointer;
      font-size: 0.92rem; font-weight: 600; color: var(--text-primary);
    }
    .faq-arrow { font-size: 0.8rem; color: var(--text-muted); transition: transform 0.25s; flex-shrink: 0; }
    .faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--accent); }
    .faq-a {
      max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s;
      padding: 0 22px; font-size: 0.87rem; color: var(--text-secondary); line-height: 1.7;
    }
    .faq-item.open .faq-a { max-height: 200px; padding: 0 22px 18px; }

    /* ═══════════════════════════════════════════
       CTA
    ═══════════════════════════════════════════ */
    .cta-section {
      padding: 80px 0; background: var(--bg-secondary);
      border-top: 1px solid var(--border2);
    }
    .cta-box {
      background: linear-gradient(135deg, rgba(79,142,247,0.12), rgba(124,92,252,0.08));
      border: 1px solid var(--border); border-radius: 24px;
      padding: 56px 40px; text-align: center;
      position: relative; overflow: hidden;
    }
    .cta-box::before {
      content: ''; position: absolute;
      top: -50%; left: -50%; width: 200%; height: 200%;
      background: radial-gradient(circle, rgba(79,142,247,0.06) 0%, transparent 60%);
      animation: ctaGlow 8s ease-in-out infinite alternate;
    }
    @keyframes ctaGlow {
      0% { transform: translateX(-10%) translateY(-10%); }
      100% { transform: translateX(10%) translateY(10%); }
    }
    .cta-box > * { position: relative; z-index: 1; }
    .cta-title {
      font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem);
      font-weight: 800; margin-bottom: 14px;
    }
    .cta-desc { font-size: 0.97rem; color: var(--text-secondary); margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
    .cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

    /* ═══════════════════════════════════════════
       DISCLAIMER
    ═══════════════════════════════════════════ */
    .disclaimer-bar {
      background: rgba(79,142,247,0.06); border-top: 1px solid var(--border2);
      padding: 16px 0;
    }
    .disclaimer-text { font-size: 0.76rem; color: var(--text-muted); line-height: 1.6; text-align: center; }

    /* ═══════════════════════════════════════════
       FOOTER
    ═══════════════════════════════════════════ */
    .footer {
      background: var(--bg-secondary); border-top: 1px solid var(--border2);
      padding: 52px 0 28px;
    }
    .footer-grid {
      display: grid; grid-template-columns: 1fr 2fr; gap: 52px; margin-bottom: 40px;
    }
    @media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
    .footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin-top: 12px; }
    .footer-links-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
    }
    .footer-col-title {
      font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
      text-transform: uppercase; color: var(--text-primary); margin-bottom: 14px;
    }
    .footer-link-item {
      display: block; font-size: 0.82rem; color: var(--text-muted);
      padding: 4px 0; transition: var(--transition);
    }
    .footer-link-item:hover { color: var(--accent); }
    .footer-bottom {
      border-top: 1px solid var(--border2); padding-top: 24px;
      display: flex; justify-content: space-between; align-items: center; flex-wrap: gap;
      flex-wrap: wrap; gap: 12px;
    }
    .footer-copy { font-size: 0.78rem; color: var(--text-muted); }
    .footer-legal { display: flex; gap: 16px; }
    .footer-legal a { font-size: 0.78rem; color: var(--text-muted); }
    .footer-legal a:hover { color: var(--accent); }

    /* ═══════════════════════════════════════════
       COOKIE BANNER
    ═══════════════════════════════════════════ */
    .cookie-banner {
      position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
      background: var(--bg-card2); border-top: 1px solid var(--border);
      padding: 16px 24px; display: flex; align-items: center; gap: 16px;
      flex-wrap: wrap; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
      box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
    }
    .cookie-banner.visible { transform: translateY(0); }
    .cookie-text { flex: 1; font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; min-width: 200px; }
    .cookie-text a { color: var(--accent); }
    .cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
    .cookie-accept {
      padding: 8px 20px; border-radius: 7px; font-size: 0.82rem; font-weight: 600;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      color: #fff; border: none; cursor: pointer;
    }
    .cookie-decline {
      padding: 8px 16px; border-radius: 7px; font-size: 0.82rem; font-weight: 600;
      background: transparent; color: var(--text-muted);
      border: 1px solid var(--border2); cursor: pointer;
    }

    /* ═══════════════════════════════════════════
       RESPONSIVE
    ═══════════════════════════════════════════ */
    @media (max-width: 960px) {
      .nav-menu { display: none; }
      .hamburger { display: flex; }
    }
    @media (max-width: 640px) {
      .hero { padding: 52px 0 40px; }
      .editor-body { grid-template-columns: 1fr; }
      .panel { border-left: none; border-top: 1px solid var(--border2); }
      .hero-stats { gap: 20px; }
      .cta-box { padding: 36px 20px; }
      .footer-links-grid { grid-template-columns: 1fr; }
    }

    /* Smooth fade-in for sections */
    .fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s; }
    .fade-in.visible { opacity: 1; transform: translateY(0); }

    /* Tooltip */
    [data-tip] { position: relative; }
    [data-tip]:hover::after {
      content: attr(data-tip);
      position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%);
      background: var(--bg-card2); color: var(--text-secondary);
      font-size: 0.7rem; white-space: nowrap; padding: 4px 8px;
      border-radius: 5px; border: 1px solid var(--border2);
      pointer-events: none; z-index: 10;
    }
	
/* ═══════════════════════════════════════════
   MOBILE OPTIMIZATIONS - ADD AT END OF STYLE SECTION
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Editor container mobile fixes */
  .editor-container {
    border-radius: 12px;
    margin: 0 -4px;
  }
  
  .editor-topbar {
    padding: 10px 12px;
    gap: 8px;
  }
  
  .editor-topbar-title {
    font-size: 0.7rem;
    width: 100%;
    margin-bottom: 6px;
    order: -1;
  }
  
  .editor-topbar .btn-ghost {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
  
  /* Preview area mobile */
  .preview-area {
    min-height: 240px;
  }
  
  .preview-drop-zone {
    min-height: 240px;
    padding: 20px;
  }
  
  .drop-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .drop-text {
    font-size: 0.85rem;
  }
  
  .drop-hint {
    font-size: 0.7rem;
  }
  
  .preview-drop-zone .btn-primary {
    padding: 8px 16px;
    font-size: 0.75rem;
  }
  
  #videoPreview, #videoCanvas {
    max-height: 240px;
  }
  
  .preview-overlay {
    padding: 10px 12px;
  }
  
  .preview-filename {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .preview-meta {
    font-size: 0.65rem;
  }
  
  /* Timeline section mobile */
  .timeline-section {
    padding: 10px 12px;
  }
  
  .timeline-times {
    font-size: 0.65rem;
  }
  
  .timeline-bar {
    height: 6px;
  }
  
  .timeline-thumb {
    width: 14px;
    height: 14px;
    margin-left: -7px;
  }
  
  .trim-bar {
    height: 28px;
  }
  
  .trim-handle {
    width: 8px;
  }
  
  /* Playback controls mobile */
  .playback-controls {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .ctrl-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  
  .ctrl-btn-lg {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .speed-sel {
    padding: 4px 6px;
    font-size: 0.7rem;
  }
  
  #waveformCanvas {
    width: 80px;
    height: 32px;
    margin-left: 4px !important;
  }
  
  /* Right Panel mobile */
  .panel {
    border-left: none;
    border-top: 1px solid var(--border2);
  }
  
  .panel-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  
  .panel-tab {
    padding: 8px 12px;
    font-size: 0.7rem;
    flex-shrink: 0;
  }
  
  .panel-content {
    padding: 12px;
  }
  
  .panel-label {
    font-size: 0.65rem;
    margin-bottom: 8px;
  }
  
  .range-row {
    gap: 6px;
    margin-bottom: 8px;
  }
  
  .range-name {
    font-size: 0.7rem;
    min-width: 60px;
  }
  
  .range-ctrl {
    min-width: 100px;
  }
  
  .range-val {
    font-size: 0.65rem;
    min-width: 28px;
  }
  
  .filter-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
  
  .filter-btn {
    padding: 5px 3px;
    font-size: 0.65rem;
  }
  
  .text-input {
    padding: 6px 8px;
    font-size: 0.75rem;
  }
  
  .text-input-label {
    font-size: 0.7rem;
  }
  
  .color-row {
    gap: 6px;
  }
  
  .color-swatch {
    width: 28px;
    height: 28px;
  }
  
  .export-btn {
    padding: 8px;
    font-size: 0.75rem;
  }
  
  .export-note {
    font-size: 0.65rem;
  }
  
  /* Transform buttons mobile */
  .panel-section .btn-ghost {
    padding: 5px 10px;
    font-size: 0.7rem;
  }
  
  /* Toast messages mobile */
  .toast-container {
    top: auto;
    bottom: 20px;
    right: 12px;
    left: 12px;
  }
  
  .toast {
    min-width: auto;
    max-width: none;
    width: calc(100% - 24px);
    font-size: 0.75rem;
    padding: 10px 12px;
  }
}

/* Extra small devices (phones under 480px) */
@media (max-width: 480px) {
  .editor-topbar {
    flex-wrap: wrap;
  }
  
  .editor-topbar .btn-ghost {
    flex: 1;
    min-width: calc(25% - 8px);
    justify-content: center;
  }
  
  .playback-controls {
    justify-content: center;
  }
  
  .ctrl-btn, .ctrl-btn-lg {
    flex-shrink: 0;
  }
  
  .speed-sel {
    flex-shrink: 0;
  }
  
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .panel-tab {
    padding: 8px 10px;
    font-size: 0.65rem;
  }
  
  .range-row {
    flex-wrap: wrap;
  }
  
  .range-name {
    width: 100%;
    margin-bottom: 4px;
  }
  
  .range-ctrl {
    flex: 1;
  }
  
  .timeline-times {
    font-size: 0.6rem;
  }
  
  .trim-bar {
    height: 24px;
  }
}

/* Touch-friendly improvements for all mobile devices */
@media (max-width: 768px) {
  /* Larger touch targets */
  .ctrl-btn,
  .ctrl-btn-lg,
  .panel-tab,
  .filter-btn,
  .btn-ghost,
  .btn-primary,
  .export-btn,
  .trim-handle,
  .timeline-thumb {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  
  .timeline-thumb {
    width: 20px;
    height: 20px;
    margin-left: -10px;
  }
  
  .trim-handle {
    width: 12px;
  }
  
  /* Prevent zoom on input focus */
  .text-input,
  .speed-sel,
  #exportName {
    font-size: 16px;
  }
  
  /* Better scroll for panel content */
  .panel-content {
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix for sticky hover states on mobile */
  .filter-btn:hover,
  .feature-card:hover,
  .step-card:hover {
    transform: none;
  }
  
  /* Better dropdown menu on mobile touch */
  .nav-item .nav-dropdown {
    display: none;
  }
  
  .nav-item:hover .nav-dropdown {
    display: none;
  }
  
  /* Cookie banner mobile */
  .cookie-banner {
    padding: 12px 16px;
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-text {
    font-size: 0.75rem;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-accept,
  .cookie-decline {
    padding: 8px 20px;
  }
}

/* Landscape orientation fixes */
@media (max-width: 900px) and (orientation: landscape) {
  .editor-body {
    grid-template-columns: 1fr;
  }
  
  .preview-area {
    min-height: 200px;
  }
  
  .panel-content {
    max-height: 250px;
  }
  
  .timeline-section {
    padding: 8px 12px;
  }
  
  .playback-controls {
    margin-top: 6px;
  }
}	
